website
website copied to clipboard
build(deps): bump clsx from 1.2.1 to 2.1.1
Bumps clsx from 1.2.1 to 2.1.1.
Release notes
Sourced from clsx's releases.
v2.1.1
Patches
- (types) Include
bigintinClassValuetype: (#96): 3d960ab Accommodates recent@types/reactchanges toReactNode. Thank you@ViliamKopecky~!Chores
- Add
licenses.devbadge: 684509c This service recursively analyzes entire dependency graphs to ensure that a package (or your project) is using permissive licenses. For example, here's a results table forpolka@nextand a largerastroexample.
Full Changelog: https://github.com/lukeed/clsx/compare/v2.1.0...v2.1.1
v2.1.0
Features
Add new
clsx/litesubmodule forstring-only usage: 1a49142This is a 140b version of
clsxthat is ideal for Tailwind and/or React contexts, which typically follow thisclsxusage pattern:clsx('foo bar', props.maybe && 'conditional classes', props.className);Important: This
clsx/litemodule ignores all non-string arguments and is therefore not a 1:1 replacement forclsxitself!import { clsx } from 'clsx'; import { clsx as lite } from 'clsx/lite';// strings-only usage is identical clsx('foo', null, 'bar', true && 'baz'); //=> "foo bar baz" lite('foo', null, 'bar', true && 'baz'); //=> "foo bar baz"
// clsx/lite ignores all non-strings clsx('foo', { a: true, b: false, c: true }); //=> "foo a c" lite('foo', { a: true, b: false, c: true }); //=> "foo"
Full Changelog: https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0
v2.0.1
Patches
- (perf) Cache
arguments.length&array.lengthfor 6% performance gain (#26): deff09b
... (truncated)
Commits
925494c2.1.13d960abfix(types): includebigintinClassValuetype (#96)684509cchore: add licenses badgea60db122.1.01a49142feat: addclsx/litemodule5cac14c2.0.1855eec2chore(bench): include ≠ symbolbf64e71chore: update module size6e3b2b9chore: update benchmarks;554ad31chore: dedicated string vs number var usage;- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)