clsx
2.1.1 · 23 Apr 2024MIT179.1M / weekRepositoryHomepagenpmAtom feed
Upgrading clsx From 1.1.1 to 2.1.1
6 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 3
- fixes
Before you upgrade
Tick each one off as you go- Breaking2.0.0
Release by release
- Fixed
(types) Include
bigintinClassValuetype: (#96): 3d960ab Accommodates recent@types/reactchanges toReactNode. Thank you @ViliamKopecky~!
- Fixed
- New
Add new
clsx/litesubmodule forstring-only usage: 1a49142
- New
- Fixed
(perf) Cache
arguments.length&array.lengthfor 6% performance gain (#26): deff09b Adds 5 bytes (+2%) for ~3% avg performance gain Thank you @jalalazimi
- Fixed
- Breaking
Add
"exports"map for native ESM support (#57): 3ec8e9f, 0949868 Also supports TypeScript'snode16/nodenextmodule resolution Maintains CommonJS support (with fixed TS definitions) Thank you @remcohaszing~!
- Breaking
- Fixed
Ensure CommonJS and UMD entrypoints have the named
clsxexport too
- Fixed
- New
Add named
clsxexport alias (#43, #44): 56ab81f Thank you @danikaze~! This is purely an alias for the default export so that TypeScript users can avoid theesModuleInteropsetting. In other words, the followimportstatements are effectively identical, but the latter is preferred by TypeScript:
- New
14 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.