react-jsbox
Advanced tools
Comparing version 0.0.48 to 0.0.49
{ | ||
"name": "react-jsbox", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"description": "A Custom React Renderer for writing JSBox apps in React.", | ||
@@ -21,6 +21,6 @@ "keywords": [ | ||
"peerDependencies": { | ||
"react": "alpha" | ||
"react": "^16.9.0" | ||
}, | ||
"dependencies": { | ||
"react-reconciler": "alpha" | ||
"react-reconciler": "^0.21.0" | ||
}, | ||
@@ -38,12 +38,12 @@ "devDependencies": { | ||
"babel-preset-minify": "^0.5.0", | ||
"eslint": "^6.0.1", | ||
"eslint": "^6.1.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jsbox": "^0.1.1", | ||
"eslint-plugin-react-hooks": "^1.6.1", | ||
"react": "alpha", | ||
"rollup": "^1.17.0", | ||
"eslint-plugin-react-hooks": "^1.7.0", | ||
"react": "16.9.0", | ||
"rollup": "1.19.4", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-cleanup": "^3.1.1", | ||
"rollup-plugin-commonjs": "^10.0.1", | ||
"rollup-plugin-commonjs": "^10.0.2", | ||
"rollup-plugin-modify": "^3.0.0", | ||
@@ -50,0 +50,0 @@ "rollup-plugin-node-resolve": "^5.2.0", |
@@ -6,3 +6,3 @@ <h1 align="center">Welcome to react-jsbox 👋</h1> | ||
> A Custom React Renderer for writing JSBox apps in React. | ||
> A Custom React renderer for writing JSBox apps in React. | ||
@@ -9,0 +9,0 @@ This package is experimental **Use it at your own risk.** |
@@ -10,3 +10,3 @@ const DEBUG = false | ||
// HighRes but slower then Date.now during invoke | ||
// const now = () => $objc('NSDate').invoke('date').invoke('timeIntervalSince1970') * 1000 | ||
// export const now = () => $objc('NSDate').invoke('date').invoke('timeIntervalSince1970') * 1000 | ||
@@ -13,0 +13,0 @@ export const { now } = Date |
@@ -1,2 +0,2 @@ | ||
import {useEffect, useState} from 'react' | ||
import { useEffect, useState } from 'react' | ||
@@ -33,9 +33,9 @@ const initialState = { | ||
didTimeout(summary) { | ||
setError({type: 'Timeout', body: summary}) | ||
setError({ type: 'Timeout', data: summary }) | ||
}, | ||
didFail(error) { | ||
setError({type: 'Fail', body: error}) | ||
setError({ type: 'Fail', data: error }) | ||
}, | ||
didFailToSendPing(response) { | ||
setError({type: 'FailToSendPing', body: response}) | ||
setError({ type: 'FailToSendPing', data: response }) | ||
} | ||
@@ -42,0 +42,0 @@ }) |
@@ -43,3 +43,2 @@ import View from './Components/view' | ||
@debug | ||
appendInitialChild(parentInstance, child) { | ||
@@ -54,3 +53,3 @@ parentInstance.appendChild(child) | ||
prepareUpdate(instance, type, oldProps, newProps) { | ||
return filterProps(oldProps, newProps) || null | ||
return filterProps(oldProps, newProps) | ||
} | ||
@@ -57,0 +56,0 @@ |
@@ -1,5 +0,5 @@ | ||
import Reconciler from 'react-reconciler' | ||
import ReactFiberReconciler from 'react-reconciler' | ||
import HostConfig from './hostconfig' | ||
const JSBoxRenderer = Reconciler(new HostConfig()) | ||
const JSBoxRenderer = ReactFiberReconciler(new HostConfig()) | ||
@@ -6,0 +6,0 @@ export default function render(element, container, callback) { |
Sorry, the diff of this file is too big to display
106798
766
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedreact-reconciler@0.21.0(transitive)
+ Addedscheduler@0.15.0(transitive)
Updatedreact-reconciler@^0.21.0