Skip to content

fix: move nuqs from dependencies to peerDependencies#346

Merged
jettapat-metier merged 2 commits into
mainfrom
fix/nuqs-peer-dependency
Apr 2, 2026
Merged

fix: move nuqs from dependencies to peerDependencies#346
jettapat-metier merged 2 commits into
mainfrom
fix/nuqs-peer-dependency

Conversation

@jettapat-metier
Copy link
Copy Markdown
Collaborator

Summary

  • Moved nuqs from dependencies to peerDependencies in @genseki/ui and @genseki/react
  • nuqs uses React Context for its adapter pattern. When listed as a direct dependency, package managers (especially bun) install a separate copy, creating duplicate contexts that break adapter detection in consuming apps (NUQS-404 error)
  • This ensures consuming apps provide a single nuqs instance shared across the entire app

Affected packages

  • @genseki/ui
  • @genseki/react

nuqs uses React Context for its adapter pattern. When listed as a
direct dependency, package managers install a separate copy for genseki,
creating duplicate contexts that break the adapter detection in
consuming apps (NUQS-404 error).

Moving to peerDependencies ensures consumers provide a single nuqs
instance shared across the entire app.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: ce5abbb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@genseki/react Patch
@genseki/ui Patch
@example/erp Patch
@example/ui-playground Patch
@genseki/next Patch
@genseki/plugins Patch
@genseki/prisma-generator Patch
@genseki/react-query Patch
@genseki/rest Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jettapat-metier jettapat-metier merged commit ed32ff7 into main Apr 2, 2026
1 check passed
@jettapat-metier jettapat-metier deleted the fix/nuqs-peer-dependency branch April 2, 2026 13:21
@github-actions github-actions Bot mentioned this pull request Apr 2, 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.

2 participants