Skip to content

Commit 1bd50a8

Browse files
committed
Merge branch 'main' into agadoo
2 parents 5e037ae + 73e8820 commit 1bd50a8

File tree

69 files changed

+1333
-170
lines changed

Some content is hidden

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

69 files changed

+1333
-170
lines changed

.changeset/brave-walls-destroy.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: use internal `get_descriptors` helper

.changeset/fresh-weeks-trade.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: make operations lazy

.changeset/funny-wombats-argue.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: allow svelte:self in snippets

.changeset/good-pianos-jump.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: check that snippet is not rendered as a component

.changeset/honest-icons-change.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+
patch: ensure keyed each block fallback to indexed each block

.changeset/itchy-lions-wash.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: allow member access on directives

.changeset/lucky-schools-hang.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 dynamic attributes containing call expressions update

.changeset/nasty-clocks-exercise.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: corrects a beforeUpdate/afterUpdate bug

.changeset/poor-eggs-enjoy.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 missing files binding

.changeset/pre.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
"svelte.dev": "1.0.0"
1010
},
1111
"changesets": [
12-
"rotten-buckets-develop"
12+
"chilly-dolphins-lick",
13+
"eight-steaks-shout",
14+
"khaki-mails-draw",
15+
"moody-owls-cry",
16+
"quiet-camels-mate",
17+
"rotten-buckets-develop",
18+
"small-papayas-laugh",
19+
"tall-shrimps-worry"
1320
]
1421
}

.changeset/sour-rules-march.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: only escape attribute values for elements, not components

.changeset/strong-lemons-provide.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: handle event attribute spreading with event delegation

.changeset/thirty-flowers-sit.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: support class exports

.changeset/tiny-kings-whisper.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: treat `slot` the same as other props

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
"useTabs": false,
1818
"tabWidth": 2
1919
}
20+
},
21+
{
22+
"files": ["sites/svelte-5-preview/src/routes/docs/content/**/*.md"],
23+
"options": {
24+
"printWidth": 60
25+
}
2026
}
2127
]
2228
}

.vscode/launch.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
"program": "start.js",
1717
"cwd": "${workspaceFolder}/playgrounds/demo",
1818
"cascadeTerminateToConfigurations": ["Playground: Browser"]
19+
},
20+
{
21+
"type": "node",
22+
"request": "launch",
23+
"name": "Run sandbox",
24+
"program": "${workspaceFolder}/playgrounds/sandbox/run.js"
1925
}
2026
],
2127
"compounds": [

documentation/blog/2023-06-29-svelte-dev-overhaul.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We've also taken extra care to ensure that all the links from the old website wi
3131

3232
The lack of search functionality could make finding stuff a nuisance as <kbd>Ctrl+F</kbd> only returns results in order of occurrence and not order of importance. While <kbd>Ctrl+F</kbd> did have its benefits such as not requiring JS, now that the site has multiple pages, it's not an option anymore.
3333

34-
And for that, the new website comes with a search bar, which searches through the docs and the API surface. Hit <kbd>Ctrl+K</kbd> (or <kbd>CMD+F</kbd> for Mac users) and start searching — it even works without JavaScript!
34+
And for that, the new website comes with a search bar, which searches through the docs and the API surface. Hit <kbd>Ctrl+K</kbd> (or <kbd>CMD+K</kbd> for Mac users) and start searching — it even works without JavaScript!
3535

3636
## Lights, TypeScript, Action!
3737

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"url": "git+https://github.com/sveltejs/svelte.git"
1515
},
1616
"scripts": {
17-
"start": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run dev --prefix playgrounds/demo\"",
1817
"build": "pnpm -r --filter=./packages/* build",
1918
"build:sites": "pnpm -r --filter=./sites/* build",
2019
"preview-site": "npm run build --prefix sites/svelte-5-preview",

packages/svelte/CHANGELOG.md

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

3+
## 5.0.0-next.2
4+
5+
### Patch Changes
6+
7+
- breaking: remove selector api ([#9426](https://github.com/sveltejs/svelte/pull/9426))
8+
9+
- fix: correct update_block index type ([#9425](https://github.com/sveltejs/svelte/pull/9425))
10+
11+
- fix: tighten up signals implementation ([#9417](https://github.com/sveltejs/svelte/pull/9417))
12+
13+
- fix: exclude internal props from spread attributes ([#9384](https://github.com/sveltejs/svelte/pull/9384))
14+
15+
- chore: improve keyblock treeshaking ([#9422](https://github.com/sveltejs/svelte/pull/9422))
16+
17+
- breaking: remove Component type, keep using SvelteComponent instead ([#9413](https://github.com/sveltejs/svelte/pull/9413))
18+
19+
- fix: add snippet marker symbol to children prop ([#9395](https://github.com/sveltejs/svelte/pull/9395))
20+
321
## 5.0.0-next.1
422

523
### Patch Changes

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svelte",
33
"description": "Cybernetically enhanced web apps",
44
"license": "MIT",
5-
"version": "5.0.0-next.1",
5+
"version": "5.0.0-next.2",
66
"type": "module",
77
"types": "./types/index.d.ts",
88
"engines": {

packages/svelte/src/compiler/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const special_elements = {
141141
/** @param {string} name */
142142
'duplicate-svelte-element': (name) => `A component can only have one <${name}> element`,
143143
'invalid-self-placement': () =>
144-
`<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, or slots passed to components`,
144+
`<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, {#snippet} blocks or slots passed to components`,
145145
'missing-svelte-element-definition': () => `<svelte:element> must have a 'this' attribute`,
146146
'missing-svelte-component-definition': () => `<svelte:component> must have a 'this' attribute`,
147147
'invalid-svelte-element-definition': () => `Invalid element definition — must be an {expression}`,

packages/svelte/src/compiler/phases/1-parse/state/element.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export default function tag(parser) {
127127
attributes: [],
128128
fragment: create_fragment(true),
129129
metadata: {
130-
svg: false
130+
svg: false,
131+
has_spread: false,
132+
can_delegate_events: null
131133
},
132134
parent: null
133135
}
@@ -331,7 +333,8 @@ function read_tag_name(parser) {
331333
if (
332334
fragment.type === 'IfBlock' ||
333335
fragment.type === 'EachBlock' ||
334-
fragment.type === 'Component'
336+
fragment.type === 'Component' ||
337+
fragment.type === 'SnippetBlock'
335338
) {
336339
legal = true;
337340
break;

0 commit comments

Comments
 (0)