Skip to content

doc: add UUID parser to the shadcn registry - #1100

Merged
franky47 merged 3 commits into
47ng:nextfrom
max-programming:uuid-parser
Sep 21, 2026
Merged

franky47 merged 3 commits into
47ng:nextfrom
max-programming:uuid-parser

Conversation

@max-programming

Copy link
Copy Markdown
Contributor

This PR adds a UUID parser validation with 1 to 8 versions support

It can be used like this

const [id, setId] = useQueryState('id', parseAsUuid())
// or
const [id, setId] = useQueryState('id', parseAsUuid({ version: 7 }))

@vercel

vercel Bot commented Aug 29, 2025

Copy link
Copy Markdown

@max-programming is attempting to deploy a commit to the 47ng Team on Vercel.

A member of the Team first needs to authorize it.

@max-programming

Copy link
Copy Markdown
Contributor Author

Let me know if something is missing or something needs to modified

@vercel

vercel Bot commented Aug 29, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nuqs Ready Ready Preview Sep 21, 2026 10:45am UTC

@max-programming max-programming changed the title Added UUID Parser feat: added UUID Parser Aug 29, 2025
@max-programming

Copy link
Copy Markdown
Contributor Author

@franky47 what might be the reason for the failing build?

@franky47

Copy link
Copy Markdown
Member

It's likely size-limit that's set too close to the current build size (5.48kB build for a 5.5kB size limit). I can bump it to 6kB to also fit #1036.

@franky47 franky47 added this to the 🪵 Backlog milestone Aug 29, 2025
@franky47 franky47 added the parsers/built-in Related to built-in parsers label Aug 29, 2025
Comment thread packages/nuqs/src/parsers.ts Resolved
@franky47

franky47 commented Sep 3, 2025

Copy link
Copy Markdown
Member

Hey, coming back to this PR, I'm considering adding support in the nuqs docs for the shadcn CLI, to install custom parsers with a one-line command.

Would you mind if we moved this parser to the community section, and have it installable this way?

I'd like to keep the core bundle size small, and this could be one way.

@max-programming

Copy link
Copy Markdown
Contributor Author

Alright. So what will be the way to handle it? As in where should this parser be moved to?

@franky47

franky47 commented Sep 3, 2025

Copy link
Copy Markdown
Member

We need to implement the shadcn registry first, see #1036 (comment)

@max-programming

Copy link
Copy Markdown
Contributor Author

Okay! Meanwhile I think I should turn this PR into a draft one

@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 6699db96-7f8f-4b20-b480-3eb255613c69

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Ship parseAsUuid as a community registry item instead of a core export,
now that the shadcn registry is available.

Install with:

  npx shadcn@latest add @nuqs/parser-uuid

Co-authored-by: Usman Sabuwala <[email protected]>
@max-programming
max-programming marked this pull request as ready for review September 20, 2026 16:47
@max-programming

max-programming commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor Author

@franky47 now that the shadcn registry work has landed, here's how this parser can be used

npx shadcn@latest add @nuqs/parser-uuid

it follows the same packages/docs/src/registry/items layout you pointed parseAsColor at in #1342

image image image

@franky47 franky47 added parsers/community Related to community parsers and removed parsers/built-in Related to built-in parsers labels Sep 21, 2026
@franky47 franky47 changed the title feat: added UUID Parser doc: add UUID parser to the shadcn registry Sep 21, 2026
@franky47 franky47 added the documentation Improvements or additions to documentation label Sep 21, 2026

@franky47 franky47 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@franky47
franky47 enabled auto-merge (squash) September 21, 2026 10:44
@franky47
franky47 merged commit 06e2865 into 47ng:next Sep 21, 2026
33 of 34 checks passed
@github-actions github-actions Bot removed this from the 🪵 Backlog milestone Sep 21, 2026
@max-programming
max-programming deleted the uuid-parser branch September 21, 2026 18:41
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

🚀 This PR is included in [email protected]

The release is available on:

This branch was successfully deployed

1 active deployment
Preview — 93b1616c Deployed Sep 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation parsers/community Related to community parsers released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants