Skip to content

v7.0.0

Latest

Choose a tag to compare

@srdjan srdjan released this 28 Feb 14:59
· 17 commits to master since this release

Breaking change

The react-multistep/server export has been removed. If you were importing from react-multistep/server, this will break on upgrade.

Why: the server module added 34 kB to the published package (server bundle + type definitions) while sharing zero code with the client component. Bundling two independent modules in one package penalized every client-only consumer - which is the vast majority of installs. Splitting it out is the right boundary.

The server module remains in the repo and will be published as a separate package.

Other changes

  • Client bundle is now minified (dist/index.js: 14 kB -> 6.1 kB)
  • Published package drops from 82 kB / 18 files to ~40 kB / 9 files

Migration

Replace:

import { ... } from 'react-multistep/server'

With the separate server package (to be published). The client API (react-multistep) is unchanged.