chore: add invariant utility
#17929
Pull request
Merged
R
Rich-Harris Mar 13, 2026, 4:38 PMWith this, we can add invariants to the codebase so we can identify problems like 'this batch already has roots scheduled', which indicate a bug somewhere, without a) needing tests for scenarios that are inherently hard to anticipate, or b) cluttering people's prod bundles
Info
Merged at Mar 13, 2026, 4:48 PM
Merged by Rich-Harris
Assignees None
Reviewers None
Labels None
Milestone None
S
svelte-docs-bot[bot] Mar 13, 2026, 4:40 PM G
github-actions[bot] Mar 13, 2026, 4:40 PMpnpm add https://pkg.pr.new/svelte@17929 C
changeset-bot[bot] Mar 13, 2026, 4:44 PM🦋 Changeset detected
Latest commit: 27c9526
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| svelte | Patch |
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
Pull request opened Mar 13, 2026, 4:38 PM
Pull request merged Mar 13, 2026, 4:48 PM
Total +46
Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)