Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make invalid <svelte:element this> a warning instead of an error #11641

Merged
merged 2 commits into from
May 16, 2024

Conversation

Rich-Harris
Copy link
Member

This is an alternative to #11454. I think it's a very bad idea. Fixes #11398.

Copy link

changeset-bot bot commented May 15, 2024

⚠️ No Changeset found

Latest commit: 961c87d

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

@Rich-Harris Rich-Harris changed the title make it a warning instead of an error make invalid <svelte:element this> a warning instead of an error May 15, 2024
@dummdidumm
Copy link
Member

I vote for removing the code around special-casing this-strings like in #11454 but only give a warning.

@Rich-Harris Rich-Harris merged commit ec65fe8 into gh-11398 May 16, 2024
8 checks passed
@Rich-Harris Rich-Harris deleted the gh-11398-warning-instead-of-error branch May 16, 2024 14:17
Rich-Harris added a commit that referenced this pull request May 16, 2024
….">` (#11454)

* breaking: disallow string literal values in `<svelte:element this="...">`

* note breaking change

* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md

Co-authored-by: Jeremiasz Major <jrh.mjr@gmail.com>

* prettier

* make invalid `<svelte:element this>` a warning instead of an error (#11641)

* make it a warning instead of an error

* format

---------

Co-authored-by: Jeremiasz Major <jrh.mjr@gmail.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.

None yet

2 participants