Package name migration #242
Replies: 2 comments
-
The The bundle size is reduced purely by swapping the build tool but only by a very slim margin:
This is actually good news though because the Vite version is smaller without optimisations than the Rollup version which is highly optimised. This means in future releases we can expect smaller and more efficient bundles as we optimise the Vite output. Again, these two bundles have the same version number since they have the same content being bundled, there is no difference between them besides the build tool being used. If you wish to migrate to the new package name already before the old name is marked as deprecated, this is a great time to do it. |
Beta Was this translation helpful? Give feedback.
-
The package name migration is now complete and a deprecation message has been set on the old package name to inform users of the change. The deprecation message will show on NPM package views on the registry website and via CLI installs such as is seen in the screenshots below. |
Beta Was this translation helpful? Give feedback.
-
In the next major release of this library (v5.0.0) the dependency name will change from
react-p5-wrapper
to@p5-wrapper/react
and thereact-p5-wrapper
name will be deprecated.We have already deployed our NextJS dynamic component under the
@p5-wrapper/next
package name and this package will be the second to be deployed using this new namespace convention.Version 5.0.0 will be released on the 1st of May 2023, at which point the old name will be deprecated, although still usable for version 4.x.x and below, and the new one in place for version 5.x.x and above.
For reference and clarity, the changes for version 5.0.0 will largely be represented by the changes in pull request #240. That pull request contains largely internal changes to move us from Webpack + Rollup + Jest to pure Vite and Vitest. In terms of API changes, nothing will change how you use the component as it currently stands.
I will keep this thread updated when the changes are deployed and of course if there are any open questions or topics of concern, please do let me know in the discussion thread below.
Beta Was this translation helpful? Give feedback.
All reactions