mirror of https://github.com/sveltejs/svelte
breaking: rename svelte/reactivity helpers to include Svelte prefix (#12248)
* breaking: rename svelte/reactivity helpers to include Svelte prefix * keep old exports * add runtime errors * add runtime errors * feedback * feedback * feedback * Update .changeset/nice-jobs-breathe.md Co-authored-by: Conduitry <git@chor.date> --------- Co-authored-by: Conduitry <git@chor.date>pull/12246/head
parent
9a293ea8c4
commit
cae5f1ed26
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
breaking: rename `svelte/reactivity` helpers to include `Svelte` prefix
|
@ -1,4 +1,29 @@
|
|||||||
export { ReactiveDate as Date } from './date.js';
|
export { SvelteDate } from './date.js';
|
||||||
export { ReactiveSet as Set } from './set.js';
|
export { SvelteSet } from './set.js';
|
||||||
export { ReactiveMap as Map } from './map.js';
|
export { SvelteMap } from './map.js';
|
||||||
export { ReactiveURL as URL, ReactiveURLSearchParams as URLSearchParams } from './url.js';
|
export { SvelteURL, SvelteURLSearchParams } from './url.js';
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteDate` instead */
|
||||||
|
export function Date() {
|
||||||
|
throw new Error('Date has been removed, use SvelteDate instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteSet` instead */
|
||||||
|
export function Set() {
|
||||||
|
throw new Error('Set has been removed, use SvelteSet instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteMap` instead */
|
||||||
|
export function Map() {
|
||||||
|
throw new Error('Map has been removed, use SvelteMap instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteURL` instead */
|
||||||
|
export function URL() {
|
||||||
|
throw new Error('URL has been removed, use SvelteURL instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteURLSearchParams` instead */
|
||||||
|
export function URLSearchParams() {
|
||||||
|
throw new Error('URLSearchParams has been removed, use SvelteURLSearchParams instead.');
|
||||||
|
}
|
||||||
|
@ -1,5 +1,30 @@
|
|||||||
export const Date = globalThis.Date;
|
export const SvelteDate = globalThis.Date;
|
||||||
export const Set = globalThis.Set;
|
export const SvelteSet = globalThis.Set;
|
||||||
export const Map = globalThis.Map;
|
export const SvelteMap = globalThis.Map;
|
||||||
export const URL = globalThis.URL;
|
export const SvelteURL = globalThis.URL;
|
||||||
export const URLSearchParams = globalThis.URLSearchParams;
|
export const SvelteURLSearchParams = globalThis.URLSearchParams;
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteDate` instead */
|
||||||
|
export function Date() {
|
||||||
|
throw new Error('Date has been removed, use SvelteDate instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteSet` instead */
|
||||||
|
export function Set() {
|
||||||
|
throw new Error('Set has been removed, use SvelteSet instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteMap` instead */
|
||||||
|
export function Map() {
|
||||||
|
throw new Error('Map has been removed, use SvelteMap instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteURL` instead */
|
||||||
|
export function URL() {
|
||||||
|
throw new Error('URL has been removed, use SvelteURL instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use `SvelteURLSearchParams` instead */
|
||||||
|
export function URLSearchParams() {
|
||||||
|
throw new Error('URLSearchParams has been removed, use SvelteURLSearchParams instead.');
|
||||||
|
}
|
||||||
|
Loading…
Reference in new issue