Skip to content

Commit 8288220

Browse files
committed
note when APIs were added
1 parent 60aaaac commit 8288220

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

packages/svelte/src/motion/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export * from './tweened.js';
2525
* {/if}
2626
* ```
2727
* @type {MediaQuery}
28+
* @since 5.7.0
2829
*/
2930
export const prefersReducedMotion = /*@__PURE__*/ new MediaQuery(
3031
'(prefers-reduced-motion: reduce)'

packages/svelte/src/reactivity/create-subscriber.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import { increment } from './utils.js';
4343
* }
4444
* ```
4545
* @param {(update: () => void) => (() => void) | void} start
46+
* @since 5.7.0
4647
*/
4748
export function createSubscriber(start) {
4849
let subscribers = 0;

packages/svelte/src/reactivity/media-query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { on } from '../events/index.js';
1515
*
1616
* <h1>{large.current ? 'large screen' : 'small screen'}</h1>
1717
* ```
18+
* @since 5.7.0
1819
*/
1920
export class MediaQuery {
2021
#query;

packages/svelte/types/index.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,8 @@ declare module 'svelte/motion' {
17051705
* </p>
17061706
* {/if}
17071707
* ```
1708-
* */
1708+
* @since 5.7.0
1709+
*/
17091710
export const prefersReducedMotion: MediaQuery;
17101711
/**
17111712
* The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it "bounces" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.
@@ -1765,6 +1766,7 @@ declare module 'svelte/reactivity' {
17651766
*
17661767
* <h1>{large.current ? 'large screen' : 'small screen'}</h1>
17671768
* ```
1769+
* @since 5.7.0
17681770
*/
17691771
export class MediaQuery {
17701772
/**
@@ -1814,7 +1816,8 @@ declare module 'svelte/reactivity' {
18141816
* }
18151817
* }
18161818
* ```
1817-
* */
1819+
* @since 5.7.0
1820+
*/
18181821
export function createSubscriber(start: (update: () => void) => (() => void) | void): () => void;
18191822

18201823
export {};

0 commit comments

Comments
 (0)