Skip to content

Commit 836569c

Browse files
committed
conflict
2 parents b42e5b3 + 388f210 commit 836569c

File tree

144 files changed

+1776
-876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+1776
-876
lines changed

.changeset/breezy-waves-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: validate form inside a form

.changeset/chilly-laws-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: relax `Component` type

.changeset/cold-beans-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: populate `this.#sources` when constructing reactive map

.changeset/cold-lamps-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: sort `{@const ...}` tags topologically in legacy mode

.changeset/cyan-toes-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: more robust handling of events in spread attributes

.changeset/empty-horses-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: keep default values of props a proxy after reassignment

.changeset/fast-donkeys-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
feat: simpler `<svelte:element> hydration

.changeset/few-zoos-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: omit `state_referenced_locally` warning for component exports

.changeset/flat-ghosts-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: make `legacy.componentApi` option more visible

.changeset/funny-dragons-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
feat: simpler hydration of CSS custom property wrappers

.changeset/hot-cooks-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: ensure event.target is correct for delegation

.changeset/hot-sloths-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
chore: deprecate html in favour of body for render()

.changeset/itchy-peaches-compare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
chore: speed up regex

.changeset/lemon-meals-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
chore: optimise effects that only exist to return a teardown

.changeset/lovely-bugs-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: bind `activeElement` and `pointerLockElement` in `<svelte:document>`

.changeset/lovely-zebras-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: address map reactivity regression

.changeset/orange-comics-prove.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: append start/end info to `AssignmentPattern` and `VariableDeclarator`

.changeset/pre.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"chilled-pumas-invite",
5858
"chilled-seas-jog",
5959
"chilly-dolphins-lick",
60+
"chilly-laws-juggle",
6061
"chilly-pans-raise",
6162
"chilly-rocks-hug",
6263
"chilly-snakes-scream",
@@ -66,8 +67,10 @@
6667
"clever-rockets-burn",
6768
"clever-sloths-push",
6869
"clever-stingrays-shout",
70+
"cold-beans-tease",
6971
"cold-birds-own",
7072
"cold-cheetahs-judge",
73+
"cold-lamps-accept",
7174
"cold-masks-learn",
7275
"cool-actors-tan",
7376
"cool-ants-leave",
@@ -124,6 +127,7 @@
124127
"empty-crabs-think",
125128
"empty-flowers-change",
126129
"empty-geckos-pretend",
130+
"empty-horses-tell",
127131
"empty-tools-share",
128132
"fair-bags-smoke",
129133
"fair-crabs-check",
@@ -138,6 +142,7 @@
138142
"few-clouds-shop",
139143
"few-mugs-fail",
140144
"few-teachers-know",
145+
"few-zoos-own",
141146
"fifty-masks-give",
142147
"fifty-rice-wait",
143148
"fifty-steaks-float",
@@ -214,7 +219,9 @@
214219
"honest-icons-change",
215220
"honest-nails-share",
216221
"honest-pans-kick",
222+
"hot-cooks-repair",
217223
"hot-jobs-tap",
224+
"hot-sloths-clap",
218225
"hungry-boxes-relate",
219226
"hungry-dots-fry",
220227
"hungry-pants-push",
@@ -228,6 +235,7 @@
228235
"itchy-kings-deliver",
229236
"itchy-lions-wash",
230237
"itchy-panthers-shave",
238+
"itchy-peaches-compare",
231239
"itchy-terms-guess",
232240
"khaki-cooks-develop",
233241
"khaki-ligers-sing",
@@ -272,10 +280,12 @@
272280
"loud-numbers-flow",
273281
"loud-ravens-drop",
274282
"loud-socks-look",
283+
"lovely-bugs-sneeze",
275284
"lovely-carpets-lick",
276285
"lovely-houses-own",
277286
"lovely-items-turn",
278287
"lovely-rules-eat",
288+
"lovely-zebras-own",
279289
"lucky-colts-remember",
280290
"lucky-geckos-swim",
281291
"lucky-schools-hang",
@@ -330,6 +340,7 @@
330340
"olive-seals-sell",
331341
"olive-shirts-complain",
332342
"olive-socks-kick",
343+
"orange-comics-prove",
333344
"orange-crews-rescue",
334345
"orange-dingos-poke",
335346
"orange-masks-exercise",
@@ -416,6 +427,7 @@
416427
"shiny-mayflies-clean",
417428
"shiny-melons-love",
418429
"shiny-months-tease",
430+
"shiny-pillows-relax",
419431
"shiny-rats-heal",
420432
"shiny-shrimps-march",
421433
"short-buses-camp",
@@ -503,6 +515,7 @@
503515
"tall-tigers-wait",
504516
"tame-cycles-kneel",
505517
"tame-dots-battle",
518+
"tame-goats-bow",
506519
"tame-spies-drum",
507520
"tasty-cheetahs-appear",
508521
"tasty-numbers-perform",
@@ -519,6 +532,7 @@
519532
"thick-pans-tell",
520533
"thick-shirts-deliver",
521534
"thick-swans-type",
535+
"thin-colts-yawn",
522536
"thin-foxes-lick",
523537
"thin-years-rhyme",
524538
"thirty-flowers-sit",
@@ -536,6 +550,8 @@
536550
"three-suits-grin",
537551
"tidy-buses-whisper",
538552
"tidy-chefs-taste",
553+
"tidy-deers-hope",
554+
"tidy-fans-relax",
539555
"tidy-starfishes-allow",
540556
"tiny-kings-whisper",
541557
"tiny-meals-deliver",

.changeset/shiny-pillows-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: assign message to error object in `handle_error` using `Object.defineProperty`

.changeset/smart-spiders-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: always create wrapper `<div>` for `<svelte:component>` with CSS custom properties

.changeset/spicy-peas-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: add svelte/events package and export `on` function

.changeset/tame-goats-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: relax slot prop validation on components

.changeset/thin-colts-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: correctly backport `svelte:element` to old AST

.changeset/thin-spoons-float.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: create sources on read for Set

.changeset/tidy-deers-hope.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: add `unused-export-let` to legacy lint replacements

.changeset/tidy-fans-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: ensure frozen objects in state are correctly skipped

.changeset/twelve-cows-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: always assign text.nodeValue

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ jobs:
3030

3131
steps:
3232
- uses: actions/checkout@v3
33-
- uses: pnpm/[email protected]
34-
with:
35-
version: 9
33+
- uses: pnpm/action-setup@v4
3634
- uses: actions/setup-node@v3
3735
with:
3836
node-version: ${{ matrix.node-version }}
@@ -47,9 +45,7 @@ jobs:
4745
timeout-minutes: 5
4846
steps:
4947
- uses: actions/checkout@v3
50-
- uses: pnpm/[email protected]
51-
with:
52-
version: 9
48+
- uses: pnpm/action-setup@v4
5349
- uses: actions/setup-node@v3
5450
with:
5551
node-version: 18

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
with:
2222
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2323
fetch-depth: 0
24-
- uses: pnpm/[email protected]
25-
with:
26-
version: 9
24+
- uses: pnpm/action-setup@v4
2725
- name: Setup Node.js
2826
uses: actions/setup-node@v3
2927
with:

documentation/docs/02-template-syntax/07-special-elements.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ As with `<svelte:window>`, this element may only appear the top level of your co
268268

269269
You can also bind to the following properties:
270270

271+
- `activeElement`
271272
- `fullscreenElement`
273+
- `pointerLockElement`
272274
- `visibilityState`
273275

274276
All are readonly.

eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ import lube from 'eslint-plugin-lube';
55
export default [
66
...svelte_config,
77
{
8+
languageOptions: {
9+
parserOptions: {
10+
project: true
11+
}
12+
},
813
plugins: {
914
lube
1015
},
1116
rules: {
17+
'@typescript-eslint/await-thenable': 'error',
18+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
19+
'@typescript-eslint/require-await': 'error',
1220
'no-console': 'error',
1321
'lube/svelte-naming-convention': ['error', { fixSameNames: true }],
1422
// eslint isn't that well-versed with JSDoc to know that `foo: /** @type{..} */ (foo)` isn't a violation of this rule, so turn it off
@@ -43,7 +51,6 @@ export default [
4351
'documentation',
4452
// contains a fork of the REPL which doesn't adhere to eslint rules
4553
'sites/svelte-5-preview/**',
46-
'playgrounds/demo/src/**',
4754
'tmp/**',
4855
// wasn't checked previously, reenable at some point
4956
'sites/svelte.dev/**'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"type": "module",
77
"license": "MIT",
8+
"packageManager": "[email protected]",
89
"engines": {
910
"pnpm": "^9.0.0"
1011
},

packages/svelte/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# svelte
22

3+
## 5.0.0-next.151
4+
5+
### Patch Changes
6+
7+
- fix: relax `Component` type ([#11929](https://github.com/sveltejs/svelte/pull/11929))
8+
9+
- fix: sort `{@const ...}` tags topologically in legacy mode ([#11908](https://github.com/sveltejs/svelte/pull/11908))
10+
11+
- chore: deprecate html in favour of body for render() ([#11927](https://github.com/sveltejs/svelte/pull/11927))
12+
13+
- fix: append start/end info to `AssignmentPattern` and `VariableDeclarator` ([#11930](https://github.com/sveltejs/svelte/pull/11930))
14+
15+
- fix: relax slot prop validation on components ([#11923](https://github.com/sveltejs/svelte/pull/11923))
16+
17+
## 5.0.0-next.150
18+
19+
### Patch Changes
20+
21+
- fix: populate `this.#sources` when constructing reactive map ([#11913](https://github.com/sveltejs/svelte/pull/11913))
22+
23+
- fix: omit `state_referenced_locally` warning for component exports ([#11905](https://github.com/sveltejs/svelte/pull/11905))
24+
25+
- fix: ensure event.target is correct for delegation ([#11900](https://github.com/sveltejs/svelte/pull/11900))
26+
27+
- chore: speed up regex ([#11918](https://github.com/sveltejs/svelte/pull/11918))
28+
29+
- feat: bind `activeElement` and `pointerLockElement` in `<svelte:document>` ([#11879](https://github.com/sveltejs/svelte/pull/11879))
30+
31+
- fix: correctly backport `svelte:element` to old AST ([#11917](https://github.com/sveltejs/svelte/pull/11917))
32+
33+
- fix: add `unused-export-let` to legacy lint replacements ([#11896](https://github.com/sveltejs/svelte/pull/11896))
34+
35+
## 5.0.0-next.149
36+
37+
### Patch Changes
38+
39+
- fix: keep default values of props a proxy after reassignment ([#11860](https://github.com/sveltejs/svelte/pull/11860))
40+
41+
- fix: address map reactivity regression ([#11882](https://github.com/sveltejs/svelte/pull/11882))
42+
43+
- fix: assign message to error object in `handle_error` using `Object.defineProperty` ([#11675](https://github.com/sveltejs/svelte/pull/11675))
44+
45+
- fix: ensure frozen objects in state are correctly skipped ([#11889](https://github.com/sveltejs/svelte/pull/11889))
46+
347
## 5.0.0-next.148
448

549
### Patch Changes

0 commit comments

Comments
 (0)