Skip to content

Commit 1e633fe

Browse files
Merge branch 'main' of github.com:sveltejs/svelte
2 parents f4e98bf + 0e0f01e commit 1e633fe

File tree

45 files changed

+484
-260
lines changed

Some content is hidden

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

45 files changed

+484
-260
lines changed

.changeset/strong-shoes-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: disallow $state/$derived in const tags

.github/workflows/docs-preview-create-request.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/docs-preview-delete-request.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/sync-request.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We use [GitHub issues](https://github.com/sveltejs/svelte/issues) for our public
5151

5252
If you have questions about using Svelte, contact us on Discord at [svelte.dev/chat](https://svelte.dev/chat), and we will do our best to answer your questions.
5353

54-
If you see anything you'd like to be implemented, create a [feature request issue](https://github.com/sveltejs/svelte/issues/new?template=feature_request.yml)
54+
If you see anything you'd like to be implemented, create a [feature request issue](https://github.com/sveltejs/svelte/issues/new?template=feature_request.yml).
5555

5656
### Reporting new issues
5757

packages/svelte/CHANGELOG.md

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

3+
## 5.19.3
4+
5+
### Patch Changes
6+
7+
- fix: don't throw for `undefined` non delegated event handlers ([#15087](https://github.com/sveltejs/svelte/pull/15087))
8+
9+
- fix: consistently set value to blank string when value attribute is undefined ([#15057](https://github.com/sveltejs/svelte/pull/15057))
10+
11+
- fix: optimise || expressions in template ([#15092](https://github.com/sveltejs/svelte/pull/15092))
12+
13+
- fix: correctly handle `novalidate` attribute casing ([#15083](https://github.com/sveltejs/svelte/pull/15083))
14+
15+
- fix: expand boolean attribute support ([#15095](https://github.com/sveltejs/svelte/pull/15095))
16+
17+
- fix: avoid double deriveds in component props ([#15089](https://github.com/sveltejs/svelte/pull/15089))
18+
19+
- fix: add check for `is` attribute to correctly detect custom elements ([#15086](https://github.com/sveltejs/svelte/pull/15086))
20+
21+
## 5.19.2
22+
23+
### Patch Changes
24+
25+
- fix: address regression with untrack ([#15079](https://github.com/sveltejs/svelte/pull/15079))
26+
327
## 5.19.1
428

529
### 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.19.1",
5+
"version": "5.19.3",
66
"type": "module",
77
"types": "./types/index.d.ts",
88
"engines": {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ function special(parser) {
706706
expression: /** @type {AST.RenderTag['expression']} */ (expression),
707707
metadata: {
708708
dynamic: false,
709-
args_with_call_expression: new Set(),
709+
arguments: [],
710710
path: [],
711711
snippets: new Set()
712712
}

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,15 @@ export function analyze_module(ast, options) {
243243
}
244244
}
245245

246-
const analysis = { runes: true, tracing: false };
246+
/** @type {Analysis} */
247+
const analysis = {
248+
module: { ast, scope, scopes },
249+
name: options.filename,
250+
accessors: false,
251+
runes: true,
252+
immutable: true,
253+
tracing: false
254+
};
247255

248256
walk(
249257
/** @type {Node} */ (ast),
@@ -256,14 +264,7 @@ export function analyze_module(ast, options) {
256264
visitors
257265
);
258266

259-
return {
260-
module: { ast, scope, scopes },
261-
name: options.filename,
262-
accessors: false,
263-
runes: true,
264-
immutable: true,
265-
tracing: analysis.tracing
266-
};
267+
return analysis;
267268
}
268269

269270
/**
@@ -604,7 +605,6 @@ export function analyze_component(root, source, options) {
604605
has_props_rune: false,
605606
component_slots: new Set(),
606607
expression: null,
607-
render_tag: null,
608608
private_derived_state: [],
609609
function_depth: scope.function_depth,
610610
instance_scope: instance.scope,
@@ -676,7 +676,6 @@ export function analyze_component(root, source, options) {
676676
reactive_statements: analysis.reactive_statements,
677677
component_slots: new Set(),
678678
expression: null,
679-
render_tag: null,
680679
private_derived_state: [],
681680
function_depth: scope.function_depth
682681
};

packages/svelte/src/compiler/phases/2-analyze/types.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export interface AnalysisState {
1919
component_slots: Set<string>;
2020
/** Information about the current expression/directive/block value */
2121
expression: ExpressionMetadata | null;
22-
/** The current {@render ...} tag, if any */
23-
render_tag: null | AST.RenderTag;
2422
private_derived_state: string[];
2523
function_depth: number;
2624

0 commit comments

Comments
 (0)