instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
sveltejs__kit__11613
sveltejs/kit
11,613
defect
6671fa1d29067b3ea187aee785bcf9c1cc0462af
d3db232569accbcc6a25d5369036584435df897e
fix: csp nonce in `script-src-elem`, `style-src-attr` and `style-src-elem` when using unsafe-inline
<!-- Your PR description here --> same implementation as https://github.com/sveltejs/kit/pull/11575 for `script-src-elem`, `style-src-attr` and `style-src-elem`. i also refactored the CSP code to make it less hairy --- ### Please don't delete this checklist! Before submitting the PR, please make sure you d...
diff --git a/.changeset/giant-years-drum.md b/.changeset/giant-years-drum.md new file mode 100644 index 000000000000..e1129e0d0486 --- /dev/null +++ b/.changeset/giant-years-drum.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: only add nonce to `script-src-elem`, `style-src-attr` and `style-src-elem` CSP d...
2
1
0
[{"id": "G0", "claim": "The 'skips nonce in style-src when using unsafe-inline' test should not have been removed/refactored away by this PR; it should be restored.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "lode asks for clarification of the change...
null
sveltejs__kit__11716
sveltejs/kit
11,716
defect
5137c8c4eacbfa672a648511eff7ac1d1c1c87b6
774b06959473f314a4a17c9dd3c9c1833af1e2d1
fix: version range handling in update_pkg function
keep user's library version if higher than hard-defined version fixes #11693 --- ### Tests - [x] Run the tests with `pnpm test` and lint the project with `pnpm lint` and `pnpm check` ### Changesets - [ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a change...
diff --git a/.changeset/silly-donkeys-shout.md b/.changeset/silly-donkeys-shout.md new file mode 100644 index 000000000000..1674118fdacd --- /dev/null +++ b/.changeset/silly-donkeys-shout.md @@ -0,0 +1,5 @@ +--- +"svelte-migrate": minor +--- + +fix: version range handling in update_pkg function diff --git a/packages/mi...
2
2
0
[{"id": "G0", "claim": "The new version-range logic in update_pkg is duplicative of the logic that follows it, and the reviewer asks that one logic be included in the other.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changeset should dec...
null
sveltejs__kit__11870
sveltejs/kit
11,870
defect
511126b51d4aaa770704491ff0890a76fa116205
9aca13fb83fab83ef0ac9e0013fa2dc202fda5d4
fix: prevent stale values after invalidation
Current was not updated after invalidation, which resulted in the previous values getting used on next navigation fixes #11446 We also didn't set `force_invalidate` back to `false` fixes #10123 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] I...
diff --git a/.changeset/angry-gorillas-peel.md b/.changeset/angry-gorillas-peel.md new file mode 100644 index 000000000000..f4642f4135f8 --- /dev/null +++ b/.changeset/angry-gorillas-peel.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: prevent stale values after invalidation diff --git a/packages/kit/src/r...
8
5
0
[{"id": "G0", "claim": "The stale-token check could be merged into a single early return `if (nav_token !== token || !navigation_result) return;` to simplify _invalidate instead of wrapping the body in `if (navigation_result)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
sveltejs__kit__12090
sveltejs/kit
12,090
defect
41b7ae9be2dcfc5a9750190e1f837c20019d48c6
42b5b260c1dc1d636213d0d0dbd066c00ca09369
fix: add svelte.config.js to tsconfig.json `includes`
closes https://github.com/sveltejs/kit/pull/11731 fixes #12433 While investigating https://github.com/sveltejs/kit/pull/11731 , I found that the ambient types from adapters weren't showing up when I tried installing the cloudflare, vercel, and node adapters in a fresh project and tried to access the autocomplete o...
diff --git a/.changeset/shaggy-walls-wave.md b/.changeset/shaggy-walls-wave.md new file mode 100644 index 000000000000..664c7402e896 --- /dev/null +++ b/.changeset/shaggy-walls-wave.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": major +--- + +fix: tsconfig includes should cover svelte.config.js \ No newline at end of file d...
1
1
0
[{"id": "G0", "claim": "The changeset summary mislabels the change as a fix; it should read \"breaking: `svelte.config.js` will now be type checked\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__12098
sveltejs/kit
12,098
defect
f80ba75dfd967fb9d28d705d6891933bab603dc9
7f1737510951aaf3bc64a5ad8f6b3647e37ebe24
chore: upgrade eslint to v9
~Blocked by / test for sveltejs/eslint-config#31.~ --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large c...
diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 9501511a710b8..0000000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "root": true, - "extends": "@sveltejs", - "env": { - "es2022": true - }, - "ignorePatterns": [ - "packages/create-svelte/shared/", - "packages/kit/test/pre...
1
1
0
[{"id": "G0", "claim": "The `globals` package should become a regular dependency of `@sveltejs/eslint-config` instead of a peer dependency that consumers of this repository have to install explicitly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__12157
sveltejs/kit
12,157
defect
c175335f48639eaad8274cb628c6f6549ea4ef7b
3261c7d1fdd345f1182301ec5d5eab11b53bb04c
fix: remove ":$" from virtual module ids to allow dev server to work with proxies
**Summary:** This PR addresses an issue where Nginx, and potentially other reverse proxies, do not process URLs containing the sequence `:$`. Specifically, Nginx returns a "400 Bad Request" error when it encounters such URLs. This conflict arises when using the Vite development server with SvelteKit, where certain v...
diff --git a/.changeset/eleven-colts-relax.md b/.changeset/eleven-colts-relax.md new file mode 100644 index 000000000000..8a73924d8651 --- /dev/null +++ b/.changeset/eleven-colts-relax.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: remove ":$" from virtual module ids to allow dev server to work with proxi...
2
2
0
[{"id": "G0", "claim": "Add a comment above the virtual-module return in build_service_worker.js explaining that ids with ':$' don't work with reverse proxies like nginx.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment above the new '...
null
sveltejs__kit__12182
sveltejs/kit
12,182
defect
32c0acc373bfcd22ef1c544af25950a91c5c30a9
2d5395d2b05206ddbeb28d8542bc4d93db61b4f7
fix: configure Vite config `optimizeDeps.entries` option
fixes https://github.com/sveltejs/kit/issues/11793 We need to specify `optimizeDeps.entries` for the Vite config to scan for dependencies that should be optimised because we have [set `rollupOptions.build.input`](https://github.com/sveltejs/kit/blob/32c0acc373bfcd22ef1c544af25950a91c5c30a9/packages/kit/src/exports/v...
diff --git a/.changeset/stale-otters-yell.md b/.changeset/stale-otters-yell.md new file mode 100644 index 000000000000..0a9161e9685f --- /dev/null +++ b/.changeset/stale-otters-yell.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: prevent excessive Vite dependency optimizations on navigation diff --git a/pa...
2
2
0
[{"id": "G0", "claim": "Consider limiting the `optimizeDeps.entries` routes glob to files starting with `+` so Vite does not crawl route files that may not even be used by the routes.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manual spread ...
null
sveltejs__kit__12195
sveltejs/kit
12,195
defect
68afae12b000140d47b2a04c97ae8c2f2b83c99a
b78e869c7547aa32e8c250afb400b8a88b2bcb9d
fix: prevent `hooks.server` code being imported into client during build
Server side code inside a `src/hooks.server` folder can result in the build trying to import the code into client side code, usually causing the build to break. Reproduction: https://www.sveltelab.dev/egkmtnbmy05petz (execute `npm run build`) It's due to the file suffix being stripped off so `hooks.server` matche...
diff --git a/.changeset/slimy-eyes-pull.md b/.changeset/slimy-eyes-pull.md new file mode 100644 index 000000000000..51960863dd0d --- /dev/null +++ b/.changeset/slimy-eyes-pull.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix hooks.server code triggering a client import error diff --git a/packages/kit/src/uti...
1
1
0
[{"id": "G0", "claim": "The changeset description should be reworded to \"fix: prevent client import error when a `hooks.server` file imports a private environment variable\" instead of \"fix hooks.server code triggering a client import error\".", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
sveltejs__kit__12201
sveltejs/kit
12,201
defect
7a625724e240c05f3b1b1b000bc5f51333982522
0fd65d309f029b36de41e28a3e8946d893e9385f
fix: detect build-emitted assets in prerenderer fetch
This PR solves #12200. Assets emitted from a vite-plugin cannot be loaded by the pre-renderer's fetch implementation because they are not listed in the server manifest. This PR detects files the server's asset location (`server/_app/immutable/assets`) and add them the manifest's asset list: https://github.com/Jel...
diff --git a/.changeset/chilled-humans-roll.md b/.changeset/chilled-humans-roll.md new file mode 100644 index 0000000000000..f9b97341116a2 --- /dev/null +++ b/.changeset/chilled-humans-roll.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +Detect assets emitted by vite plugins in prerenderer `fetch`. diff --git a...
2
2
0
[{"id": "G0", "claim": "The changeset first line should begin with a conventional-commit prefix: \"fix: detect assets emitted by vite plugins in prerenderer `fetch`.\"", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changeset first line should ...
null
sveltejs__kit__12217
sveltejs/kit
12,217
defect
0fee61c571db253921d1a6503fc879235c6f3b60
e99756add0cc6dc350c77053757b66fd45377a97
fix: support absolute URLs with `data-sveltekit-preload-code="viewport"`
Currently, the IntersectionObserver used for viewport code preloading uses the `.href` attribute of the anchor tag as the pathname to find the route to preload the code for. Internally, the InterSectionObserver gets the `.href` and passes the value to `_preload_code` which calls `routes.find`, finding the first rout...
diff --git a/.changeset/fluffy-coats-laugh.md b/.changeset/fluffy-coats-laugh.md new file mode 100644 index 000000000000..953f25a494df --- /dev/null +++ b/.changeset/fluffy-coats-laugh.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +Fix data-sveltekit-preload-code="viewport" attempting to preload absolute URLs ...
5
5
2
[{"id": "G0", "claim": "The changeset description should be reworded to \"fix: support absolute URLs with `data-sveltekit-preload-code=\"viewport\"`\" to match the PR title convention.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should i...
null
sveltejs__kit__12242
sveltejs/kit
12,242
defect
119bff9790fcf82f298c569b4e4225845b6d8f47
3d6a41408fece6b58ec5a7e291e851f539b10a57
fix: exclude server files from optimizeDeps.entries
See https://github.com/sveltejs/kit/issues/8140#issuecomment-2117160334 ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reaso...
diff --git a/.changeset/flat-hairs-love.md b/.changeset/flat-hairs-love.md new file mode 100644 index 000000000000..e45f658a3ae7 --- /dev/null +++ b/.changeset/flat-hairs-love.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: exclude server files from optimizeDeps.entries diff --git a/packages/kit/src/export...
2
2
0
[{"id": "G0", "claim": "Instead of deleting the deleted test, keep an explicit expect(...).not.toHaveProperty assertion so the test suite verifies that +layout.server.js dependencies are not optimized.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
sveltejs__kit__12277
sveltejs/kit
12,277
defect
c173b7acf475b8b983d284ac60569b87fa389372
60e5a5b66d0d4b9c1ff5ee90ac97d93eee75ca63
fix: crawl hrefs that start with `config.prerender.origin`
Closes #12271 Until now the crawler would not recoginze links that start with the value of `config.prerender.origin` as internal links & would not crawl them. This PR fixes that. For example: A link `<a href="https://my-site/base/some-page"` would not be crawled, even if `prerender.origin` was set to `https://m...
diff --git a/.changeset/rude-hairs-roll.md b/.changeset/rude-hairs-roll.md new file mode 100644 index 000000000000..1181288981bf --- /dev/null +++ b/.changeset/rude-hairs-roll.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: hrefs that start with `config.prerender.origin` are now crawled diff --git a/packag...
1
1
0
[{"id": "G0", "claim": "Drop the redundant `else` around `return href;` in `removePrerenderOrigin`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sveltejs__kit__12355
sveltejs/kit
12,355
defect
835ebf6ce9979203992cca30f434b3785afae818
a42e7f297fd4e1463332892b2d056fad153a45fd
fix: use correct cache result when fetching same url multiple times
Fix #12351 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://gi...
diff --git a/.changeset/seven-gorillas-protect.md b/.changeset/seven-gorillas-protect.md new file mode 100644 index 000000000000..d6a9776d823d --- /dev/null +++ b/.changeset/seven-gorillas-protect.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: use correct cache result when fetching same url multiple times...
4
1
0
[{"id": "G0", "claim": "Add a comment to the script.remove() call explaining it is there in case multiple script tags match the same selector.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing the data script from the DOM during hydration ...
null
sveltejs__kit__12418
sveltejs/kit
12,418
defect
c9b2e6586369522ba170edf24a124a5446db1640
068a91446f78109f16cea9c29ae9a0624a214969
fix: page response missing CSP and Link headers when return promise in `load`
closes #11801 <!-- Your PR description here --> --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large ...
diff --git a/.changeset/tidy-timers-perform.md b/.changeset/tidy-timers-perform.md new file mode 100644 index 000000000000..b23476a0e3aa --- /dev/null +++ b/.changeset/tidy-timers-perform.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: page response missing CSP and Link headers when return promise in `load...
2
1
1
[{"id": "G0", "claim": "Check whether the `content-type: text/html` header needs to be kept alongside the spread `headers` variable so the CSP header is included without dropping content-type.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a tes...
null
sveltejs__kit__12524
sveltejs/kit
12,524
defect
e9c84a0bb1edf4f4a8f47827ea26458216811789
87ba6ca3247724bf0dc37dd5c7206a2747bea168
fix: ignore warning binding non reactive
Alternative to #12484 after the work in https://github.com/sveltejs/svelte/pull/12608 This will double the warnings in versions of svelte 5 before [`5.0.0-next.204`](https://github.com/sveltejs/svelte/pull/12670) but it should clear them after that. Once again at least locally i see some test fails that seems to be ...
diff --git a/.changeset/gorgeous-jars-sparkle.md b/.changeset/gorgeous-jars-sparkle.md new file mode 100644 index 000000000000..519601336dda --- /dev/null +++ b/.changeset/gorgeous-jars-sparkle.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: ignore binding_non_reactive in generated root component (this wil...
1
1
0
[{"id": "G0", "claim": "The changeset description should be reworded to 'fix: ignore `binding_non_reactive` warning in generated root component (you also need to update to `svelte@5.0.0-next.204`)'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__12577
sveltejs/kit
12,577
defect
715ee9683d5253c78bb076be253d808c7259ae7f
af6773564944768219b00ab382dba12536e80c8a
fix: service worker base path in dev mode
Using a service worker in dev mode was not respecting the configured base path and it was missing from the filesystem import. This PR prepends the base path before the filesystem import. In a case with the basepath of `/console`, `http://localhost:3000/console/service-worker.js` will resolve now to: ```diff -...
diff --git a/.changeset/nice-geese-serve.md b/.changeset/nice-geese-serve.md new file mode 100644 index 000000000000..406180bebe27 --- /dev/null +++ b/.changeset/nice-geese-serve.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: service worker base path in dev mode diff --git a/packages/kit/src/exports/vite/...
2
2
1
[{"id": "G0", "claim": "In dev mode the service worker import proxy should build the module specifier by concatenating the configured base path as a string prefix before the /@fs path (`${base}${to_fs(resolved)}`), keeping base and path as adjacent strings.", "category": "correctness", "verdict": "supported", "priority...
null
sveltejs__kit__12820
sveltejs/kit
12,820
defect
1616669387388aaef02159ad7dc316c605bfdaec
392c28499b6aba61135c29c72d5a5ec109d8cf6a
fix: include importer in illegal import error message
closes https://github.com/sveltejs/kit/issues/12550 Uses the `resolveId` hook to get the importer name before including it in the error message when loading the illegal import in the `load` hook. However, I couldn't figure how to get this working for server only imports since those don't trigger the `resolveId` h...
diff --git a/.changeset/dry-cows-smash.md b/.changeset/dry-cows-smash.md new file mode 100644 index 000000000000..df3a91c5f977 --- /dev/null +++ b/.changeset/dry-cows-smash.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: include importer in illegal import error message diff --git a/packages/kit/src/exports...
2
2
0
[{"id": "G0", "claim": "The PR should not hard-code `$env/` prefixes in both the resolveId and load hooks; instead it should maintain a map/lookup in the resolveId hook and, in the load hook, check whether it knows what was importing the forbidden module, making the mechanism general enough to cover other illegal-impor...
null
sveltejs__kit__12828
sveltejs/kit
12,828
defect
32cc388b1966a1f2eac6b5066f1229844f5262dd
542f6c23f62bf16895f4b3802c9543cb2ff4b48b
chore: add `svelte-eslint-parser` to list of migratable dependencies
Adds `svelte-eslint-parser` to the list of migratable dependencies. One of the problem we might face is that people are just using this in the eslint config transitively but i guess it's still better have it than not. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do th...
diff --git a/.changeset/curvy-bugs-wait.md b/.changeset/curvy-bugs-wait.md new file mode 100644 index 000000000000..2419b2e59c0f --- /dev/null +++ b/.changeset/curvy-bugs-wait.md @@ -0,0 +1,5 @@ +--- +"svelte-migrate": patch +--- + +chore: add `svelte-eslint-parser` to list of migratable dependencies diff --git a/packa...
1
1
0
[{"id": "G0", "claim": "The `eslint-plugin-svelte` version should be bumped to ^2.45.1, since the latest eslint-plugin-svelte uses the latest svelte-eslint-parser so transitive use is fine.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
sveltejs__kit__12866
sveltejs/kit
12,866
defect
b2acab8374c92a20d201293cadea0360f7f37f66
579cf1c71f21b3ead88393184ae02a1a899037fe
fix: defer when clicking hash links with data-sveltekit-reload
fixes https://github.com/sveltejs/kit/issues/12582 fixes https://github.com/sveltejs/kit/issues/12188 ~~Replaces https://github.com/sveltejs/kit/pull/10032 by using `location.replace` to allow the browser to handle hash link behaviour instead https://github.com/sveltejs/kit/pull/10856#issuecomment-2125471544~~ T...
diff --git a/.changeset/chilled-cats-hang.md b/.changeset/chilled-cats-hang.md new file mode 100644 index 000000000000..9563dec4aaf1 --- /dev/null +++ b/.changeset/chilled-cats-hang.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: ensure element is focused after subsequent clicks of hash link diff --git a/....
2
2
1
[{"id": "G0", "claim": "The changeset title should read \"fix: ensure element is focused after subsequent clicks of the same hash link\" instead of \"... of hash link\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added reload condition `op...
null
sveltejs__kit__12931
sveltejs/kit
12,931
defect
48f02015fc63c694b058fad4a0bf9fe93e070f28
62bb53b2f532f575ce18d1c11ce179e8a89af4cc
fix: prevent duplicate imports
fixes https://github.com/sveltejs/svelte/issues/13816 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For larg...
diff --git a/.changeset/spicy-cars-cheer.md b/.changeset/spicy-cars-cheer.md new file mode 100644 index 000000000000..4a46f1a65365 --- /dev/null +++ b/.changeset/spicy-cars-cheer.md @@ -0,0 +1,5 @@ +--- +'svelte-migrate': patch +--- + +fix: prevent duplicate imports diff --git a/packages/adapter-vercel/index.js b/packa...
2
2
1
[{"id": "G0", "claim": "The adapter-vercel change looks like an accidental commit and should not be in this PR (and if intentional, it probably needs a changeset).", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test title 'Updates component ...
null
sveltejs__kit__13055
sveltejs/kit
13,055
defect
7246a54968649d1bea0e608a72968f8bdc7c2e5c
3b4c0f164e5037eb8c4aee99d4909c61b9aaad63
feat(package): add --preserve-output flag
<!-- Your PR description here --> Closes #13041 It adds a CLI flag not to rimraf the output directory, `--preserve-output`, plus tests --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where i...
diff --git a/.changeset/mean-ladybugs-sparkle.md b/.changeset/mean-ladybugs-sparkle.md new file mode 100644 index 000000000000..93dab07d3084 --- /dev/null +++ b/.changeset/mean-ladybugs-sparkle.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/package": patch +--- + +Added `--preserve-output` flag to prevent deletion of the output d...
3
3
0
[{"id": "G0", "claim": "The changeset's version bump for @sveltejs/package should be `minor` instead of `patch`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changeset summary should read `Add `--preserve-output` flag to prevent deletion of ...
null
sveltejs__kit__13068
sveltejs/kit
13,068
defect
10d09425a04709d17d7940a2450298911db92ad0
a9ba6454ed52eebd027a633aaea70211fbfce929
fix: inline server stylesheets instead of client stylesheets
fixes https://github.com/sveltejs/kit/issues/6720 This PR changes the inlined stylesheet from client to server so that the paths for imported assets in the CSS such as fonts are correct when the document first loads. In comparison, the client stylesheet links are relative by default, so they always link to the wrong...
diff --git a/.changeset/sixty-days-think.md b/.changeset/sixty-days-think.md new file mode 100644 index 000000000000..043f244a7962 --- /dev/null +++ b/.changeset/sixty-days-think.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: correctly link to assets inlined by the `inlineStyleThreshold` option diff --git...
2
2
2
[{"id": "G0", "claim": "Mapping client stylesheets to server stylesheets by relying on manifest iteration and sort order is brittle and can pair a client stylesheet with the wrong server stylesheet (the order is incorrect when a custom root error page exists).", "category": "correctness", "verdict": "supported", "prior...
null
sveltejs__kit__13103
sveltejs/kit
13,103
defect
38d65e31c53055694165b7a042d10d8a54c141cb
feb3b7c082c35b9d52c14d3ec7d58dcce4882c15
feat: server and client `init` hook
This provides an `init` hook that will be awaited on the server and on the client upon app initialisation. A couple of notes: 1. I went with the same current convention: if the same hook is provided by a specific one and an universal one (basically if it's exported from `hooks.ts` and `hooks.{server|client}.ts` then...
diff --git a/.changeset/eight-poems-learn.md b/.changeset/eight-poems-learn.md new file mode 100644 index 000000000000..62d9e4224d54 --- /dev/null +++ b/.changeset/eight-poems-learn.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: server and client `init` hook diff --git a/documentation/docs/30-advanced/20...
9
8
1
[{"id": "G0", "claim": "The `ServerInit` doc comment should say the init hook is invoked before the server responds to its first request, since the exact timing depends on the adapter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `ClientInit...
null
sveltejs__kit__13114
sveltejs/kit
13,114
defect
72a70838f9e3b1070ef3da7d5f8e02cc402b744d
e651a535021d571b307a3233fa4a959b44abda28
feat: validate values for `cache-control` and `content-type` headers in dev mode
Fix for [#12784](https://github.com/sveltejs/kit/issues/12784) Adds validation for common HTTP headers in dev mode to help catch invalid values early: - Validates cache-control directives against standard values - Validates content-type format - Only active in dev mode run `pnpm dev` from `test/apps/basics` an...
diff --git a/.changeset/rich-pants-beam.md b/.changeset/rich-pants-beam.md new file mode 100644 index 0000000000000..d2282d6d874a7 --- /dev/null +++ b/.changeset/rich-pants-beam.md @@ -0,0 +1,8 @@ +--- +'@sveltejs/kit': minor +--- + +feat: add header validation warnings in dev mode + +Adds validation for common headers...
7
7
2
[{"id": "G0", "claim": "The changeset description should be rewritten to 'feat: validate values for `cache-control` and `content-type` headers in dev mode'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "respond.js could declare `/* global __SVELT...
null
sveltejs__kit__13351
sveltejs/kit
13,351
defect
f5103c6135c66e0c2d63a4826f535759a79b5d31
fd1869540a319f68ca3be9e7507b17c09fc193c3
fix: svelte-package resolve alias
This PR refines the **alias** resolution process to correctly handle import and export statements. Previously, alias replacement was applied too broadly, affecting non-import strings. Now, the RegExps specifically target `import/export` statements. Prevents accidental replacements of non-import strings that resemble...
diff --git a/.changeset/many-gorillas-shout.md b/.changeset/many-gorillas-shout.md new file mode 100644 index 000000000000..8e69fd639dc2 --- /dev/null +++ b/.changeset/many-gorillas-shout.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/package': minor +--- + +fix resolving alias diff --git a/packages/package/src/utils.js b/package...
1
1
0
[{"id": "G0", "claim": "The changeset should declare a patch bump ('@sveltejs/package': patch) and describe the fix as 'fix: resolve aliases more robustly' instead of a minor bump with 'fix resolving alias'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__13377
sveltejs/kit
13,377
defect
2b7b0d1cd9f3c0af55a11bcc900c148d643d6d06
3ed5527d24c44d3d115711b859ac5fe56cab3c37
fix: skip calling `respond` for server-side `fetch` on prerendered pages
Server-side `fetch()` (e.g. when `isSubRequest: true`) currently has a few bugs when called on a `prerendered` route. 1. When a non-prerendered route also matches the same URL as the prerendered route, the non-prerendered routes are taking precedence (e.g. if `export const prerender = 'auto'`) 2. Prerendered routes...
diff --git a/.changeset/nine-llamas-fetch.md b/.changeset/nine-llamas-fetch.md new file mode 100644 index 000000000000..3219bf2212e2 --- /dev/null +++ b/.changeset/nine-llamas-fetch.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: skip hooks for server fetch to prerendered routes diff --git a/.changeset/slo...
3
3
1
[{"id": "G0", "claim": "Pass `prerendered` to `generate_manifest` as a string array of prerendered paths (`[]` when there are none, `prerendered.paths` otherwise) instead of the `Prerendered | null` object, and update the JSDoc type to `string[]` accordingly.", "category": "design", "verdict": "supported", "priority": ...
null
sveltejs__kit__13426
sveltejs/kit
13,426
defect
a09db8c0a11a62ee3d3cdf2921230dcf0facb6fd
98debcd1b803ce3bc1cc574cb5a94ac7920a139e
chore: Add `@typescript-eslint/no-floating-promises`
Adding this actually caught a couple of (actual) dangling promises in our codebase. There are a few instances where I'm not _positive_ whether the promise should or shouldn't be awaited -- but this rule also improves that use case. Being forced to `void x` your promises that you _want_ to ignore provides explicit signa...
diff --git a/eslint.config.js b/eslint.config.js index 082e3ada57fa..c51427e9ee23 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -26,7 +26,8 @@ export default [ rules: { '@typescript-eslint/await-thenable': 'error', '@typescript-eslint/no-unused-expressions': 'off', - '@typescript-eslint/require-a...
1
1
1
[{"id": "G0", "claim": "The test 'q.add fails if queue is already finished' should not await each q.add call — the point of the queue is that add is not awaited (though probably harmless in a test where the queue is never saturated) — so the line should be `void q.add(() => {});`.", "category": "correctness", "verdict"...
null
sveltejs__kit__13437
sveltejs/kit
13,437
defect
776ef0616738e47843b52a3178aa2ade0941fc0c
354b9a8fc37ba7d156a70ebe4ae5e16fb0357713
chore: add test for parsing body size limit
Adds a test for parsing body size limit. I was debugging an uploading issue in my application and had thought the issue was with the body size limit in the node-adapter so I wrote a test to validate my input. Long story short, that's not where my issue was but I still think this test I added is valuable so I'm ope...
diff --git a/eslint.config.js b/eslint.config.js index c51427e9ee235..f86a8d61897ef 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -31,7 +31,7 @@ export default [ }, ignores: [ 'packages/adapter-node/rollup.config.js', - 'packages/adapter-node/tests/smoke.spec.js', + 'packages/adapter-node/tests/...
5
4
1
[{"id": "G0", "claim": "The pull request broadens the eslint ignores to all adapter-node test files, so the new test file it adds is not linted, and benmccann asks why it shouldn't be.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new helpe...
null
sveltejs__kit__13498
sveltejs/kit
13,498
defect
51fc8109896cdd32e6a5839ba2706fc1be552829
34516cebfb4aacb79c3cd3dc38f98d87476c414b
fix: load CSS when using server-side route resolution
When implementing server-side route resolution we didn't think of the CSS associated with the entry points of the pages. Since Vite isn't involved in that chain, it can't automatically wire up the imports correctly, so we gotta add code to load them ourselves. Fixes #13491 ### Please don't delete this checklist...
diff --git a/.changeset/stupid-clocks-turn.md b/.changeset/stupid-clocks-turn.md new file mode 100644 index 000000000000..27b42d4484a5 --- /dev/null +++ b/.changeset/stupid-clocks-turn.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: load CSS when using server-side route resolution diff --git a/packages/ada...
3
3
0
[{"id": "G0", "claim": "The new csp-nonce lookup variables should use snake_case names (csp_nonce_meta / csp_nonce) instead of camelCase (cspNonceMeta / cspNonce).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new csp-nonce variable used at...
null
sveltejs__kit__13520
sveltejs/kit
13,520
defect
3cf2b77b4ae87bbd4fc46367c37c129133af41f1
858aa8f39ff6ef93c223994f7adbad00013865a5
feat: allow async `reroute`
closes #13176 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https:/...
diff --git a/.changeset/cool-donkeys-pump.md b/.changeset/cool-donkeys-pump.md new file mode 100644 index 000000000000..1d3be96b65a2 --- /dev/null +++ b/.changeset/cool-donkeys-pump.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: allow async `reroute` diff --git a/documentation/docs/30-advanced/20-hooks.m...
1
1
0
[{"id": "G0", "claim": "The docs sentence added in 20-hooks.md should be reworded to \"Since version 2.18, the `reroute` hook can be asynchronous, allowing it to (for example) fetch data from your backend to decide where to reroute to. Use this carefully and make sure it's fast, as it will delay navigation otherwise.\"...
null
sveltejs__kit__13522
sveltejs/kit
13,522
defect
3cf2b77b4ae87bbd4fc46367c37c129133af41f1
204d405c4d498be39e37f0dc918648fe1778b193
fix: Always include root layout/error nodes in manifest
Closes https://github.com/sveltejs/kit/issues/13518. This optimization doesn't work when an app (or a specific bundle, such as the ones generated for edge functions or when split: true in Vercel) has all prerendered routes. Given that the optimization probably isn't actually saving us much, it's probably not worth i...
diff --git a/packages/kit/src/core/generate_manifest/index.js b/packages/kit/src/core/generate_manifest/index.js index 5db569b5c8d8..28ed06baf453 100644 --- a/packages/kit/src/core/generate_manifest/index.js +++ b/packages/kit/src/core/generate_manifest/index.js @@ -32,7 +32,7 @@ export function generate_manifest({ bui...
2
2
1
[{"id": "G0", "claim": "The JSDoc comment above the changed `used_nodes` initialisation still describes the removed empty-routes branch and needs updating.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change should be covered by tests usin...
null
sveltejs__kit__13530
sveltejs/kit
13,530
defect
c7f96c8f9ede1b34078cabca9bd1dcf0dac0c94d
06331404abbdc3bfd9513706f6eba04baa51efc6
fix: preload data on tap after code was preloaded on hover
fixes https://github.com/sveltejs/kit/issues/13466 (for real this time) https://github.com/sveltejs/kit/pull/13486 previously fixed the preload on tap not working by ensuring we do not skip checking the link until a preload has triggered. However, there's also the case where we have both preload link options: preloa...
diff --git a/.changeset/silver-pigs-report.md b/.changeset/silver-pigs-report.md new file mode 100644 index 000000000000..669acc786b8b --- /dev/null +++ b/.changeset/silver-pigs-report.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: correctly preload data on `mousedown`/`touchstart` if code was preloaded o...
1
1
0
[{"id": "G0", "claim": "The new guard can serve stale data when the user hovers a link, leaves for a while (another tab, a sandwich) and comes back to hover or tap it again, and a timer should perhaps be added to expire the load-data cache.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope":...
null
sveltejs__kit__13616
sveltejs/kit
13,616
defect
4261e28785cb3e8016451b0b36ce8e193886e8aa
0f9dd0585215856a6ae7e546b71712b1790b6c23
fix: allow non-prerendered API endpoint calls during reroute when prerendering
There's a bug within `reroute` when prerendering: 1. after building SvelteKit will prerender routes that are prerenderable, and crawls as part of that 2. you start on `/` and on it is a link `<a href="/foo">..` 3. you have a reroute that responds do that, and it calls an endpoint to get the rerouted path, `/api/re...
diff --git a/.changeset/khaki-buttons-add.md b/.changeset/khaki-buttons-add.md new file mode 100644 index 000000000000..ba543c9fa850 --- /dev/null +++ b/.changeset/khaki-buttons-add.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: allow non-prerendered API endpoint calls during reroute when prerendering dif...
2
2
1
[{"id": "G0", "claim": "The two identical restore statements of `state.prerendering.inside_reroute` (after the reroute call and in the catch block) should be deduplicated by putting the restore in a `finally` block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
sveltejs__kit__13666
sveltejs/kit
13,666
defect
aefa5b1e0f87ae9d1487f31c9d517b7677877dd7
448490bb7559b77f563b358ce30e2ce3d07a9bc2
fix: allow `HandleServerError` hook to access the ` getRequestEvent`
Resolves #13654: Allow `HandleServerError` hook to access `getRequestEvent`. ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a ...
diff --git a/.changeset/ninety-planets-remember.md b/.changeset/ninety-planets-remember.md new file mode 100644 index 000000000000..0cda886b1e17 --- /dev/null +++ b/.changeset/ninety-planets-remember.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +allow `HandleServerError` hook to access `getRequestEvent` diff ...
3
2
0
[{"id": "G0", "claim": "Confirm that `getRequestEvent` also works in the server `handleFetch` hook and add a test covering it.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The `getRequestEvent` doc comment should say it can be used inside server hoo...
null
sveltejs__kit__13793
sveltejs/kit
13,793
defect
b666e15ba3f25b04644f699282ed324c141f91c7
897458241d3566906e174e4ea98b492b5d7766c4
fix: correctly invalidate static analysis cache of child nodes during dev
~Forgot to add the static analysis cache invalidation to the Vite file change listener.~ Currently, if the page options of a parent node is updated during development, the child nodes incorrectly use the stale cached results instead of inheriting the new page options of the parent. This PR intends to ensure updating...
diff --git a/.changeset/big-eels-watch.md b/.changeset/big-eels-watch.md new file mode 100644 index 000000000000..1ac258f5d11e --- /dev/null +++ b/.changeset/big-eels-watch.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: correctly invalidate static analysis cache when modifying a universal `+page`/`+layout...
2
2
0
[{"id": "G0", "claim": "The changeset title should say the cache invalidation fix applies during dev.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment at the `vite.watcher.on('change')` handler and/or above the earlier `watch('change',...
null
sveltejs__kit__13877
sveltejs/kit
13,877
defect
6ba491795536a982946eb72087a62d5df243614b
53696bf833dbc9c1e33c8a80ffd03673e2751774
feat: Respect abort signals during serverside fetch optimization
edit: I realized my smooth brain created a bunch of camelcase variables, will fix tomorrow Closes #13874 I'm unsure whether this is the best way to do this... but I think it is? If there's an abort signal attached to our request and we bypass native HTTP fetch (for a same-origin direct-call optimization), we race...
diff --git a/packages/kit/src/runtime/server/fetch.js b/packages/kit/src/runtime/server/fetch.js index 913cedaf9748..e58a84cbdf9d 100644 --- a/packages/kit/src/runtime/server/fetch.js +++ b/packages/kit/src/runtime/server/fetch.js @@ -145,10 +145,7 @@ export function create_fetch({ event, options, manifest, state, get_...
1
1
0
[{"id": "G0", "claim": "The 'abort' event listener attached to the request signal should be removed once the response is available, because a rejection firing after that point (e.g. after a Promise.race settlement) could have unclear effects.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope...
null
sveltejs__kit__13909
sveltejs/kit
13,909
defect
cbe5c7ad6ca73159b91530b0b3fbeffa0b808ffd
4d9d2b0961448626a41e19b1d07bc63080728aec
chore: add tests for treeshaking
related to https://github.com/sveltejs/kit/issues/13738 This PR adds a test to ensure that the `browser` and `dev` conditions from the `$app/environment` module are treeshaken. This will make the rolldown-vite ecosystem ci fail again since treeshaking isn't on par with Rollup yet https://github.com/rolldown/rolldown...
diff --git a/packages/kit/test/apps/basics/src/routes/treeshaking/browser/+page.svelte b/packages/kit/test/apps/basics/src/routes/treeshaking/browser/+page.svelte new file mode 100644 index 000000000000..4f558a60fad6 --- /dev/null +++ b/packages/kit/test/apps/basics/src/routes/treeshaking/browser/+page.svelte @@ -0,0 +...
2
2
1
[{"id": "G0", "claim": "The treeshaking test pages should also exercise the negated form of the environment check (!browser / !dev) in addition to the positive form, because negation also affects treeshaking.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
sveltejs__kit__14036
sveltejs/kit
14,036
defect
a18e21a0d43daafbbee6b4f942a182f78d27005f
d923a6faa10bcac1e11c5ded5a63cca2bb61eb92
fix: resolve `assets.directory` path from wrangler config
Hi! This PR fixes a bug in the current version of the Cloudflare adapter: it always assumes that the wrangler.json config file is in the same directory as the .svelte-kit directory. With this fix, the wrangler.json can be placed anywhere (parent and children directories work) --- ### Please don't delete thi...
diff --git a/.changeset/new-donkeys-approve.md b/.changeset/new-donkeys-approve.md new file mode 100644 index 000000000000..64baa5294327 --- /dev/null +++ b/.changeset/new-donkeys-approve.md @@ -0,0 +1,6 @@ +--- +"@sveltejs/adapter-cloudflare": patch +"test-cloudflare-workers": patch +--- + +fix(adapter-cloudflare): re...
1
1
0
[{"id": "G0", "claim": "The changeset file should drop the \"test-cloudflare-workers\": patch entry because the repository does not generate changelogs for test apps.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__14050
sveltejs/kit
14,050
defect
fade97a5d16ac953a7e47ec79642a0b4638df4da
03560b4dd28c0921fb92e936783c20a4e5157f85
fix: ignore route groups when generating typed routes
Fixes #14043 Fixes #14044 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create ...
diff --git a/.changeset/tidy-owls-enter.md b/.changeset/tidy-owls-enter.md new file mode 100644 index 000000000000..5600f695321b --- /dev/null +++ b/.changeset/tidy-owls-enter.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: ignore route groupes when generating typed routes diff --git a/packages/kit/src/cor...
1
1
0
[{"id": "G0", "claim": "The changeset description contains the typo \"route groupes\" and should read \"route groups\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__14131
sveltejs/kit
14,131
defect
6c130634df8d4739cade53edf1ad202570d61fc7
5764a8d74a520449f05f00c0b4addae96892f0a9
fix: support multiple cookies with the same name across different paths and domains
Fixes #13947 When setting multiple cookies with the same name but different paths or domains using `event.cookies.set()`, only the last cookie was retained. This happened because the internal `new_cookies` object used just the cookie name as the key, causing cookies with different paths/domains to overwrite each other...
diff --git a/.changeset/fix-multiple-cookies-same-name.md b/.changeset/fix-multiple-cookies-same-name.md new file mode 100644 index 000000000000..7293fdb77c4c --- /dev/null +++ b/.changeset/fix-multiple-cookies-same-name.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: support multiple cookies with the same...
6
4
4
[{"id": "G0", "claim": "Adding domain/path options to cookies.get() is incorrect; cookies.get(name) should not take an additional option but should look at all matching cookies in new_cookies and select the most specific value.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
sveltejs__kit__14137
sveltejs/kit
14,137
defect
5bde191fbb02b3d0bef1f3d8409c1ad8b35aca83
f9babdd9c23a7a0737ff032d9626d8c7cead8d87
feat: add `pending` property to forms and commands
Closes #14080 — adds a `pending` property to forms and commands. ~~Draft because no test yet~~ --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, f...
diff --git a/.changeset/purple-hotels-prove.md b/.changeset/purple-hotels-prove.md new file mode 100644 index 000000000000..dabdad0f3ef7 --- /dev/null +++ b/.changeset/purple-hotels-prove.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: add `pending` property to forms and commands diff --git a/packages/kit...
2
2
0
[{"id": "G0", "claim": "In packages/kit/test/apps/basics/src/routes/remote/form/form.remote.js, the redundant trailing comment on the line that empties the deferreds array should be dropped, applying the supplied suggestion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
sveltejs__kit__14155
sveltejs/kit
14,155
defect
bcc8b42022503b8cc67c48b0c7c0e39864281502
49d5fbb20a8fac0297c70c3ebc72d85998c55929
fix: make illegal server-only import errors actually useful
fixes #14153. The one part I'm slightly nervous about is manipulating the errors that occur during the secondary build to avoid double-logging, though it's _probably_ okay? This is a radical simplification from what we had before. It results in consistent errors between dev and prod (no more 'build the app to figure...
diff --git a/.changeset/chubby-shirts-run.md b/.changeset/chubby-shirts-run.md new file mode 100644 index 000000000000..a6f8c628f839 --- /dev/null +++ b/.changeset/chubby-shirts-run.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: make illegal server-only import errors actually useful diff --git a/packages/...
5
4
1
[{"id": "G0", "claim": "The `stackless` JSDoc should document `@returns {never}` so editors grey out the code following a call to it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the `wait_for_started: false` option is commented out, the opti...
null
sveltejs__kit__14180
sveltejs/kit
14,180
defect
7a3583b35d7eb6151439aaaec1fdaeb6562c3272
71d2ad2b49d78fbb443d87d6b967766fb7d22086
fix: avoid warning if page options in a Svelte file belongs to a comment
The build process was incorrectly triggering warnings when comments in `.svelte` files mentioned `export const trailingSlash` or other page options. This happened because the regex pattern used to detect page option exports didn't account for JavaScript/HTML comments. For example, this code would incorrectly trigger a...
diff --git a/packages/kit/src/exports/vite/index.js b/packages/kit/src/exports/vite/index.js index 31a79718fcb1..24b218e5eddd 100644 --- a/packages/kit/src/exports/vite/index.js +++ b/packages/kit/src/exports/vite/index.js @@ -79,6 +79,38 @@ const enforced_config = { const options_regex = /(export\s+const\s+(prerend...
5
5
1
[{"id": "G0", "claim": "The comment-detection logic is duplicated between vite/index.js and vite/index.spec.js, which defeats the object of the test; it should be exported and shared between the test and the original file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
sveltejs__kit__14195
sveltejs/kit
14,195
defect
367c896f4248feb570bb1d60288a8f6c1118d1b2
68dfab12f444c820c46b9b11f4d702ae844de7d0
fix: ensure importing `$app/navigation` in unit tests work
fixes https://github.com/sveltejs/kit/issues/14143 This PR adds a condition before referencing the value of `__SVELTEKIT_PAYLOAD__` so that it doesn't error when it doesn't exist during unit testing. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: -...
diff --git a/.changeset/thin-badgers-cough.md b/.changeset/thin-badgers-cough.md new file mode 100644 index 000000000000..8987fc2cd9b4 --- /dev/null +++ b/.changeset/thin-badgers-cough.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: ensure importing from `$app/navigation` works in test files diff --git a/p...
4
4
0
[{"id": "G0", "claim": "The comment above remote_responses needs to be enhanced to clarify why __SVELTEKIT_PAYLOAD__ is not referenced, and it is unclear whether the other globals in this file would also cause problems if they were used for more than booleans.", "category": "documentation", "verdict": "supported", "pri...
null
sveltejs__kit__14225
sveltejs/kit
14,225
defect
f63567812505597b1edc3e01010eca622b03b126
412783b30b1b4676040dcfb4bf121d5766ccb968
fix: better error when `.remote.ts` files are used without the `experimental.remoteFunctions` flag
closes #14111 ## before <img width="1006" height="425" alt="image" src="https://github.com/user-attachments/assets/a35a2683-38be-45ed-b2e5-48c85949bbd9" /> ## after <img width="1007" height="357" alt="image" src="https://github.com/user-attachments/assets/1981fbf7-020e-454f-9f7d-6bb1833599f5" /> --- #...
diff --git a/.changeset/kind-parents-melt.md b/.changeset/kind-parents-melt.md new file mode 100644 index 000000000000..feb8b9e2037a --- /dev/null +++ b/.changeset/kind-parents-melt.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: better error when `.remote.ts` files are used without the `experimental.remot...
1
1
0
[{"id": "G0", "claim": "The markdown code fence around the config snippet in the error_for_missing_config message does nothing and should be removed (the reviewer suggests dropping the code-block language; the author proposes removing the fence altogether).", "category": "design", "verdict": "supported", "priority": "P...
null
sveltejs__kit__14303
sveltejs/kit
14,303
defect
8d4d804cd2d437f4eaa3047f41c6eed007af7271
b283e7ce2a34ee08cae241a8e04fc865cf8eea29
fix: expose query.set
Exposes the `.set()` method on remote queries. Fixes #14302 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. Fo...
diff --git a/.changeset/social-hats-hope.md b/.changeset/social-hats-hope.md new file mode 100644 index 000000000000..db17a370938b --- /dev/null +++ b/.changeset/social-hats-hope.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: add expose query.set() method to override the value of a remote query function ...
1
1
1
[{"id": "G0", "claim": "The changeset should declare '@sveltejs/kit': patch instead of minor and describe the change as 'fix: add type definitions for `query.set()` method to override the value of a remote query function' instead of a feat.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope...
null
sveltejs__kit__14395
sveltejs/kit
14,395
defect
6e9c60cc33a3f2d926298118f338474fbeedcccd
d0f6a59d1911ac20fdbe35cea98775137ca3ef35
fix: layout load data not serialized on error page
Fixes #14387 I made a mistake in #14298 When a load function errors, we still need the serialized data of the successfully run layout load functions. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an ...
diff --git a/.changeset/legal-peas-agree.md b/.changeset/legal-peas-agree.md new file mode 100644 index 000000000000..224d051b41ab --- /dev/null +++ b/.changeset/legal-peas-agree.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: layout load data not serialized on error page diff --git a/packages/kit/src/runt...
2
2
2
[{"id": "G0", "claim": "Mutating the shared `strings` array with `strings.length = max_nodes` inside `get_data` means a later `get_data` call with a different `max_nodes` could produce a wrong result, so the reviewer asks to instead apply `max_nodes > -1 ? strings.slice(0, max_nodes) : strings` within `data:`.", "categ...
null
sveltejs__kit__14435
sveltejs/kit
14,435
defect
780ea389d640849f9fb22eacf2f1194f4082e883
a5636fefb3320c4d32028c1f7966aa7f3af8dc55
fix: allow remote functions to return custom types serialized with `transport` hooks
Supersedes #14428, closes #14423 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please cre...
diff --git a/.changeset/deep-points-peel.md b/.changeset/deep-points-peel.md new file mode 100644 index 000000000000..b93f6d332117 --- /dev/null +++ b/.changeset/deep-points-peel.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: allow remote functions to return custom types serialized with `transport` hooks ...
1
1
0
[{"id": "G0", "claim": "Make `remote_responses` an `export let` whose value is assigned inside `start` (like `export let app`) instead of accessing the `__SVELTEKIT_PAYLOAD__` global from the other modules.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__14462
sveltejs/kit
14,462
defect
8826b0d6f6616ebe3c7b3a3db227e20c7858f456
9e4ee98401011b4d73aaaeac39347cf04aa79d08
fix: one more alias resolution fix
This PR continues #14433 by handling `import/export name, { ... }` when resolving aliases. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, featu...
diff --git a/.changeset/shiny-schools-slide.md b/.changeset/shiny-schools-slide.md new file mode 100644 index 000000000000..eadfc864b30f --- /dev/null +++ b/.changeset/shiny-schools-slide.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/package': patch +--- + +fix: handle `import/export name, { ... }` when resolving aliases diff --...
1
1
1
[{"id": "G0", "claim": "The specifier group of the alias-resolution regex should be scoped to valid identifiers and be more flexible with whitespace instead of matching any text before '{ ... }'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sveltejs__kit__14475
sveltejs/kit
14,475
defect
fae6b5af3c488ca39acd5db99bca91951c8f75c7
eb10fd505851a9c01fc785c9918aee91c0b04649
fix: submitters on remote forms
fixes #14466 - includes submitter name and value on formdata --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. F...
diff --git a/.changeset/nine-months-start.md b/.changeset/nine-months-start.md new file mode 100644 index 000000000000..507738fc743b --- /dev/null +++ b/.changeset/nine-months-start.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: include `<button name="foo" value="bar">` values on submitted remote forms di...
3
3
1
[{"id": "G0", "claim": "Use the native optional `submitter` parameter of the `FormData` constructor instead of manually reading the submitter's name/value and appending it ourselves.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changeset message sh...
null
sveltejs__kit__14532
sveltejs/kit
14,532
defect
abc98878b7dacd9467806e516787a8bd035f14f3
ddc328b2dc63ee29909602eec641cfa03944dc44
fix: fall back to non-relative resolution when calling `resolve(...)` outside an event context
fixes #14513. (I also added a drive-by fix for the fact that non-relative resolution ignored `paths.base`.) In the process of doing this, I realised that `resolve(...)` will give incorrect results when called in the context of a remote function, since the `pathname` is always `/` in that case. Not entirely sure how ...
diff --git a/.changeset/common-llamas-argue.md b/.changeset/common-llamas-argue.md new file mode 100644 index 000000000000..1ae4aec1886a --- /dev/null +++ b/.changeset/common-llamas-argue.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: fall back to non-relative resolution when calling `resolve(...)` outsid...
1
1
1
[{"id": "G0", "claim": "resolve() called inside a remote function can still return a relative path (at least when called from the client), and a `!store.event.isRemoteFunction` guard should be added to prevent that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sveltejs__kit__14533
sveltejs/kit
14,533
defect
abc98878b7dacd9467806e516787a8bd035f14f3
cebdb1555cc752557467b5e98fe5ef137943e78e
fix: keep resolve relative to initial base during prerender
Fixes #14512 Fixed $app/paths.resolve so prerendered builds no longer duplicate paths.base, and added a regression test that verifies the helper emits the correct relative href. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really usef...
diff --git a/.changeset/famous-fans-cheer.md b/.changeset/famous-fans-cheer.md new file mode 100644 index 000000000000..36cc241962a4 --- /dev/null +++ b/.changeset/famous-fans-cheer.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: keep resolve relative to initial base during prerender diff --git a/packages/...
1
1
0
[{"id": "G0", "claim": "The exported `initial_base` in internal/server.js should have a doc comment explaining that it holds the original non-relative base path, since `base` can be overridden during rendering.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__14606
sveltejs/kit
14,606
defect
dfb7f49f31c7e4e5bd0ed220e2756fc148972981
54135623a256050db3307b7387cc57c8c42a0229
feat: expose `event.route` and `event.url` to remote functions
We originally chose to omit `event.route` and `event.url` from remote functions, because we worried that it could create confusion — if a query's return value is based on `event.url`, it could become incorrect later when the URL changes and the query result doesn't. But it's too restrictive. It's often necessary to ...
diff --git a/.changeset/polite-rooms-invent.md b/.changeset/polite-rooms-invent.md new file mode 100644 index 000000000000..621604076e8b --- /dev/null +++ b/.changeset/polite-rooms-invent.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: expose `event.route` and `event.url` to remote functions diff --git a/...
4
4
4
[{"id": "G0", "claim": "In the remote_id branch, url.search is assigned the 'x-sveltekit-pathname' header instead of 'x-sveltekit-search' (copy-paste), so event.url.search would be wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test u...
null
sveltejs__kit__14621
sveltejs/kit
14,621
defect
097d718d84cc5a6fff47d6647ec7cc40909ed08d
60458208c784fdfa14c299dba028dd025bab462b
fix: granular updates of `field.value()`
This closes a TODO, and insodoing fixes an actual bug — if you edit a form that contains a select, the `value` getter will re-run (because `input` has changed) and nuke the select because the model value is typically `undefined` to start with. ~~Unfortunately it doesn't quite work, because an effect doesn't depend o...
diff --git a/.changeset/honest-shoes-jam.md b/.changeset/honest-shoes-jam.md new file mode 100644 index 000000000000..dd217235e7d4 --- /dev/null +++ b/.changeset/honest-shoes-jam.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: use `$derived` for form fields diff --git a/packages/kit/src/runtime/app/server/...
2
1
0
[{"id": "G0", "claim": "Add a TODO comment above the `versions` state noting that it and its related logic are a workaround for `$derived` not updating when created inside `$effects`, to be removed in 3.0.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
sveltejs__kit__14661
sveltejs/kit
14,661
defect
bc3ec261d838d5c9be52798c34290f29f08a9d32
1f9061f15ee39605376ec9717766ef98facd45c5
fix: ensure remote form fields.set triggers reactivity
<!-- Your PR description here --> Fixes #14643 Fixes #14650 Ensure remote form `fields.set()` triggers reactivity, so DOM and validation update immediately after programmatic changes. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's r...
diff --git a/.changeset/easy-plants-remain.md b/.changeset/easy-plants-remain.md new file mode 100644 index 000000000000..f61681add6b2 --- /dev/null +++ b/.changeset/easy-plants-remain.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: ensure remote form fields.set triggers reactivity diff --git a/packages/ki...
2
2
0
[{"id": "G0", "claim": "The added `return;` in the `path.length === 0` branch should be deleted (empty suggestion block) so the root-path case is not short-circuited out of the shared version-bumping logic.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
sveltejs__kit__14672
sveltejs/kit
14,672
defect
55ac0d5264036a11eace0feb7d193432c90bd135
9c5dcdc57eea88259a0c06f6a70cbdfda636b623
fix: set manifest and read implementation before evaluating remote function files during build
## Summary Fixed issue where remote function files couldn't use `read()` at the top level during build analysis. ## Changes Made - [x] **Fixed `prerender.js`**: Added `internal.set_manifest(manifest)` and `internal.set_read_implementation(...)` before loading remote functions (similar to pattern in `analyse.js`) - [...
diff --git a/packages/kit/src/core/postbuild/analyse.js b/packages/kit/src/core/postbuild/analyse.js index 2ea1bf759bf1..c71a8addf65a 100644 --- a/packages/kit/src/core/postbuild/analyse.js +++ b/packages/kit/src/core/postbuild/analyse.js @@ -56,7 +56,7 @@ async function analyse({ // essential we do this before analy...
8
7
4
[{"id": "G0", "claim": "The test app needs a page which actually imports and uses the `with_read` remote function added to prerender.remote.js.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "The test comment should be replaced with \"// test that using ...
null
sveltejs__kit__14691
sveltejs/kit
14,691
defect
097d718d84cc5a6fff47d6647ec7cc40909ed08d
68f4003c6b49453b131882ebd0232aeaaf0a4931
fix: allow strings for ISR expiration, parse input
While the types for `config` did not allow a string, we didn't actually do any runtime checking to see what we were getting for `expiration`. The result is that if you `export const config = { isr: { expiration: '10' } }` (and forget to import the `Config` type), your build will succeed but you'll silently have the fal...
diff --git a/.changeset/two-humans-thank.md b/.changeset/two-humans-thank.md new file mode 100644 index 000000000000..06ba01a7f8ef --- /dev/null +++ b/.changeset/two-humans-thank.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-vercel': minor +--- + +feat: parse isr.expiration, allowing it to be a string diff --git a/packag...
3
2
1
[{"id": "G0", "claim": "An expiration of 0 should probably also be an invalid value unless it is meant to express \"forever\".", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`false` is a valid expiration value, so it should be kept as `false` instea...
null
sveltejs__kit__14722
sveltejs/kit
14,722
defect
0bd9942b26b30583ab3b533c4d7167f12bb09b3a
a834c1ec99a856fbbc51bf9cc3ab261240862ae9
fix: error pages with discarded promises fail to load
Fixes #14684 It seems like writing an empty chunk to the response stream is not allowed. No error is thrown but the `for await` just hangs, and so the whole request hangs. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if y...
diff --git a/.changeset/clear-vans-sniff.md b/.changeset/clear-vans-sniff.md new file mode 100644 index 000000000000..ebc5926fb229 --- /dev/null +++ b/.changeset/clear-vans-sniff.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: error pages with discarded promises fail to load diff --git a/packages/kit/src/r...
3
3
1
[{"id": "G0", "claim": "The changeset description 'fix: error pages with discarded promises fail to load' should be replaced with 'fix: avoid hanging when `error()` is used while streaming promises from a server `load` function'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
sveltejs__kit__14744
sveltejs/kit
14,744
defect
9b73e1669e9a9e6900f145528c3872dca77e5a73
aeec278b2861646bee5afe77fb34c818d0733b7c
feat: allow to run preflight validation only
That way you can e.g. run preflight on each keystroke and full validation only on blur <!-- Your PR description here --> --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ah...
diff --git a/.changeset/polite-planes-turn.md b/.changeset/polite-planes-turn.md new file mode 100644 index 000000000000..f294121a4700 --- /dev/null +++ b/.changeset/polite-planes-turn.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +chore: allow to run preflight validation only diff --git a/packages/kit/src/exp...
2
2
1
[{"id": "G0", "claim": "Rename the new `clientOnly` option to `preflightOnly` so it is explicitly linked to `.preflight(...)`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Preflight-only validation mishandles existing server validation issues: they are...
null
sveltejs__kit__14764
sveltejs/kit
14,764
defect
59a2aedc7cd3359d260f36cda1e187e39feb9604
bf7a55aea770844e4a1a3cd537113b1941856d25
chore: treeshake load function code if we know it's unused
This shaves off about ~1kb minified when you're not using any load functions in your code base, which can become more common with load functions <!-- Your PR description here --> --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's really useful if y...
diff --git a/.changeset/eleven-taxis-deny.md b/.changeset/eleven-taxis-deny.md new file mode 100644 index 000000000000..676f1efb1154 --- /dev/null +++ b/.changeset/eleven-taxis-deny.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +chore: treeshake load function code if we know it's unused diff --git a/packages/k...
2
2
1
[{"id": "G0", "claim": "The test failures are legitimate failures caused by this PR's load special-case (not flaky) and need to be addressed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Since build_metadata is guaranteed to exist at this point, t...
null
sveltejs__kit__14799
sveltejs/kit
14,799
defect
dc33ef7773d45d66b58b6e88f0673a847c47aa6b
dae122f59b1f125953fd8f935a9717069dcb46d2
fix: wait an extra microtask in dev before calling `$$_init_$$`
Closes #14515 TBF this seems like a bug in vite rather than something we should work around here, but I wasn't able to create a minimal repro so in the meantime I'll open this PR and we can discuss. Basically what happens is that if a client module and a server module import the same remote function during prelo...
diff --git a/.changeset/empty-animals-retire.md b/.changeset/empty-animals-retire.md new file mode 100644 index 000000000000..e75b235ac854 --- /dev/null +++ b/.changeset/empty-animals-retire.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: wait an extra microtask in dev before calling `$$_init_$$` diff --gi...
2
1
0
[{"id": "G0", "claim": "Add a note that the extra microtask could be removed in Kit 3.0, since the Vite environment API might have fixed this race condition.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the comment typo: \"During a link prel...
null
sveltejs__kit__14838
sveltejs/kit
14,838
defect
8b32b6cb7e2a5ee7a42366a032c071b0b0d99442
b7e3d599822368ff3028166628268418ade00642
chore: improve runtime validation for adapter-vercel
We were jumping through some hoops and validating different things in different places. This just pulls all of that together and gives us a little bit more-specific typing and validation. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's real...
diff --git a/.changeset/deep-parks-marry.md b/.changeset/deep-parks-marry.md new file mode 100644 index 000000000000..6d332012e916 --- /dev/null +++ b/.changeset/deep-parks-marry.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-vercel': patch +--- + +chore: improve runtime config parsing diff --git a/packages/adapter-vercel...
1
1
0
[{"id": "G0", "claim": "The duplicated 'a' in the new error message should be removed so it reads 'or explicitly specify a runtime in your adapter configuration.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__kit__15005
sveltejs/kit
15,005
defect
291497e7505b37c3c24b6dd951b866f1a85a313c
df1c715f6c6a5365031cc1d53bcb4c0d20867d40
Bugfix: Fix #15004 by applying MDN recommended fix when proxying Response in page_load
<!-- Your PR description here --> On Node v24+, the undici library used for HTTP has a Response class with a private element. Proxying the response therefore fails when calling clone() as the method returned by the proxy cannot access the private state element. In the linked issue, I mention the MDN version of th...
diff --git a/.changeset/tangy-donkeys-knock.md b/.changeset/tangy-donkeys-knock.md new file mode 100644 index 000000000000..24d0112d382e --- /dev/null +++ b/.changeset/tangy-donkeys-knock.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: fix TypeError when doing response.clone() in page load diff --git a/pac...
1
1
0
[{"id": "G0", "claim": "The changeset summary line reads \"fix: fix TypeError when doing response.clone() in page load\" and should be reworded to \"fix: TypeError when doing response.clone() in page load\", as offered in the reviewer's suggestion block.", "category": "documentation", "verdict": "supported", "priority"...
null
sveltejs__kit__15089
sveltejs/kit
15,089
defect
85a57a03160ab68dc45da6acd57ac8670d7b1d26
28cb818c6aef7012a6b8862a638a4c97776f5bc2
chore: upgrade Playwright
please god fix my tests edit: he has indeed So after a full day of infuriation: - For some reason, the combination of Node 24 and Playwright 1.51.0 causes tests to randomly hang. I couldn't find an isolated Node version. - I still have not determined what _caused_ this to start happening. As far as I can tell, ...
diff --git a/packages/kit/test/apps/basics/test/client.test.js b/packages/kit/test/apps/basics/test/client.test.js index a6730dd5c1c4..f1ac5243cd72 100644 --- a/packages/kit/test/apps/basics/test/client.test.js +++ b/packages/kit/test/apps/basics/test/client.test.js @@ -1652,7 +1652,7 @@ test.describe('reroute', () => ...
7
4
0
[{"id": "G0", "claim": "Fix the unreliable navigation waiting inside clicknav so there is a single central location to update, rather than changing the expectation lines at each test call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
sveltejs__kit__15135
sveltejs/kit
15,135
defect
8ea9b243fad246fa40c99dd288e890d5576650d1
54e6058fcdc745f56600720f8cf79242478d8cef
fix: add `experimental.forkPreloads` flag
Adds a new experimental flag to gate the use of Svelte's `fork` API for preloading. The flag defaults to `false`, disabling the fork-based preloading behavior until explicitly enabled. We're making this change because the current behaviour is buggy in some cases, such as when a `redirect` occurs when rendering the d...
diff --git a/.changeset/tame-lights-push.md b/.changeset/tame-lights-push.md new file mode 100644 index 000000000000..6a01242c037a --- /dev/null +++ b/.changeset/tame-lights-push.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: put forking behind `experimental.enhancedPreloading` diff --git a/packages/kit/s...
4
1
0
[{"id": "G0", "claim": "The PR's release metadata is inconsistent — the description says 'feat' while the changeset says 'fix' with a patch bump — and it should be decided what to call this, possibly 'breaking' in the changelog.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced...
null
sveltejs__kit__15164
sveltejs/kit
15,164
defect
81cd545dd78b60ee994a04d8abacb58bf63584d7
f3d1a909e126c7d21d825e8563139acad0951bc6
docs: update cloudflare adapter package description and misc
This PR does some housekeeping for - mentioning workers builds in the docs - adds a default wrangler config name in case it's undefined in the error message - mentions cloudflare workers in the package description --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the...
diff --git a/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md b/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md index a681488daad8..c18b3a7593fa 100644 --- a/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md +++ b/documentation/docs/25-build-and-deploy/60-adapter-cloudflare....
1
1
0
[{"id": "G0", "claim": "The new package description should read \"Adapts SvelteKit applications for Cloudflare Workers or Cloudflare Pages\" instead of \"Adapter that builds SvelteKit applications for Cloudflare Workers or Cloudflare Pages\".", "category": "documentation", "verdict": "supported", "priority": "P3", "sco...
null
sveltejs__kit__15203
sveltejs/kit
15,203
defect
99836bf79189b2d16b79aa05c081c75d32f42d9e
35e87625bae007a5f29bd97a3ea6c7d382bd9636
feat(adapter-netlify)!: migrate to the modern Netlify Functions API
The Netlify adapter now generates "v2" Netlify Functions, which uses modern standards (ESM, Request, Response) instead of the legacy "Lambda-compatible" or "v1" format. Under the hood, this greatly simplifies the adapter code and improves maintainability. See more details in this guide: https://developers.netlify.com/g...
diff --git a/.changeset/tender-kings-knock.md b/.changeset/tender-kings-knock.md new file mode 100644 index 000000000000..839344ac91e8 --- /dev/null +++ b/.changeset/tender-kings-knock.md @@ -0,0 +1,17 @@ +--- +'@sveltejs/adapter-netlify': minor +--- + +chore!: Migrate to the modern Netlify Functions API + +The Netlify...
5
5
1
[{"id": "G0", "claim": "Since the PR contains a breaking change, the changeset should be tagged 'major' instead of 'minor'.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The single long changeset should be split into several changesets with short...
null
sveltejs__kit__15246
sveltejs/kit
15,246
defect
159aece0654db020f95bc414f6a21f25fbc5f22f
e0937c99117e59a960354273d5346b90f0f5a38c
fix: respect scroll-margin when navigating to a url-supplied anchor
fixes #15192 When we navigate to a url-supplied anchor, we don't need to scroll to it in `reset_focus`. The `location.replace()` call already scrolls to the anchor and respects `scroll-margin-top`/`scroll-padding-top` & smooth scrolling. The previous solution (implemented in #14569) used `getBoundingClientRect()` w...
diff --git a/.changeset/clever-bars-throw.md b/.changeset/clever-bars-throw.md new file mode 100644 index 000000000000..420e5ff16c49 --- /dev/null +++ b/.changeset/clever-bars-throw.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: respect scroll-margin when navigating to a url-supplied anchor diff --git a/p...
3
2
0
[{"id": "G0", "claim": "The pre-existing comment above the conditional scroll restore in reset_focus should be reworded to 'If scroll management has already happened earlier, we need to restore the scroll position after setting the sequential focus navigation starting point'.", "category": "documentation", "verdict": "...
null
sveltejs__kit__15269
sveltejs/kit
15,269
defect
d027236eb2edf734db5ed0f69f8efad8e5b19da6
291c6b74546840497e6e4a73b765d1f13fd5fe9f
fix: suppress inner content warning when children prop is forwarded
## Summary Fixes #13504 When a `+layout.svelte` forwards `children` to a child component instead of rendering it directly with `{@render children()}`, the warning "`<slot />` or `{@render ...}` tag missing — inner content will not be rendered`" fires as a false positive. This PR suppresses the warning when `children...
diff --git a/.changeset/fix-layout-children-forwarding-warning.md b/.changeset/fix-layout-children-forwarding-warning.md new file mode 100644 index 000000000000..00582744060e --- /dev/null +++ b/.changeset/fix-layout-children-forwarding-warning.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: suppress false...
1
1
0
[{"id": "G0", "claim": "The test file should not recreate a copy of the children-detection logic, because the duplicate will drift; the logic in vite/index.js should be extracted into a function in utils.js and imported/tested here.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
sveltejs__kit__15280
sveltejs/kit
15,280
defect
3cbaac2dc71f6a658d1313740dcddcf683aa3906
e96937252862a0b0ccc896dcd5f511be5249e3a8
fix: don't wait for remote functions that are not awaited in the template
Fixes #15200 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://...
diff --git a/.changeset/large-squids-pull.md b/.changeset/large-squids-pull.md new file mode 100644 index 000000000000..ca7f00a02d16 --- /dev/null +++ b/.changeset/large-squids-pull.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: don't wait for remote functions that are not awaited in the template diff --g...
1
1
0
[{"id": "G0", "claim": "The comment at render.js line 504 ends with a trailing comma instead of a period, and the suggested replacement ending it with a period should be applied.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sveltejs__kit__15301
sveltejs/kit
15,301
defect
2f3a00791a4ff2a97bb8ea416e9cd2604125aec7
ef94e66f421f8a06a311fd9f623e9a6cb0c321d6
chore: upgrade to playwright 1.58.2
This PR upgrades Playwright and switches over to [Chrome's headless mode](https://playwright.dev/docs/browsers#chromium-new-headless-mode) which should be "more accurate" but more importantly circumvents the segfaults we've been having with newer Playwright versions. It helps unblock https://github.com/sveltejs/kit/pul...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73214352eacf..7ad84a58c603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: pnpm install --no-frozen-lockfile git checkout pnpm-lock.yaml pnpm-workspace.yaml # revert changes to pnpm ...
1
1
1
[{"id": "G0", "claim": "Invalid browser name validation is broken because the object spread creates a truthy object even when known_devices[test_browser] is undefined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sveltejs__kit__15320
sveltejs/kit
15,320
defect
0e3e4f637195cea3ef473b5aa91e14d3b50fa39d
2b2afcaa2f40288e47b02d25d2b803fae55feb97
fix: escape backticks and dollar signs before creating interpolated string
closes #15319 This PR fixes an edge case where the user's CSS needs to be inlined but has backticks and possible string interpolation syntax. We solve this by escaping the backtick and dollar sign so that those don't interfere with our actual string interpolation when we create the dynamic CSS module. --- ### ...
diff --git a/.changeset/sad-laws-kick.md b/.changeset/sad-laws-kick.md new file mode 100644 index 000000000000..33c834934e79 --- /dev/null +++ b/.changeset/sad-laws-kick.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: escape backticks and dollar signs when creating inlined css diff --git a/packages/kit/src...
2
2
1
[{"id": "G0", "claim": "The function that writes the CSS function string doesn't escape user `$` signs in the CSS, causing a ReferenceError when the CSS contains template-like strings such as `${example}`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
sveltejs__kit__15323
sveltejs/kit
15,323
defect
1bae374e2e106eb82502afd1ddf0167d66f224a1
5512fdc5aac97b0fa920d2ca0e921a1662ad5122
fix: add support for trusted types CSP
closes #7975 This PR: - adds a validation error that guides the user to update their Svelte version when using the CSP directive `require-trusted-types-for` or `trusted-types`. - uses a trusted policy to register the service worker when possible - errors if the svelte policy name is not included when trusted-type...
diff --git a/packages/kit/test/apps/options/source/pages/csp-trusted-types/+page.svelte b/packages/kit/test/apps/options/source/pages/csp-trusted-types/+page.svelte new file mode 100644 index 000000000000..c8d09b12a589 --- /dev/null +++ b/packages/kit/test/apps/options/source/pages/csp-trusted-types/+page.svelte @@ -0,...
1
1
1
[{"id": "G0", "claim": "The new 'require-trusted-types-for' test is missing async/await, causing it to pass trivially without actually testing anything.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sveltejs__kit__15367
sveltejs/kit
15,367
defect
f80c327aaed3088203090698b1e3f5cfed781aa3
31d9ed178d7b0a7bccbf3c45715a0a11b029508d
fix: ensure server load data requests are routed
fixes https://github.com/sveltejs/kit/discussions/15329#discussioncomment-15875840 This PR fixes a regression in the Netlify split function routing where `__data.json` requests weren't hitting any functions. Tested on Netlify too https://15329.netlify.app/ (you should be able to navigate to the /wordle page witho...
diff --git a/.changeset/tricky-dancers-flow.md b/.changeset/tricky-dancers-flow.md new file mode 100644 index 000000000000..d19188e51bb6 --- /dev/null +++ b/.changeset/tricky-dancers-flow.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-netlify': patch +--- + +fix: correctly route requests to server load functions when the ...
2
1
1
[{"id": "G0", "claim": "The index route's `__data.json` pattern generates `//__data.json` (double slash) instead of `/__data.json`, causing server load function data requests to fail in split mode.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Pass...
null
sveltejs__kit__15457
sveltejs/kit
15,457
defect
5063771e5aec529c46c6cb43297f29d422f1c059
e0169e75cc2c25a199b30736b2f717c0c088c472
fix: handle target attribute on remote form redirects
closes #15197 --- - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] This message body should clearly illustrate what problems it solves. - [...
diff --git a/.changeset/stale-poets-clap.md b/.changeset/stale-poets-clap.md new file mode 100644 index 000000000000..c9d67aeeee0f --- /dev/null +++ b/.changeset/stale-poets-clap.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': major +--- + +fix: handles form target attribute in remote form redirects diff --git a/packages/kit...
6
6
6
[{"id": "G0", "claim": "The changeset incorrectly marks a bug fix as a 'major' version bump and should use 'patch' instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The redirect target handling should also take the formtarget attribute on the ...
null
sveltejs__kit__15516
sveltejs/kit
15,516
defect
2500258a07b573e799ed8619804d75cc62037a1b
35c56c5c3a933c93856af420b07b4f19c596c859
chore: fix Vite ecosystem CI test
This PR fixes our treeshaking tests so that it specifically looks for `import { dev }`, etc. instead of just "dev". This helps avoid false-positive test failures due to the component path being injected as a comment in the build output that includes the export name we're trying to assert isn't there See https://gith...
diff --git a/packages/kit/test/apps/basics/test/server.test.js b/packages/kit/test/apps/basics/test/server.test.js index 7c66b61085c4..a9b3ae7eae53 100644 --- a/packages/kit/test/apps/basics/test/server.test.js +++ b/packages/kit/test/apps/basics/test/server.test.js @@ -889,7 +889,7 @@ test.describe('$app/environment',...
1
1
1
[{"id": "G0", "claim": "Playwright's `toContain()` coerces its regex argument to a string, so the added treeshaking assertions like `expect(code).not.toContain(/import .*dev/)` always pass regardless of actual code content and never verify treeshaking.", "category": "correctness", "verdict": "supported", "priority": "P...
null
sveltejs__kit__15530
sveltejs/kit
15,530
defect
796d1e7452bca3cbae83bc756783b2e014effd4b
c54e56bf1db4e7815ceeb2182d0dee78da8fb6a9
feat: return boolean from `submit` to indicate submission validity
With this PR, a `submit` in an enhanced remote `form` returns a boolean indicating whether it was valid or not: ```js try { if (await submit()) { // success (return or redirect) } else { // validation error } } catch (e) { // something went wrong } ``` The alternative approach we conside...
diff --git a/.changeset/twelve-taxis-move.md b/.changeset/twelve-taxis-move.md new file mode 100644 index 000000000000..0cfe6ff0296d --- /dev/null +++ b/.changeset/twelve-taxis-move.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: return boolean from `submit` to indicate submission validity diff --git a/do...
2
1
0
[{"id": "G0", "claim": "Expand the changeset title to say the boolean return applies to enhanced `form` remote functions (\"feat: return boolean from `submit` to indicate submission validity for enhanced `form` remote functions\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
sveltejs__kit__15548
sveltejs/kit
15,548
defect
34295c786cdb395e165ab57ea2dcdd60b510fba2
e170c331a410b77cd3414bb7b8c78a6845ae850e
chore: hydratable remote functions tweaks
github UI sucks for making non-trivial suggestions so am opening a branch against #15533
diff --git a/packages/kit/src/runtime/app/server/remote/query.js b/packages/kit/src/runtime/app/server/remote/query.js index d1681db3b6d7..40aed0e8d610 100644 --- a/packages/kit/src/runtime/app/server/remote/query.js +++ b/packages/kit/src/runtime/app/server/remote/query.js @@ -1,5 +1,5 @@ /** @import { RemoteQuery, R...
6
5
3
[{"id": "G0", "claim": "TypeScript error TS18047: #get_promise() returns a nullable promise, so `p.then(...)` in #then is flagged; the suggested fix was to return untrack(...) directly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "The added `.run(...
null
sveltejs__kit__15577
sveltejs/kit
15,577
defect
b31efce05cbc5929101643da80b837c270c63fd8
9d4c7b9c140c4fdad89211e7ce5908177e84fb26
feat: allow second value for all types of fields
Closes #15566 Not sure if should add more test coverage but this should work...i've left a TODO to remove the `submit` from the test once we fix the `reset`
diff --git a/.changeset/wide-kings-yell.md b/.changeset/wide-kings-yell.md new file mode 100644 index 000000000000..a9cd059c22dc --- /dev/null +++ b/.changeset/wide-kings-yell.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': minor +--- + +feat: allow second value for all types of fields diff --git a/packages/kit/src/exports/p...
3
1
0
[{"id": "G0", "claim": "The changeset summary line should read 'feat: allow `form` fields to specify a default value (`field.as(type, value)`)' instead of 'feat: allow second value for all types of fields'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
sveltejs__kit__15593
sveltejs/kit
15,593
defect
b31efce05cbc5929101643da80b837c270c63fd8
f62849e9852f6324ad5afdc824a56875c8f45d36
fix: correctly escape backticks when precomputing CSS to inline
closes https://github.com/sveltejs/kit/issues/15588 This PR cleans up the escaping logic before we create a function that returns template literal string. Firstly, we have to perform escaping __after__ the CSS processing to avoid interfering with it. Then, only __after escaping__, can we replace the placeholders wit...
diff --git a/.changeset/neat-lizards-clean.md b/.changeset/neat-lizards-clean.md new file mode 100644 index 000000000000..48e636887c93 --- /dev/null +++ b/.changeset/neat-lizards-clean.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: correctly escape backticks when precomputing CSS diff --git a/packages/kit...
1
1
0
[{"id": "G0", "claim": "A CSS file could already contain the literal '__SVELTEKIT_ASSETS__'/'__SVELTEKIT_BASE__' strings, so the fixed placeholders should be generated in a way that avoids colliding with content (e.g. a generate_placeholder util that checks and mutates the string).", "category": "correctness", "verdict...
null
sveltejs__kit__15609
sveltejs/kit
15,609
defect
e0f8e851ba7ef91ff57f662f8184000066f65cd4
4779a1d86b2d83a3bf054bc8359fe4cd4ebde7d0
fix: add `<svelte:options runes={true} />` to svelte-5 default error component
- [x] Add `<svelte:options runes={true} />` to `packages/kit/src/runtime/components/svelte-5/error.svelte` to ensure it compiles in runes mode - [x] Add unit test that compiles all svelte-5 runtime components and verifies the output doesn't include legacy flags (renamed to `components.spec.js`, uses `test.each`) <!-- ...
diff --git a/.changeset/red-timers-beam.md b/.changeset/red-timers-beam.md new file mode 100644 index 000000000000..3faa2872cebb --- /dev/null +++ b/.changeset/red-timers-beam.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: ensure the default Svelte 5 `error.svelte` file uses runes mode diff --git a/packag...
6
6
3
[{"id": "G0", "claim": "Add a test that fails without the runes-mode fix to error.svelte.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename error.spec.js to components.spec.js and use Vitest's test.each to test all the components in the directory.",...
null
sveltejs__kit__6550
sveltejs/kit
6,550
defect
41ce0f2d91ef01ee6b6bb5143f8527751cdc65ce
479e67248b541eca416e48602a48063948d46cb6
simulate CORS errors in server-side fetch
closes #5074, by increasing the fidelity of the server-side `fetch` implementation passed to `load`. If a request is made for an external resource, and it doesn't respond with an appropriate `access-control-allow-origin` header, it will fail the same way that the browser's `fetch` fails (albeit with a different error m...
diff --git a/.changeset/red-tomatoes-leave.md b/.changeset/red-tomatoes-leave.md new file mode 100644 index 000000000000..f4d0d327a1f3 --- /dev/null +++ b/.changeset/red-tomatoes-leave.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +[breaking] simulate CORS errors in server-side fetch diff --git a/packages/kit/...
3
1
1
[{"id": "G0", "claim": "The template literal in the subdomain cookie-passthrough condition is malformed (`.$url.hostname}` instead of `.${url.hostname}` - a missing `{`), which the reviewer thinks makes the condition never match and wonders how the tests still pass.", "category": "correctness", "verdict": "supported", ...
null
sveltejs__prettier-plugin-svelte__130
sveltejs/prettier-plugin-svelte
130
defect
e7d636096855a5db47c954ae365f0b30043f4e8e
acd7fc35a578d0250a6c804163151fa20e7daf12
Skip formatting <style> or <script> if unsupported language or prettier-ignored
This addresses #55 : pug and stylus code being broken on format. This change means any code in a `script` or a `style` tag with a `lang` attribute we do not support simply doesn't get reformatted. It's not exactly a completely solution but should at least be an improvement on the status quo. One thing that is no...
diff --git a/src/embed.ts b/src/embed.ts index 6326fd92..78d78a71 100644 --- a/src/embed.ts +++ b/src/embed.ts @@ -1,6 +1,6 @@ import { FastPath, Doc, doc, ParserOptions } from 'prettier'; import { PrintFn } from './print'; -import { Node, AttributeNode, TextNode } from './print/nodes'; +import { Node, AttributeNode,...
1
1
0
[{"id": "G0", "claim": "The hardcoded whitelist of supported languages is the wrong approach — the set of supported languages and their valid lang/type names is uncertain, so unsupported languages should be tracked by a blacklist instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
sveltejs__svelte__14236
sveltejs/svelte
14,236
defect
4bcd01b9941c7ba393738b5e038d9f4ad96b3bbd
812d66c926887047a24dd01cb9260356c996820b
fix: do not treat reassigned synthetic binds as state in runes mode
Closes #14233 The fix was slightly more involved because at that state we still can't have full certainty if we are in rune mode because we are still modifying the module scope. ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it ...
diff --git a/.changeset/bright-papayas-sneeze.md b/.changeset/bright-papayas-sneeze.md new file mode 100644 index 000000000000..8587aebc6681 --- /dev/null +++ b/.changeset/bright-papayas-sneeze.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: do not treat reassigned synthetic binds as state in runes mode diff --gi...
1
1
0
[{"id": "G0", "claim": "Instead of passing runes into the deferred check and testing !runes inside each pushed closure, the caller could skip the loop with an outer if(!runes) guard.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__14317
sveltejs/svelte
14,317
defect
efc65d4e0c185cd597a6eeef013f6641b8e25d50
a0b4a2140ed7b22e865bfd464e69b6be0c74236b
fix: mark subtree dynamic for img with loading attribute
Closes #14312 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] Prefix yo...
diff --git a/.changeset/rotten-turkeys-sniff.md b/.changeset/rotten-turkeys-sniff.md new file mode 100644 index 000000000000..53fb5bd66327 --- /dev/null +++ b/.changeset/rotten-turkeys-sniff.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: mark subtree dynamic for img with loading attribute diff --git a/packages/s...
1
1
0
[{"id": "G0", "claim": "The new loading=\"lazy\" special case should be folded into the surrounding condition structure (the reviewer first asked to merge it into the above if statement and clarified that the nested ifs should sit inside a single `parent.type === 'RegularElement'` wrapper shared with the value/option s...
null
sveltejs__svelte__14422
sveltejs/svelte
14,422
defect
37e6c7f26b39b6f068ed8ccba47aa186e2ca241a
defa6465ad26d9a83b0abbf6ff4f3e4c0dad8b03
feat: provide `MediaQuery` / `prefersReducedMotion`
closes #5346 TODO: - [x] is this the right API? -> mostly, but `matches` should be `current` - [x] provide `prefersReducedMotion` or not? (it's kinda trivial to reproduce in userland, but also doesn't hurt to provide / makes for better DX than to always repeat it in userland) -> yes - [x] should the start stop no...
diff --git a/packages/svelte/src/motion/index.js b/packages/svelte/src/motion/index.js index 10f52502d372..295e32eb0d65 100644 --- a/packages/svelte/src/motion/index.js +++ b/packages/svelte/src/motion/index.js @@ -1,2 +1,10 @@ +import { MediaQuery } from 'svelte/reactivity'; + export * from './spring.js'; export * f...
6
5
1
[{"id": "G0", "claim": "The change listener should be set up in a class field initializer instead of the constructor, using `on` (from `../events/index.js`) and `increment` (from `./utils.js`), as suggested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
sveltejs__svelte__14967
sveltejs/svelte
14,967
defect
dc8ae825b8c3fb8c286d54116af8d11244343974
d69a3794d18ee62386da1d038888ad813082caf0
fix: wrap each block expression in derived to encapsulte effects
Fixes https://github.com/sveltejs/svelte/issues/14961. [We have logic in the each block today](https://github.com/sveltejs/svelte/blob/main/packages/svelte/src/internal/client/dom/blocks/each.js#L478-L479) that assumes that the child effects of an each block effect are always the entries of the each block. This is ...
diff --git a/.changeset/tender-apples-scream.md b/.changeset/tender-apples-scream.md new file mode 100644 index 000000000000..c9325df39908 --- /dev/null +++ b/.changeset/tender-apples-scream.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: wrap each block expression in derived to encapsulte effects diff --git a/pa...
1
1
0
[{"id": "G0", "claim": "The changeset description misspells 'encapsulate' as 'encapsulte' and should be corrected, as proposed in the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sveltejs__svelte__15255
sveltejs/svelte
15,255
defect
c4d4349d0a89c9588e06c8ccc142ef2063582f55
3556152c890727fa2c6edeb5ed76707e4576bbec
fix: when re-connecting unowned deriveds, remove their unowned flag
Fixes https://github.com/sveltejs/svelte/issues/15229. Fixes https://github.com/sveltejs/svelte/issues/15180. Where we know that an unowned that was temporarily made unowned, and has definitely become owned again, we can remove the unowned flag entirely. This is the inverse of the logic that makes the derived temp...
diff --git a/.changeset/nasty-pigs-lay.md b/.changeset/nasty-pigs-lay.md new file mode 100644 index 000000000000..64ef72103a94 --- /dev/null +++ b/.changeset/nasty-pigs-lay.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: when re-connecting unowned deriveds, remove their unowned flag diff --git a/packages/svelte/s...
3
3
1
[{"id": "G0", "claim": "The 'simplify' refactor appears to have reintroduced the bug from issue #15180: as of commit 2957e6c the issue is broken again (it last worked at commit b054746).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the new test...
null
sveltejs__svelte__15259
sveltejs/svelte
15,259
defect
7ab18bba50e70d1d8c04bbcfe081b0a26e229a0a
89410dcae45bd215220bee22668217ebd66f92d3
fix: Add more checks to determine if element is non-static
Fixes https://github.com/sveltejs/svelte/issues/15241 The visitor for `RegularElement` expects a `node_id` for the current element in certain cases. However we skip generating one when the element is "static". This causes an error during hydration if the element was incorrectly marked static but the visitor still ex...
diff --git a/.changeset/unlucky-laws-decide.md b/.changeset/unlucky-laws-decide.md new file mode 100644 index 000000000000..7f1b8aa1d155 --- /dev/null +++ b/.changeset/unlucky-laws-decide.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +Add more checks to determine if element is non-static diff --git a/packages/svelte/...
1
1
0
[{"id": "G0", "claim": "The changeset description should be reworded to 'fix: ensure input elements and elements with `dir` attribute are marked as non-static'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__15277
sveltejs/svelte
15,277
defect
c4d4349d0a89c9588e06c8ccc142ef2063582f55
363192ecd3ff1a3f3a911e51cc91b2aad79c22da
fix: correctly match `:has()`'s selector during css pruning
Fixes #14072, alternative of #15207 `:has()` was matching only against descendants or siblings, but not sibling's descendants. In this variant, I made `apply_selector` and related functions bidirectional. So the same logic can be applied to all selectors. Changing the direction for selectors passed into `:has()`...
diff --git a/.changeset/cuddly-chefs-refuse.md b/.changeset/cuddly-chefs-refuse.md new file mode 100644 index 000000000000..59c937757f6b --- /dev/null +++ b/.changeset/cuddly-chefs-refuse.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: correctly match `:has()`'s selector during css pruning diff --git a/packages/s...
1
1
0
[{"id": "G0", "claim": "The changeset summary line should read `fix: correctly match `:has()` selector during css pruning` instead of the ungrammatical possessive `:has()`'s selector`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sveltejs__svelte__15396
sveltejs/svelte
15,396
defect
cf56973bf0f8b2c0e9c87a1ae5393edd42911b90
ea0c9421d6c6ba67d26df2cf44341c135ee53e7e
fix : bug "$0 is not defined" with svelte:element and a single class with a function call
* Closes #15392 I introduced this bug with the set_class() PR #15352 :( This fix it... ### Before submitting the PR, please make sure you do the following - [X] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large cha...
diff --git a/.changeset/two-dragons-camp.md b/.changeset/two-dragons-camp.md new file mode 100644 index 000000000000..cb0635186fd0 --- /dev/null +++ b/.changeset/two-dragons-camp.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix : bug "$0 is not defined" on svelte:element with a function call on class diff --git a/p...
1
1
0
[{"id": "G0", "claim": "The hand-rolled checks for a static class attribute in SvelteElement.js should be replaced with the existing is_text_attribute utility.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__15494
sveltejs/svelte
15,494
defect
aaeda65f2f31585a4e48b452b73874e10fd4ebfc
696bb2e8bd9b633b9038a4f987a0759e728ddfcc
feat: add partial evaluation
Noticed while looking into something unrelated that this input... ```svelte <script> let choice = $state('one'); </script> <input type="radio" bind:group={choice} value="one" /> <input type="radio" bind:group={choice} value="two" /> <input type="radio" bind:group={choice} value="three" /> <p>{choice}</p...
diff --git a/.changeset/selfish-onions-begin.md b/.changeset/selfish-onions-begin.md new file mode 100644 index 000000000000..7ecc1a2ebaa0 --- /dev/null +++ b/.changeset/selfish-onions-begin.md @@ -0,0 +1,5 @@ +--- +'svelte': minor +--- + +feat: partial evaluation diff --git a/packages/svelte/src/compiler/phases/3-tran...
6
6
1
[{"id": "G0", "claim": "Remove the blank line after `const evaluated = context.state.scope.evaluate(value);` in build_element_special_value_attribute.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the `// includes BigInt` remark into a JSD...
null
sveltejs__svelte__15933
sveltejs/svelte
15,933
defect
a5a0b49003d9cb544ed7919a4320870bda237833
42662e4008e7098095490abf61bb0b90b5481e59
feat: attachments `fromAction` utility
This provides a way to convert from action to attachments...this is useful if you are using a library that provides actions (like melt) and you want to spread them in dumb components. ```svelte <script> import Button from "./Button.svelte"; import { log } from "log-my-number"; import { fromAction } from "svel...
diff --git a/.changeset/wise-tigers-happen.md b/.changeset/wise-tigers-happen.md new file mode 100644 index 000000000000..53cc6718595e --- /dev/null +++ b/.changeset/wise-tigers-happen.md @@ -0,0 +1,5 @@ +--- +'svelte': minor +--- + +feat: attachments `fromAction` utility diff --git a/documentation/docs/03-template-syn...
3
3
2
[{"id": "G0", "claim": "The single-use public `FromAction` interface is unnecessary — the type should be documented with `@param`/`@returns` jsdoc on the function definition instead of adding a redundant public interface.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
sveltejs__svelte__16056
sveltejs/svelte
16,056
defect
b5fcd112c60012276e3416e65feae3ac16bfdaf1
73796c49b05b2d2eb8c5120a78f599ebaaade377
chore: better HTML normalization test helper
This fixes a particular bugbear of mine with our test setup. We have an `assert.htmlEqual` utility that compares two HTML strings. Before doing so it normalizes them, because otherwise you'd have to pay very close attention to hydration markers and whitespace and stuff that distracts from the thing being tested (if ...
diff --git a/packages/svelte/tests/html_equal.js b/packages/svelte/tests/html_equal.js index 4c9e2a725332..b5e18fdd4286 100644 --- a/packages/svelte/tests/html_equal.js +++ b/packages/svelte/tests/html_equal.js @@ -1,8 +1,20 @@ import { assert } from 'vitest'; -/** @param {Element} node */ -function clean_children(n...
5
3
0
[{"id": "G0", "claim": "Code scanning reports that in assert_html_equal_with_options the string processed with the (<!(--)?.*?\\2>) replacement may still contain '<!--', which may cause an HTML element injection vulnerability.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {...
null
sveltejs__svelte__16248
sveltejs/svelte
16,248
defect
da2feafe6765d2278ff053f62e6603a60b06833e
0300fbca904e97fcb8abb56795487cd86ff24fe7
fix: remount at any hydration error
Closes #16242, closes #14761 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs ...
diff --git a/.changeset/hip-eagles-yawn.md b/.changeset/hip-eagles-yawn.md new file mode 100644 index 000000000000..c987e7c7f2eb --- /dev/null +++ b/.changeset/hip-eagles-yawn.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: remount at any hydration error diff --git a/packages/svelte/src/internal/client/render.js ...
1
1
1
[{"id": "G0", "claim": "The check `error.message.includes('https://svelte.dev/e/')` can match the URL anywhere in the message, so an error whose message merely contains that substring from an arbitrary host may be misidentified as a Svelte error and re-thrown.", "category": "security", "verdict": "supported", "priority...
null
sveltejs__svelte__16491
sveltejs/svelte
16,491
defect
4e74cd35fedf55e65b60c957041f79ca94dfc197
92c9c963eaeec8e9c870fcadd15b8d36147ecd95
fix: don't update a focused input with values from its own past
fixes another lil' regression from #16482 — because we unset `current_batch` before flushing effects, the 'this input is being updated because of a state change that we started' logic is broken. A simple fix is to track the _previous_ batch, and unset it at an appropriate time ### Before submitting the PR, please ma...
diff --git a/.changeset/fast-mails-fail.md b/.changeset/fast-mails-fail.md new file mode 100644 index 000000000000..027cb01548c2 --- /dev/null +++ b/.changeset/fast-mails-fail.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: don't update a focused input with values from its own past diff --git a/packages/svelte/sr...
1
1
0
[{"id": "G0", "claim": "The uid counter and Batch.id field look like they were committed by accident for debugging and appear unused, so they should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__16514
sveltejs/svelte
16,514
defect
99452053af5d3280caa9773ac45f9c7cc6b9ad5d
67e1044a9d9f292455ecc3cbc9f85364a36f1546
fix: allow await expressions inside `{#await ...}` argument
Closes #16512 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] Prefix yo...
diff --git a/.changeset/long-roses-train.md b/.changeset/long-roses-train.md new file mode 100644 index 000000000000..10920ac5c45d --- /dev/null +++ b/.changeset/long-roses-train.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: allow await expressions inside `{#await ...}` argument diff --git a/packages/svelte/src...
1
1
0
[{"id": "G0", "claim": "The second argument to b.thunk could simply be node.metadata.expression.has_await, since the expression has already been walked (is_expression_async is only needed where there is no ExpressionMetadata) and experimental.async can be taken as given because the compiler would have errored earlier o...
null
sveltejs__svelte__16526
sveltejs/svelte
16,526
defect
d82edf6b1dfaac8af70462b1009f3b9da47a701a
a3fdd3d8b783221b04952b9fbeb747714890c941
fix: correctly differentiate static fields before emitting `duplicate_class_field`
Closes #16524 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] Prefix yo...
diff --git a/.changeset/nine-cups-film.md b/.changeset/nine-cups-film.md new file mode 100644 index 000000000000..ba72337daca7 --- /dev/null +++ b/.changeset/nine-cups-film.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: correctly differentiate static fields before emitting `duplicate_class_field` diff --git a/pa...
2
1
0
[{"id": "G0", "claim": "get_name() already prepends '#', so manually concatenating '#' onto the key in ClassBody.js is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicate_class_field check does not see...
null
sveltejs__svelte__16542
sveltejs/svelte
16,542
defect
80678411706e99c0224b8bf995959c2d4e7fd4db
2522b98a8e567f078b997d19853938d783534911
feat: async fragments
Currently, not every part of your component can be async— child *fragments* can't be. A fragment is the children inside of a block, such as an `{#if }` block. Most fragments are compiled to synchronous functions. Since template expressions are individually compiled to functions that are either async or sync depending o...
diff --git a/.changeset/brave-baboons-teach.md b/.changeset/brave-baboons-teach.md new file mode 100644 index 000000000000..ca761018437c --- /dev/null +++ b/.changeset/brave-baboons-teach.md @@ -0,0 +1,5 @@ +--- +'svelte': minor +--- + +feat: async fragments diff --git a/packages/svelte/src/compiler/phases/2-analyze/in...
3
3
0
[{"id": "G0", "claim": "The `node` field of the new `FragmentAnalysis` interface appears unnecessary and its purpose is unclear, so it should be removed or replaced by something better.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added `context.pa...
null
sveltejs__svelte__16601
sveltejs/svelte
16,601
defect
d2ba2589fee2ec6985c0fe0fbd800ab34518378e
7a153cefe49181006952519eb0634de833ad900e
fix: skip effects inside dynamic component that is about to be destroyed
When a dynamic component was updated to a different instance and its props were updated at the same time, effects inside the component were still called with the already-changed props. The fix is to mark the branch as skipped to never got to those effects. Fixes #16387 ### Before submitting the PR, please make sure y...
diff --git a/.changeset/neat-files-do.md b/.changeset/neat-files-do.md new file mode 100644 index 000000000000..ddba170c78d1 --- /dev/null +++ b/.changeset/neat-files-do.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: skip effects inside dynamic component that is about to be destroyed diff --git a/packages/svelte...
1
1
0
[{"id": "G0", "claim": "The commented-out `// ran &&` debug line at batch.js:627 should be either fully removed or uncommented rather than left half-committed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null