Skip to content

Commit b8b5655

Browse files
committed
Merge branch 'main' into form-reset-listener
2 parents 286398b + 86b3ea8 commit b8b5655

File tree

62 files changed

+1208
-229
lines changed

Some content is hidden

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

62 files changed

+1208
-229
lines changed

.changeset/beige-cobras-smoke.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 support for webkitdirectory DOM boolean attribute

.changeset/dull-pots-add.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: don't override instance methods during legacy class creation

.changeset/fuzzy-bags-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+
feat: add reactive Map class to svelte/reactivity

.changeset/mighty-cooks-scream.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: adjust scope parent for named slots

.changeset/olive-mice-fix.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: improve handling of unowned derived signals

.changeset/pre.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"afraid-moose-matter",
1414
"angry-books-jam",
1515
"angry-plums-punch",
16+
"beige-cobras-smoke",
1617
"beige-flies-wash",
1718
"beige-mirrors-listen",
1819
"beige-rabbits-shave",
@@ -63,6 +64,7 @@
6364
"dry-eggs-retire",
6465
"dull-coins-vanish",
6566
"dull-mangos-wave",
67+
"dull-pots-add",
6668
"dull-roses-relate",
6769
"early-ads-tie",
6870
"eight-steaks-shout",
@@ -98,6 +100,7 @@
98100
"friendly-candles-relate",
99101
"friendly-lies-camp",
100102
"funny-wombats-argue",
103+
"fuzzy-bags-camp",
101104
"gentle-dolls-juggle",
102105
"gentle-sheep-hug",
103106
"gentle-spies-happen",
@@ -165,6 +168,7 @@
165168
"lucky-schools-hang",
166169
"lucky-toes-begin",
167170
"many-trees-fix",
171+
"mighty-cooks-scream",
168172
"mighty-files-hammer",
169173
"moody-carrots-lay",
170174
"moody-frogs-exist",
@@ -191,6 +195,7 @@
191195
"old-mails-sneeze",
192196
"old-oranges-compete",
193197
"olive-kangaroos-brake",
198+
"olive-mice-fix",
194199
"olive-seals-sell",
195200
"olive-shirts-complain",
196201
"olive-socks-kick",
@@ -232,8 +237,10 @@
232237
"rotten-rules-invite",
233238
"rude-ghosts-tickle",
234239
"selfish-dragons-knock",
240+
"selfish-spies-help",
235241
"selfish-tools-hide",
236242
"serious-kids-deliver",
243+
"serious-needles-joke",
237244
"serious-socks-cover",
238245
"serious-zebras-scream",
239246
"seven-deers-jam",
@@ -263,6 +270,7 @@
263270
"small-papayas-laugh",
264271
"small-sheep-type",
265272
"smart-parents-swim",
273+
"smart-turkeys-tell",
266274
"smart-zebras-pay",
267275
"smooth-rings-rush",
268276
"soft-clocks-remember",
@@ -304,6 +312,7 @@
304312
"tasty-cheetahs-appear",
305313
"tasty-numbers-perform",
306314
"tasty-steaks-smile",
315+
"ten-eels-move",
307316
"ten-foxes-repeat",
308317
"ten-jokes-divide",
309318
"ten-peaches-sleep",
@@ -344,6 +353,7 @@
344353
"wild-foxes-wonder",
345354
"wise-apples-care",
346355
"wise-dancers-hang",
356+
"wise-dodos-tell",
347357
"wise-donkeys-marry",
348358
"wise-jobs-admire",
349359
"wise-radios-exercise",

.changeset/selfish-spies-help.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: improve element class attribute behaviour

.changeset/serious-needles-joke.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 types for svelte/reactivity

.changeset/smart-turkeys-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: ensure select value is updated upon select option removal

.changeset/ten-eels-move.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 capture events don't call delegated events

.changeset/wise-dodos-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: ensure arguments are supported on all reactive Date methods

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,18 @@ jobs:
6060
- name: build and check generated types
6161
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail
6262
run: pnpm build && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please regenerate types locally and commit the changes after you have reviewed them"; git diff; exit 1); }
63+
64+
Treeshaking:
65+
runs-on: ubuntu-latest
66+
timeout-minutes: 5
67+
steps:
68+
- uses: actions/checkout@v3
69+
- uses: pnpm/[email protected]
70+
- uses: actions/setup-node@v3
71+
with:
72+
node-version: 18
73+
cache: pnpm
74+
- name: install
75+
run: pnpm install --frozen-lockfile
76+
- name: check
77+
run: cd packages/svelte && node scripts/check-treeshakeability.js

packages/svelte/CHANGELOG.md

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

3+
## 5.0.0-next.81
4+
5+
### Patch Changes
6+
7+
- feat: add support for webkitdirectory DOM boolean attribute ([#10847](https://github.com/sveltejs/svelte/pull/10847))
8+
9+
- fix: don't override instance methods during legacy class creation ([#10834](https://github.com/sveltejs/svelte/pull/10834))
10+
11+
- fix: adjust scope parent for named slots ([#10843](https://github.com/sveltejs/svelte/pull/10843))
12+
13+
- fix: improve handling of unowned derived signals ([#10842](https://github.com/sveltejs/svelte/pull/10842))
14+
15+
- fix: improve element class attribute behaviour ([#10856](https://github.com/sveltejs/svelte/pull/10856))
16+
17+
- fix: ensure select value is updated upon select option removal ([#10846](https://github.com/sveltejs/svelte/pull/10846))
18+
19+
- fix: ensure capture events don't call delegated events ([#10831](https://github.com/sveltejs/svelte/pull/10831))
20+
21+
## 5.0.0-next.80
22+
23+
### Patch Changes
24+
25+
- fix: add types for svelte/reactivity ([#10817](https://github.com/sveltejs/svelte/pull/10817))
26+
27+
- fix: ensure arguments are supported on all reactive Date methods ([#10813](https://github.com/sveltejs/svelte/pull/10813))
28+
29+
## 5.0.0-next.79
30+
31+
### Patch Changes
32+
33+
- feat: add reactive Map class to svelte/reactivity ([#10803](https://github.com/sveltejs/svelte/pull/10803))
34+
335
## 5.0.0-next.78
436

537
### Patch Changes

packages/svelte/elements.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
10561056
type?: HTMLInputTypeAttribute | undefined | null;
10571057
value?: any;
10581058
width?: number | string | undefined | null;
1059+
webkitdirectory?: boolean | undefined | null;
10591060

10601061
'on:change'?: ChangeEventHandler<HTMLInputElement> | undefined | null;
10611062
onchange?: ChangeEventHandler<HTMLInputElement> | undefined | null;

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

packages/svelte/scripts/check-treeshakeability.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ async function bundle_code(entry) {
1212
virtual({
1313
__entry__: entry
1414
}),
15+
{
16+
name: 'resolve-svelte',
17+
resolveId(importee) {
18+
if (importee.startsWith('svelte')) {
19+
const entry = pkg.exports[importee.replace('svelte', '.')];
20+
return path.resolve(entry.browser ?? entry.default);
21+
}
22+
}
23+
},
1524
nodeResolve({
1625
exportConditions: ['production', 'import', 'browser', 'default']
1726
})
@@ -99,6 +108,7 @@ const without_hydration = await bundle_code(
99108
{ filename: 'App.svelte' }
100109
).js.code
101110
);
111+
102112
if (!without_hydration.includes('current_hydration_fragment')) {
103113
// eslint-disable-next-line no-console
104114
console.error(`✅ Hydration code treeshakeable`);

packages/svelte/scripts/generate-types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ await createBundle({
2929
[`${pkg.name}/easing`]: `${dir}/src/easing/index.js`,
3030
[`${pkg.name}/legacy`]: `${dir}/src/legacy/legacy-client.js`,
3131
[`${pkg.name}/motion`]: `${dir}/src/motion/public.d.ts`,
32+
[`${pkg.name}/reactivity`]: `${dir}/src/reactivity/index.js`,
3233
[`${pkg.name}/server`]: `${dir}/src/server/index.js`,
3334
[`${pkg.name}/store`]: `${dir}/src/store/public.d.ts`,
3435
[`${pkg.name}/transition`]: `${dir}/src/transition/public.d.ts`,

0 commit comments

Comments
 (0)