react-jsbox
Advanced tools
Comparing version 0.0.57 to 0.0.58
{ | ||
"name": "react-jsbox", | ||
"version": "0.0.57", | ||
"version": "0.0.58", | ||
"description": "A Custom React Renderer for writing JSBox apps in React.", | ||
@@ -21,15 +21,15 @@ "keywords": [ | ||
"peerDependencies": { | ||
"react": "^16.9.0" | ||
"react": "^16.10.0" | ||
}, | ||
"dependencies": { | ||
"react-reconciler": "^0.21.0" | ||
"react-reconciler": "^0.22.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.6.0", | ||
"@babel/core": "^7.6.2", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/plugin-proposal-decorators": "^7.6.0", | ||
"@babel/plugin-transform-runtime": "^7.6.0", | ||
"@babel/preset-env": "^7.6.0", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/runtime": "^7.6.0", | ||
"@babel/runtime": "^7.6.2", | ||
"babel-eslint": "^10.0.3", | ||
@@ -42,4 +42,4 @@ "babel-plugin-annotate-pure-calls": "^0.4.0", | ||
"eslint-plugin-jsbox": "^0.1.1", | ||
"eslint-plugin-react-hooks": "^2.0.1", | ||
"react": "16.9.0", | ||
"eslint-plugin-react-hooks": "^2.1.0", | ||
"react": "^16.10.0", | ||
"rollup": "^1.21.4", | ||
@@ -46,0 +46,0 @@ "rollup-plugin-babel": "^4.3.3", |
<h1 align="center">Welcome to react-jsbox 👋</h1> | ||
<p> | ||
<img src="https://img.shields.io/badge/version-0.0.57-blue.svg?cacheSeconds=2592000" /> | ||
<img src="https://img.shields.io/badge/version-0.0.58-blue.svg?cacheSeconds=2592000" /> | ||
</p> | ||
@@ -14,3 +14,3 @@ | ||
JSBox doc: <https://docs.xteko.com> | ||
JSBox doc: <https://docs.xteko.com/#/quickstart/intro> | ||
@@ -17,0 +17,0 @@ Example App: <https://github.com/Nicify/react-jsbox-example> |
@@ -15,3 +15,2 @@ export const emptyFunction = () => { } | ||
export const is = { | ||
raw: a => a.__clsName !== undefined, | ||
obj: a => a === Object(a), | ||
@@ -23,5 +22,9 @@ str: a => typeof a === 'string', | ||
equ(a, b) { | ||
// Wrong type, doesn't match | ||
if (typeof a !== typeof b) return false | ||
// Atomic, just compare a against b | ||
if (is.str(a) || is.num(a) || is.obj(a)) return a === b | ||
// Array, shallow compare first to see if it's a match | ||
if (is.arr(a) && a == b) return true | ||
// Last resort, go through keys | ||
let i | ||
@@ -28,0 +31,0 @@ for (i in a) if (!(i in b)) return false |
Sorry, the diff of this file is too big to display
109219
737
+ Addedreact-reconciler@0.22.2(transitive)
+ Addedscheduler@0.16.2(transitive)
- Removedreact-reconciler@0.21.0(transitive)
- Removedscheduler@0.15.0(transitive)
Updatedreact-reconciler@^0.22.0