Closed paoloricciuti closed 8 months ago
Latest commit: 9af4ffb5007f3f558c5bc876a34f37ee1a0f6014
The changes in this PR will be included in the next version bump.
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
The project introduced a showDefaults
option to manage the visibility of default query parameters in URLs. It also enhanced the handling of query parameters with debouncing in the Svelte playground, refining user interactions. The sveltekit-search-params
library saw updates to support these features, including new types and store functionality. Tests were expanded to cover the new features, ensuring default values are correctly handled and URL updates occur as expected.
File Path | Change Summary |
---|---|
README.md |
Added showDefaults option for controlling the display of default URL values. |
.../debounce/+page.svelte .../default/+page.svelte |
Introduced debouncing for query parameter changes and modified query parameter display with additional parameters. |
src/lib/sveltekit-search-params.ts |
Added showDefaults to StoreOptions , new Overrides<T> type, and updated functions for new features. |
tests/index.test.ts |
Updated and added tests for showDefaults behavior, URL update timing, and query parameter functionality. |
🐇✨
A little rabbit hopped along,
Tweaking URLs, making them strong.
With a debounce in its step,
Defaults hide, or show with pep! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?
Name | Link |
---|---|
Latest commit | 9af4ffb5007f3f558c5bc876a34f37ee1a0f6014 |
Latest deploy log | https://app.netlify.com/sites/sveltekit-search-params/deploys/6581518cca656500087446a1 |
Deploy Preview | https://deploy-preview-60--sveltekit-search-params.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Also feat: add
showDefaults
option to avoid redirecting in case the search param is not presentSummary by CodeRabbit
New Features
showDefaults
option to control the visibility of default parameter values in the URL.Enhancements
Documentation
showDefaults
option.Tests
showDefaults
feature.