Comparing version 0.4.4 to 0.4.5
@@ -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> 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
273
169435
+ Addeddom-expressions@~0.6.0
+ Addeddom-expressions@0.6.0(transitive)
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.2(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.2(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/plugin-syntax-jsx@7.25.9(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.25.9(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedbabel-plugin-jsx-dom-expressions@0.5.4(transitive)
- Removedbrowserslist@4.24.2(transitive)
- Removedcaniuse-lite@1.0.30001677(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removedelectron-to-chromium@1.5.50(transitive)
- Removedescalade@3.2.0(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.0.2(transitive)
- Removedjson5@2.2.3(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-releases@2.0.18(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedsemver@6.3.1(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removedyallist@3.1.1(transitive)