Skip to content

Commit ec8b7e8

Browse files
committed
Merge remote-tracking branch 'origin/master' into sites
2 parents df2bb23 + 757a81a commit ec8b7e8

File tree

373 files changed

+9332
-4835
lines changed

Some content is hidden

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

373 files changed

+9332
-4835
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,43 @@
22

33
## Unreleased
44

5+
* Add a11y warnings:
6+
* `aria-activedescendant-has-tabindex`: elements with `aria-activedescendant` need to have a `tabindex` ([#8172](https://github.com/sveltejs/svelte/pull/8172))
7+
* `role-supports-aria-props`: checks that the (implicit) element role supports the given aria attributes ([#8195](https://github.com/sveltejs/svelte/pull/8195))
8+
* Omit a11y warning on `<video>` tags with `aria-hidden="true"` ([#7874](https://github.com/sveltejs/svelte/issues/7874))
9+
* Omit a11y "no child content" warning on elements with `aria-label` ([#8299](https://github.com/sveltejs/svelte/pull/8299))
10+
* Omit a11y warnings on `<svelte:element>` ([#7939](https://github.com/sveltejs/svelte/issues/7939))
511
* Make `noreferrer` warning less zealous ([#6289](https://github.com/sveltejs/svelte/issues/6289))
612
* `trusted-types` CSP compatibility for Web Components ([#8134](https://github.com/sveltejs/svelte/issues/8134))
13+
* Add `data-sveltekit-replacestate` and `data-sveltekit-keepfocus` attribute typings ([#8281](https://github.com/sveltejs/svelte/issues/8281))
14+
* Don't throw when calling `unsubscribe` twice ([#8186](https://github.com/sveltejs/svelte/pull/8186))
15+
* Detect unused empty attribute CSS selectors ([#8042](https://github.com/sveltejs/svelte/issues/8042))
16+
* Simpler output for reactive statements if dependencies are all static ([#7942](https://github.com/sveltejs/svelte/pull/7942))
17+
* Flush remaining `afterUpdate` calls before `onDestroy` ([#7476](https://github.com/sveltejs/svelte/issues/7476))
18+
* Check value equality for `input` types `url` and `search` ([#7027](https://github.com/sveltejs/svelte/issues/7027))
19+
* Compute node dimensions directly before crossfading ([#4111](https://github.com/sveltejs/svelte/issues/4111))
20+
* Add `readonly` method to convert `writable` store to readonly ([#6518](https://github.com/sveltejs/svelte/pull/6518))
21+
* Ensure `bind:offsetHeight` updates initially ([#4233](https://github.com/sveltejs/svelte/issues/4233))
22+
* Better handling of `inert` attribute ([#7500](https://github.com/sveltejs/svelte/issues/7500))
23+
* Clear inputs when `bind:group` to `undefined` ([#8214](https://github.com/sveltejs/svelte/issues/8214))
24+
* Ensure nested arrays can change at the same time ([#8282](https://github.com/sveltejs/svelte/issues/8282))
25+
* Reduce use of template literals in SSR output for better performance ([#7539](https://github.com/sveltejs/svelte/pull/7539))
26+
* Allow assigning to property of const while destructuring ([#7964](https://github.com/sveltejs/svelte/issues/7964))
27+
* Don't set selected options if value is unbound or not passed ([#5644](https://github.com/sveltejs/svelte/issues/5644))
28+
* Ensure `<input>` value persists when swapping elements with spread attributes in an `#each` block ([#7578](https://github.com/sveltejs/svelte/issues/7578))
29+
* Select first enabled option by default when initial value is undefined ([#7041](https://github.com/sveltejs/svelte/issues/7041))
30+
* Fix race condition on `svelte:element` with transitions ([#7948](https://github.com/sveltejs/svelte/issues/7948))
31+
* Optimise `<svelte:element>` output code for static tag and static attribute ([#8161](https://github.com/sveltejs/svelte/pull/8161))
32+
* Decode html entities correctly ([#8026](https://github.com/sveltejs/svelte/issues/8026))
33+
* Handle `{@html}` tags inside `<template>` tags ([#7364](https://github.com/sveltejs/svelte/pull/7364))
34+
* Introduce parameter to allow for horizontal slide transition ([#6182](https://github.com/sveltejs/svelte/issues/6182))
35+
* Add `naturalWidth` and `naturalHeight` bindings ([#7771](https://github.com/sveltejs/svelte/issues/7771))
36+
* make `<!-- svelte-ignore ... -->` work above components ([#8082](https://github.com/sveltejs/svelte/issues/8082))
37+
* add global compound selector validation ([#6272](https://github.com/sveltejs/svelte/issues/6272))
38+
* add `stopImmediatePropagation` event modifier ([#5085](https://github.com/sveltejs/svelte/issues/5085))
39+
* add `readyState` binding for media elements ([#6666](https://github.com/sveltejs/svelte/issues/6666))
40+
* call `<svelte:component>` update to `this` only when it's dirty ([#4129](https://github.com/sveltejs/svelte/issues/4129))
41+
* support exclusively special characters in component filenames ([#7143](https://github.com/sveltejs/svelte/issues/7143))
742

843
## 3.55.1
944

elements/index.d.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ export interface DOMAttributes<T extends EventTarget> {
196196
// Message Events
197197
'on:message'?: MessageEventHandler<T> | undefined | null;
198198
'on:messageerror'?: MessageEventHandler<T> | undefined | null;
199+
200+
// Document Events
201+
'on:visibilitychange'?: EventHandler<Event, T> | undefined | null;
199202

200203
// Global Events
201204
'on:cancel'?: EventHandler<Event, T> | undefined | null;
@@ -540,10 +543,12 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
540543
'bind:textContent'?: string | undefined | null;
541544

542545
// SvelteKit
546+
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
543547
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
544548
'data-sveltekit-preload-code'?: true | '' | 'eager' | 'viewport' | 'hover' | 'tap' | 'off' | undefined | null;
545549
'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
546550
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
551+
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
547552
}
548553

549554
export type HTMLAttributeAnchorTarget =
@@ -705,6 +710,9 @@ export interface HTMLImgAttributes extends HTMLAttributes<HTMLImageElement> {
705710
srcset?: string | undefined | null;
706711
usemap?: string | undefined | null;
707712
width?: number | string | undefined | null;
713+
714+
readonly 'bind:naturalWidth'?: number | undefined | null;
715+
readonly 'bind:naturalHeight'?: number | undefined | null;
708716
}
709717

710718
export interface HTMLInsAttributes extends HTMLAttributes<HTMLModElement> {
@@ -840,6 +848,7 @@ export interface HTMLMediaAttributes<T extends HTMLMediaElement> extends HTMLAtt
840848
*/
841849
volume?: number | undefined | null;
842850

851+
readonly 'bind:readyState'?: 0 | 1 | 2 | 3 | 4 | undefined | null;
843852
readonly 'bind:duration'?: number | undefined | null;
844853
readonly 'bind:buffered'?: SvelteMediaTimeRange[] | undefined | null;
845854
readonly 'bind:played'?: SvelteMediaTimeRange[] | undefined | null;
@@ -860,9 +869,9 @@ export interface HTMLMediaAttributes<T extends HTMLMediaElement> extends HTMLAtt
860869
}
861870

862871
export interface HTMLMetaAttributes extends HTMLAttributes<HTMLMetaElement> {
863-
charSet?: string | undefined | null;
872+
charset?: string | undefined | null;
864873
content?: string | undefined | null;
865-
httpequiv?: string | undefined | null;
874+
'http-equiv'?: string | undefined | null;
866875
name?: string | undefined | null;
867876
media?: string | undefined | null;
868877
}

0 commit comments

Comments
 (0)