Skip to content

Commit f3dd26b

Browse files
committed
merge main
2 parents b2113f2 + 82f6481 commit f3dd26b

File tree

38 files changed

+1148
-1050
lines changed

38 files changed

+1148
-1050
lines changed

.changeset/new-candles-marry.md

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

.changeset/warm-olives-applaud.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: clean up a11y analysis code

documentation/docs/02-runes/02-$state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ todos.push({
5050
});
5151
```
5252

53-
> [!NOTE] When you update properties of proxies, the original object is _not_ mutated.
53+
> [!NOTE] When you update properties of proxies, the original object is _not_ mutated. If you desire to use your own proxy handlers in a state proxy, [you should wrap the object _after_ wrapping it in `$state`](https://svelte.dev/playground/hello-world?version=latest#H4sIAAAAAAAACpWR3WoDIRCFX2UqhWyIJL3erAulL9C7XnQLMe5ksbUqOpsfln33YuyGFNJC8UKdc2bOhw7Myk9kJXsJ0nttO9jcR5KEG9AWJDwHdzwxznbaYGTl68Do5JM_FRifuh-9X8Y9Gkq1rYx4q66cJbQUWcmqqIL2VDe2IYMEbvuOikBADi-GJDSkXG-phId0G-frye2DO2psQYDFQ0Ys8gQO350dUkEydEg82T0GOs0nsSG9g2IqgxACZueo2ZUlpdvoDC6N64qsg1QKY8T2bpZp8gpIfbCQ85Zn50Ud82HkeY83uDjspenxv3jXcSDyjPWf9L1vJf0GH666J-jLu1ery4dV257IWXBWGa0-xFDMQdTTn2ScxWKsn86ROsLwQxqrVR5QM84Ij8TKFD2-cUZSm4O2LSt30kQcvwCgCmfZnAIAAA==).
5454
5555
Note that if you destructure a reactive value, the references are not reactive — as in normal JavaScript, they are evaluated at the point of destructuring:
5656

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.35.7
4+
5+
### Patch Changes
6+
7+
- fix: silence autofocus a11y warning inside `<dialog>` ([#16341](https://github.com/sveltejs/svelte/pull/16341))
8+
9+
- fix: don't show adjusted error messages in boundaries ([#16360](https://github.com/sveltejs/svelte/pull/16360))
10+
11+
- chore: replace inline regex with variable ([#16340](https://github.com/sveltejs/svelte/pull/16340))
12+
13+
## 5.35.6
14+
15+
### Patch Changes
16+
17+
- chore: simplify reaction/source ownership tracking ([#16333](https://github.com/sveltejs/svelte/pull/16333))
18+
19+
- chore: simplify internal component `pop()` ([#16331](https://github.com/sveltejs/svelte/pull/16331))
20+
321
## 5.35.5
422

523
### Patch Changes

packages/svelte/knip.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
33
"entry": [
4-
"src/*/index.js",
5-
"src/index-client.ts",
6-
"src/index-server.ts",
7-
"src/index.d.ts",
84
"tests/**/*.js",
95
"tests/**/*.ts",
106
"!tests/**/*.svelte",

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

packages/svelte/scripts/process-messages/templates/client-errors.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { DEV } from 'esm-env';
22

3+
export * from '../shared/errors.js';
4+
35
/**
46
* MESSAGE
57
* @param {string} PARAMETER

packages/svelte/scripts/process-messages/templates/server-errors.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export * from '../shared/errors.js';
2+
13
/**
24
* MESSAGE
35
* @param {string} PARAMETER

packages/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as e from '../../../errors.js';
99
import * as w from '../../../warnings.js';
1010
import { create_attribute, is_custom_element_node } from '../../nodes.js';
1111
import { regex_starts_with_newline } from '../../patterns.js';
12-
import { check_element } from './shared/a11y.js';
12+
import { check_element } from './shared/a11y/index.js';
1313
import { validate_element } from './shared/element.js';
1414
import { mark_subtree_dynamic } from './shared/fragment.js';
1515

packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @import { Context } from '../types' */
33
import { NAMESPACE_MATHML, NAMESPACE_SVG } from '../../../../constants.js';
44
import { is_text_attribute } from '../../../utils/ast.js';
5-
import { check_element } from './shared/a11y.js';
5+
import { check_element } from './shared/a11y/index.js';
66
import { validate_element } from './shared/element.js';
77
import { mark_subtree_dynamic } from './shared/fragment.js';
88

0 commit comments

Comments
 (0)