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

SvelteKit 2.0 #11161

Merged
merged 81 commits into from
Dec 14, 2023
Merged

SvelteKit 2.0 #11161

merged 81 commits into from
Dec 14, 2023

Conversation

benmccann
Copy link
Member

@benmccann benmccann commented Dec 1, 2023

TODO:

  • Do we need to set NodeNext in the tsconfig.json of library projects or is doing it only inside the package command sufficient?

See the 2.0 milestone and issues tagged with breaking change for a list of what else will end up here

Copy link

changeset-bot bot commented Dec 1, 2023

🦋 Changeset detected

Latest commit: 234eab6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@sveltejs/kit Major
@sveltejs/adapter-vercel Major
@sveltejs/adapter-node Major
create-svelte Minor
@sveltejs/adapter-cloudflare-workers Minor
@sveltejs/adapter-cloudflare Minor
@sveltejs/adapter-netlify Minor
@sveltejs/adapter-static Major
@sveltejs/adapter-auto Minor
@sveltejs/amp Minor
svelte-migrate Minor

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

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
* docs: fix wording, note SvelteKit 1.x behavior

* oops

* tweaks

* tweak

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
* add failing cross-platform server test

* this seems to fix it

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
* shallow routing

* add types

* drive-by fix - bad merge

* warn on use of history.pushState and history.replaceState

* regenerate types

* make url the first argument, even though it's optional — this is more future-proof, as we may add options in future

* tests

* remove state from goto

* tidy up

* tidy up internal navigate API a bit

* more

* use current.url for invalidation, not location.href

* add docs

* copy-paste fail

* on second thoughts

* links

* link

* regenerate types

* update preloadData docs

* fix preloadData docs

* drive-by fix

* Apply suggestions from code review

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>

* tweaks

* changeset, breaking change docs

* code-golf

* this seems unnecessary

* mention preloadData

* use original replace state

* oops

* handle SPA case

* more involved example - show importing a +page.svelte and correctly handling a click event, and avoid

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
* chore: check range is valid

* level 0

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
@Rich-Harris Rich-Harris merged commit c8a637d into master Dec 14, 2023
13 checks passed
@Rich-Harris Rich-Harris deleted the version-2 branch December 14, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants