Skip to content

Commit 0482fe3

Browse files
committed
Merge branch 'main' into revert-15196-corepack-bullshit
2 parents 884154f + 1e1aea4 commit 0482fe3

File tree

36 files changed

+264
-73
lines changed

36 files changed

+264
-73
lines changed

.changeset/serious-glasses-kiss.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: remove unnecessary `?? ''` on some expressions

.changeset/short-fireants-talk.md

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

.changeset/thirty-feet-tap.md

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

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2025 [these people](https://github.com/sveltejs/svelte/graphs/contributors)
1+
Copyright (c) 2016-2025 [Svelte Contributors](https://github.com/sveltejs/svelte/graphs/contributors)
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</picture>
66
</a>
77

8-
[![license](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat)
8+
[![License](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat)
99

1010
## What is Svelte?
1111

documentation/docs/02-runes/06-$bindable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Now, a component that uses `<FancyInput>` can add the [`bind:`](bind) directive
3333

3434
<!-- prettier-ignore -->
3535
```svelte
36-
/// App.svelte
36+
/// file: App.svelte
3737
<script>
3838
import FancyInput from './FancyInput.svelte';
3939

documentation/docs/03-template-syntax/11-bind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Elements with the `contenteditable` attribute support the following bindings:
267267
<!-- for some reason puts the comment and html on same line -->
268268
<!-- prettier-ignore -->
269269
```svelte
270-
<div contenteditable="true" bind:innerHTML={html} />
270+
<div contenteditable="true" bind:innerHTML={html}></div>
271271
```
272272

273273
## Dimensions
@@ -307,7 +307,7 @@ To get a reference to a DOM node, use `bind:this`. The value will be `undefined`
307307
});
308308
</script>
309309
310-
<canvas bind:this={canvas} />
310+
<canvas bind:this={canvas}></canvas>
311311
```
312312

313313
Components also support `bind:this`, allowing you to interact with component instances programmatically.

packages/svelte/CHANGELOG.md

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

3+
## 5.20.2
4+
5+
### Patch Changes
6+
7+
- chore: remove unused `options.uid` in `render` ([#15302](https://github.com/sveltejs/svelte/pull/15302))
8+
9+
- fix: do not warn for `binding_property_non_reactive` if binding is a store in an each ([#15318](https://github.com/sveltejs/svelte/pull/15318))
10+
11+
- fix: prevent writable store value from becoming a proxy when reassigning using $-prefix ([#15283](https://github.com/sveltejs/svelte/pull/15283))
12+
13+
- fix: `muted` reactive without `bind` and select/autofocus attributes working with function calls ([#15326](https://github.com/sveltejs/svelte/pull/15326))
14+
15+
- fix: ensure input elements and elements with `dir` attribute are marked as non-static ([#15259](https://github.com/sveltejs/svelte/pull/15259))
16+
17+
- fix: fire delegated events on target even it was disabled in the meantime ([#15319](https://github.com/sveltejs/svelte/pull/15319))
18+
19+
## 5.20.1
20+
21+
### Patch Changes
22+
23+
- fix: ensure AST analysis on `svelte.js` modules succeeds ([#15297](https://github.com/sveltejs/svelte/pull/15297))
24+
25+
- fix: ignore typescript abstract methods ([#15267](https://github.com/sveltejs/svelte/pull/15267))
26+
27+
- fix: correctly ssr component in `svelte:head` with `$props.id()` or `css='injected'` ([#15291](https://github.com/sveltejs/svelte/pull/15291))
28+
329
## 5.20.0
430

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

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,20 @@ export function analyze_module(ast, options) {
258258
{
259259
scope,
260260
scopes,
261-
// @ts-expect-error TODO
262-
analysis
261+
analysis: /** @type {ComponentAnalysis} */ (analysis),
262+
derived_state: [],
263+
// TODO the following are not needed for modules, but we have to pass them in order to avoid type error,
264+
// and reducing the type would result in a lot of tedious type casts elsewhere - find a good solution one day
265+
ast_type: /** @type {any} */ (null),
266+
component_slots: new Set(),
267+
expression: null,
268+
function_depth: 0,
269+
has_props_rune: false,
270+
instance_scope: /** @type {any} */ (null),
271+
options: /** @type {ValidatedCompileOptions} */ (options),
272+
parent_element: null,
273+
reactive_statement: null,
274+
reactive_statements: new Map()
263275
},
264276
visitors
265277
);

0 commit comments

Comments
 (0)