chore: flatten SSRManifest - #16878
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/04fd29581795ce00bacee296171c9025f17bfffdOpen in |
|
| Name | Type |
|---|---|
| @sveltejs/kit | Major |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
|
Once this lands I'm planning a follow-up that drops the |
096aec9 to
0c94d41
Compare
0c94d41 to
17cb1bb
Compare
17cb1bb to
a01dc0d
Compare
a01dc0d to
6eeee75
Compare
| assets: Set<string>; | ||
| mimeTypes: Record<string, string>; | ||
| /** Map of file extensions to MIME types */ | ||
| mime_types: Record<string, string>; |
There was a problem hiding this comment.
This PR has the unintended side effect of shipping all our internal types in the public type declaration. Is there any way we can avoid this?
There was a problem hiding this comment.
Marking SSRManifest as @internal means we're shipping invalid types, we could mark all of its fields as internal instead?
There was a problem hiding this comment.
I opened #16951 which should allow us to avoid exporting SSRManifest completely
790c9f9 to
f98b501
Compare
3180ea8 to
a8f9939
Compare
a8f9939 to
7091d36
Compare
7091d36 to
19ed527
Compare
Building on top of #16878 Removing the constructor lets us remove the `SSRManifest` type completely from the public types. We still keep it for the internal `Server` class though
|
I investigated this failed test run and found that The test continued after browser traversal as soon as URL and unchanged scroll/focus values matched, before SvelteKit's asynchronous popstate handler had accepted the new history index. Under parallel-worker contention, a later navigation could reuse a stale index and restore scroll y=700 rather than y=400. The verified test-only fix waits until rendered $app/state reflects the traversed popstate. I opened #16954 with a proposed fix. |
Now that #16876 makes
SSRManifestan internal type, we can remove the_property and rename everything to snake_case. No changeset because no user impact.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.