Dominic Gannaway
faf838c46d
update playwright ( #10955 )
9 months ago
Dominic Gannaway
cb18f8fbbe
chore: root effects should not have parents ( #10950 )
...
* chore: root effects should not have parents
* tune
* oops
* Update packages/svelte/src/internal/client/runtime.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Rich Harris
9a4cd7e8d8
chore: refactor effects a bit ( #10948 )
...
* WIP
* formalise branch effects
* WIP
* rename MANAGED to BRANCH_EFFECT
* remove ondestroy functions
* tidy up
* simplify
* lint
* tidy up
* tidy up
* tidy up
* tidy up
* remove ondestroy
* tidy up
* tidy up
* remove TODO comment
* update comment
9 months ago
github-actions[bot]
b6598a3cc5
Version Packages (next) ( #10934 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Rich Harris
c683484f5f
chore: tidy up some hydration code ( #10944 )
...
* tidy up
* tidy up
9 months ago
Rich Harris
f8fcbf0b0b
chore: tidy up some outdated code ( #10947 )
9 months ago
Rich Harris
66e0378155
chore: remove `$.space` ( #10945 )
...
* chore: remove $.space
* simplify space_frag
* rename $.space_frag to $.text
9 months ago
Rich Harris
4fcedb2fb1
chore: simplify hydration ( #10943 )
...
* WIP
* unused
* unused
* fix head hydration
* working
* simplify
* tighten up
* css props
* fix treeshaking
* add a comment
9 months ago
Dominic Gannaway
afe589e219
fix: improve order of pre-effect execution ( #10942 )
...
* chore: refactor local effect flushing to use new topological approach
9 months ago
Rich Harris
3ce74e47a9
chore: update sequencing inside blocks ( #10939 )
...
* WIP
* fix timing issue
* compromise
* fix
* add missing before_init
* lint
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
9 months ago
Rich Harris
9bbc3328ee
chore: tidy up effect init ( #10931 )
...
* move signal init logic into create_effect
* tidy up
* call set_signal_status inside execute_effect
* tidy up
* unused import
9 months ago
Rich Harris
7adc14e24c
chore: unify pre effects ( #10933 )
...
* breaking: always run pre effects synchronously
* unify pre effects
9 months ago
Rich Harris
f2cca537a3
feat: use implicit return for each block keys ( #10938 )
...
* feat: use implicit return for each block keys
* swap args
* update test
9 months ago
Rich Harris
808cc6fca6
feat: shorter each blocks ( #10937 )
9 months ago
Rich Harris
8cfea9f36c
breaking: always run pre effects synchronously ( #10928 )
9 months ago
dependabot[bot]
dbd111762d
chore(deps-dev): bump express from 4.18.2 to 4.19.2 ( #10932 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
github-actions[bot]
b44311acc1
Version Packages (next) ( #10920 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Rich Harris
ed2981d7b8
chore: simplify updates ( #10922 )
...
* remove if blocks around attribute updates
* remove singular updates
* simplify
* get rid of text_effect
* get rid of class_toggle_effect and style_effect
* remove spread_attributes_effect
* simplify
* simplify
* simplify
* remove unused stuff
* get rid of spread_dynamic_element_attributes_effect
* remove set_custom_element_data_effect
* unused import
* more descriptive names
9 months ago
Rich Harris
456e50d14b
chore: use `effect(...)` instead of `user_effect(...)` ( #10927 )
9 months ago
Rich Harris
7a17e21f8a
chore: remove managed_effect ( #10926 )
...
* chore: remove managed_effect
* remove managed_pre_effect
9 months ago
miunau
bbd44e9e47
fix: Add `elementtiming` HTMLAttribute, remove `crossorigin` from HTMLInputAttributes ( #10921 )
...
* Removed `crossorigin` from HTMLInputAttributes
* Added `elementtiming` attribute to HTMLAttributes
* changeset
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
9 months ago
Rich Harris
b7a0d80bfc
simplify render_effect signature ( #10925 )
...
* simplify render_effect signature
* lint
9 months ago
Rich Harris
59ff650ccb
remove if blocks around attribute updates ( #10917 )
9 months ago
Rich Harris
7e584e40d7
chore: optimise attributes ( #10916 )
...
* avoid getAttribute outside hydration
* tidy up
* simplify
* dom -> element
9 months ago
Rich Harris
4f24eae9c3
simplify updates ( #10912 )
9 months ago
github-actions[bot]
1e0054e915
Version Packages (next) ( #10889 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
miunau
0c05733d31
fix: Add `dirname` to HTMLInputAttributes ( #10908 )
...
* Add `dirname` to HTMLInputAttributes
* changeset
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
9 months ago
Rich Harris
8685d497e5
feat: use bracket matching instead of `ssr:n` comments ( #10904 )
...
* use short comments
* use bracket matching
* fix
* update snapshots
* update tests
* fix
9 months ago
Rich Harris
f1d9afe32f
changeset ( #10906 )
9 months ago
Rich Harris
302b0ec973
chore: remove unused selector() function ( #10903 )
9 months ago
Rich Harris
7e5e462194
feat: use short comments ( #10899 )
...
* use short comments
* fix
9 months ago
Rich Harris
32b1824198
chore: more hydration stuff ( #10896 )
...
* this condition is always true
* rename child_frag to first_child
* no need to use is_array, it is always an array when hydrating
* simplify close_template
* spread is faster than Array.from
* avoid reassigning argument
9 months ago
Rich Harris
9b7331c04c
chore: only specify use_clone_node when necessary ( #10895 )
9 months ago
Rich Harris
89f4e8d53a
chore: more hydration stuff ( #10894 )
...
* simplify
* put memory cleanup where it belongs
9 months ago
Rich Harris
8214075285
fix: update type of `options.target` ( #10892 )
9 months ago
Rich Harris
1fc5f8b9c0
chore: code-golf a bit ( #10893 )
9 months ago
Rich Harris
dfd1819559
chore: tidy up hydration code ( #10891 )
...
* remove some indirection
* tidy up
* tidy
* tidy up
* simplify
* fix
* don't attempt to hydrate children of void dynamic element
* simplify
* tighten up
* fix
* add note, simplify
* tidy up
* changeset
* revert this change, save for a separate PR
9 months ago
Rich Harris
7f10642add
chore: improve hydration tests ( #10887 )
...
* use server-rendered HTML as hydration test starting point
* update tests
* remove _before.html files
* remove _before_head.html files
* override output with _expected.html
* expected output for binding-input case
* remove unused files
* fix
* changeset
9 months ago
Dominic Gannaway
fe7c45ba13
Add more tests ( #10882 )
...
* Add more tests
* ts
9 months ago
Dominic Gannaway
d6f10c5421
add more legacy tests ( #10881 )
...
* add more legacy tests
* add more tests
* ts
9 months ago
Rich Harris
b6c7956b26
chore: remove blocks ( #10880 )
...
* attach DOM to effects
* null out effect.dom
* remove some block.d references
* another
* drive-by fix
* better comment
* unused arg
* another
* another
* another
* more
* finish renaming stuff
* more
* remove item.d
* remove block.d
* remove effect.block
* remove current_block
* delete delete delete
* rename
* remove some stuff we dont need
* simplify
9 months ago
github-actions[bot]
c47c5713e2
Version Packages (next) ( #10869 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
83f30bf0e8
fix: allow runes for variable declarations in the template ( #10879 )
9 months ago
Simon H
852eca4ee6
chore: error on accessing global that is a rune ( #10877 )
...
...rather than only when the function is invoked
9 months ago
Simon H
b468978e4d
fix: handle multiple snippet parameters with one or more being optional ( #10833 )
...
fixes #10825
Co-authored-by: Dominic Gannaway <dg@domgan.com>
9 months ago
Simon H
3eef1cb8cf
feat: take form resets into account for two way bindings ( #10617 )
...
* feat: take form resets into account for two way bindings
When resetting a form, the value of the inputs within it get out of sync with the bound value of those inputs. This PR introduces a reset listener on the parent form to reset the value in that case
closes #2659
* slightly different approach
* tweaks, test
* this is a breaking change, strictly speaking
* bind:files
* use capture phase
* tweak wording
* use promise, explain
9 months ago
Simon H
416bc85d9c
breaking: add $bindable() rune to denote bindable props ( #10851 )
...
Alternative to / closes #10804
closes #10768
closes #10711
9 months ago
Dominic Gannaway
2cabc884ca
add some missing legacy tests ( #10875 )
9 months ago
Rich Harris
6822decec2
tidy up ( #10874 )
9 months ago
Rich Harris
04879c53e9
chore: simplify blocks ( #10873 )
...
* reduce some indirection
* update tests
* unify blocks before we kill them
* refactor types, rename some stuff
* simplify
* remove block.e
9 months ago