Skip to content

Conversation

@max-programming
Copy link

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
Copy link

vercel bot commented Aug 29, 2025

@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
Author

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

@vercel
Copy link

vercel bot commented Aug 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
nuqs Ready Ready Preview Comment Aug 29, 2025 9:17pm

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

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

@franky47
Copy link
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
@franky47
Copy link
Member

franky47 commented Sep 3, 2025

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
Author

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

@franky47
Copy link
Member

franky47 commented Sep 3, 2025

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

@max-programming
Copy link
Author

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

@max-programming max-programming marked this pull request as draft September 3, 2025 17:14
@franky47 franky47 mentioned this pull request Oct 20, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parsers/built-in Related to built-in parsers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants