Skip to content

chore: cleanup v4#30

Open
alukach wants to merge 2 commits into
mainfrom
fix/v4-pre-publish-cleanup
Open

chore: cleanup v4#30
alukach wants to merge 2 commits into
mainfrom
fix/v4-pre-publish-cleanup

Conversation

@alukach
Copy link
Copy Markdown
Member

@alukach alukach commented May 25, 2026

Summary

Two small cleanups noticed while preparing to consume @devseed-ui/collecticons-chakra@4 from another repo. Neither is blocking — 4.0.0 is already published to npm and works. Land at your convenience.

  • Remove nested <svg> wrapper inside <Icon> in collecticon-creator.tsx. Chakra v3's <Icon> is itself an <svg>, so the inner wrapper was producing <svg><svg/></svg> markup in the DOM. Renders fine in practice; React 19 may emit a console warning on the invalid nesting.
  • Move @chakra-ui/react and @emotion/react from dependencies to peerDependencies only. They were listed in both. The duplication can cause consumer trees to install a second copy of Chakra/Emotion alongside the app's, which is the kind of thing that contributes to context-mismatch issues (e.g. duplicate React copies). Peer-only is the conventional shape for UI library packages.

Test plan

  • ts-check clean
  • build succeeds
  • Showcase builds + renders icons (visual check via parcel production build)
  • No regressions observed in downstream consumers

@alukach alukach force-pushed the fix/v4-pre-publish-cleanup branch from 0724995 to 12a7fd6 Compare May 25, 2026 18:21
@alukach alukach changed the title Pre-publish cleanup for v4 Minor cleanup noticed in v4 May 25, 2026
@alukach alukach requested a review from danielfdsilva May 25, 2026 18:28
@alukach alukach changed the title Minor cleanup noticed in v4 chore: cleanup v4 May 25, 2026
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.

1 participant