forked from sveltejs/kit
-
Notifications
You must be signed in to change notification settings - Fork 1
[pull] main from sveltejs:main #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pull
wants to merge
1,627
commits into
homebase-garage:main
Choose a base branch
from
sveltejs:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… or link (#14307) * feat: export hasUAVisualTransition of PopStateEvent * chore: add changeset * chore: fix lint * fix: run generate types * fix: export event rather than hasUAVisualTransition * fix: fixed typo * fix: split types * fea: add MouseEvent implementation * chore: update changeset * MouseEvent -> PointerEvent, make existence of `event` conditional on `type` being popstate or link * include submit event for form navigations * fix * update changeset * add a test * fix --------- Co-authored-by: Rich Harris <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…results in a redirect (#14424) * respect replace_state on external navigation where applicable * changeset * added tests * fixed client navigation * prettier * changeset * take out trash * take out trash * take out trash * Apply suggestion from @eltigerchino * changeset * fix typo * Apply suggestion from @eltigerchino * Update .changeset/dirty-rats-divide.md * Delete packages/kit/test/apps/basics/src/routes/navigation/nonexistent/.gitkeep * add replaceState to invalidate * fix test * move tests to `goto` suite * change tests according to code review suggestions * take out trash * test fix * fix lint * fix typo * typedef * typedef * fix lint * refactor test * Revert "fix lint" This reverts commit 481e1ab. * remove opts from invalidate/All * always set `replaceState` to `true` when a load function throws a redirect while invalidating * call navigate directly and forward other state as well * sort imports like on main * we don't need an `opts` object on `native_navigation` * revert invalidate in tests * revert invalidate/All types * changelog * 20 --------- Co-authored-by: akonstantinov <[email protected]> Co-authored-by: Tee Ming <[email protected]>
* fix: handle `import/export * (as ...)` when resolving aliases #14413 (comment) * while we're here
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ransport` hooks (#14435) closes #14423 --------- Co-authored-by: Simon H <[email protected]>
* add fix * add test * Update .changeset/gold-horses-return.md * fulfil promise after redirect has occurred --------- Co-authored-by: Rich Harris <[email protected]>
…12132) * feat: Add %sveltekit.version% placeholder for template interpolation * docs * changeset * oops * escape --------- Co-authored-by: Rich Harris <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add convert_formdata function * WIP * fix some types * fix test * fix * fix test * missed a spot * simplify a bit * add validation * maybe this? the type stuff is too complicated for me * get rid of dot/array notation, it adds too much complexity * tighten up * fix * fix * oops * revert * sort of working * implement input/issues * make input reactive * enforce 1:1 relationship * fix * lint * WIP * WIP * tidy up * lint * lint * fix * only enforce input parity * use validation output, not input * preflight should return instance * DRY out * implement preflight * WIP validate method * programmatic validation * fix/tidy * generate types * docs * add field(...) method * more docs * oops * fix test * fix docs * Apply suggestions from code review * guard against prototype pollution * doc tweaks, fixes * add valibot to playground * changesets * tell people about the breaking change * remind ourselves to remove the warning * fix changeset * filter out files * better file handling * widen helper type to also catch unknown/the general type which will all result in infinite recursion type errors * mentiond coercion * only reset after a successful submission * same for buttonProps * typo * redact sensitive info * document underscore * regenerate * rename * regenerate * guard against array prototype pollution --------- Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Simon Holthausen <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix: ensure environment setup is in its own chunk This way you cannot run into initialization order issues where e.g. some remote function uses environment variables before they're set Fixes #14439 * fix test
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
It is currently possible for a chunk to import chunks that import itself. I'm not exactly sure where this occurs or why as I can't reproduce it in a simple repository, but a simple fix is to prevent importing already visited chunks. Helps with #14444 though doesn't fix the underlying issue
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* WIP We need to make the result nonnullable, because else the optional properties make the resulting type `X | undefined` which when turned into an intersection results in the never type. * proper fix * fix arrays * regenerate
…prerender (#14464) fixes #14347 This PR reverts the fix from #14219 which caused the init hook to run even if there's nothing to prerender. Instead of running the init hook early, we just set the env variables when looking for prerendered remote functions. This avoids any errors for missing env variables when evaluating the user's remote function modules. We only run the init hook once we've found things we need to prerender.
Fixes #14460 correcting object pointer handling in deep_set so nested form fields are properly stored in the same object hierarchy.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben McCann <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* checkpoint * donesies * fix: lockfile * update svelte-check * add .env for test app * fix flaky test * polyfill withResolvers
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ben McCann <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Tiny detail to make it super clear the import is for remote functions.
Co-authored-by: Ben McCann <[email protected]>
* 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
* 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 <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tee Ming <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: teemingc <[email protected]> Co-authored-by: Ben McCann <[email protected]>
* 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 <[email protected]> * chore: remove deprecated comment --------- Co-authored-by: Tee Ming <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Add support for SearchParams.has(name, value) overload * generate changeset * Update .changeset/sharp-tires-work.md --------- Co-authored-by: Elliott Johnson <[email protected]> Co-authored-by: Elliott Johnson <[email protected]>
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
* 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 <[email protected]> * changeste * chore: rename `enhancedPreloading` to `forkPreloads` Co-Authored-By: Claude Opus 4.5 <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
…15133) * avoid prettier ignoring files that contain build in their name * fix global ignore ignoring directories with build name * prettier * Update .prettierignore * Update .prettierignore
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
#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 <[email protected]> Co-authored-by: Rich Harris <[email protected]>
* 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Elliott Johnson <[email protected]>
* chore: Add AGENTS.md, symlink copilot instructions * clean up
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )