Overview
Zayne Labs Toolkit uses Changesets for versioning and changelog management. This guide will help you migrate between versions and understand breaking changes.Current Version
The latest stable version of the toolkit packages is:@zayne-labs/toolkit-core: v0.12.43@zayne-labs/toolkit-react: v0.12.43@zayne-labs/toolkit-type-helpers: v0.12.43
Package Structure Changes
The toolkit is now split into three separate packages for better modularity and tree-shaking.
From Legacy to v0.12.x
If you’re migrating from an older version where everything was in a single package, you’ll need to update your imports:React Package Updates
Subpath Exports
The React package now uses subpath exports for better code splitting:Peer Dependencies
Breaking Changes Checklist
Package Splitting
Package Splitting
- Single package split into three separate packages
- Update imports to use package-specific paths
- Install only the packages you need
Module Type
Module Type
- All packages now use
"type": "module" - Only ESM builds are provided
- Ensure your project supports ESM modules
Side Effects
Side Effects
- All packages are marked as
"sideEffects": false - Enables better tree-shaking
- No changes required from users
Node Version
Node Version
- Minimum Node.js version is now 18.x
- Update your environment if using an older version
Version Management
The toolkit uses Changesets for version management. To stay updated:TypeScript Configuration
The toolkit requires TypeScript 5.9.x for optimal type inference.
tsconfig.json is configured correctly:
Getting Help
If you encounter any issues during migration:- Check the GitHub Issues
- Review the package-specific documentation
- Open a new issue with details about your migration problem
Next Steps
Tree-Shaking Guide
Learn how to optimize your bundle size
API Reference
Explore all available functions and hooks