clsx
2.1.1 · 23 Apr 2024MIT179.1M / weekRepositoryHomepagenpmAtom feed
Upgrading clsx From 1.2.0 to 2.1.1
5 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- 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
10 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.