Closed MartinCura closed 6 days ago
@MartinCura is attempting to deploy a commit to the 47ng Team on Vercel.
A member of the Team first needs to authorize it.
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 | Nov 15, 2024 0:57am |
Feel free to test the pkg.pr.new build to see if it works on your side.
Feel free to test the pkg.pr.new build to see if it works on your side.
It does remove the type error ✅
I didn't see a changelog file so only thing i may be missing is being explicit about this in the docs, maybe, though not necessary.
Other than that, feel free to merge 🚀
The changelog is generated by semantic-release in the GitHub release when the package gets published.
I think we can omit the docs, this is the expected behaviour. Thanks again for your contribution! 🙏
:tada: This PR is included in version 2.2.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
See related discussion.
Passing
null
to the serialize of a search param whose parser has a default currently is a type error, even though the behaviour works as expected.This is because for the values argument it infers the types using the same
inferParserType
which is fine for parsing but is not quite right for serializing. The way i'm fixing it is just declaring a differentinferSerializerRecordType
to be used here. If there's some TS-foo i don't know which allows reusing the sameinferParserRecordType
, that'd be even better!CONTRIBUTING.md
mentions "adding a minimal reproduction in the playground can be very helpful" but i couldn't immediately find how to create one there.Added some very basic tests, feel free to point out if any more would be nice.