Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-draggable to v4.4.5 #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 21, 2020

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-draggable 4.2.0 -> 4.4.5 age adoption passing confidence

Release Notes

react-grid-layout/react-draggable

v4.4.5

Compare Source

  • Fix: grid prop unused in handleDragStop #​621
  • Fix: children prop missing in TypeScript definition #​648
  • Internal: Various devDep updates

v4.4.4

Compare Source

  • Fix: Ensure documentElement.style actually exists. Fixes crashes in some obscure environments. #​574 #​575
  • Fix: Add react/react-dom as peerDependencies again to fix Yarn PnP
  • Size: Replace classnames with clsx to save a few bytes
  • Internal: Additional tests on ref functionality and additional README content on nodeRef
  • Internal: Lots of devDependencies updates
  • Docs: Various README and demo updates, see git commits

v4.4.3

Compare Source

  • Add nodeRef to TypeScript definitions

v4.4.2

Compare Source

  • Fix: Remove "module" from package.json (it is no longer being built)

v4.4.1

Compare Source

  • Fix: Remove "module" definition in package.json
    • Giving up on this: there isn't a great reason to publish modules
      here as they won't be significantly tree-shook, and it bloats
      the published package.
    • Fixes incompatiblity in 4.4.0 with webpack, where webpack is now
      selecting "module" because "browser" is no longer present.

v4.4.0

Compare Source

  • Add nodeRef:
    • If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
      Unfortunately, in order for <Draggable> to work properly, we need raw access
      to the underlying DOM node. If you want to avoid the warning, pass a nodeRef
      as in this example:
      function MyComponent() {
        const nodeRef = React.useRef(null);
        return (
          <Draggable nodeRef={nodeRef}>
            <div ref={nodeRef}>Example Target</div>
          </Draggable>
        );
      }
      This can be used for arbitrarily nested components, so long as the ref ends up
      pointing to the actual child DOM node and not a custom component.
      Thanks to react-transition-group for the inspiration.
      nodeRef is also available on <DraggableCore>.
  • Remove "browser" field in "package.json":
    • There is nothing special in the browser build that is actually practical
      for modern use. The "browser" field, as defined in
      https://github.com/defunctzombie/package-browser-field-spec#overview,
      indicates that you should use it if you are directly accessing globals,
      using browser-specific features, dom manipulation, etc.

      React components like react-draggable are built to do minimal raw
      DOM manipulation, and to always gate this behind conditionals to ensure
      that server-side rendering still works. We don't make any changes
      to any of that for the "browser" build, so it's entirely redundant.

      This should also fix the "Super expression must either be null or
      a function" error (#​472) that some users have experienced with particular
      bundler configurations.

      The browser build may still be imported at "build/web/react-draggable.min.js".
      This is to prevent breakage only. The file is no longer minified to prevent
      possible terser bugs.

    • The browser build will likely be removed entirely in 5.0.

  • Fix: Make bounds optional in TypeScript #​473

v4.3.1

Compare Source

This is a bugfix release.

  • Happy Easter!
  • Fixed a serious bug that caused <DraggableCore> not to pass styles.
    • React.cloneElement has an odd quirk. When you do:
      return React.cloneElement(this.props.children, {style: this.props.children.props.style});
      , style ends up undefined.
  • Fixed a bug that caused debug output to show up in the build.
    • babel-loader cache does not invalidate when it should. I had modified webpack.config.js in the last version but it reused stale cache.

v4.3.0

Compare Source

  • Fix setState warning after dismount if drag still active. Harmless, but prints a warning. #​424
  • Fix a long-standing issue where text inputs would unfocus upon dismounting a <Draggable>.
  • Fix an issue where the insides of a <Draggable> were not scrollable on touch devices due to the outer container having touch-action: none.
    • This was a long-standing hack for mobile devices. Without it, the page will scroll while you drag the element.
    • The new solution will simply cancel the touch event e.preventDefault(). However, due to changes in Chrome >= 56, this is only possible on
      non-passive event handlers. To fix this, we now add/remove the touchEvent on lifecycle events rather than using React's event system.
    • #​465
  • Upgrade devDeps and fix security warnings. None of them actually applied to this module.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/react-draggable-4.x branch from 03e3c64 to 6c92575 Compare October 19, 2021 01:35
@renovate renovate bot changed the title fix(deps): update dependency react-draggable to v4.4.3 fix(deps): update dependency react-draggable to v4.4.4 Oct 19, 2021
@renovate renovate bot force-pushed the renovate/react-draggable-4.x branch from 6c92575 to 0cb19f0 Compare May 16, 2022 01:36
@renovate renovate bot changed the title fix(deps): update dependency react-draggable to v4.4.4 fix(deps): update dependency react-draggable to v4.4.5 May 16, 2022
@renovate
Copy link
Author

renovate bot commented Mar 24, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant