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

React-DnD Version 8 #1384

Merged
merged 16 commits into from Jun 14, 2019
Merged

React-DnD Version 8 #1384

merged 16 commits into from Jun 14, 2019

Conversation

darthtrevino
Copy link
Member

@darthtrevino darthtrevino commented Jun 7, 2019

This PR contains the major changes of React-DnD version 8.

  1. We are moving the class decorators out of react-dnd. These will be pushed into a new package called react-dnd-decorators. The existing react-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.

  2. ES Modules by Default. The target output of TypeScript has been changed to esnext with esnext 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.

  3. We are removing legacy polyfills. At this point, that's just String.endsWith

  4. We are renaming DragDropContextProvider to DndProvider. Also, the DragDropContext, DragDropContextConsumer, and DragDropContextProvider exports are being consolidated into a single DndContext export.

Non-Major Updates

darthtrevino and others added 16 commits June 7, 2019 11:50
* 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 darthtrevino changed the title React-DnD Version 8 Updates (WIP - Open to Comments) React-DnD Version 8 Jun 14, 2019
@darthtrevino darthtrevino merged commit 0c5b9fd into master Jun 14, 2019
@darthtrevino darthtrevino deleted the v8 branch June 14, 2019 22:14
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Legacy examples not works
1 participant