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.8.3 to 1.8.4

web/dist/storage.cjs

4

html/types/lit.d.ts

@@ -18,3 +18,5 @@ type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;

}
): void;
): {
[k: string]: boolean;
};
style(

@@ -21,0 +23,0 @@ node: Element,

{
"name": "solid-js",
"description": "A declarative JavaScript library for building user interfaces.",
"version": "1.8.3",
"version": "1.8.4",
"author": "Ryan Carniato",

@@ -162,2 +162,6 @@ "license": "MIT",

},
"./web/storage": {
"import": "./web/dist/storage.js",
"require": "./web/dist/storage.cjs"
},
"./web/dist/*": "./web/dist/*",

@@ -210,3 +214,3 @@ "./universal": {

"csstype": "^3.1.0",
"seroval": "^0.11.6"
"seroval": "^0.12.0"
},

@@ -222,3 +226,3 @@ "scripts": {

"types:web": "tsc --project ./web/tsconfig.build.json",
"types:copy-web": "ncp ../../node_modules/dom-expressions/src/client.d.ts ./web/types/client.d.ts && ncp ../../node_modules/dom-expressions/src/server.d.ts ./web/types/server.d.ts",
"types:copy-web": "ncp ../../node_modules/dom-expressions/src/client.d.ts ./web/types/client.d.ts && ncp ../../node_modules/dom-expressions/src/server.d.ts ./web/types/server.d.ts && ncp ./web/storage/storage.d.ts ./web/types/storage.d.ts",
"types:store": "tsc --project ./store/tsconfig.build.json",

@@ -225,0 +229,0 @@ "types:html": "tsc --project ./html/tsconfig.json && ncp ../../node_modules/lit-dom-expressions/types/index.d.ts ./html/types/lit.d.ts",

@@ -1015,2 +1015,3 @@ import {

function voidFn() {}
const RequestContext = Symbol();
function innerHTML(parent, content) {

@@ -1129,2 +1130,3 @@ !sharedConfig.context && (parent.innerHTML = content);

Properties,
RequestContext,
SVGElements,

@@ -1147,2 +1149,3 @@ SVGNamespace,

getPropAlias,
voidFn as getRequestEvent,
hydrate,

@@ -1149,0 +1152,0 @@ innerHTML,

@@ -56,3 +56,3 @@ import { sharedConfig, createRoot, splitProps } from "solid-js";

const GLOBAL_IDENTIFIER = "_$HY.r";
function createSerializer({ onData, onDone, scopeId }) {
function createSerializer({ onData, onDone, scopeId, onError }) {
return new Serializer({

@@ -63,3 +63,4 @@ scopeId,

onData,
onDone
onDone,
onError
});

@@ -87,3 +88,4 @@ }

scripts += script;
}
},
onError: options.onError
});

@@ -123,6 +125,7 @@ sharedConfig.context = {

function renderToStream(code, options = {}) {
let { nonce, onCompleteShell, onCompleteAll, renderId } = options;
let { nonce, onCompleteShell, onCompleteAll, renderId, noScripts } = options;
let dispose;
const blockingPromises = [];
const pushTask = task => {
if (noScripts) return;
if (!tasks && !firstFlushed) {

@@ -153,3 +156,4 @@ tasks = getLocalHeaderScript(renderId);

onData: pushTask,
onDone: checkEnd
onDone: checkEnd,
onError: options.onError
});

@@ -559,2 +563,6 @@ const flushEnd = () => {

}
const RequestContext = Symbol();
function getRequestEvent() {
return globalThis[RequestContext] ? globalThis[RequestContext].getStore() : undefined;
}
function Assets(props) {

@@ -662,2 +670,3 @@ useAssets(() => props.children);

Portal,
RequestContext,
addEventListener,

@@ -669,2 +678,3 @@ delegateEvents,

getHydrationKey,
getRequestEvent,
hydrate,

@@ -671,0 +681,0 @@ insert,

@@ -1008,2 +1008,3 @@ import {

function voidFn() {}
const RequestContext = Symbol();
function innerHTML(parent, content) {

@@ -1119,2 +1120,3 @@ !sharedConfig.context && (parent.innerHTML = content);

Properties,
RequestContext,
SVGElements,

@@ -1137,2 +1139,3 @@ SVGNamespace,

getPropAlias,
voidFn as getRequestEvent,
hydrate,

@@ -1139,0 +1142,0 @@ innerHTML,

@@ -47,3 +47,3 @@ import { JSX } from "./jsx.js";

prev?: { [k: string]: boolean }
): void;
): { [k: string]: boolean };
export function style(

@@ -74,1 +74,6 @@ node: Element,

export function NoHydration(props: { children?: JSX.Element }): JSX.Element;
export interface RequestEvent {
request: Request;
}
export declare const RequestContext: unique symbol;
export function getRequestEvent(): RequestEvent | undefined;

@@ -6,2 +6,3 @@ export function renderToString<T>(

renderId?: string;
onError?: (err: any) => void;
}

@@ -15,2 +16,4 @@ ): string;

renderId?: string;
noScripts?: boolean;
onError?: (err: any) => void;
}

@@ -25,2 +28,3 @@ ): Promise<string>;

onCompleteAll?: (info: { write: (v: string) => void }) => void;
onError?: (err: any) => void;
}

@@ -55,3 +59,8 @@ ): {

export function generateHydrationScript(options: { nonce?: string; eventNames?: string[] }): string;
export function stringify(root: unknown): string;
export declare const RequestContext: unique symbol;
export interface RequestEvent {
request: Request;
locals: Record<string | number | symbol, any>;
}
export function getRequestEvent(): RequestEvent | undefined;

@@ -58,0 +67,0 @@ export function Hydration(props: { children?: JSX.Element }): JSX.Element;

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 not supported yet

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