Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serializer): allow null to clear all param values from base #657

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

neefrehman
Copy link
Contributor

@neefrehman neefrehman commented Sep 27, 2024

Follow-up to #653, this PR allows callers to pass null to a serializer instance to clear any search params from base.

Copy link

vercel bot commented Sep 27, 2024

@neefrehman is attempting to deploy a commit to the 47ng Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuqs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 9:29am

Copy link
Member

@franky47 franky47 left a comment

Choose a reason for hiding this comment

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

praise: LGTM, thanks!

packages/nuqs/src/serializer.test.ts Show resolved Hide resolved
@franky47 franky47 enabled auto-merge (squash) September 27, 2024 09:28
@franky47 franky47 merged commit 0e7395e into 47ng:next Sep 27, 2024
17 checks passed
Copy link

github-actions bot commented Oct 7, 2024

🎉 This PR is included in version 1.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@franky47 franky47 mentioned this pull request Oct 7, 2024
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 7, 2024
##### [`v1.20.0](https://github.com/47ng/nuqs/releases/tag/v1.20.0)

##### Features

-   Allow remapping keys in useQueryStates ([#671](47ng/nuqs#671)) ([79f80da](47ng/nuqs@79f80da))
-   **serializer:** allow `null` to clear all param values from base ([#657](47ng/nuqs#657)) ([0e7395e](47ng/nuqs@0e7395e)) - Thanks [@neefrehman](https://github.com/neefrehman) !
github-merge-queue bot pushed a commit to zemn-me/monorepo that referenced this pull request Oct 7, 2024
##### [`v1.20.0](https://github.com/47ng/nuqs/releases/tag/v1.20.0)

##### Features

-   Allow remapping keys in useQueryStates ([#671](47ng/nuqs#671)) ([79f80da](47ng/nuqs@79f80da))
-   **serializer:** allow `null` to clear all param values from base ([#657](47ng/nuqs#657)) ([0e7395e](47ng/nuqs@0e7395e)) - Thanks [@neefrehman](https://github.com/neefrehman) !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants