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
React-DnD Version 8 #1384
Merged
Merged
React-DnD Version 8 #1384
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
* refactor: remove cjs builds * fix: update tsconfigs * refactor: replace require() form with imports. use @ts-ignore if types are unavailable * refactor: remove umd builds * refactor: remove webpack deps from react-dnd-html5-backend * refactor: update how internals are shared between react-dnd and react-dnd-decorators * fix: correct tests * fix: jest typings issues
* refactor: move decorators back to the main library * fix: add type: module to package.json files
* build: add umd builds package * feat: restore umd builds in a separate package
darthtrevino
changed the title
React-DnD Version 8 Updates (WIP - Open to Comments)
React-DnD Version 8
Jun 14, 2019
darthtrevino
added a commit
that referenced
this pull request
Feb 3, 2022
* docs: use hooks-based examples in code-sandboxes * refactor: move decorator-based API to a new package (#1382) * docs: correct docsite loading * Consolidate builds into ES-Modules (#1383) * refactor: remove cjs builds * fix: update tsconfigs * refactor: replace require() form with imports. use @ts-ignore if types are unavailable * refactor: remove umd builds * refactor: remove webpack deps from react-dnd-html5-backend * refactor: update how internals are shared between react-dnd and react-dnd-decorators * fix: correct tests * fix: jest typings issues * Move Decorators back into React-DnD (#1392) * refactor: move decorators back to the main library * fix: add type: module to package.json files * chore: remove wallaby.js file * Restore UMD Builds as a new Package (#1393) * build: add umd builds package * feat: restore umd builds in a separate package * test: add test.html driver * docs: allow examples to swap between hooks and decorator mode * docs: style the hooks/decorators toggle * docs: add hooks/decorator example sandboxes * docs: remove mention of the ?legacy flag * fix: remove mention of react-dnd-decorators * docs: correct examples import * docs: use hooks on docsroot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 major changes of React-DnD version 8.
We are moving the class decorators out of react-dnd. These will be pushed into a new package called react-dnd-decorators. The existingreact-dnd
package will remain, but it will contain the hooks API and other top-level helpers. This will help us to reduce bundle sizes of applications that do not require legacy support. Because the class-decoration mechanisms were so fragile, this will also help us to segregate bugs.ES Modules by Default. The target output of TypeScript has been changed to
esnext
withesnext
modules. This speeds up and simplifies our build process, and leans into modern web standards. The UMD builds have been moved to a new 'react-dnd-umd-builds' package.We are removing legacy polyfills. At this point, that's just String.endsWith
We are renaming DragDropContextProvider to DndProvider. Also, the DragDropContext, DragDropContextConsumer, and DragDropContextProvider exports are being consolidated into a single
DndContext
export.Non-Major Updates
fixes Legacy examples not works #1391