Skip to content

chore: remove dead code and unused dependencies - #16840

Merged
teemingc merged 8 commits into
sveltejs:version-3from
filiabel:chore/fallow-clean-up
Aug 18, 2026
Merged

chore: remove dead code and unused dependencies#16840
teemingc merged 8 commits into
sveltejs:version-3from
filiabel:chore/fallow-clean-up

Conversation

@filiabel

Copy link
Copy Markdown
Contributor

I let Claude had a go with Fallow to find unused code and dependencies. Feel free to close.


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Edits

  • Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.

filiabel and others added 5 commits August 18, 2026 17:42
`sveltekit_server` was removed as an unused module ID in sveltejs#16465, then
reintroduced by sveltejs#16450 without a consumer. `noop_tracer` has been unused
since it was added in sveltejs#13899, and `remove_optional_params` since sveltejs#9571.

Removing `remove_optional_params` also orphans `optional_param_regex`, and
removing `noop_tracer` orphans the `Tracer` type import; both go with them.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`dropcss` was only ever used by the AMP docs example. sveltejs#16657 removed
`@sveltejs/amp` and those docs, but left the catalog entry behind, and
carried the ambient module declaration over unchanged when it renamed the
`amp` test app to `no-csr`. Nothing imports it, and it was never in any
package.json, so the declaration could not have resolved anyway.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Added by sveltejs#14509 when everything moved to catalog dependencies, but no
workspace ever declared it. The only other mention in the repo is prose
linking to publint.dev in the FAQ.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`sirv` is declared by adapter-static but never imported; its test apps run
their preview servers off the `sirv` binary from `sirv-cli`, which they
declare themselves. `valibot` is declared by the basics test app and the
basic playground but used by neither.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The app uses it for an inline type import in a remote-function route but
never declared it, so it resolved only through hoisting.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 18, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 63433a2:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/63433a23fe0f7a738ad42d5b74ce70ac69d49427

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

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 63433a2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@teemingc teemingc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Really appreciate this. I think we talked about wanting to add some knip or fallow CI check at some point but just never looked into how to get it set up. This kind of shows how effective it was

I removed the changeset because there's no real user facing change from the deleted dead code and restored the unused dependency in the playground (we may use it when testing out stuff there but those aren't committed). Other than that, it's a good PR!

@teemingc
teemingc merged commit 48eb9d7 into sveltejs:version-3 Aug 18, 2026
23 of 24 checks passed
@filiabel

Copy link
Copy Markdown
Contributor Author

@teemingc I opened up an issue for v3 support in Fallow which maintainer now is handling.
Feel free to follow along if interesting!

fallow-rs/fallow#2488

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants