Skip to content

breaking: rename command.updates to command.with and query.withOverride to query.override#15571

Open
elliott-with-the-longest-name-on-github wants to merge 5 commits intomainfrom
elliott/rename-withoverride-and-updates
Open

breaking: rename command.updates to command.with and query.withOverride to query.override#15571
elliott-with-the-longest-name-on-github wants to merge 5 commits intomainfrom
elliott/rename-withoverride-and-updates

Conversation

@elliott-with-the-longest-name-on-github
Copy link
Copy Markdown
Contributor

(stacked on #15562)

Since command.updates doesn't actually update anymore, its naming doesn't really make sense. This updates the API:

await command().with(
  query.override((n) => n + 1)
);

.with accepts simple () => void "release" callbacks, which makes it somewhat more pluggable than it was before. Additionally, query.override returns a simple callback, meaning you can work with overrides yourself if you have cause to.

@elliott-with-the-longest-name-on-github elliott-with-the-longest-name-on-github changed the title breaking: rename command.updates to command.with and `query.withO… breaking: rename command.updates to command.with and query.withOverride to query.override Mar 19, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 19, 2026

🦋 Changeset detected

Latest commit: f05867e

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

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Minor

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

@svelte-docs-bot
Copy link
Copy Markdown

@elliott-with-the-longest-name-on-github elliott-with-the-longest-name-on-github force-pushed the elliott/rename-withoverride-and-updates branch from 24ebf18 to f05867e Compare March 20, 2026 00:00
Base automatically changed from elliott/rework-overrides to main April 3, 2026 00:10
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.

1 participant