github-actions[bot]
7f8acb8a37
Version Packages ( #14824 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 days ago
Simon H
015210a1a8
feat: allow objects/arrays for class attribute ( #14714 )
...
* WIP
* missed
* fix
* fix
* rename, smooth over incompatibilities
* spread support + test
* docs
* types
* implement CSS pruning for array/object expressions
* beefier static analysis
* lint
* rename doc
* move class after all directive docs
* tweak docs - clarify top-level falsy values, stagger examples, demonstrate composition, discourage class: more strongly
* changeset
* fix
* Update documentation/docs/03-template-syntax/18-class.md
Co-authored-by: Conduitry <git@chor.date>
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Conduitry <git@chor.date>
3 days ago
Andrey Sitnik
38a3ae321f
fix: Allow to disable animation prefix ( #14822 )
...
* fix: Allow to disable animation prefix
* Apply suggestions from code review
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
4 days ago
github-actions[bot]
1d773ef3a4
Version Packages ( #14782 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week ago
Bjorn Lu
72b7bc7af8
feat: add "worker" exports condition ( #14779 )
1 week ago
github-actions[bot]
2086c199be
Version Packages ( #14776 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week ago
ottomated
999b92d134
fix: intellisense DX for $props, $inspect, $bindable, and $host ( #14777 )
...
* remove default function types for $props, $inspect, $bindable, and $host
* changeset
* regenerate types
* add helper message for type regeneration
* append a newline to generated types
* prettier
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 week ago
Dominic Gannaway
5bc4033421
fix: treeshake `$inspect.trace` code if unused in modules ( #14774 )
1 week ago
github-actions[bot]
69d198eb44
Version Packages ( #14764 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week ago
Rich Harris
7c6379a260
fix: bump esrap dependency ( #14765 )
...
* fix: bump esrap
* changeset
* ugh
1 week 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>
1 week 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
1 week ago
github-actions[bot]
2bfdd1b436
Version Packages ( #14745 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week ago
Taku Fukada
c79b909458
fix: remove 'implements' from class declaration ( #14749 )
...
* fix: remove implements from class declaration
* add a smoke test
1 week ago
Rich Harris
e38975eac9
fix: remove unwanted properties from both replaced and unreplaced nodes ( #14744 )
1 week ago
github-actions[bot]
00ff60e8d5
Version Packages ( #14740 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week 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
1 week ago
Rich Harris
36a437c2f9
fix: compare array contents for equality mismatch detections, not the arrays themselves ( #14738 )
1 week ago
github-actions[bot]
5529ad241f
Version Packages ( #14735 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 week 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
1 week ago
Paolo Ricciuti
36d73cad55
fix: correctly highlight first rerun of `$inspect.trace` ( #14734 )
1 week ago
github-actions[bot]
e0e999055d
Version Packages ( #14728 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
Dominic Gannaway
699dc6e4f7
fix: improve unowned derived performance ( #14724 )
...
* fix: improve unowned derived performance
* fix: improve unowned derived performance
* changeset
2 weeks ago
github-actions[bot]
bbf38291fc
Version Packages ( #14715 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 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>
2 weeks ago
github-actions[bot]
64a32cec38
Version Packages ( #14708 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
Rich Harris
ecd1b48095
bump changeset to minor ( #14710 )
2 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
2 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>
2 weeks ago
github-actions[bot]
af9b071622
Version Packages ( #14698 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
Paolo Ricciuti
887ce6ab4b
fix: don't add parenthesis to media query if already present ( #14699 )
2 weeks 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>
2 weeks 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>
2 weeks ago
github-actions[bot]
780041a51e
Version Packages ( #14689 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks 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>
2 weeks 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>
2 weeks ago
Rich Harris
ef8bd6adeb
fix: better handle hydration of script/style elements (alternative) ( #14683 )
...
* alternative approach to #14624
* changeset
* fix
* lint
2 weeks 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>
2 weeks ago
github-actions[bot]
7aa80fc2a7
Version Packages ( #14682 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
Paolo Ricciuti
edfc0a9c6a
fix: correctly handle ssr for `reactivity/window` ( #14681 )
2 weeks ago
github-actions[bot]
a5a4649743
Version Packages ( #14679 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks 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.
2 weeks ago
Paolo Ricciuti
ea6fd95332
fix: account for global block in `is_empty` ( #14677 )
...
Fixes #14675
2 weeks ago
github-actions[bot]
b0374f8863
Version Packages ( #14662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks 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>
2 weeks 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.
2 weeks ago
github-actions[bot]
cb5734ae66
Version Packages ( #14652 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks 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
2 weeks 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
2 weeks ago
Paolo Ricciuti
ab1f7f437e
fix: transform everything that is not a selector inside `:global` ( #14577 )
...
Fixes #14568
2 weeks ago