gamesguru/tg-svelte-kit.git
2 weeks agochore: Add AGENTS.md, symlink copilot instructions (#15145) base
Elliott Johnson [Fri, 9 Jan 2026 20:58:18 +0000 (13:58 -0700)]
chore: Add AGENTS.md, symlink copilot instructions (#15145)

* chore: Add AGENTS.md, symlink copilot instructions

* clean up

2 weeks agofeat: add env vars for keepAliveTimeout and headersTimeout (#15125)
Andrew Dailey [Fri, 9 Jan 2026 20:34:14 +0000 (14:34 -0600)]
feat: add env vars for keepAliveTimeout and headersTimeout (#15125)

* Check for and apply timeouts for keepAlive and headers

* Update docs with new timeout env vars

* Add changeset for new timeouts

* Run the formatter

* Tweak the docs wording a bit

* Check for empty vars before parsing and validating

* Update documentation/docs/25-build-and-deploy/40-adapter-node.md

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
* Add a timeout_env helper with corresponding tests

* fix: convert adapter-node tests to TypeScript for project service compatibility

The tsconfig include pattern with brace expansion {js,ts} was not being
recognized by TypeScript's project service used by ESLint. Split into
separate patterns and converted test files to TypeScript.

* format

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Elliott Johnson <hello@ell.iott.dev>
2 weeks agoRevert "breaking: remove `buttonProps` from experimental remote form function…" ...
Rich Harris [Fri, 9 Jan 2026 16:02:42 +0000 (11:02 -0500)]
Revert "breaking: remove `buttonProps` from experimental remote form function…" (#15143)

This reverts commit 4f9870dd9d8bca40352f647863b9a79e2488295e.

2 weeks agobreaking: remove `buttonProps` from experimental remote form functions (#14622)
Simon H [Fri, 9 Jan 2026 15:15:40 +0000 (16:15 +0100)]
breaking: remove `buttonProps` from experimental remote form functions (#14622)

* breaking: remove `buttonProps` from experimental remote form functions

use e.g. `<button {...myForm.fields.action.as('submit', 'register')}>Register</button>` button instead

* fix

* error in dev on buttonProps access

* fix

* fix tests

* tweak

* regenerate

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 weeks agoVersion Packages (#15129)
github-actions[bot] [Fri, 9 Jan 2026 00:45:48 +0000 (19:45 -0500)]
Version Packages (#15129)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 weeks agochore: fix prettier ignoring source code in with build in the name (#15133)
Tee Ming [Fri, 9 Jan 2026 00:44:55 +0000 (08:44 +0800)]
chore: fix prettier ignoring source code in with build in the name (#15133)

* avoid prettier ignoring files that contain build in their name

* fix global ignore ignoring directories with build name

* prettier

* Update .prettierignore

* Update .prettierignore

2 weeks agofix: add `experimental.forkPreloads` flag (#15135)
Elliott Johnson [Fri, 9 Jan 2026 00:44:34 +0000 (17:44 -0700)]
fix: add `experimental.forkPreloads` flag (#15135)

* feat: add `experimental.enhancedPreloading` 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.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* changeste

* chore: rename `enhancedPreloading` to `forkPreloads`

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2 weeks agochore: run pnpm dedupe (#15134)
Ben McCann [Thu, 8 Jan 2026 16:32:37 +0000 (08:32 -0800)]
chore: run pnpm dedupe (#15134)

2 weeks agofix: support instrumentation for `vite preview` (#15105)
Alois Klink [Tue, 6 Jan 2026 20:21:25 +0000 (05:21 +0900)]
fix: support instrumentation for `vite preview` (#15105)

The `instrumentation.server.js` file is now imported when running
`vite preview`. Unfortunately, since it's not the first thing that's
imported (all of Vite's depedencies are imported first), some
instrumentation that rely on monkey-patching imports might not work
properly, but at least we're importing it before the server code.
However, this matches the existing behaviour of `vite dev`.

See: https://github.com/sveltejs/kit/blob/51214794b40b2fc533b06cb8344e84e661f90be0/packages/kit/src/exports/vite/dev/index.js#L507-L513

2 weeks agofix: add `has(name, value)` overload for URLSearchParams (#15076)
Rory Duncan [Tue, 6 Jan 2026 03:13:33 +0000 (19:13 -0800)]
fix: add `has(name, value)` overload for URLSearchParams (#15076)

* Add support for SearchParams.has(name, value) overload

* generate changeset

* Update .changeset/sharp-tires-work.md

---------

Co-authored-by: Elliott Johnson <hello@ell.iott.dev>
Co-authored-by: Elliott Johnson <elliott.johnson@vercel.com>
2 weeks agochore: upgrade to pnpm 10.27.0 (#15128)
Ben McCann [Mon, 5 Jan 2026 23:26:45 +0000 (15:26 -0800)]
chore: upgrade to pnpm 10.27.0 (#15128)

2 weeks agoVersion Packages (#15091)
github-actions[bot] [Mon, 5 Jan 2026 16:24:09 +0000 (16:24 +0000)]
Version Packages (#15091)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 weeks agofix: use hasOwn check when deep-setting object properties (#15127)
Rich Harris [Mon, 5 Jan 2026 16:21:43 +0000 (16:21 +0000)]
fix: use hasOwn check when deep-setting object properties (#15127)

2 weeks agodocs: remove `$lib` path customization (#14812)
Hyunbin Seo [Mon, 5 Jan 2026 10:21:55 +0000 (19:21 +0900)]
docs: remove `$lib` path customization (#14812)

* docs: remove `$lib` path customization

Updated documentation for $lib import alias in SvelteKit.

* Update documentation/docs/98-reference/26-$lib.md

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
* chore: remove deprecated comment

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
3 weeks agofix: avoid overridden Vite config warning with Vitest 4 (#15121)
Copilot [Sat, 3 Jan 2026 15:37:38 +0000 (07:37 -0800)]
fix: avoid overridden Vite config warning with Vitest 4 (#15121)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: teemingc <54401897+teemingc@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
3 weeks agochore(deps): update vitest monorepo to v4 (major) (#14789)
renovate[bot] [Sat, 3 Jan 2026 15:28:28 +0000 (07:28 -0800)]
chore(deps): update vitest monorepo to v4 (major) (#14789)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
3 weeks agofeat: expose `waitUntil` also for serverless runtime & add docs (#14725)
Leon Scherer [Thu, 1 Jan 2026 19:01:50 +0000 (20:01 +0100)]
feat: expose `waitUntil` also for serverless runtime & add docs (#14725)

* improvement: expose `waitUntil` also for serverless runtime & add documentation

* changeset

* revert previous changes and add docs

* revert previous changes

* change changeset

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
4 weeks agochore: upgrade js-yaml (#15096)
Ben McCann [Thu, 25 Dec 2025 01:05:11 +0000 (17:05 -0800)]
chore: upgrade js-yaml (#15096)

4 weeks agochore: upgrade jws (#15095)
Ben McCann [Thu, 25 Dec 2025 00:42:05 +0000 (16:42 -0800)]
chore: upgrade jws (#15095)

4 weeks agochore: upgrade Playwright (#15089)
Elliott Johnson [Wed, 24 Dec 2025 19:17:22 +0000 (12:17 -0700)]
chore: upgrade Playwright (#15089)

* chore: Upgrade Playwright

* checkpoint, not sure what else is going wrong

* i have never been so happy to see a test failure

* fix lockfile maybe

* fix: remove playwright

* more flaky tests

* fix clicknav

* fix another flaky test

* improve further

* another clicknav usage

4 weeks agodocs: update description for `static` folder (#15087)
Scott Wu [Wed, 24 Dec 2025 13:44:16 +0000 (21:44 +0800)]
docs: update description for `static` folder (#15087)

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
4 weeks agodocs: clarify remote function import (#15082)
Samuel Plumppu [Wed, 24 Dec 2025 00:20:41 +0000 (01:20 +0100)]
docs: clarify remote function import (#15082)

Tiny detail to make it super clear the import is for remote functions.

4 weeks agochore(deps): update pnpm to v10.26.2 (#15072)
renovate[bot] [Wed, 24 Dec 2025 00:19:09 +0000 (16:19 -0800)]
chore(deps): update pnpm to v10.26.2 (#15072)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
4 weeks agodocs: update Wrangler command for Cloudflare Workers testing (#15077)
Tee Ming [Wed, 24 Dec 2025 00:18:38 +0000 (08:18 +0800)]
docs: update Wrangler command for Cloudflare Workers testing (#15077)

4 weeks agofix: make typescript an optional peer dependency (#15074)
Ondrej Čierny [Wed, 24 Dec 2025 00:17:59 +0000 (01:17 +0100)]
fix: make typescript an optional peer dependency (#15074)

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
5 weeks agochore(deps): update pnpm to v10.26.0 (#15065)
renovate[bot] [Tue, 16 Dec 2025 19:29:09 +0000 (11:29 -0800)]
chore(deps): update pnpm to v10.26.0 (#15065)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
6 weeks agochore(deps): update actions/upload-artifact action to v6 (#15057)
renovate[bot] [Sat, 13 Dec 2025 15:45:03 +0000 (07:45 -0800)]
chore(deps): update actions/upload-artifact action to v6 (#15057)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
6 weeks agochore: Test remote functions with full-async setup (#15033)
Elliott Johnson [Sat, 13 Dec 2025 00:09:39 +0000 (17:09 -0700)]
chore: Test remote functions with full-async setup (#15033)

* checkpoint

* donesies

* fix: lockfile

* update svelte-check

* add .env for test app

* fix flaky test

* polyfill withResolvers

6 weeks agochore(deps): update pnpm to v10.25.0 (#15043)
renovate[bot] [Tue, 9 Dec 2025 18:07:53 +0000 (10:07 -0800)]
chore(deps): update pnpm to v10.25.0 (#15043)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
6 weeks agoVersion Packages (#15015)
github-actions[bot] [Mon, 8 Dec 2025 22:32:10 +0000 (14:32 -0800)]
Version Packages (#15015)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
6 weeks agodocs: update invalidateAll documentation to mention query functions (#15042)
Matt DeKok [Mon, 8 Dec 2025 19:16:01 +0000 (13:16 -0600)]
docs: update invalidateAll documentation to mention query functions (#15042)

7 weeks agodocs: update sveltesociety links
Ben McCann [Sun, 7 Dec 2025 03:51:07 +0000 (19:51 -0800)]
docs: update sveltesociety links

7 weeks agofix: Correctly handle shared memory for DataView initialization in deserialize_binary...
ottomated [Fri, 5 Dec 2025 00:11:20 +0000 (16:11 -0800)]
fix: Correctly handle shared memory for DataView initialization in deserialize_binary_form (#15028)

* Fix DataView initialization in form-utils.js:deserialize_binary_form

When you call get_buffer, it returns a Uint8Array. In many JavaScript runtime environments (like Cloudflare Workers, Node.js, or modern browsers), streams often allocate chunks from a shared memory pool (slab allocation). This means the Uint8Array you get back is a view into a much larger ArrayBuffer, and it often has a non-zero byteOffset.

When you pass header.buffer to DataView, it creates a view starting at the very beginning (byte 0) of the underlying memory allocation, completely ignoring the byteOffset of your header array.

Because the header data usually lives at a specific offset inside that buffer, your code reads 4 bytes from the wrong location (the start of the memory slab), interprets that garbage data as a 32-bit integer, and gets 16793089 (in my test case). It then tries to read ~16MB of data, runs out of stream, and throws "data too short".

You must pass the byteOffset and byteLength to the DataView constructor to ensure it looks at the correct slice of memory.

I have confirmed on my code that this fix resolves my problem.

* Remove unnecessary comment

* add test & changeset

---------

Co-authored-by: Marat Vyshegorodtsev <github@v.marat.to>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
7 weeks agotest(kit): add regression test for the posixied instrumentation file (#15023)
Basti Ortiz [Thu, 4 Dec 2025 21:22:48 +0000 (05:22 +0800)]
test(kit): add regression test for the posixied instrumentation file (#15023)

* test(kit): add regression test for the posixied instrumentation file

Closes #15022.

* test(kit): prefer paths relative to `__dirname`

7 weeks agofix(kit): ensure instrumentation file is posixified on Windows (#14993)
Basti Ortiz [Wed, 3 Dec 2025 19:55:30 +0000 (03:55 +0800)]
fix(kit): ensure instrumentation file is posixified on Windows (#14993)

* fix: ensure correct instrumentation file name on Windows

* chore: add changeset file

* Apply suggestion from @teemingc

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
7 weeks agochore: More flaky test fixes (#15020)
Elliott Johnson [Wed, 3 Dec 2025 18:13:24 +0000 (11:13 -0700)]
chore: More flaky test fixes (#15020)

* fix fast-running test

* fix: form remote function test contention

7 weeks agodocs: update outdated notice (#15001)
Eli [Wed, 3 Dec 2025 04:45:41 +0000 (22:45 -0600)]
docs: update outdated notice (#15001)

7 weeks agochore: Use formatter for robustness (#15006)
Elliott Johnson [Wed, 3 Dec 2025 04:43:09 +0000 (21:43 -0700)]
chore: Use formatter for robustness (#15006)

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
7 weeks agofix: Stop re-loading already-loaded CSS during server-side route resolution (#15014)
Elliott Johnson [Tue, 2 Dec 2025 20:57:46 +0000 (13:57 -0700)]
fix: Stop re-loading already-loaded CSS during server-side route resolution (#15014)

* fix: Stop re-loading already-loaded CSS during server-side route resolution

* remove comments

* guarantee we only query the DOM once

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
7 weeks agoVersion Packages (#15007)
github-actions[bot] [Tue, 2 Dec 2025 20:43:56 +0000 (15:43 -0500)]
Version Packages (#15007)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
7 weeks agofix: suppress `state_referenced_locally` warnings in `.svelte-kit/generated/root...
Conduitry [Tue, 2 Dec 2025 20:11:56 +0000 (15:11 -0500)]
fix: suppress `state_referenced_locally` warnings in `.svelte-kit/generated/root.svelte` (#15013)

* add svelte-ignore state_referenced_locally comments

* add changeset

7 weeks agochore: upgrade `node-forge` and `glob` (#15012)
Ben McCann [Mon, 1 Dec 2025 17:53:03 +0000 (09:53 -0800)]
chore: upgrade `node-forge` and `glob` (#15012)

8 weeks agochore(deps): update dependency valibot to v1.2.0 [security] (#14992)
renovate[bot] [Sun, 30 Nov 2025 14:39:32 +0000 (06:39 -0800)]
chore(deps): update dependency valibot to v1.2.0 [security] (#14992)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
8 weeks agochore(deps): update pnpm to v10.24.0 (#14998)
renovate[bot] [Fri, 28 Nov 2025 21:12:20 +0000 (14:12 -0700)]
chore(deps): update pnpm to v10.24.0 (#14998)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
8 weeks agoBugfix: Fix #15004 by applying MDN recommended fix when proxying Response in page_loa...
Drew Silcock [Fri, 28 Nov 2025 21:06:17 +0000 (21:06 +0000)]
Bugfix: Fix #15004 by applying MDN recommended fix when proxying Response in page_load (#15005)

* Apply MDN recommended fix when proxying Response to avoid TypeError.

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.

* Use more comprehensive Response proxy fix that makes linter happy.

By using Object.defineProperty(), we make the function identical to
introspection. Also, the linter didn't like the `...args`.

* Add page to test undici Response TypeError.

* Add generated changeset file.

* Apply suggestion from @elliott-with-the-longest-name-on-github

---------

Co-authored-by: Elliott Johnson <hello@ell.iott.dev>
8 weeks agoVersion Packages (#14985)
github-actions[bot] [Wed, 26 Nov 2025 18:44:03 +0000 (11:44 -0700)]
Version Packages (#14985)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8 weeks agochore: remove duplicate caching layer (#14988)
Ben McCann [Wed, 26 Nov 2025 13:41:44 +0000 (05:41 -0800)]
chore: remove duplicate caching layer (#14988)

2 months agochore(deps): update dependency chokidar to v5 (#14986)
renovate[bot] [Wed, 26 Nov 2025 02:59:07 +0000 (18:59 -0800)]
chore(deps): update dependency chokidar to v5 (#14986)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 months agofeat: Add Node 24 support to Vercel adapter (#14982)
Elliott Johnson [Tue, 25 Nov 2025 19:58:40 +0000 (12:58 -0700)]
feat: Add Node 24 support to Vercel adapter (#14982)

* feat: Add Node 24 support to Vercel adapter

* changeset

* tweak error message

2 months agoVersion Packages (#14977)
github-actions[bot] [Mon, 24 Nov 2025 19:33:34 +0000 (11:33 -0800)]
Version Packages (#14977)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agofix: update vite-imagetools for caching fixes to avoid crashes (#14976)
Ben McCann [Mon, 24 Nov 2025 18:32:54 +0000 (10:32 -0800)]
fix: update vite-imagetools for caching fixes to avoid crashes (#14976)

2 months agoVersion Packages (#14959)
github-actions[bot] [Thu, 20 Nov 2025 22:17:35 +0000 (17:17 -0500)]
Version Packages (#14959)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agofeat: Streaming file uploads (#14775)
ottomated [Thu, 20 Nov 2025 22:09:34 +0000 (14:09 -0800)]
feat: Streaming file uploads (#14775)

* start

* pass in form_dat

* serialization

* start deserializer

* finished? deserializer

* upload progress via XHR

* simplify file offsets, sort small files first

* don't cache stream

* fix scoped ids

* tests

* re-add comment

* move location & pathname back to headers

* skip test on node 18

* changeset

* polyfill file for node 18 test

* fix refreshes

* optimize file offset table

* typo

* add lazyfile tests

* avoid double-sending form keys

* remove xhr for next PR

* fix requests stalling if files aren't read

* Update new-rivers-run.md

* encode text before determining length

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 months agoVersion Packages (#14958)
github-actions[bot] [Thu, 20 Nov 2025 21:43:52 +0000 (16:43 -0500)]
Version Packages (#14958)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agobreaking: remove `submitter` option from experimental form `validate(…)` method,...
Rich Harris [Thu, 20 Nov 2025 21:32:33 +0000 (16:32 -0500)]
breaking: remove `submitter` option from experimental form `validate(…)` method, always provide default submitter (#14762)

* breaking: remove `submitter` option from experimental form `validate()` method, always provide default submitter

* fix

* remove log

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
2 months agobreaking: `invalid` now must be imported from `@sveltejs/kit` (#14768)
Simon H [Thu, 20 Nov 2025 21:31:29 +0000 (22:31 +0100)]
breaking: `invalid` now must be imported from `@sveltejs/kit` (#14768)

* breaking: `invalid` now must be imported from `@sveltejs/kit`

TypeScript kinda forced our hand here - due to limitations of control flow analysis it does not detect the `never` return type for anything else than functions that are used directly (i.e. passing a function as a parameter doesn't work unless you explicitly type it); see https://github.com/microsoft/TypeScript/issues/36753 for more info.

This therefore changes `invalid` to be a function that you import just like `redirect` or `error`. A nice benefit of this is that you'll no longer have to use the second parameter passed to remote form functions to construct the list of issues in case you want to create an issue for the whole form and not just a specific field.

Closes #14745

* docs

* fix test

* Apply suggestions from code review

* Update packages/kit/src/runtime/app/server/remote/form.js

* Update documentation/docs/20-core-concepts/60-remote-functions.md

* prettier

* regenerate

* fix

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 months agoVersion Packages (#14957)
github-actions[bot] [Thu, 20 Nov 2025 20:51:12 +0000 (15:51 -0500)]
Version Packages (#14957)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agochore(deps): update dependency vite-imagetools to v9 (#14608)
renovate[bot] [Thu, 20 Nov 2025 20:42:00 +0000 (12:42 -0800)]
chore(deps): update dependency vite-imagetools to v9 (#14608)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 months agoVersion Packages (#14954)
github-actions[bot] [Thu, 20 Nov 2025 20:27:38 +0000 (15:27 -0500)]
Version Packages (#14954)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agofix: allow hosting hash apps from other html files (#14825)
Eli [Thu, 20 Nov 2025 19:48:30 +0000 (13:48 -0600)]
fix: allow hosting hash apps from other html files (#14825)

Fixes #14824.

Simplify by just checking if we're still on the current pathname

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months agofix: allow access to root-level issues in schema-less forms (#14893)
Matt DeKok [Thu, 20 Nov 2025 19:22:11 +0000 (13:22 -0600)]
fix: allow access to root-level issues in schema-less forms (#14893)

* fix: allow access to root-level issues in schema-less forms

* feat: use IsAny type to account for `f7` test

* include `allIssues()`

* simplify type

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update types

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months agofix: rewrite .ts to .js when rewriteRelativeImportExtensions enabled (svelte-package...
jyc.dev [Thu, 20 Nov 2025 19:21:26 +0000 (20:21 +0100)]
fix: rewrite .ts to .js when rewriteRelativeImportExtensions enabled (svelte-package) (#14936)

* add a failing test

* js all the way

* implem

* add changeset

* reuse import regex, align logic with rewriteRelativeImportExtensions setting

* perf: cache tsconfig lookup

* add rewriteRelativeImportExtensions

* consolidate tests

* tweak

* Update .changeset/fresh-pants-camp.md

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2 months agochore: remove unused entry from pnpm-workspace.yaml (#14955)
Ben McCann [Thu, 20 Nov 2025 19:12:53 +0000 (11:12 -0800)]
chore: remove unused entry from pnpm-workspace.yaml (#14955)

2 months agofix: append `server-timing` header value if key exist when using `setHeaders` to...
Tobias Lundin [Thu, 20 Nov 2025 19:12:14 +0000 (20:12 +0100)]
fix: append `server-timing` header value if key exist when using `setHeaders` to avoid exception (#14700)

Closes #14681

2 months agochore(deps): upgrade to `@vercel/nft` version 1.0.0 to reduce dependencies (#14950)
Ben McCann [Thu, 20 Nov 2025 17:32:19 +0000 (09:32 -0800)]
chore(deps): upgrade to `@vercel/nft` version 1.0.0 to reduce dependencies (#14950)

2 months agochore(deps): update actions/checkout action to v6 (#14952)
renovate[bot] [Thu, 20 Nov 2025 17:04:26 +0000 (09:04 -0800)]
chore(deps): update actions/checkout action to v6 (#14952)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 months agochore(deps): update pnpm to v10.23.0 (#14951)
renovate[bot] [Thu, 20 Nov 2025 17:01:33 +0000 (09:01 -0800)]
chore(deps): update pnpm to v10.23.0 (#14951)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 months agoVersion Packages (#14948)
github-actions[bot] [Thu, 20 Nov 2025 16:59:04 +0000 (08:59 -0800)]
Version Packages (#14948)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agofix: clear issues upon passing validation (#14683)
Simon H [Thu, 20 Nov 2025 13:17:56 +0000 (14:17 +0100)]
fix: clear issues upon passing validation (#14683)

Fixes #14646

2 months agofix: resolve aliases before transpiling for `rewriteRelativeImportExtensions` (#14673)
Ryan Atkinson [Thu, 20 Nov 2025 12:15:05 +0000 (07:15 -0500)]
fix: resolve aliases before transpiling for `rewriteRelativeImportExtensions` (#14673)

This swaps the order of TypeScript transpilation and alias resolution in `@sveltejs/package` to fix #13044. TypeScript sees aliases like `$lib/` as bare imports and does not apply `rewriteRelativeImportExtensions`, and resolving aliases first seems like the correct fix. For more see https://github.com/microsoft/TypeScript/issues/61991#issuecomment-3046150782

2 months agofix: correct query `.set` and `.refresh` behavior in commands (#14877)
Philip Breuer [Thu, 20 Nov 2025 11:17:17 +0000 (12:17 +0100)]
fix: correct query `.set` and `.refresh` behavior in commands (#14877)

Closes #14832
Closes #14602

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2 months agofix: Prevent type errors when optional `@opentelemetry/api` dependency isn't installe...
Simon H [Thu, 20 Nov 2025 10:27:13 +0000 (11:27 +0100)]
fix: Prevent type errors when optional `@opentelemetry/api` dependency isn't installed (#14949)

* fix: Prevent type errors when optional `@opentelemetry/api` dependency isn't installed

Fixes #14774
Better alternative to #14848

* Apply suggestion from @teemingc

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
2 months agoFix inaccurate InputElementProps type for text/select fields (#14908)
Shachar Zidon [Thu, 20 Nov 2025 09:23:32 +0000 (11:23 +0200)]
Fix inaccurate InputElementProps type for text/select fields (#14908)

* Fix inaccurate InputElementProps type for text/select fields

* add another case for the multiple attribute

* format

* Merge branch 'main' into patch-2

* generate types

* Merge branch 'patch-2' of https://github.com/TheOnlyTails/kit into patch-2

* added changeset

* Merge branch 'main' into patch-2

2 months agofix: treat client/universal hooks as entrypoints for illegal server import detection...
Rich Harris [Thu, 20 Nov 2025 09:06:49 +0000 (04:06 -0500)]
fix: treat client/universal hooks as entrypoints for illegal server import detection (#14876)

* fix: treat client/universal hooks as entrypoints for illegal server import detection

* remove test file

2 months agofix: preserve `this` when invoking standard validator (#14943)
Mira Šerý [Thu, 20 Nov 2025 08:53:38 +0000 (09:53 +0100)]
fix: preserve `this` when invoking standard validator (#14943)

The validate function call currently loses the dynamic this binding. Thus, if a standard validator's validate function is a class method that makes use of this, it will be undefined, as is the case when using TypeBox's standard schema adapter.

2 months agofix: don't use fork of unrelated route (#14947)
Simon H [Thu, 20 Nov 2025 08:44:44 +0000 (09:44 +0100)]
fix: don't use fork of unrelated route (#14947)

We haven't been checking if the fork still matches the route we want to load at the end of the navigation. At that point it could've changed, or it could never have matched (as in the related issue). Fixes #14946

2 months agodocs: fix typo (#14933)
Adam Ward [Mon, 17 Nov 2025 13:11:34 +0000 (05:11 -0800)]
docs: fix typo (#14933)

2 months agoVersion Packages (#14867)
github-actions[bot] [Fri, 14 Nov 2025 09:50:24 +0000 (10:50 +0100)]
Version Packages (#14867)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agodocs: fix sitemap namespace (#14918)
Yanick J.S. [Thu, 13 Nov 2025 15:50:49 +0000 (10:50 -0500)]
docs: fix sitemap namespace (#14918)

2 months agochore(deps): update pnpm to v10.22.0 (#14920)
renovate[bot] [Thu, 13 Nov 2025 15:45:22 +0000 (07:45 -0800)]
chore(deps): update pnpm to v10.22.0 (#14920)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 months agochore(deps): update pnpm to v10.21.0 (#14913)
renovate[bot] [Mon, 10 Nov 2025 14:40:59 +0000 (06:40 -0800)]
chore(deps): update pnpm to v10.21.0 (#14913)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 months agodocs: update `10-routing.md` to use Svelte 5 syntax (#14910)
Garik Asplund [Sun, 9 Nov 2025 16:23:33 +0000 (08:23 -0800)]
docs: update `10-routing.md` to use Svelte 5 syntax (#14910)

2 months agochore(deps): update dependency @opentelemetry/sdk-node to ^0.208.0 (#14897)
renovate[bot] [Fri, 7 Nov 2025 12:15:38 +0000 (04:15 -0800)]
chore(deps): update dependency @opentelemetry/sdk-node to ^0.208.0 (#14897)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 months agofix: warn rather than crash when non-enhanced image dynamically passed to `enhanced...
Ben McCann [Fri, 7 Nov 2025 12:14:50 +0000 (04:14 -0800)]
fix: warn rather than crash when non-enhanced image dynamically passed to `enhanced:img` (#14845)

2 months agochore: add Node.js 24 to CI workflow for Chromium tests (#14899)
tkhs [Fri, 7 Nov 2025 11:30:53 +0000 (20:30 +0900)]
chore: add Node.js 24 to CI workflow for Chromium tests (#14899)

2 months agofix: wait an extra microtask in dev before calling `$$_init_$$` (#14799)
Paolo Ricciuti [Wed, 5 Nov 2025 10:35:36 +0000 (11:35 +0100)]
fix: wait an extra microtask in dev before calling `$$_init_$$` (#14799)

2 months agodocs: correct usage of "e.g." (#14873)
ShinonomeNoAlice [Sat, 1 Nov 2025 21:40:45 +0000 (04:40 +0700)]
docs: correct usage of "e.g." (#14873)

* docs: correct usage of "e.g."

* Update documentation/docs/25-build-and-deploy/55-single-page-apps.md

Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com>
* Update documentation/docs/25-build-and-deploy/55-single-page-apps.md

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com>
2 months agofix: discard preload fork before creating a new one (#14865)
Rich Harris [Thu, 30 Oct 2025 22:50:02 +0000 (23:50 +0100)]
fix: discard preload fork before creating a new one (#14865)

* fix: discard preload fork before creating a new one

* tidy up

2 months agofix: delete `RemoteFormAllIssue`, add `path` to `RemoteFormIssue` (#14864)
Rich Harris [Thu, 30 Oct 2025 22:48:52 +0000 (23:48 +0100)]
fix: delete `RemoteFormAllIssue`, add `path` to `RemoteFormIssue` (#14864)

* fix: delete `RemoteFormAllIssue`, add `path` to `RemoteFormIssue`

* regenerate

2 months agoVersion Packages (#14861)
github-actions[bot] [Thu, 30 Oct 2025 21:22:03 +0000 (22:22 +0100)]
Version Packages (#14861)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agodocs: add comma (#14857)
Evorp [Thu, 30 Oct 2025 17:11:42 +0000 (10:11 -0700)]
docs: add comma (#14857)

2 months agofix: adjust query's promise implementation to properly allow chaining (#14859)
Simon H [Thu, 30 Oct 2025 17:11:09 +0000 (18:11 +0100)]
fix: adjust query's promise implementation to properly allow chaining (#14859)

Fixes #14486

2 months agofix: make prerender cache work, including in dev (#14860)
Rich Harris [Thu, 30 Oct 2025 17:09:49 +0000 (18:09 +0100)]
fix: make prerender cache work, including in dev (#14860)

* fix: make prerender cache work

* populate cache on startup

* lint

2 months agodocs: fix formatting in project structure documentation (#14852)
The Surgeon [Thu, 30 Oct 2025 14:43:18 +0000 (10:43 -0400)]
docs: fix formatting in project structure documentation (#14852)

2 months agofix (#14854)
Tee Ming [Thu, 30 Oct 2025 04:19:30 +0000 (12:19 +0800)]
fix (#14854)

2 months agochore(deps): update pnpm to v10.20.0 (#14840)
renovate[bot] [Wed, 29 Oct 2025 16:33:42 +0000 (09:33 -0700)]
chore(deps): update pnpm to v10.20.0 (#14840)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 months agochore: add test for SVGs
Ben McCann [Wed, 29 Oct 2025 13:16:52 +0000 (06:16 -0700)]
chore: add test for SVGs

2 months agoVersion Packages (#14839)
github-actions[bot] [Wed, 29 Oct 2025 07:13:24 +0000 (08:13 +0100)]
Version Packages (#14839)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 months agochore: enable commented out test
Ben McCann [Wed, 29 Oct 2025 03:26:11 +0000 (20:26 -0700)]
chore: enable commented out test

2 months agofix: expose `issue.path` in `.allIssues()` for field containers (#14784)
Matt DeKok [Tue, 28 Oct 2025 22:01:21 +0000 (17:01 -0500)]
fix: expose `issue.path` in `.allIssues()` for field containers (#14784)

fixes #14688

Changes .allIssues() from { message: string } to the following to indicate where in the field container the issue occurred.