Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte

Package Overview
Dependencies
Maintainers
0
Versions
777
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte - npm Package Compare versions

Comparing version 5.0.0-next.168 to 5.0.0-next.169

2

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "5.0.0-next.168",
"version": "5.0.0-next.169",
"type": "module",

@@ -8,0 +8,0 @@ "types": "./types/index.d.ts",

@@ -21,3 +21,3 @@ import { block, branch, destroy_effect } from '../reactivity/effects.js';

block(null, 0, () => {
block(anchor, 0, () => {
const component = get(source);

@@ -24,0 +24,0 @@

@@ -0,2 +1,4 @@

import { DEV } from 'esm-env';
import { block, branch, pause_effect } from '../../reactivity/effects.js';
import { empty } from '../operations.js';

@@ -8,3 +10,3 @@ /**

* @param {() => C} get_component
* @param {(component: C) => import('#client').Dom | void} render_fn
* @param {(anchor: import('#client').TemplateNode, component: C) => import('#client').Dom | void} render_fn
* @returns {void}

@@ -19,2 +21,7 @@ */

var component_anchor = anchor;
// create a dummy anchor for the HMR wrapper, if such there be
if (DEV) component_anchor = empty();
block(anchor, 0, () => {

@@ -29,5 +36,6 @@ if (component === (component = get_component())) return;

if (component) {
effect = branch(() => render_fn(component));
if (DEV) anchor.before(component_anchor);
effect = branch(() => render_fn(component_anchor, component));
}
});
}

@@ -777,3 +777,6 @@ import { DEV } from 'esm-env';

current_dependencies = [signal];
} else if (current_dependencies[current_dependencies.length - 1] !== signal) {
} else if (
current_dependencies[current_dependencies.length - 1] !== signal &&
!current_dependencies.includes(signal)
) {
current_dependencies.push(signal);

@@ -780,0 +783,0 @@ }

@@ -60,3 +60,3 @@ import { source, set } from '../internal/client/reactivity/sources.js';

export class ReactiveDate extends Date {
export class SvelteDate extends Date {
#raw_time = source(super.getTime());

@@ -68,3 +68,3 @@

inited = true;
const proto = ReactiveDate.prototype;
const proto = SvelteDate.prototype;
const date_proto = Date.prototype;

@@ -71,0 +71,0 @@

@@ -1,4 +0,29 @@

export { ReactiveDate as Date } from './date.js';
export { ReactiveSet as Set } from './set.js';
export { ReactiveMap as Map } from './map.js';
export { ReactiveURL as URL, ReactiveURLSearchParams as URLSearchParams } from './url.js';
export { SvelteDate } from './date.js';
export { SvelteSet } from './set.js';
export { SvelteMap } from './map.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 +0,30 @@

export const Date = globalThis.Date;
export const Set = globalThis.Set;
export const Map = globalThis.Map;
export const URL = globalThis.URL;
export const URLSearchParams = globalThis.URLSearchParams;
export const SvelteDate = globalThis.Date;
export const SvelteSet = globalThis.Set;
export const SvelteMap = globalThis.Map;
export const SvelteURL = globalThis.URL;
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.');
}

@@ -11,3 +11,3 @@ import { DEV } from 'esm-env';

*/
export class ReactiveMap extends Map {
export class SvelteMap extends Map {
/** @type {Map<K, import('#client').Source<number>>} */

@@ -14,0 +14,0 @@ #sources = new Map();

@@ -15,3 +15,3 @@ import { DEV } from 'esm-env';

*/
export class ReactiveSet extends Set {
export class SvelteSet extends Set {
/** @type {Map<T, import('#client').Source<boolean>>} */

@@ -45,3 +45,3 @@ #sources = new Map();

var proto = ReactiveSet.prototype;
var proto = SvelteSet.prototype;
var set_proto = Set.prototype;

@@ -64,3 +64,3 @@

var set = /** @type {Set<T>} */ (set_proto[method].apply(this, v));
return new ReactiveSet(set);
return new SvelteSet(set);
};

@@ -67,0 +67,0 @@ }

@@ -7,3 +7,3 @@ import { source, set } from '../internal/client/reactivity/sources.js';

export class ReactiveURL extends URL {
export class SvelteURL extends URL {
#protocol = source(super.protocol);

@@ -16,3 +16,3 @@ #username = source(super.username);

#hash = source(super.hash);
#searchParams = new ReactiveURLSearchParams();
#searchParams = new SvelteURLSearchParams();

@@ -158,3 +158,3 @@ /**

export class ReactiveURLSearchParams extends URLSearchParams {
export class SvelteURLSearchParams extends URLSearchParams {
#version = source(0);

@@ -161,0 +161,0 @@

@@ -9,3 +9,3 @@ // generated during release, do not modify

*/
export const VERSION = '5.0.0-next.168';
export const VERSION = '5.0.0-next.169';
export const PUBLIC_VERSION = '5';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc