Open palerdot opened 2 years ago
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.
v2.0
with Reactv18
support is in RC and available asnext
tag. You can install it withThis 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 packagev2.0
. Along with this upgrade, some notable changes to the package arev2.0
, a slim build of the package will be available without bundlingd3
related modules. If you are already usingd3
(prefarably viad3
microbundles liked3-selection
etc), you can take advantage of the slim build.vite
for dev/prod buildingvitest
for testinges
,umd
builds. The package will now both exportes
compatible build andumd
compatible build by default. Library users are encouraged to make use ofes
build for better tree shaking in their app. Please note,slim
build will not be available as aumd
build. Also, the package has switched tod3
micromodules (eg:d3-ease
,d3-transition
etc) for better tree shaking.