Skip to content

feat: record the size and content hash of client and prerendered files for adapters - #16994

Open
Nic-Polumeyv wants to merge 26 commits into
mainfrom
kit-asset-table
Open

Nic-Polumeyv wants to merge 26 commits into
mainfrom
kit-asset-table

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Kit now exposes the size and content hash of every client and prerendered file as builder.clientFiles and builder.prerenderedFiles, and returns the sizes of the variants builder.compress writes. adapter-node and adapter-bun read those instead of hashing.

These fields are computed on first access, so an adapter that doesn't need this pays nothing.

Stacked on #17109.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 8555779:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/8555779606825cef16422a1178b20abab863b871

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16994

@changeset-bot

changeset-bot Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8555779

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@sveltejs/kit Major
@sveltejs/adapter-node Major
@sveltejs/adapter-bun Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

This comment was marked as resolved.

@svelte-docs-bot

Copy link
Copy Markdown

@Nic-Polumeyv
Nic-Polumeyv removed this pull request from stack #16909 September 15, 2026 00:09
@Nic-Polumeyv
Nic-Polumeyv added this pull request to stack #17110 September 15, 2026 00:09
@Nic-Polumeyv
Nic-Polumeyv removed this pull request from stack #17110 September 17, 2026 19:30
@Nic-Polumeyv
Nic-Polumeyv changed the base branch from compress-once to adapter-node-drop-prebuild September 17, 2026 19:30
@Nic-Polumeyv
Nic-Polumeyv force-pushed the adapter-node-drop-prebuild branch from 23fd551 to e4d272b Compare September 17, 2026 19:32
@Nic-Polumeyv
Nic-Polumeyv added this pull request to stack #17126 September 17, 2026 19:32
@Nic-Polumeyv
Nic-Polumeyv force-pushed the adapter-node-drop-prebuild branch from e4d272b to e39f45e Compare September 18, 2026 22:39
@Nic-Polumeyv
Nic-Polumeyv removed this pull request from stack #17126 September 19, 2026 13:29
Base automatically changed from adapter-node-drop-prebuild to version-3 September 23, 2026 16:56
# Conflicts:
#	documentation/docs/25-build-and-deploy/40-adapter-node.md
#	documentation/docs/60-appendix/35-migrating-to-sveltekit-3.md
#	packages/adapter-node/index.js
#	packages/adapter-node/src/static.js
#	packages/adapter-node/src/static.spec.ts
#	packages/adapter-node/test/apps/basic/test/test.js
#	pnpm-lock.yaml
Base automatically changed from version-3 to main October 1, 2026 16:55
@teemingc teemingc added this to the 4.0 milestone Oct 14, 2026
@teemingc teemingc removed this from the 4.0 milestone Oct 14, 2026
@teemingc

teemingc commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

It's unfortunate we left this one out of the 3.0 release. Is there a way we can still add this without making it a breaking change? I'm afraid of the merge conflicts by the time 4.0 comes around

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants