-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update react-dnd monorepo to v16 (major) #15
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-react-dnd-monorepo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145e607
to
4ae6a68
Compare
4ae6a68
to
ea6331d
Compare
ea6331d
to
8196708
Compare
8196708
to
b5a4225
Compare
7df5405
to
2e729b9
Compare
bdf4bfe
to
e8bfc90
Compare
e8bfc90
to
e702c36
Compare
e702c36
to
6ae1659
Compare
6ae1659
to
dc25289
Compare
dc25289
to
ba1d60a
Compare
ba1d60a
to
1749c15
Compare
1749c15
to
bf79e08
Compare
bf79e08
to
88a5695
Compare
88a5695
to
ca0bea7
Compare
ca0bea7
to
8c6167f
Compare
8c6167f
to
8bd32a9
Compare
1d9ab06
to
e12cc0e
Compare
ad7e40a
to
ef629ec
Compare
63314ef
to
025a646
Compare
025a646
to
d17b605
Compare
d17b605
to
b5a90fd
Compare
b5a90fd
to
81d4858
Compare
70ae4cd
to
4af52b2
Compare
4af52b2
to
37b736c
Compare
37b736c
to
773c4d7
Compare
773c4d7
to
85881a1
Compare
dc13bcc
to
783d7a7
Compare
783d7a7
to
ae39d1d
Compare
2fd9860
to
35b702e
Compare
35b702e
to
18744c7
Compare
2e598e2
to
a744b55
Compare
4f2eb25
to
6be5265
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json
|
6be5265
to
97497a4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.0.0
->^16.0.1
^5.0.1
->^16.0.1
Release Notes
react-dnd/react-dnd (react-dnd)
v16.0.1
Compare Source
v16.0.0
Compare Source
Major
v15.1.2
Compare Source
The utility packages
@react-dnd/invariant
,@react-dnd/shallowequal
, and@react-dnd/asap
(which are forks of popular libraries) have been included in the monorepo and built using the same output mechanisms as thereact-dnd
core packages (dual EJS/CSM).@react-dnd/asap
has been simplified to remove the node variant, which relied on deprecated APIsv15.1.1
Compare Source
v15.1.0
Compare Source
pkg.exports
v15.0.2
Compare Source
This release uses output from swc using the 'es2017' target instead of using output from 'tsc' using the 'ESNext' target.
v15.0.1
Compare Source
This release fixes issues with the ESM-only structure of v15.0.0. All packages are now in their prior CommonJS/ESM format.
v15.0.0
Major Changes
~~The react-dnd packages are now published as ESM-only with
type: module
. See this FAQ by sindresorhus: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c~~The Decorators API has been removed and fully replaced by the Hooks API. The Decorators API was difficult to develop & type correctly, and this improves its maintainability.
The builds no longer use babel & preset-env. The library is transpiled using SWC into the "es2017" target, which assumes async/await is available. This should reduce bundle sizes by removing polyfills and support-code which may be unnecessary in your target.
Bugfixes
canDrag
is true (#3187)v14.0.3
Compare Source
Updated
react-dnd: 14.0.3
react-dnd-html5-backend: 14.0.1
react-dnd-touch-backend: 14.1.0
Patch Updates
v14.0.2
Compare Source
Patch
This PR will throw a developer exception if a user specifies a
useDrag::spec.begin
method.v14.0.1
: 14.0.1Compare Source
Patch
Update internal hook
useDragType()
to align with updated typings. Check 14.0.0 release for API changesv14.0.0
: 14.0.0Compare Source
This release addresses a handful of nagging liveness and ergonomic issues with the hooks API.
The liveness issues affect all hooks, and were discovered on deeper inspection of certain stress tests in the documentation. The internal
useCollector()
hook is used to collect props from the DnD system when things change. Prior to this update, we subscribed to updates from the DnD monitor to trigger prop collection. However, state on the react side was only accounted for on the first render. This release improves that liveness by collecting props whenever react state changes.The ergonomics of the
useDrag
have been refactored. In short:spec.type
is requiredspec.item
can be a function or static object.spec.item
replacesspec.begin
Since the release of the hooks API, we packed
type
underspec.item
. However, this led to nonintuitive situations where anitem
field was required to be specified even though items are created in thebegin
method.Additionally, in the original React-DnD design,
beginDrag()
was optional and the type of the draggables had to be defined. If no explicit DragObject was created, an implicit object was created by the system..The change we've made here decouples
type
fromitem
, and collapsesbegin
intoitem
.e.g.
useDrag({ item: { type: BOX }})
=>useDrag({ type: 'BOX' })
We've also added the ability to cancel drag operations in the hooks API by returning null from
begin
.v13.1.1
Compare Source
react-dnd
Patch
item.type
changesreact-dnd-html5-backend
Patch
HTML5Context
,HTML5BackendOptions
interfacesv13.1.0
Compare Source
react-dnd
TLDR:
useDrag
anduseDrop
support both a memo pattern and a spec object now.In v13, we've tried to address some errors that were pervading with the react-dnd hooks API. Generally, making sure DragSource/DropTargets were up-to-date and that the system wasn't leaking handles was a precarious balancing act. Moving to a memo API pattern (e.g. useDrag(() => spec)) fixed this problem in our tests.
However, as we dug further into handler leakage issues, it became clear that anything using the hooks would reattach and receive a new handler ID whenever the spec changed at all. This was in contrast to the Decorator API's behavior of keeping stable handler IDs as the incoming props changed.
To fix the Hooks API to stop leaking handlers, we found a pretty simple solution: a classical class with a public setter for the
spec
object that's updated via auseEffect
hook. This neatly avoids the mutating DragSource/DropTargets on every spec change. This had two effects: identifiers have been stabilized, and spec objects were usable again because changing them didn't cause DragSource/DropTarget instances to be regenerated and reattached.In retrospect, this undoes the necessity of the major cut that happened with v13, but the Hooks API is much sturdier now. We hope that you find the improved memory stability in the hooks API to be useful in your projects.
v13.0.1
Compare Source
Patch Updates
v13.0.0
React-DnD v13, Others v12
v12 was largely structural and organizational, but some issues were discovered shortly after release that warranted changing the hooks API.
Breaking Changes
useDrag
,useDrop
hooks accept functions that create spec objects instead of spec objects directly. Clients can think about the API to useDrag() and useDrop() as being analogous to useMemo(). This allows clients to have direct control over when their DnD specifications are re-generated (which internally reattaches them to the DnD system).Non-Breaking Changes
rootElement
component in the HTML5Backend options to localize where DnD will process events in the client app.v11.1.3
Compare Source
Patch
Update .npmignore files so that tsbuildinfo files are not included in publication. This reduces package sizes.
v11.1.1
Compare Source
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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.