Dominic Gannaway
5bc4033421
fix: treeshake `$inspect.trace` code if unused in modules ( #14774 )
3 weeks ago
github-actions[bot]
69d198eb44
Version Packages ( #14764 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Rich Harris
7c6379a260
fix: bump esrap dependency ( #14765 )
...
* fix: bump esrap
* changeset
* ugh
3 weeks ago
Dominic Gannaway
d0f156c0f9
fix: ensure $inspect.trace code is treeshaken out if unused ( #14770 )
...
* fix: ensure $inspect.trace code is treeshaken out if unused
* Update .changeset/tough-dingos-deliver.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 weeks ago
Dominic Gannaway
8705d44c64
fix: ensure svg namespace for `<a>` elements is correct ( #14756 )
...
* fix: ensure svg namespace persists from parent of if blocks
* better fix
* better fix
* address feedback
3 weeks ago
Rich Harris
bfa0b34663
add self-closing-tags info ( #14758 )
...
* add self-closing-tags info
* regenerate
3 weeks ago
Simon H
88a15cd706
chore: TS fixes cleanup ( #14750 )
...
* chore: TS fixes cleanup
- move a test
- revert seemginly unnecessary code changes
* add another test
3 weeks ago
github-actions[bot]
2bfdd1b436
Version Packages ( #14745 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
Taku Fukada
c79b909458
fix: remove 'implements' from class declaration ( #14749 )
...
* fix: remove implements from class declaration
* add a smoke test
4 weeks ago
Rich Harris
e38975eac9
fix: remove unwanted properties from both replaced and unreplaced nodes ( #14744 )
4 weeks ago
github-actions[bot]
00ff60e8d5
Version Packages ( #14740 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
Rich Harris
c033dae049
fix: bump esrap, prevent malformed AST ( #14742 )
...
* bump esrap, start fixing stuff
* ignore type exports when looking for undefineds
* sanitize stuff
* changeset
* fix
* oops
* try this?
* prettier
4 weeks ago
Rich Harris
36a437c2f9
fix: compare array contents for equality mismatch detections, not the arrays themselves ( #14738 )
4 weeks ago
github-actions[bot]
5529ad241f
Version Packages ( #14735 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
Simon H
3146e93bbb
chore: loose parser improvements ( #14733 )
...
* handle invalid expression inside each key
* handle invalid expression inside each expression
* handle invalid expression inside await block
* handle "in the middle of typing" components with starting lowercase and dot at the end
* changeset
4 weeks ago
Paolo Ricciuti
36d73cad55
fix: correctly highlight first rerun of `$inspect.trace` ( #14734 )
4 weeks ago
github-actions[bot]
e0e999055d
Version Packages ( #14728 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
Dominic Gannaway
699dc6e4f7
fix: improve unowned derived performance ( #14724 )
...
* fix: improve unowned derived performance
* fix: improve unowned derived performance
* changeset
4 weeks ago
github-actions[bot]
bbf38291fc
Version Packages ( #14715 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
Dominic Gannaway
5483495c8d
feat: add $inspect.trace rune ( #14290 )
...
* feat: add $trace rune
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
* lint
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* more tweaks
* lint
* improve label for derived cached
* improve label for derived cached
* lint
* better stacks
* complete redesign
* fixes
* dead code
* dead code
* improve change detection
* rename rune
* lint
* lint
* fix bug
* tweaks
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* todos
* add test + some docs
* changeset
* update messages
* address feedback
* address feedback
* limit to first statement of function
* remove unreachable trace_rune_duplicate error
* tweak message
* remove the expression statement, not the expression
* revert
* make label optional
* relax restriction on label - no longer necessary with new design
* update errors
* newline
* tweak
* add some docs
* fix playground
* fix playground
* tweak message when function runs outside an effect
* unused
* tweak
* handle async functions
* fail on generators
* regenerate, update docs
* better labelling
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 weeks ago
github-actions[bot]
64a32cec38
Version Packages ( #14708 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
Rich Harris
9f964177ec
note when features were added ( #14709 )
...
* note when features were added
* regenerate
4 weeks ago
Rich Harris
b0e3c5b438
feat: add outro option to unmount ( #14540 )
...
* feat: add outro option to unmount
* unused
* regenerate
* revert
* changeset
* create separate component_root effect
* docs
* return a promise
* remove from map immediately
4 weeks ago
Simon H
f0af633263
feat: loose parser mode ( #14691 )
...
* add loose option
* handle unclosed tags
* handle unclosed blocks
* handle unclosed opening tags
* handle invalid expressions
* handle invalid blocks
* oops
* more robust expression parsing
* changeset
* more unclosed tag handling
* types
* Update packages/svelte/src/compiler/phases/1-parse/state/element.js
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 weeks ago
github-actions[bot]
af9b071622
Version Packages ( #14698 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Paolo Ricciuti
887ce6ab4b
fix: don't add parenthesis to media query if already present ( #14699 )
1 month ago
Mateusz Kadlubowski
61a0da8a5f
feat: Expose more AST types from `"svelte/compiler"` ( #14601 )
...
* add missing `SvelteBoundary` in `ElementLike`
* make union of AST types public and exportable with `AST` namespace
* apply AST types change to codebase
* changeset
* manually generate types
* Add `AttributeLike` type
* export namespace `Css` inside `AST`
* manually generate types again
* exported `Css` -> `CSS`
* `Css` -> `AST.CSS`
* fix Prettier issue
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 month ago
Dominic Gannaway
2e0dcd7872
fix: ensure if block paths retain correct template namespacing ( #14685 )
...
* fix: ensure if block paths retain correct template namespacing
* add tests
* address feedback
* address feedback
* simplify
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
github-actions[bot]
780041a51e
Version Packages ( #14689 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Yang Pan
88c2d6ea36
fix: Allow unquoted slash in attributes ( #14615 )
...
* test: add sample for unquoted attributes
* fix: handle unquoted slash in attributes
* docs: allow unquoted slash in attributes
* test: add additional sample for unquoted href attributes
* fix: improve handling of self-closing tags with unquoted attributes
* Update .changeset/long-boxes-flow.md
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 month ago
waedi
65db409860
docs: typo in ## script_context_deprecated ( #14694 )
...
* Fix typo in ## script_context_deprecated
Changed +++context+++ to +++module+++
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
Paolo Ricciuti
5e8d6edcf8
fix: make `defaultValue` work with spread ( #14640 )
...
* fix: make `defaultValue` work with spread
* chore: apply suggestions from review
* tweak
* only stash defaults when relevant
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
Rich Harris
ef8bd6adeb
fix: better handle hydration of script/style elements (alternative) ( #14683 )
...
* alternative approach to #14624
* changeset
* fix
* lint
1 month ago
Dominic Gannaway
8ba1b9ddd0
fix: avoid mutation validation for invalidate_inner_signals ( #14688 )
...
* fix: avoid mutation validation for invalidate_inner_signals
* add test
* Update packages/svelte/src/internal/client/runtime.js
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 month ago
github-actions[bot]
7aa80fc2a7
Version Packages ( #14682 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Paolo Ricciuti
edfc0a9c6a
fix: correctly handle ssr for `reactivity/window` ( #14681 )
1 month ago
Rich Harris
0ec251f09d
chore: remove outdated TODO comment ( #14664 )
1 month ago
github-actions[bot]
a5a4649743
Version Packages ( #14679 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
68d266e0f8
fix: remove overzealous `reactive_declaration_non_reactive_property` warning ( #14663 )
...
fixes #14532
This removes the `reactive_declaration_non_reactive_property` warning altogether. The first version caused many false positives at compile time. The refined runtime version (introduced in #14192 ) was hoped to fix this, but it turns out we now get loads of false positives at runtime.
1 month ago
Paolo Ricciuti
ea6fd95332
fix: account for global block in `is_empty` ( #14677 )
...
Fixes #14675
1 month ago
github-actions[bot]
b0374f8863
Version Packages ( #14662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Rich Harris
d43a10ba7a
feat: add `svelte/reactivity/window` module ( #14660 )
...
* feat: add `svelte/reactivity/window` module
* lint
* fix
* hide private types
* online binding
* tweak docs
* tweak
* add @since tags
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
1 month ago
Simon H
a2539cfe1f
fix: correctly set custom element props ( #14508 )
...
fixes #14391
In #13337 the "when to set as a property" logic for custom elements was adjusted. A bug was introduced during this, and it consists of several parts, of which the latter I'm not sure what's the best solution, hence opening this to discuss.
The problem is that during set_custom_element_data, get_setters is the only check done to differentiate between setting the value as a prop (has a setter) or as an attribute (doesn't have a setter).
The solution is to take into account whether or not the custom element is already registered, and defer getting (and caching) its setters until then. Instead, fall back to a "an object is always set as a prop" heuristic.
1 month ago
github-actions[bot]
cb5734ae66
Version Packages ( #14652 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
grieben
a26b6d80ef
fix: overwrite #last_value when Spring is `.set()` with `{instant: true}` ( #14656 )
...
* fix: overwrite #last_value when Spring is with
* run npx changeset
1 month ago
Dominic Gannaway
fb879dd702
fix: ensure $state.snapshot clones holey arrays correctly ( #14657 )
...
* fix: ensure $state.snapshot clones holey arrays correctly
* fix: ensure $state.snapshot clones holey arrays correctly
* fix: ensure $state.snapshot clones holey arrays correctly
* fix: ensure $state.snapshot clones holey arrays correctly
1 month ago
Paolo Ricciuti
ab1f7f437e
fix: transform everything that is not a selector inside `:global` ( #14577 )
...
Fixes #14568
1 month ago
Simon H
88184cd769
fix: don't emit assignment warnings for bindings ( #14651 )
...
Also fixes the possibility of an infinite loop due to the property access during the dev time check
fixes #14643
1 month ago
Dominic Gannaway
66e30d3288
fix: ensure snippet hoisting works in the correct scope ( #14642 )
...
* fix: ensure snippet hoisting works in the correct scope
* fix bug
* revert
* revert
1 month ago
Dominic Gannaway
9cfd2e20ab
fix: restore input binding selection position ( #14649 )
1 month ago
github-actions[bot]
8bee23e387
Version Packages ( #14631 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
cfc1fb7de8
chore: provide links to documentation for errors/warnings ( #14629 )
...
* chore: provide links to documentation for errors/warnings
closes #11305
* changeset
* fix most of the tests
* fix mutations messing with nodes between runs
* more concise
* more test fixes
* last one
1 month ago
Rich Harris
3dcd5a4a3e
fix docs ( #14635 )
1 month ago
Simon H
c6fca02009
docs: more details for errors/warnings on the site ( #14632 )
...
* docs: more details for errors/warnings on the site
Related to #11305
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* fix in correct place
* tab not spaces
* tweaks
* fix
* Apply suggestions from code review
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
Paolo Ricciuti
11764632b9
fix: deconflict `get_name` for literal class properties ( #14607 )
1 month ago
Paolo Ricciuti
38171f60ea
fix: allow exports with source from script module even if no bind is present ( #14620 )
...
* fix: allow exports with source from script module even if no bind is present
* chore: move test to validator
1 month ago
github-actions[bot]
0a10c59517
Version Packages ( #14628 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Paolo Ricciuti
c66bf178aa
fix: mark subtree dynamic for bind with sequence expressions ( #14626 )
1 month ago
github-actions[bot]
301744f1f7
Version Packages ( #14598 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Dominic Gannaway
5771b455c0
feat: add support for bind getter/setters ( #14307 )
...
* feat: add support for bind getters/setters
* different direction
* oops
* oops
* build
* add changeset and tests
* move validation
* add comment
* build
* bind:group error
* simpler to just keep it as a SequenceExpression
* fix
* lint
* fix
* move validation to visitor
* fix
* no longer needed
* fix
* parser changes are no longer needed
* simplify
* simplify
* update messages
* docs
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
1 month ago
Rich Harris
1a0b822f48
fix: always run `if` block code the first time ( #14597 )
...
* fix: always run `if` block code the first time
* fix
1 month ago
github-actions[bot]
98286349b2
Version Packages ( #14593 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Rich Harris
65fdcec55d
chore: regenerate types ( #14592 )
1 month ago
Rich Harris
8433a7169b
fix: reinstate `prefersReducedMotion` ( #14586 )
...
* reinstate prefersReducedMotion
* changeset
1 month ago
Rich Harris
7086709767
add since tag to Spring ( #14585 )
1 month ago
github-actions[bot]
947d4adf3b
Version Packages ( #14583 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Rich Harris
80ffcc3fe1
feat: add Spring and Tween classes ( #11519 )
...
* feat: add Spring class
* add some docs, Spring.of static method
* add Tween class
* lint
* preserveMomentum in milliseconds
* deprecate tweened
* changeset
* wrestle with types
* more consolidation
* flesh out the distinction a bit more, deprecate `subscribe`
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
1 month ago
github-actions[bot]
60c0dc7a2d
Version Packages ( #14576 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
ca67aa1b34
fix: ensure bindings always take precedence over spreads ( #14575 )
1 month ago
Rich Harris
6a6b4ec36a
fix deprecation notices ( #14574 )
1 month ago
github-actions[bot]
7f5172745d
Version Packages ( #14570 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
0a9890bb1e
feat: provide `MediaQuery` / `prefersReducedMotion` ( #14422 )
...
* feat: provide `MediaQuery` / `prefersReducedMotion`
closes #5346
* matches -> current, server fallback
* createStartStopNotifier
* test polyfill
* more tests fixes
* feedback
* rename
* tweak, types
* hnnnggh
* mark as pure
* fix type check
* notify -> subscribe
* add links to inline docs
* better API, more docs
* add example to prefersReducedMotion
* add example for MediaQuery
* typo
* fix example
* tweak docs
* changesets
* note when APIs were added
* add note
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
Simon H
73b3cf72d0
fix: treat `undefined` and `null` the same for the initial input value ( #14562 )
...
* fix: treat `undefined` and `null` the same for the initial input value
Fixes #14558
* test
* same for checked
1 month ago
github-actions[bot]
85dec47a5e
Version Packages ( #14557 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Dominic Gannaway
a220330011
chore: make if blocks tree-shakable ( #14549 )
...
* chore: make if blocks dead code eliminable
* chore: make if blocks dead code eliminable
* chore: make if blocks dead code eliminable
* address feedback
* address feedback
* prettier
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
github-actions[bot]
51c9eac577
Version Packages ( #14556 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
a151ae1804
fix: handle static form values in combination with default values ( #14555 )
...
When the `value` or `checked` attribute of an input or the contents of a textarea were static, setting the `defaulValue/defaultChecked` property caused the latter to take precedence over the former. This is due to how we transform the code: If the value is static, we put it onto
1 month ago
github-actions[bot]
c0746e0e73
Version Packages ( #14552 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
a57e747cbb
feat: default values for form elements ( #14289 )
...
* tests
* typings
* implement for defaultValue/defaultChecked on inputs
* docs (draft)
* selected
* fix test
* remove
* tweak
* changeset
* untrack reads, they could be inside an effect
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* handle select reset case
* handle reset case specifically: use different props/queries in that case
* enhance test
* fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
github-actions[bot]
c55af4aa83
Version Packages ( #14548 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Simon H
86ae349bcc
fix: better error messages for invalid HTML trees ( #14445 )
...
* fix: better error messages for invalid HTML trees
closes #13331
* fix test
* more concise
* tweak
* tweak messages
* adjust tests
* tweak message slightly, so it doesn't sound like the bad element is the one we're currently encountering
* put locations in generated message
* tidy up
* consistency
* fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 month ago
Rich Harris
4e77bdef74
fix: respect the unidirectional nature of time ( #14541 )
...
* fix: respect the unidirectional nature of time
* note to our future selves
1 month ago
adiGuba
d511104ee0
chore: make test more robust ( #14550 )
1 month ago
Paolo Ricciuti
1f973b1770
fix: remove spreaded event handlers when they become nullish ( #14546 )
...
Fixes #14539
1 month ago
Rich Harris
4c4f18b24c
chore: fix docs ( #14538 )
1 month ago
github-actions[bot]
3d9122fcc4
Version Packages ( #14537 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Rich Harris
fe0bd299a5
fix: proxify values when assigning using `||=`, `&&=` and `??=` operators ( #14273 )
...
* add failing test for #14268
* simplify
* proxify values when using ||=, &&= and ??= assignment operators
* proxify values assigned to private state fields
* changeset
* fix
* fix
* add warning
* update test
1 month ago
Simon H
bbee1fc7e0
fix: don't try to add owners to non-`$state` class fields ( #14533 )
...
* fix: don't try to add owners to non-`$state` class fields
`$state.raw` and `$derived(.by)` will not have a state symbol on them, potentially causing a disastrous amount of traversal to potentially not find any state symbol. So it's better to not traverse them.
Potentially someone could create a `$state` while creating `$state.raw` or inside a `$derived.by`, but that feels so much of an edge case that it doesn't warrant a perf hit for the common case.
Fixes #14491
* for bind:, too
1 month ago
Dominic Gannaway
b5588523fc
fix: capture infinite_loop_guard in error boundary ( #14534 )
...
* fix: capture infinite_loop_guard in error boundary
* fix
1 month ago
github-actions[bot]
a65e68ca37
Version Packages ( #14530 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
d595cc16fb
Version Packages ( #14529 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Rich Harris
2f8eda94f3
fix: ensure SvelteDate cached methods have correct reactive context ( #14525 )
...
* fix: ensure SvelteDate cached methods have no reactive context
* fix: ensure SvelteDate cached methods have no reactive context
* fix
* lint
* use active reaction at time of instance creation
* tweak changeset
* Update packages/svelte/src/internal/client/dom/elements/bindings/shared.js
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
1 month ago
Paolo Ricciuti
39275684e5
fix: don't throw with nullish actions ( #13559 )
...
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
1 month ago
Rich Harris
a5de086f95
feat: turn `reactive_declaration_non_reactive_property` into a runtime warning ( #14192 )
...
* turn `reactive_declaration_non_reactive_property` into a runtime warning
* ignore warning
* Update packages/svelte/src/internal/client/reactivity/effects.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update packages/svelte/src/internal/client/runtime.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* fix
* test
* changeset
* Update .changeset/witty-turtles-bake.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* add some details
* check
* regenerate
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 month ago
Rich Harris
aac929d503
fix: leave update expressions untransformed unless a transformer is provided ( #14507 )
...
* fix: leave update expressions untransformed unless a transformer is provided
* fix more cases
1 month ago
Dominic Gannaway
94694a5e63
chore: add test for binding event reactive context ( #14522 )
...
* chore: add test for binding event reactive context
* revised
1 month ago
github-actions[bot]
e722ef6b15
Version Packages ( #14510 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
Dominic Gannaway
4d2f2fb8e6
feat: allow snippets to be exported from module scripts ( #14315 )
...
* feat: allow snippets to be exported from module scripts
* tweak type
* fix issue + add test
* refactor
* refactor
* fix exports error
* fix lint
* fix lint
* error on undefined export
* hoisted snippets belong in transform state, not analysis
* put the code where it's used
* drop the local_. just binding. it's cleaner
* simplify
* simplify
* simplify
* simplify
* tidy up
* oops
* update message, add some details
* lint
* Apply suggestions from code review
* add some docs
* Update packages/svelte/src/compiler/phases/3-transform/utils.js
* Update .changeset/famous-parents-turn.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 month ago
Rich Harris
2e57612ef4
chore: fix typo ( #14513 )
1 month ago
Simon H
b72fd2b3cd
fix: ignore TypeScript generics on variables ( #14509 )
...
fixes #14505
1 month ago