Skip to content

v2.0 - React v18 support #144

@palerdot

Description

@palerdot

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 - #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 bundling d3 related modules. If you are already using d3 (prefarably via d3 microbundles like d3-selection etc), you can take advantage of the slim build.
  • Vite: Switching to vite for dev/prod building
  • Vitest: Switching to vitest for 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, umd builds. The package will now both export es compatible build and umd compatible build by default. Library users are encouraged to make use of es build for better tree shaking in their app. Please note, slim build will not be available as a umd build. Also, the package has switched to d3 micromodules (eg: d3-ease, d3-transition etc) for better tree shaking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions