Skip to content

Releases: paoloricciuti/sveltekit-search-params

Fix some problem when using the store after accessing the query params on the server

23 Jan 17:37
Compare
Choose a tag to compare

In 1.0 there were 2 goto...one for the actual update of the url and one just to add the history entry. Apparently this was messing things up when the url object was accessed in the server 🤷

Add store options to debounce the history or to disable completely

13 Jan 11:43
Compare
Choose a tag to compare

Add the ability to pass a store options object to debounce the history or to disable completely. This object might contain other options in the future.

Usage

<script lang="ts">
    import { ssp, queryParameters, queryParam } from "sveltekit-search-params";
    const name = queryParam("name", ssp.string(), {
        debounceHistory: 500, //a new history entry will be created after 500ms of this store not changing
    });
    const count = queryParam("count", ssp.number(), {
        debounceHistory: 1500, //a new history entry will be created after 1500ms of this store not changing
    })
    const store = queryParameters({
        username: true,
        isCool: ssp.boolean(true),
    }, {
        pushHistory: false, //no new history entries for this store
    });
</script>

Add the updater for the store

09 Jan 19:32
Compare
Choose a tag to compare

Before the version the updater for the store updated the state of the store without it reflecting it in the URL.

This release fixes this.

Update peer dependencies + use a local slimmed down version of lz-string to avoid conflicts with pnpm

09 Jan 09:28
Compare
Choose a tag to compare

Given that the npm package lz-string doesn't use ESM modules it was creating a bunch of problems with pnpm specifically (it randomly broke from time to time).

So, given the quite permissive licence on lz-string i've decided to take the code, remove every unused export, update the peer dependencies (both for sveltekit 1.0 and to remove lz-string) and use a slimmed down local version of lz-string with the correct ESM exports.

This should hopefully fix the problem with pnpm once and for all without affecting npm.

Patching again to hopefully publish the correct files on npm

11 Dec 15:19
Compare
Choose a tag to compare
0.1.12

Publishing from package folder (maybe 🤞 )

Patching to hopefully fix a pnpm issue

11 Dec 14:58
Compare
Choose a tag to compare
0.1.11

fix workflow maybe