Skip to content

fix: make string coercion consistent to toString#17774

Merged
Rich-Harris merged 1 commit intomainfrom
stable-set-text
Feb 22, 2026
Merged

fix: make string coercion consistent to toString#17774
Rich-Harris merged 1 commit intomainfrom
stable-set-text

Conversation

@paoloricciuti
Copy link
Copy Markdown
Member

Closes #17758

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
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.
  • If this PR changes code within packages/svelte/src, add a changeset (npx changeset).

Tests and linting

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 22, 2026

🦋 Changeset detected

Latest commit: 276b5d9

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

@github-actions
Copy link
Copy Markdown
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@17774

@Rich-Harris Rich-Harris merged commit f67d03d into main Feb 22, 2026
19 checks passed
@Rich-Harris Rich-Harris deleted the stable-set-text branch February 22, 2026 13:40
@github-actions github-actions Bot mentioned this pull request Feb 22, 2026
dummdidumm pushed a commit that referenced this pull request Feb 23, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- fix: render `:catch` of `#await` block with correct key
([#17769](#17769))

- chore: pin [email protected]
([#17772](#17772))

- fix: make string coercion consistent to `toString`
([#17774](#17774))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

set_text coerces objects to primitives, not strings

2 participants