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.2 to 1.7.0-beta.3

2

dist/server.js

@@ -421,3 +421,3 @@ const equalFn = (a, b) => a === b;

return {
t: `<!e${id}>${resolveSSRNode(res)}<!/e${id}>`
t: `<!!$e${id}>${resolveSSRNode(res)}<!!$/e${id}>`
};

@@ -424,0 +424,0 @@ }

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

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

@@ -121,3 +121,3 @@ import { createRoot, untrack, createRenderEffect, sharedConfig, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';

}
function template(html, isSVG, isCE) {
function template(html, isCE, isSVG) {
let node;

@@ -400,3 +400,3 @@ const create = () => {

const node = current[i];
if (node.nodeType === 8 && node.data === "!") node.remove();else cleaned.push(node);
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();else cleaned.push(node);
}

@@ -403,0 +403,0 @@ current = cleaned;

@@ -127,6 +127,6 @@ import { sharedConfig, createRoot, splitProps } from 'solid-js';

if (firstFlushed) return;
const placeholder = `<!${id}>`;
const placeholder = `<!!$${id}>`;
const first = html.indexOf(placeholder);
if (first === -1) return;
const last = html.indexOf(`<!/${id}>`, first + placeholder.length);
const last = html.indexOf(`<!!$/${id}>`, first + placeholder.length);
html = html.replace(html.slice(first, last + placeholder.length + 1), resolveSSRNode(payloadFn()));

@@ -391,3 +391,3 @@ },

for (let i = 0, len = node.length; i < len; i++) {
if (typeof prev !== "object" && typeof node[i] !== "object") mapped += `<!--!-->`;
if (typeof prev !== "object" && typeof node[i] !== "object") mapped += `<!--!$-->`;
mapped += resolveSSRNode(prev = node[i]);

@@ -394,0 +394,0 @@ }

@@ -121,3 +121,3 @@ import { createRoot, untrack, createRenderEffect, sharedConfig, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';

}
function template(html, isSVG, isCE) {
function template(html, isCE, isSVG) {
let node;

@@ -400,3 +400,3 @@ const create = () => {

const node = current[i];
if (node.nodeType === 8 && node.data === "!") node.remove();else cleaned.push(node);
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();else cleaned.push(node);
}

@@ -403,0 +403,0 @@ current = cleaned;

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

export function render(code: () => JSX.Element, element: MountableElement): () => void;
export function template(html: string, isSVG?: boolean, isCE?: boolean): () => Element;
export function template(html: string, isCE?: boolean, isSVG?: boolean): () => Element;
export function effect<T>(fn: (prev?: T) => T, init?: T): void;

@@ -16,0 +16,0 @@ export function memo<T>(fn: () => T, equal: boolean): () => T;

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