Tee Ming
Tee Ming
Name suggestion: `any` - matches any request method not already exported.
> Why not just support this? > > ```js > /** @type {import('@sveltejs/kit').[Handle](https://kit.svelte.dev/docs/types#public-types-handle)} */ > export async function handle({ event, resolve }) { > if (event.url.pathname.startsWith('/custom')) { > return new...
The export `all` handler has been renamed to `fallback`.
> Right, no my suggestion was to allow `+server.js` to export a `handler` hook that is only hit within that route scope. It can be used like an `all` OR...
We could set the `accept` header to negotiate content while prerendering. Using the metadata to know which routes are endpoints / pages and send a prerender request them with the...
> `native_fetch` still exists/is used in a few other places - is that deliberate? I think it's still required for our own patches to `window.fetch` and when it's used by...
Huh. That's weird. It's suppose to be valid based on the code here: https://github.com/sveltejs/kit/blob/f8cf1fec360961724fb00d3b47513a4058cfd411/packages/kit/src/utils/exports.js#L72 and it's tested here https://github.com/sveltejs/kit/blob/f8cf1fec360961724fb00d3b47513a4058cfd411/packages/kit/src/utils/exports.spec.js#L114-L118
Not sure if we need to update language tools to allow `actions` in layout or update kit to disallow `actions` in layout. https://github.com/sveltejs/language-tools/blob/98b925617bbdbf6e9e51a1d7e229d0f27c2337cc/packages/typescript-plugin/src/language-service/sveltekit.ts#L280-L281
> Safari always emit a popstate event on page load This doesn't happen for me on MacOS Safari 17.
I think we'll need to wait for the typescript-eslint parser to support flat configs before we can go ahead with this. More info here https://github.com/typescript-eslint/typescript-eslint/issues/7694#issuecomment-1854655034