Skip to content

chore(deps): bump @stackone/malachite to 2.22.0 - #205

Merged
adefreitas merged 1 commit into
StackOneHQ:mainfrom
adefreitas:deps/bump-malachite-2.22.0
Sep 18, 2026
Merged

adefreitas merged 1 commit into
StackOneHQ:mainfrom
adefreitas:deps/bump-malachite-2.22.0

Conversation

@adefreitas

Copy link
Copy Markdown
Collaborator

hub sat on ^0.67.2. A caret on a 0.x version pins the minor, so that range resolved to 0.67.2 exactly and could not reach 1.x or 2.x — hub had stopped receiving malachite releases entirely, and the gap had grown to two majors.

Does anything break?

No. hub imports Alert, Card and a theme type from malachite, and none of their APIs moved. Build, tsc --noEmit and lint are all clean, and I drove the dev sandbox to confirm the picker still renders and behaves.

Bundle size

before (0.67.2) after (2.22.0)
webcomponent.js 1131.5 KB 1184.2 KB
of which base64 fonts 443.1 KB 443.1 KB
non-font code 688.4 KB 741.1 KB

index.js / index.esm.js are unchanged at 66 KB — malachite is external there and only inlined into the webcomponent.

The +53 KB is two majors of feature growth in the components hub uses. Worth being explicit that the tree-shaking work in malachite 2.22.0 buys hub nothing: hub bundles with Rollup, which already shook the previous single-chunk build at statement level. That work pays off for bundlers that act on the sideEffects flag. I verified shaking is doing its job here — none of eight unused components leak into the bundle.

The real target is the 443.1 KB of base64 woff2, 37% of the webcomponent, unchanged by this and unchanged since 0.67.2. Emitting those as real assets would let the browser fetch only the unicode ranges it needs.

hub sat on `^0.67.2`. A caret on a 0.x version pins the minor, so that range
resolved to 0.67.2 exactly and could not reach 1.x or 2.x — hub had stopped
receiving malachite releases entirely and the gap had grown to two majors.

Nothing in hub's usage broke across the jump: it imports `Alert` and `Card` and
a theme type, and the build, typecheck and lint are clean.

Bundle size moves from 1131.5KB to 1184.2KB in the webcomponent, all of it
feature growth in the components hub actually uses. 2.22.0 made the library
tree-shakeable, but that buys hub nothing: Rollup already shook the previous
single-chunk build at statement level, and the win there is for bundlers that
rely on the `sideEffects` flag. The 443.1KB of base64 woff2 in the bundle is
unchanged and is by far the larger target.
Copilot AI lite review requested due to automatic review settings September 18, 2026 13:30

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@adefreitas
adefreitas merged commit a7000e2 into StackOneHQ:main Sep 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants