Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Update dependency clsx to ^1.2.1 #1508

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 3, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
clsx ^1.1.0 -> ^1.2.1 age adoption passing confidence

Release Notes

lukeed/clsx (clsx)

v1.2.1

Compare Source

Patches

  • Ensure CommonJS and UMD entrypoints have the named clsx export too

Chores


Full Changelog: lukeed/clsx@v1.2.0...v1.2.1

v1.2.0

Compare Source

Features

  • Add named clsx export alias (#​43, #​44): 56ab81f
    Thank you @​danikaze~!

    This is purely an alias for the default export so that TypeScript users can avoid the esModuleInterop setting. In other words, the follow import statements are effectively identical, but the latter is preferred by TypeScript:

    import clsx from 'clsx';
    // or
    import { clsx } from 'clsx';

    Important: Just to reiterate, both still work!

Chores


Full Changelog: lukeed/clsx@v1.1.1...v1.2.0

v1.1.1

Compare Source

Note: This is a performance-related patch only!
Across all benchmarks, this version of clsx is ~1M ops/sec faster than [email protected].
...It also happens to be 1 byte (gzip) smaller 😅🎉

Patches

  • fix: Remove needless spacer on string/number condition: ff11464
  • fix: Remove unnecessary recursive caller for object keys: f43dd23
  • perf: Guard all toVal calls with truthy assertions: 4fa8811, 019ec02
  • perf: Reorder typeof checks for common case: 08a5a7f

Chores

Benchmarks

Run on Node.js v10.13.0.
You may find updated browser benchmarks here.

The snippet below is comparing [email protected] (this version) to the previous version, and to classnames for ballpark comparison. All candidates are functionally identical!

### Strings
  classnames    x  3,992,284 ops/sec ±1.64% (94 runs sampled)
  [email protected]    x 11,253,372 ops/sec ±0.35% (96 runs sampled)
  [email protected]    x 12,784,134 ops/sec ±0.42% (97 runs sampled)
### Objects
  classnames    x 3,772,978 ops/sec ±0.46% (96 runs sampled)
  [email protected]    x 7,288,178 ops/sec ±0.31% (96 runs sampled)
  [email protected]    x 9,412,010 ops/sec ±0.42% (95 runs sampled)
### Arrays
  classnames    x 1,665,275 ops/sec ±1.83% (93 runs sampled)
  [email protected]    x 8,340,174 ops/sec ±0.53% (96 runs sampled)
  [email protected]    x 9,141,916 ops/sec ±0.42% (95 runs sampled)
### Nested Arrays
  classnames    x 1,164,706 ops/sec ±1.60% (95 runs sampled)
  [email protected]    x 6,284,485 ops/sec ±0.58% (90 runs sampled)
  [email protected]    x 7,165,151 ops/sec ±0.47% (91 runs sampled)
### Nested Arrays w/ Objects
  classnames    x 1,597,180 ops/sec ±1.49% (93 runs sampled)
  [email protected]    x 6,345,248 ops/sec ±0.21% (95 runs sampled)
  [email protected]    x 7,651,411 ops/sec ±0.56% (95 runs sampled)
### Mixed
  classnames    x 2,129,199 ops/sec ±1.46% (94 runs sampled)
  [email protected]    x 6,557,515 ops/sec ±0.73% (91 runs sampled)
  [email protected]    x 8,119,210 ops/sec ±0.42% (93 runs sampled)
### Mixed (Bad Data)
  classnames    x 1,166,577 ops/sec ±0.84% (94 runs sampled)
  [email protected]    x 2,018,654 ops/sec ±0.15% (98 runs sampled)
  [email protected]    x 2,238,939 ops/sec ±0.34% (95 runs sampled)

Configuration

📅 Schedule: Branch creation - "after 8am and before 5pm every weekday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the renovate label Jul 3, 2022
@auto-assign auto-assign bot requested a review from diescake July 3, 2022 23:26
@renovate renovate bot force-pushed the renovate/clsx-1.x branch from f563ead to 74ef991 Compare July 17, 2022 23:41
@renovate renovate bot changed the title Update dependency clsx to ^1.2.0 Update dependency clsx to ^1.2.1 Jul 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant