You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-runes/samples
Simon H de315d84eb
fix: ensure reactions are kept dirty when marking them again (#11364)
2 years ago
..
action-context monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
action-state-arg fix: better interop of `$state` with actions/`$:` statements (#10543) 3 years ago
action-state-arg-deep monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
action-void-element fix: run render functions for dynamic void elements (#11258) 2 years ago
ambiguous-source fix: correctly call exported state (#10114) 3 years ago
assign-prop-to-prop fix: issue with assiging prop values as defaults of other props (#9985) 3 years ago
attribute-parts breaking: warn on self-closing non-void HTML tags (#11114) 2 years ago
attribute-spread-call-expression fix: spread attributes reactivity improvements (#10071) 3 years ago
attribute-spread-casing fix: better attribute casing logic (#9626) 3 years ago
attribute-spread-reactivitiy fix: spread attributes reactivity improvements (#10071) 3 years ago
backtick-template fix: Backtick now displays with templates (#9973) 3 years ago
before-update-in-legacy-child monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
bind-and-spread breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
bind-state-property breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
bind-this-no-state fix: make `bind_this` implementation more robust (#10598) 3 years ago
bind-this-proxy monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
bind-value-input-type-dynamic feat: allow dynamic `type` attribute with `bind:value` (#10608) 3 years ago
bindings-form-reset feat: take form resets into account for two way bindings (#10617) 2 years ago
block-dependency-sequence fix: ensure if block is executed in correct order (#10053) 3 years ago
class-frozen-state feat: add $state.frozen rune (#9851) 3 years ago
class-frozen-state-object monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
class-private-frozen-state feat: add $state.frozen rune (#9851) 3 years ago
class-private-frozen-state-object monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
class-private-state breaking: init Svelte 5 3 years ago
class-private-state-increment breaking: init Svelte 5 3 years ago
class-private-state-init breaking: init Svelte 5 3 years ago
class-private-state-proxy fix: ensure class constructor values are proxied (#9888) 3 years ago
class-state breaking: init Svelte 5 3 years ago
class-state-constructor-closure fix: address runtime effect issues (#9417) 3 years ago
class-state-constructor-closure-private fix: address runtime effect issues (#9417) 3 years ago
class-state-deep-update fix: handle deep assignments to `$state()` class properties correctly (#10289) 3 years ago
class-state-derived breaking: init Svelte 5 3 years ago
class-state-derived-2 fix: improve ssr code generation for class property $derived (#10661) 3 years ago
class-state-derived-3 fix: improve derived output for ssr (#10757) 2 years ago
class-state-derived-fn chore: rename `$derived.call` to `$derived.by` (#10445) 3 years ago
class-state-derived-private breaking: init Svelte 5 3 years ago
class-state-derived-unowned monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
class-state-increment breaking: init Svelte 5 3 years ago
class-state-init breaking: init Svelte 5 3 years ago
class-state-init-conflict breaking: init Svelte 5 3 years ago
class-state-init-eager monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
class-state-init-eager-2 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
class-state-init-eager-3 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
class-state-proxy fix: ensure class constructor values are proxied (#9888) 3 years ago
class-state-public-private breaking: init Svelte 5 3 years ago
class-state-with-literal feat: allow for literal property definition with state on classes (#11326) 2 years ago
component-let-directive breaking: init Svelte 5 3 years ago
component-prop-unescaped fix: only escape attribute values for elements, not components (#9456) 3 years ago
derived-destructure monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
derived-destructured breaking: init Svelte 5 3 years ago
derived-direct breaking: init Svelte 5 3 years ago
derived-fn chore: rename `$derived.call` to `$derived.by` (#10445) 3 years ago
derived-fn-destructure monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
derived-indirect-arrow-fn breaking: init Svelte 5 3 years ago
derived-indirect-fn breaking: init Svelte 5 3 years ago
derived-indirect-fn-2 breaking: init Svelte 5 3 years ago
derived-proxy feat: allow modifiying derived props (#10080) 3 years ago
derived-stale-value monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
derived-unowned replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
derived-unowned-2 replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
derived-unowned-3 fix: improve handling of unowned derived signals (#10842) 2 years ago
derived-unowned-4 fix: improve unowned derived signal heuristics (#11029) 2 years ago
derived-unowned-5 Fix unowned bug 2 (#11077) 2 years ago
derived-write-read-write-read fix: ensure reactions are kept dirty when marking them again (#11364) 2 years ago
destructure-async-assignments fix: more accurate default value handling (#11183) 2 years ago
destructure-derived-event monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
destructure-derived-object fix: improve derived rune destructuring support (#10665) 3 years ago
details-binding-initial fix: set `open` binding value in `<details>` (#10413) 3 years ago
directives-with-member-access breaking: warn on self-closing non-void HTML tags (#11114) 2 years ago
dynamic-component-transition chore: simplify transitions (#10798) 2 years ago
dynamic-element-dynamic-namespace fix: dynamic namespace fixes and enhancements (#11219) 2 years ago
dynamic-if-component-transition chore: simplify transitions (#10798) 2 years ago
dynamic-style-attr fix: support dynamic attributes containing call expressions (#9443) 3 years ago
dynamic-transition monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
each-bind-this-member fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
each-bind-this-member-2 fix: ensure bind:this unmount behavior for members is conditional (#11193) 2 years ago
each-block-default-arg fix: more accurate default value handling (#11183) 2 years ago
each-dynamic-html fix: remove memory leak from retaining old DOM elements (#11197) 2 years ago
each-fallback fix: improve each block fallback handling (#9914) 3 years ago
each-keyed-child-effect fix: more robust moving of each item nodes (#11254) 2 years ago
each-mutation Proxied state (#9739) 3 years ago
each-mutation-2 fix: better handle array property deletion reactivity (#9921) 3 years ago
each-text-template fix: improve text node output (#10081) 3 years ago
each-updates replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
each-updates-2 fix: improve signal consumer tracking behavior (#10121) 3 years ago
each-updates-3 fix: improve indexed each array reconcilation (#10422) 3 years ago
each-updates-4 fix: adjust keyed each block equality handling (#10699) 3 years ago
each-updates-5 fix: improve each keyed block handling of item used as key (#10703) 3 years ago
effect monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
effect-active feat: add $effect.active rune (#9591) 3 years ago
effect-cleanup monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
effect-dependencies fix: improve signal consumer removal logic (#9837) 3 years ago
effect-loop breaking: init Svelte 5 3 years ago
effect-loop-2 breaking: init Svelte 5 3 years ago
effect-order monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
effect-order-2 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
effect-root monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
effect-root-2 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
effect-self-scheduling breaking: init Svelte 5 3 years ago
effects-order monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
event-arguments fix: ensure event handlers containing arguments are not hoisted (#9758) 3 years ago
event-arguments-2 fix: ensure event handlers containing arguments are not hoisted (#9758) 3 years ago
event-attribute breaking: init Svelte 5 3 years ago
event-attribute-after-binding fix: run event attributes after binding event listeners (#11230) 2 years ago
event-attribute-after-spread fix: avoid hoisting error by using 'let' instead of 'var' (#11291) 2 years ago
event-attribute-bubble breaking: init Svelte 5 3 years ago
event-attribute-capture breaking: init Svelte 5 3 years ago
event-attribute-delegation monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
event-attribute-delegation-2 fix: disallow mixing event-handling syntaxes (#11295) 2 years ago
event-attribute-delegation-3 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
event-attribute-delegation-4 fix: disallow mixing event-handling syntaxes (#11295) 2 years ago
event-attribute-delegation-5 fix: disallow mixing event-handling syntaxes (#11295) 2 years ago
event-attribute-delegation-6 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
event-attribute-delegation-7 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
event-attribute-import fix: improve import event handler support (#10592) 3 years ago
event-attribute-not-hoistable fix: don't hoist function when already referenced in module scope 3 years ago
event-attribute-spread breaking: init Svelte 5 3 years ago
event-attribute-spread-capture breaking: init Svelte 5 3 years ago
event-attribute-spread-collision fix: disallow mixing event-handling syntaxes (#11295) 2 years ago
event-attribute-template fix: insert empty text nodes during hydration, where necessary (#9729) 3 years ago
event-attribute-window breaking: init Svelte 5 3 years ago
event-exported replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
event-listener-moved-outside-container fix: catch delegated events from elements moved outside the container (#10060) 3 years ago
event-listener-spread fix: exclude internal props from spread attributes (#9384) 3 years ago
event-prop-reference monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
event-propagation-with-error fix: allow events to continue propagating following an error (#11263) 2 years ago
event-used-in-component-and-element replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
export-binding chore: tidy up messages (#11327) 2 years ago
exports-1 feat: allow state/derived/props to be explicitly exported from components (#10523) 3 years ago
exports-2 feat: allow state/derived/props to be explicitly exported from components (#10523) 3 years ago
exports-3 feat: allow state/derived/props to be explicitly exported from components (#10523) 3 years ago
fine-grained-prop-reactive-statement fix: better interop of `$state` with actions/`$:` statements (#10543) 3 years ago
globals-deconflicted fix: deconflict generated names against globals (#9570) 3 years ago
html-tag-escaping fix: only escape characters in SSR template (#10555) 3 years ago
if-dependency-order fix: ensure topological order for render effects (#10175) 3 years ago
if-dependency-order-2 fix: improve internal render effect sequencing (#10769) 2 years ago
if-transition-inert fix: ensure nested blocks are inert during outro transitions (#10126) 3 years ago
if-transition-undefined fix: allow transition undefined payload + microtask queue handling (#10117) 3 years ago
inspect monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
inspect-derived breaking: change `$inspect` API (#9838) 3 years ago
inspect-derived-2 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
inspect-multiple monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
inspect-nested-state monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
inspect-new-property monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
inspect-trace monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
invalid-html-ssr feat: improve ssr html mismatch validation (#10658) 3 years ago
invalidate-effect fix: improve consistency issues around binding invalidation (#9810) 3 years ago
legacy-class-transformation breaking: init Svelte 5 3 years ago
lifecycle-render-order-for-children fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
lifecycle-render-order-for-children-2 fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
lifecycle-render-order-for-children-3 fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
lifecycle-render-order-for-children-4 fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
lifecycle-render-order-for-children-5 fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
manual-mount fix: wire up `events` in `mount` correctly and fix its types (#10553) 3 years ago
member-mutation fix: improve member expression mutation logic (#9625) 3 years ago
module-context-export fix: only treat instance context exports as accessors (#9500) 3 years ago
mount-snippet-error fix: disallow mounting a snippet (#11347) 2 years ago
multiple-head fix: improve hydration of svelte head blocks (#11099) 2 years ago
mutation breaking: init Svelte 5 3 years ago
mutation-both breaking: init Svelte 5 3 years ago
mutation-local breaking: init Svelte 5 3 years ago
name-clash-hoisting fix: possible name clash in hoisted functions (#11237) 2 years ago
nested-destructure-assignment fix: Add some tests to avoid regression on #8559 (#9956) 3 years ago
nested-effect-conflict monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
nested-script-tag monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
non-local-mutation-discouraged feat: implement message overloads (#11318) 2 years ago
non-local-mutation-global feat: use state proxy ancestry for ownership validation (#11184) 2 years ago
non-local-mutation-inherited-owner fix: stack-trace-based readonly validation (#10464) 3 years ago
non-local-mutation-inherited-owner-2 fix: ensure proxy owner set always has 1 or more members (#10577) 3 years ago
non-local-mutation-inherited-owner-3 fix: better ownership mutation validation (#10673) 3 years ago
non-local-mutation-inherited-owner-4 fix: better ownership mutation validation (#10673) 3 years ago
non-local-mutation-inherited-owner-5 feat: implement message overloads (#11318) 2 years ago
non-local-mutation-inherited-owner-6 feat: use state proxy ancestry for ownership validation (#11184) 2 years ago
non-local-mutation-inherited-owner-7 feat: implement message overloads (#11318) 2 years ago
non-local-mutation-with-binding breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
non-local-mutation-with-binding-2 feat: use state proxy ancestry for ownership validation (#11184) 2 years ago
non-local-mutation-with-binding-3 feat: implement message overloads (#11318) 2 years ago
not-actual-runes breaking: init Svelte 5 3 years ago
nullish-operator monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
pre-effect monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
pre-effect-ordering monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
props fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
props-alias breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
props-array-each fix: stack-trace-based readonly validation (#10464) 3 years ago
props-bound breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
props-bound-fallback chore: tidy up messages (#11327) 2 years ago
props-bound-to-normal breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
props-default-reactivity breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
props-default-value-behavior breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
props-default-value-lazy breaking: apply fallback value every time in runes mode (#10797) 2 years ago
props-default-value-lazy-accessors fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
props-derived replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
props-derived-2 monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
props-equality monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
props-not-bindable chore: tidy up messages (#11327) 2 years ago
props-not-bindable-spread chore: tidy up messages (#11327) 2 years ago
props-quoted fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
props-spread-fallback breaking: apply fallback value every time in runes mode (#10797) 2 years ago
proxied-state-property-access fix: loosen proxy signal creation heuristics (#11109) 2 years ago
proxy Proxied state (#9739) 3 years ago
proxy-array Proxied state (#9739) 3 years ago
proxy-array-length replace skip_if_ssr and skip_if_hydrate with modes (#10956) 2 years ago
proxy-cyclical Proxied state (#9739) 3 years ago
proxy-deep Proxied state (#9739) 3 years ago
proxy-nested Proxied state (#9739) 3 years ago
proxy-prop-bound breaking: add $bindable() rune to denote bindable props (#10851) 2 years ago
proxy-shared fix: reuse proxy between objects (#9821) 3 years ago
reactive-date chore: reshuffle some code (#10967) 2 years ago
reactive-map chore: reshuffle some code (#10967) 2 years ago
reactive-set chore: reshuffle some code (#10967) 2 years ago
reactive-to-string fix: fix string name of reactive map and set iterator (#11169) 2 years ago
reactive-url feat: add reactive URL object to svelte/reactivity (#11157) 2 years ago
readonly-state monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
readonly-state-push fix: only update lazy properties that have actually changed (#10415) 3 years ago
readonly-state-replace feat: add $state.frozen rune (#9851) 3 years ago
rune-name-used-by-rune breaking: init Svelte 5 3 years ago
runes-from-func breaking: init Svelte 5 3 years ago
runes-in-module-context breaking: init Svelte 5 3 years ago
slot fix: ensure `$$slots` exists in runes mode (#9718) 3 years ago
slot-static fix: correctly apply scope on component children (#9824) 3 years ago
snippet breaking: init Svelte 5 3 years ago
snippet-argument feat: native TypeScript support (#9482) 3 years ago
snippet-argument-destructured breaking: init Svelte 5 3 years ago
snippet-argument-destructured-multiple feat: Variadic snippets (#9988) 3 years ago
snippet-argument-multiple feat: Variadic snippets (#9988) 3 years ago
snippet-complicated-defaults feat: Variadic snippets (#9988) 3 years ago
snippet-const feat: add support for {@const} inside snippet block (#9904) 3 years ago
snippet-default-arg fix: more accurate default value handling (#11183) 2 years ago
snippet-duplicate-children fix: allow duplicate snippet declaration names (#9759) 3 years ago
snippet-dynamic-children fix: ensure implicit children snippet renders correctly (#9706) 3 years ago
snippet-expressions feat: allow arbitrary call expressions for render tags (#10656) 3 years ago
snippet-hoisting fix: add top level snippets to instance scope (#9467) 3 years ago
snippet-namespace-1 breaking: init Svelte 5 3 years ago
snippet-namespace-2 breaking: init Svelte 5 3 years ago
snippet-optional-arguments fix: handle TypeScript's optional parameter syntax in snippets (#10671) 3 years ago
snippet-prop-explicit breaking: init Svelte 5 3 years ago
snippet-prop-explicit-no-args breaking: init Svelte 5 3 years ago
snippet-prop-implicit breaking: init Svelte 5 3 years ago
snippet-prop-reactive breaking: init Svelte 5 3 years ago
snippet-reactive breaking: init Svelte 5 3 years ago
snippet-reactive-args monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
snippet-scope fix: apply correct snippet scope (#9623) 3 years ago
snippet-spread breaking: init Svelte 5 3 years ago
snippet-store fix: transform `{@render ...}` expression (#10116) 3 years ago
snippet-top-level fix: better support for top-level snippet declarations (#9898) 3 years ago
snippet-typescript fix: handle multiple snippet parameters with one or more being optional (#10833) 2 years ago
snippet-validation-error-1 chore: tidy up messages (#11327) 2 years ago
snippet-validation-error-2 chore: tidy up messages (#11327) 2 years ago
snippet-whitespace fix: don't collapse whitespace within text nodes (#10691) 3 years ago
spread-props fix: improve props spreading logic (#10574) 3 years ago
spread-props-2 fix: improve spreading of attributes (#11177) 2 years ago
state-delete-property fix: improve handling of object property deletions (#10456) 3 years ago
state-each-bind-this chore: reshuffle some code (#10967) 2 years ago
state-in-template fix: allow runes for variable declarations in the template (#10879) 2 years ago
state-proxy-version fix: improve proxy effect dependency tracking (#10605) 3 years ago
state-readonly fix: correctly reflect readonly proxy marker (#9893) 3 years ago
state-reuse fix: don't reuse proxies when state symbol refers to stale value (#10343) 3 years ago
state-snapshot fix: support `$state.snapshot` as part of variable declarations (#11235) 2 years ago
state-space fix: better handling of empty text node hydration (#10545) 3 years ago
state-store chore: reshuffle some code (#10967) 2 years ago
state-store-props chore: reshuffle some code (#10967) 2 years ago
state-undefined breaking: init Svelte 5 3 years ago
store-directive fix: handle member expressions in directives (#10576) 3 years ago
store-from-props-hoisting fix: store from props hoist wrong param (#11367) 2 years ago
store-increment-decrement fix: correct increment/decrement code generation 3 years ago
store-no-mutation-validation breaking: init Svelte 5 3 years ago
store-subscribe-effect-init monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
store-unsubscribe-not-referenced-after fix: eagerly unsubscribe when store is changed (#10727) 3 years ago
svg-namespace-infer fix: improve namespace inference when having `{@render}` and `{@html}` tags (#10631) 3 years ago
text-effect-multi-deps fix: improve internal signal dependency checking logic (#10111) 3 years ago
text-multiple-call-expression monkey-patch console.log and console.warn for all tests (#11265) 2 years ago
tick-timing breaking: init Svelte 5 3 years ago
transition-evaluation fix: mark `accessors` and `immutable` as deprecated (#11277) 2 years ago
transition-snippet fix: make snippet effects transparent for transitions (#11195) 2 years ago
typescript fix: support TS satisfies operator (#10068) 3 years ago
typescript-as-expression fix: strip typescript assertions before analysis (#10329) 3 years ago
typescript-const1 chore: more validation errors (#9723) 3 years ago
typescript-each-indexed Typescript each indexed (#9567) 3 years ago
typescript-non-null-expression fix: allow ts casts in bindings (#10181) 3 years ago
untracked breaking: init Svelte 5 3 years ago
wrapped-$state breaking: init Svelte 5 3 years ago
wrapped-$state-2 breaking: init Svelte 5 3 years ago