Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump undici and @sveltejs/kit #79

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 20, 2024

Bumps undici to 5.26.5 and updates ancestor dependency @sveltejs/kit. These dependencies need to be updated together.

Updates undici from 5.22.1 to 5.26.5

Release notes

Sourced from undici's releases.

v5.26.5

What's Changed

Full Changelog: nodejs/undici@v5.26.4...v5.26.5

v5.26.4

What's Changed

New Contributors

Full Changelog: nodejs/undici@v5.26.3...v5.26.4

v5.26.3

No release notes provided.

v5.26.2

Security Release, CVE-2023-45143.

v5.26.1

What's Changed

Full Changelog: nodejs/undici@v5.26.0...v5.26.1

v5.26.0

What's Changed

... (truncated)

Commits

Updates @sveltejs/kit from 1.21.0 to 1.30.3

Release notes

Sourced from @​sveltejs/kit's releases.

@​sveltejs/kit@​1.30.3

Patch Changes

  • fix: correct documentation for beforeNavigate (#11300)

@​sveltejs/kit@​1.30.2

Patch Changes

  • fix: revert recent 'correctly return 415' and 'correctly return 404' changes (#11295)

@​sveltejs/kit@​1.30.1

Patch Changes

  • fix: prerendered root page with paths.base config uses correct trailing slash option (#10763)

  • fix: correctly return 404 when a form action is not found (#11278)

@​sveltejs/kit@​1.30.0

Minor Changes

  • feat: inline response.arrayBuffer() during ssr (#10535)

Patch Changes

  • fix: allow "false" value for preload link options (#10555)

  • fix: call worker unref instead of terminate (#10120)

  • fix: correctly analyse exported server API methods during build (#11019)

  • fix: avoid error when back navigating before page is initialized (#10636)

  • fix: allow service-worker.js to import assets (#9285)

  • fix: distinguish better between not-found and internal-error (#11131)

@​sveltejs/kit@​1.29.1

Patch Changes

  • fix: correctly return 415 when unexpected content types are submitted to actions (#11255)

  • chore: deprecate preloadCode calls with multiple arguments (#11266)

@​sveltejs/kit@​1.29.0

Minor Changes

  • feat: add resolveRoute to $app/paths, deprecate resolvePath (#11261)

@​sveltejs/kit@​1.28.0

Minor Changes

... (truncated)

Changelog

Sourced from @​sveltejs/kit's changelog.

1.30.3

Patch Changes

  • fix: correct documentation for beforeNavigate (#11300)

1.30.2

Patch Changes

  • fix: revert recent 'correctly return 415' and 'correctly return 404' changes (#11295)

1.30.1

Patch Changes

  • fix: prerendered root page with paths.base config uses correct trailing slash option (#10763)

  • fix: correctly return 404 when a form action is not found (#11278)

1.30.0

Minor Changes

  • feat: inline response.arrayBuffer() during ssr (#10535)

Patch Changes

  • fix: allow "false" value for preload link options (#10555)

  • fix: call worker unref instead of terminate (#10120)

  • fix: correctly analyse exported server API methods during build (#11019)

  • fix: avoid error when back navigating before page is initialized (#10636)

  • fix: allow service-worker.js to import assets (#9285)

  • fix: distinguish better between not-found and internal-error (#11131)

1.29.1

Patch Changes

  • fix: correctly return 415 when unexpected content types are submitted to actions (#11255)

  • chore: deprecate preloadCode calls with multiple arguments (#11266)

1.29.0

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [undici](https://github.com/nodejs/undici) to 5.26.5 and updates ancestor dependency [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit). These dependencies need to be updated together.


Updates `undici` from 5.22.1 to 5.26.5
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.22.1...v5.26.5)

Updates `@sveltejs/kit` from 1.21.0 to 1.30.3
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@1.30.3/packages/kit)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 20, 2024
@bvanvugt bvanvugt merged commit babfa62 into main Jan 20, 2024
3 checks passed
@bvanvugt bvanvugt deleted the dependabot/npm_and_yarn/undici-and-sveltejs/kit-5.26.5 branch January 20, 2024 06:44
coreyja added a commit that referenced this pull request Jan 20, 2024
coreyja added a commit that referenced this pull request Jan 20, 2024
coreyja added a commit that referenced this pull request Jan 20, 2024
Builds are currently failing with this error message

Accessing url.searchParams during prerendering is forbidden. If you need to use it, ensure you are only doing so in the browser (for example in onMount).

It was introduced in #79

This error is because we are trying to access url.searchParams in the load function and ALSO have preloading enabled.
Since load gets called on the server to pre-render, it doesn't allow us to access url.searchParams since that can only be known in the browser

But this must be new behavior, since it was working for us previously. I think it was working previously is because load was acting as a 'universal` loader and running both in the 'server' when preloading, and also in the client when mounting for the first time.

kit.svelte.dev/docs/load#universal-vs-server-when-does-which-load-function-run

I imagine the server load was getting an empty searchSet, but continuing to work. And then the client load correctly filled in the query param values

But from reading the Changelog I can't find anything that seems obviously like it would have broken this behavior

I do think this is a good change to prepare for v2, since it seems required there as well!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant