Skip to content

Documentation: use @next, not @latest?Β #175

@baisong

Description

@baisong

Describe the bug

Hi all,

Thanks for this extremely helpful library!

I got confused when I followed the installation instructions in the README file of this repo, because it instructed me to install using npm install sveltekit-search-params@latest -D. When I did so, and then copy-pasted the demo example code into a /src/routes/+page.svelte document, all of the <pre>{JSON.stringify(params, null, 2)}</pre> snippets only produced an empty object.

However, when I installed using npm install sveltekit-search-params@next -D, the examples all worked as expected. In my package.json, the change was from "sveltekit-search-params": "^3.0.0", to "sveltekit-search-params": "^4.0.0-next.0",.

Reproduction

  1. Go to https://github.com/paoloricciuti/sveltekit-search-params
  2. Follow the install instructions
  3. Attempt the demo example snippets
  4. See empty objects output on screen

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions