-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d974c4b
commit a27c8e9
Showing
16 changed files
with
5,972 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"svelte-eslint-parser": minor | ||
--- | ||
|
||
feat: support Svelte 5.0.0-next.155. (Add `$state.is` and replace `$effect.active` with `$effect.tracking`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
tests/fixtures/parser/ast/svelte5/docs/runes/01-$state-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<script> | ||
let count = $state(0); | ||
let count = $state(0); | ||
</script> | ||
|
||
<button on:click={() => count++}> | ||
clicks: {count} | ||
<button on:click="{() => count++}"> | ||
clicks: {count} | ||
</button> |
9 changes: 9 additions & 0 deletions
9
tests/fixtures/parser/ast/svelte5/docs/runes/01-$state-is-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script> | ||
let foo = $state({}); | ||
let bar = {}; | ||
foo.bar = bar; | ||
console.log(foo.bar === bar); // false — `foo.bar` is a reactive proxy | ||
console.log($state.is(foo.bar, bar)); // true | ||
</script> |
Oops, something went wrong.