react-d3-speedometer
react-d3-speedometer copied to clipboard
v2.0 - React v18 support
v2.0 with React v18 support is in RC and available as next tag. You can install it with
npm install react-d3-speedometer@next
This PR has support for v18 React - https://github.com/palerdot/react-d3-speedometer/pull/143. The changes will be published as a major version of the package v2.0. Along with this upgrade, some notable changes to the package are
- Slim Build: Starting from
v2.0, a slim build of the package will be available without bundlingd3related modules. If you are already usingd3(prefarably viad3microbundles liked3-selectionetc), you can take advantage of the slim build. - Vite: Switching to
vitefor dev/prod building - Vitest: Switching to
vitestfor testing - Cypress/RTL: For testing, this package will be moving away from enzyme. For more context, please check https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl
- Exporting
es,umdbuilds. The package will now both exportescompatible build andumdcompatible build by default. Library users are encouraged to make use ofesbuild for better tree shaking in their app. Please note,slimbuild will not be available as aumdbuild. Also, the package has switched tod3micromodules (eg:d3-ease,d3-transitionetc) for better tree shaking.
Hey @palerdot Thanks for the package first of all
I just upgraded to v18 react and can confirm I was having issues with react-d3-speedometer. Luckily I found this issue where you are already on top of it and using the @next has solved the issue I had. My error was
TypeError: b.pointer.transition is not a function
Great job, thanks!
Hey @hect1c
Good to know. In case you face any troubles with v2.0/ v18 React, please raise an issue.
PS: I'm locking this issue to avoid people posting their issues as comment. Please open a new issue if you are facing any problem. This issue is for information/announcement purposes only.