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 0.4.4 to 0.4.5

2

dist/dom.js

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

import { createRuntime, createHyperScript } from 'babel-plugin-jsx-dom-expressions';
import { createRuntime, createHyperScript } from 'dom-expressions';
import S from 's-js';

@@ -3,0 +3,0 @@

@@ -7,3 +7,3 @@ 'use strict';

var babelPluginJsxDomExpressions = require('babel-plugin-jsx-dom-expressions');
var domExpressions = require('dom-expressions');
var S = _interopDefault(require('s-js'));

@@ -20,3 +20,3 @@

const r = babelPluginJsxDomExpressions.createRuntime({wrap: S.makeComputationNode, root: S.root, cleanup: S.cleanup, sample: S.sample});
const r = domExpressions.createRuntime({wrap: S.makeComputationNode, root: S.root, cleanup: S.cleanup, sample: S.sample});

@@ -59,3 +59,3 @@ function selectWhen(signal, handler) {

const h = babelPluginJsxDomExpressions.createHyperScript(r);
const h = domExpressions.createHyperScript(r);

@@ -62,0 +62,0 @@ exports.h = h;

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

@@ -20,9 +20,6 @@ "license": "MIT",

"dependencies": {
"dom-expressions": "~0.6.0",
"s-js": "~0.4.9"
},
"peerDependencies": {
"babel-plugin-jsx-dom-expressions": "~0.5.3"
},
"devDependencies": {
"babel-plugin-jsx-dom-expressions": "~0.5.3",
"coveralls": "^3.0.3",

@@ -29,0 +26,0 @@ "jest": "~24.7.1",

@@ -44,2 +44,3 @@ ## <img src="assets/logo.png" alt="drawing" width="500"/><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Deceptively Simple User Interface Library

To use Solid with JSX (recommended) run:
```sh

@@ -115,3 +116,3 @@ > npm install solid-js babel-plugin-jsx-dom-expressions

To accomplish rendering we use JSX for templating that gets compiled to native DOM element instructions. To do that we take advantage of the [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/babel-plugin-jsx-dom-expressions) which while converting JSX to DOM element instructions wraps expressions to be wrapped in our computations when indicated by in inner parens `{( )}`.
To accomplish rendering we use JSX for templating that gets compiled to native DOM element instructions. To do that we take advantage of the [Babel Plugin JSX DOM Expressions](https://github.com/ryansolid/babel-plugin-jsx-dom-expressions) which while converting JSX to DOM element instructions wraps expressions to be wrapped in our computations when indicated by in inner parens `{( )}`.

@@ -132,3 +133,3 @@ JSX as a templating language brings a lot of benefits. The just being javascript goes beyond just not needing a DSL, but setting up closure based context instead of creating context objects. This is more transparent and easier to follow and debug.

Or, if you prefer you can use HyperScript. It does come at signifigant performance hit, as it doesn't benefit from any of the compile time optimizations that set Solid apart in performance. But it is an option for those who want to avoid Babel or do not wish to use JSX. Even though it is much slower it is still in the performance category of most popular frameworks. There are some minor differences from how you would write typical HyperScript as you need to manually wrap expressions in functions to make them observable. More information available at [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/babel-plugin-jsx-dom-expressions). Include Solid HyperScript by:
Or, if you prefer you can use HyperScript. It does come at signifigant performance hit, as it doesn't benefit from any of the compile time optimizations that set Solid apart in performance. But it is an option for those who want to avoid Babel or do not wish to use JSX. Even though it is much slower it is still in the performance category of most popular frameworks. There are some minor differences from how you would write typical HyperScript as you need to manually wrap expressions in functions to make them observable. More information available at [Dom Expressions](https://github.com/ryansolid/dom-expressions). Include Solid HyperScript by:

@@ -251,4 +252,6 @@ ```js

* [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/babel-plugin-jsx-dom-expressions)
* [DOM Expressions](https://github.com/ryansolid/dom-expressions)
The renderer behind Solid.js that enables lightning fast fine grained performance.
* [Babel Plugin JSX DOM Expressions](https://github.com/ryansolid/babel-plugin-jsx-dom-expressions)
Babel plugin that converts JSX to DOM Expressions.
* [Solid Components](https://github.com/ryansolid/solid-components)

@@ -255,0 +258,0 @@ Extensions to Solid.js that add a Web Component wrapper and a Context API.

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