clsx
2.1.1 · 23 Apr 2024MIT179.1M / weekRepositoryHomepagenpmAtom feed
Upgrading clsx From 1.0.3 to 1.2.1
5 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 3
- new
- 6
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.1.0
Release by release
- 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
- New
Guard all
toValcalls with truthy assertions: 4fa8811, 019ec02 - New
Reorder
typeofchecks for common case: 08a5a7f - Fixed
Remove needless spacer on string/number condition: ff11464
- Fixed
Remove unnecessary recursive caller for object keys: f43dd23
- New
- Breaking
Important: Because of this change, Internet Explorer 8 (and older) are no longer supported.If you happen to require support for these browsers, please continue to use the
1.0.xversion range. - Fixed
Use
Array.isArrayfor properArraytype-checking (#17): 0d6023a
- Breaking
- Fixed
Ignore function arguments: 4aff569
- Fixed
Separate Array and Object loops: 91f5e68
- Fixed
17 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.