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

solid-js

Package Overview
Dependencies
Maintainers
1
Versions
463
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-js - npm Package Compare versions

Comparing version 1.7.0-beta.3 to 1.7.0-beta.4

40

dist/dev.js

@@ -117,3 +117,6 @@ let taskIdCounter = 1,

const sharedConfig = {};
const sharedConfig = {
context: undefined,
registry: undefined
};
function setHydrateContext(context) {

@@ -608,4 +611,4 @@ sharedConfig.context = context;

const runningTransition = Transition && Transition.running;
if (this.sources && (!runningTransition && this.state || runningTransition && this.tState)) {
if (!runningTransition && this.state === STALE || runningTransition && this.tState === STALE) updateComputation(this);else {
if (this.sources && (runningTransition ? this.tState : this.state)) {
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);else {
const updates = Updates;

@@ -654,7 +657,7 @@ Updates = null;

if (TransitionRunning && Transition.disposed.has(o)) continue;
if (TransitionRunning && !o.tState || !TransitionRunning && !o.state) {
if (TransitionRunning ? !o.tState : !o.state) {
if (o.pure) Updates.push(o);else Effects.push(o);
if (o.observers) markDownstream(o);
}
if (TransitionRunning) o.tState = STALE;else o.state = STALE;
if (!TransitionRunning) o.state = STALE;else o.tState = STALE;
}

@@ -765,4 +768,4 @@ if (Updates.length > 10e5) {

const runningTransition = Transition && Transition.running;
if (!runningTransition && node.state === 0 || runningTransition && node.tState === 0) return;
if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) return lookUpstream(node);
if ((runningTransition ? node.tState : node.state) === 0) return;
if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);

@@ -772,3 +775,3 @@ const ancestors = [node];

if (runningTransition && Transition.disposed.has(node)) return;
if (!runningTransition && node.state || runningTransition && node.tState) ancestors.push(node);
if (runningTransition ? node.tState : node.state) ancestors.push(node);
}

@@ -784,5 +787,5 @@ for (let i = ancestors.length - 1; i >= 0; i--) {

}
if (!runningTransition && node.state === STALE || runningTransition && node.tState === STALE) {
if ((runningTransition ? node.tState : node.state) === STALE) {
updateComputation(node);
} else if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) {
} else if ((runningTransition ? node.tState : node.state) === PENDING) {
const updates = Updates;

@@ -892,5 +895,6 @@ Updates = null;

if (source.sources) {
if (!runningTransition && source.state === STALE || runningTransition && source.tState === STALE) {
const state = runningTransition ? source.tState : source.state;
if (state === STALE) {
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
} else if (!runningTransition && source.state === PENDING || runningTransition && source.tState === PENDING) lookUpstream(source, ignore);
} else if (state === PENDING) lookUpstream(source, ignore);
}

@@ -903,3 +907,3 @@ }

const o = node.observers[i];
if (!runningTransition && !o.state || runningTransition && !o.tState) {
if (runningTransition ? !o.tState : !o.state) {
if (runningTransition) o.tState = PENDING;else o.state = PENDING;

@@ -1432,6 +1436,3 @@ if (o.pure) Updates.push(o);else Effects.push(o);

const fn = typeof child === "function" && child.length > 0;
return fn ? untrack(() => child(keyed ? c : () => {
if (true && !untrack(condition)) console.warn("Accessing stale value from Show.");
return props.when;
})) : child;
return fn ? untrack(() => child(keyed ? c : createMemo(p => condition() ? props.when : p))) : child;
}

@@ -1467,6 +1468,3 @@ return props.fallback;

const fn = typeof c === "function" && c.length > 0;
return fn ? untrack(() => c(keyed ? when : () => {
if (true && untrack(evalConditions)[0] !== index) console.warn("Accessing stale value from Match.");
return cond.when;
})) : c;
return fn ? untrack(() => c(keyed ? when : createMemo(p => evalConditions()[0] === index ? cond.when : p))) : c;
}, undefined, {

@@ -1473,0 +1471,0 @@ name: "value"

@@ -117,3 +117,6 @@ let taskIdCounter = 1,

const sharedConfig = {};
const sharedConfig = {
context: undefined,
registry: undefined
};
function setHydrateContext(context) {

@@ -570,4 +573,4 @@ sharedConfig.context = context;

const runningTransition = Transition && Transition.running;
if (this.sources && (!runningTransition && this.state || runningTransition && this.tState)) {
if (!runningTransition && this.state === STALE || runningTransition && this.tState === STALE) updateComputation(this);else {
if (this.sources && (runningTransition ? this.tState : this.state)) {
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);else {
const updates = Updates;

@@ -616,7 +619,7 @@ Updates = null;

if (TransitionRunning && Transition.disposed.has(o)) continue;
if (TransitionRunning && !o.tState || !TransitionRunning && !o.state) {
if (TransitionRunning ? !o.tState : !o.state) {
if (o.pure) Updates.push(o);else Effects.push(o);
if (o.observers) markDownstream(o);
}
if (TransitionRunning) o.tState = STALE;else o.state = STALE;
if (!TransitionRunning) o.state = STALE;else o.tState = STALE;
}

@@ -725,4 +728,4 @@ if (Updates.length > 10e5) {

const runningTransition = Transition && Transition.running;
if (!runningTransition && node.state === 0 || runningTransition && node.tState === 0) return;
if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) return lookUpstream(node);
if ((runningTransition ? node.tState : node.state) === 0) return;
if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);

@@ -732,3 +735,3 @@ const ancestors = [node];

if (runningTransition && Transition.disposed.has(node)) return;
if (!runningTransition && node.state || runningTransition && node.tState) ancestors.push(node);
if (runningTransition ? node.tState : node.state) ancestors.push(node);
}

@@ -744,5 +747,5 @@ for (let i = ancestors.length - 1; i >= 0; i--) {

}
if (!runningTransition && node.state === STALE || runningTransition && node.tState === STALE) {
if ((runningTransition ? node.tState : node.state) === STALE) {
updateComputation(node);
} else if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) {
} else if ((runningTransition ? node.tState : node.state) === PENDING) {
const updates = Updates;

@@ -852,5 +855,6 @@ Updates = null;

if (source.sources) {
if (!runningTransition && source.state === STALE || runningTransition && source.tState === STALE) {
const state = runningTransition ? source.tState : source.state;
if (state === STALE) {
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
} else if (!runningTransition && source.state === PENDING || runningTransition && source.tState === PENDING) lookUpstream(source, ignore);
} else if (state === PENDING) lookUpstream(source, ignore);
}

@@ -863,3 +867,3 @@ }

const o = node.observers[i];
if (!runningTransition && !o.state || runningTransition && !o.tState) {
if (runningTransition ? !o.tState : !o.state) {
if (runningTransition) o.tState = PENDING;else o.state = PENDING;

@@ -1380,6 +1384,3 @@ if (o.pure) Updates.push(o);else Effects.push(o);

const fn = typeof child === "function" && child.length > 0;
return fn ? untrack(() => child(keyed ? c : () => {
if (false && !untrack(condition)) ;
return props.when;
})) : child;
return fn ? untrack(() => child(keyed ? c : createMemo(p => condition() ? props.when : p))) : child;
}

@@ -1412,6 +1413,3 @@ return props.fallback;

const fn = typeof c === "function" && c.length > 0;
return fn ? untrack(() => c(keyed ? when : () => {
if (false && untrack(evalConditions)[0] !== index) ;
return cond.when;
})) : c;
return fn ? untrack(() => c(keyed ? when : createMemo(p => evalConditions()[0] === index ? cond.when : p))) : c;
}, undefined, undefined);

@@ -1418,0 +1416,0 @@ }

{
"name": "solid-js",
"description": "A declarative JavaScript library for building user interfaces.",
"version": "1.7.0-beta.3",
"version": "1.7.0-beta.4",
"author": "Ryan Carniato",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -26,2 +26,3 @@ export interface RendererOptions<NodeType> {

mergeProps(...sources: unknown[]): unknown;
use<A, T>(fn: (element: NodeType, arg: A) => T, element: NodeType, arg: A): T;
}

@@ -28,0 +29,0 @@

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

import { createRoot, untrack, createRenderEffect, sharedConfig, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, createMemo as memo, mergeProps, untrack } from 'solid-js';

@@ -128,3 +128,5 @@

};
return isCE ? () => (node || (node = create())).cloneNode(true) : () => untrack(() => document.importNode(node || (node = create()), true));
const fn = isCE ? () => (node || (node = create())).cloneNode(true) : () => untrack(() => document.importNode(node || (node = create()), true));
fn.cloneNode = fn;
return fn;
}

@@ -131,0 +133,0 @@ function delegateEvents(eventNames, document = window.document) {

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

import { createRoot, untrack, createRenderEffect, sharedConfig, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, createMemo as memo, mergeProps, untrack } from 'solid-js';

@@ -128,3 +128,5 @@

};
return isCE ? () => (node || (node = create())).cloneNode(true) : () => untrack(() => document.importNode(node || (node = create()), true));
const fn = isCE ? () => (node || (node = create())).cloneNode(true) : () => untrack(() => document.importNode(node || (node = create()), true));
fn.cloneNode = fn;
return fn;
}

@@ -131,0 +133,0 @@ function delegateEvents(eventNames, document = window.document) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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