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.0 to 1.8.1

2

package.json
{
"name": "solid-js",
"description": "A declarative JavaScript library for building user interfaces.",
"version": "1.8.0",
"version": "1.8.1",
"author": "Ryan Carniato",

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

@@ -570,2 +570,6 @@ import {

const create = () => {
if (sharedConfig.context)
throw new Error(
"Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration."
);
const t = document.createElement("template");

@@ -731,4 +735,4 @@ t.innerHTML = html;

if (!sharedConfig.context || !(node = sharedConfig.registry.get((key = getHydrationKey())))) {
if (sharedConfig.context) console.warn("Unable to find DOM nodes for hydration key:", key);
if (!template) throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key);
if (sharedConfig.context)
throw new Error(`Hydration Mismatch. Unable to find DOM nodes for hydration key: ${key}`);
return template();

@@ -735,0 +739,0 @@ }

@@ -13,4 +13,3 @@ import {

onCleanup,
splitProps,
$DEVCOMP
splitProps
} from "solid-js";

@@ -731,4 +730,2 @@ export {

if (!sharedConfig.context || !(node = sharedConfig.registry.get((key = getHydrationKey())))) {
if (sharedConfig.context) console.warn("Unable to find DOM nodes for hydration key:", key);
if (!template) throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key);
return template();

@@ -938,3 +935,3 @@ }

current = value;
} else console.warn(`Unrecognized value. Skipped inserting`, value);
} else;
return current;

@@ -1102,5 +1099,2 @@ }

case "function":
Object.assign(component, {
[$DEVCOMP]: true
});
return untrack(() => component(others));

@@ -1107,0 +1101,0 @@ case "string":

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