-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat: Variadic snippets #9988
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
Merged
+461
−182
Merged
feat: Variadic snippets #9988
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
7690371
give this another try
elliott-with-the-longest-name-on-github 14805f9
fix: lint
elliott-with-the-longest-name-on-github 3756ce5
fix: Forgot to save
elliott-with-the-longest-name-on-github 243ba9c
feat: it works boiiii
elliott-with-the-longest-name-on-github cb4daea
look, ok, it did work, i just needed to update the snapshots
elliott-with-the-longest-name-on-github 8382eb0
bruh
elliott-with-the-longest-name-on-github 5bab2db
changeset
elliott-with-the-longest-name-on-github 5beaf36
feat: ok I think the client snippet block finally works
elliott-with-the-longest-name-on-github 33a39bf
feat: current tests pass; I'm sure I'm missing stuff for new things
elliott-with-the-longest-name-on-github c1bb239
fix: snapshot
elliott-with-the-longest-name-on-github 3a726a9
feat: I think non-destructured rest should work now?
elliott-with-the-longest-name-on-github 8555681
chore: duplicated computation
elliott-with-the-longest-name-on-github 6d364aa
feat: Tests (passing and failing
elliott-with-the-longest-name-on-github 3da243f
feat: it's... alive?
elliott-with-the-longest-name-on-github 49893ec
chore: Clean up my messes
elliott-with-the-longest-name-on-github 398bb67
chore: devtime stuff
elliott-with-the-longest-name-on-github bb63c85
fix: fmt
elliott-with-the-longest-name-on-github c0d62c4
chore: see if this fixes repl
elliott-with-the-longest-name-on-github 42e7bf4
chore: make naming more offensive
elliott-with-the-longest-name-on-github 959abf6
Merge branch 'main' into elliott/variadic-snippets
elliott-with-the-longest-name-on-github 83218b1
fix: Don't throw on missing keys, return undefined as it usually would
elliott-with-the-longest-name-on-github 381fd7b
Update packages/svelte/src/compiler/phases/1-parse/state/tag.js
elliott-with-the-longest-name-on-github 36601ef
Update packages/svelte/src/compiler/phases/1-parse/state/tag.js
elliott-with-the-longest-name-on-github c4509b2
Merge remote-tracking branch 'origin' into elliott/variadic-snippets
elliott-with-the-longest-name-on-github cfee435
fix: Hopefully default param values now work
elliott-with-the-longest-name-on-github 7158321
Merge branch 'elliott/variadic-snippets' of github.com:sveltejs/svelt…
elliott-with-the-longest-name-on-github e6ddbba
dumb
elliott-with-the-longest-name-on-github 99ed291
types
elliott-with-the-longest-name-on-github bc917fe
feat: Test it
elliott-with-the-longest-name-on-github 1065145
fix: Turns out javascript parameters are optional
elliott-with-the-longest-name-on-github d7dac4e
feat: The Final Solution
elliott-with-the-longest-name-on-github 79536e4
document function
elliott-with-the-longest-name-on-github 1dc662a
feat: Better bracket matching, unit tests
elliott-with-the-longest-name-on-github 31b78f0
feat: exclude test files from publish
elliott-with-the-longest-name-on-github a7be93c
feat: More unit tests
elliott-with-the-longest-name-on-github eb26b84
feat: Use more efficient parsing for @const
elliott-with-the-longest-name-on-github 486370e
Merge remote-tracking branch 'origin' into elliott/variadic-snippets
elliott-with-the-longest-name-on-github 88b06c7
Update .changeset/curvy-cups-cough.md
elliott-with-the-longest-name-on-github 83973ed
Update packages/svelte/package.json
elliott-with-the-longest-name-on-github 55a57b4
Update packages/svelte/src/compiler/phases/1-parse/utils/bracket.js
elliott-with-the-longest-name-on-github 6e97647
fix: changesets
elliott-with-the-longest-name-on-github 330a3c0
chore: additional comments
elliott-with-the-longest-name-on-github 9a688cc
fix: kill foreach
elliott-with-the-longest-name-on-github 3b6f5b8
fix: foreach again
elliott-with-the-longest-name-on-github 33e5886
Merge remote-tracking branch 'origin' into elliott/variadic-snippets
elliott-with-the-longest-name-on-github 4c5ecd2
feat: Docs
elliott-with-the-longest-name-on-github 82694ac
Revert "fix: kill foreach"
elliott-with-the-longest-name-on-github 11086f3
fix: My own stupidity
elliott-with-the-longest-name-on-github f9ac0cf
fix: style
elliott-with-the-longest-name-on-github 4630670
fix - maybe
elliott-with-the-longest-name-on-github 2584931
Update sites/svelte-5-preview/src/routes/docs/content/01-api/03-snipp…
dummdidumm a6a7a74
Update tag.js
elliott-with-the-longest-name-on-github 7b32431
Update .changeset/curvy-cups-cough.md
elliott-with-the-longest-name-on-github 37b6fd4
chore: Remove rest params
elliott-with-the-longest-name-on-github a802c92
Merge branch 'elliott/variadic-snippets' of github.com:sveltejs/svelt…
elliott-with-the-longest-name-on-github 63b0374
Delete .changeset/eighty-rivers-wash.md
dummdidumm 39d6ed0
fix: Honestly idk why it was broken but it's fixed now
elliott-with-the-longest-name-on-github 304e36c
Merge branch 'elliott/variadic-snippets' of github.com:sveltejs/svelt…
elliott-with-the-longest-name-on-github 348b312
Merge branch 'main' into elliott/variadic-snippets
elliott-with-the-longest-name-on-github d1f4ed9
fix: var name lol
elliott-with-the-longest-name-on-github 979170c
Merge branch 'elliott/variadic-snippets' of github.com:sveltejs/svelt…
elliott-with-the-longest-name-on-github 3f9a246
fix: typegen
elliott-with-the-longest-name-on-github 4c84313
fix: idk
elliott-with-the-longest-name-on-github ab851d5
fix: It looks like a bunch of unformatted shit came in through main??…
elliott-with-the-longest-name-on-github e0104f0
Revert "fix: It looks like a bunch of unformatted shit came in throug…
elliott-with-the-longest-name-on-github 5104475
fix: format again
elliott-with-the-longest-name-on-github 80b52a7
this is getting ridiculous
elliott-with-the-longest-name-on-github 7c8564b
Merge remote-tracking branch 'origin' into elliott/variadic-snippets
elliott-with-the-longest-name-on-github d9803f1
Update tag.js
elliott-with-the-longest-name-on-github f05699d
merge main
Rich-Harris 6f7a21c
Merge branch 'main' into pr/9988
Rich-Harris a74e2c5
fix errors
Rich-Harris 0cd01f4
simplify a bit
Rich-Harris 8a6d7e4
use read_context
Rich-Harris dd5926f
use read_context for const as well
Rich-Harris d34f6ef
remove unused code
Rich-Harris 75576b9
unused import
Rich-Harris 0fb39db
unused export
Rich-Harris 0b015a2
remove spread args. sorry elliott
Rich-Harris 569bc1f
tidy up SnippetBlock interface
Rich-Harris e55d8d1
fix test
Rich-Harris 1390466
simplify
Rich-Harris 9f25d8c
tweak
Rich-Harris d258b82
revert example, so that it matches the surrounding text
Rich-Harris 3198e20
move PropsWithChildren back to public.d.ts
Rich-Harris 0107dc3
update typing docs, so that it flows from previous example
Rich-Harris 069ad1d
temporarily revert const parsing changes, to get prettier working aga…
Rich-Harris 84c6eda
oops
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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': patch | ||
--- | ||
|
||
breaking: snippets can now take multiple arguments, support default parameters. Because of this, the type signature has changed |
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
}, | ||
"files": [ | ||
"src", | ||
"!src/**/*.test.*", | ||
"types", | ||
"compiler.cjs", | ||
"*.d.ts", | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.