From 54a1d16482da3815d696930e1161466ab7ea37a9 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Tue, 23 Apr 2019 11:23:00 -0400 Subject: [PATCH] Update examples Former-commit-id: a826769c99089104defd29c7f7ac7a2a2a256f39 --- .../async/package-lock.json.REMOVED.git-id | 2 +- examples/async/package.json | 14 +- .../counter/package-lock.json.REMOVED.git-id | 2 +- examples/counter/package.json | 16 +- .../package-lock.json.REMOVED.git-id | 2 +- examples/real-world/package.json | 22 +- .../package-lock.json.REMOVED.git-id | 2 +- examples/shopping-cart/package.json | 18 +- .../todomvc/package-lock.json.REMOVED.git-id | 2 +- examples/todomvc/package.json | 20 +- .../package-lock.json.REMOVED.git-id | 2 +- examples/todos-flow/package.json | 18 +- .../components/__snapshots__/App.spec.js.snap | 128 +----------- .../__snapshots__/Footer.spec.js.snap | 186 +---------------- .../__snapshots__/Link.spec.js.snap | 182 +--------------- .../__snapshots__/Todo.spec.js.snap | 195 +----------------- .../__snapshots__/TodoList.spec.js.snap | 164 +-------------- .../src/containers/VisibleTodoList.spec.js | 9 - .../__snapshots__/AddTodo.spec.js.snap | 80 +------ .../__snapshots__/FilterLink.spec.js.snap | 5 + .../FilterLink.spec.js.snap.REMOVED.git-id | 1 - .../VisibleTodoList.spec.js.snap | 9 + ...isibleTodoList.spec.js.snap.REMOVED.git-id | 1 - .../package-lock.json.REMOVED.git-id | 2 +- examples/todos-with-undo/package.json | 12 +- .../todos/package-lock.json.REMOVED.git-id | 2 +- examples/todos/package.json | 12 +- .../package-lock.json.REMOVED.git-id | 2 +- examples/tree-view/package.json | 14 +- .../package-lock.json.REMOVED.git-id | 2 +- examples/universal/package.json | 26 +-- 31 files changed, 121 insertions(+), 1031 deletions(-) create mode 100644 examples/todos-flow/src/containers/__snapshots__/FilterLink.spec.js.snap delete mode 100644 examples/todos-flow/src/containers/__snapshots__/FilterLink.spec.js.snap.REMOVED.git-id create mode 100644 examples/todos-flow/src/containers/__snapshots__/VisibleTodoList.spec.js.snap delete mode 100644 examples/todos-flow/src/containers/__snapshots__/VisibleTodoList.spec.js.snap.REMOVED.git-id diff --git a/examples/async/package-lock.json.REMOVED.git-id b/examples/async/package-lock.json.REMOVED.git-id index 1c2a93f981..d730ace089 100644 --- a/examples/async/package-lock.json.REMOVED.git-id +++ b/examples/async/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -f25191ad3de88c364fedc6f9df1f308e0ac71ad0 \ No newline at end of file +115933c84d8721c7f30696f2e9503752df64b20a \ No newline at end of file diff --git a/examples/async/package.json b/examples/async/package.json index 6939870312..8bf72fb747 100644 --- a/examples/async/package.json +++ b/examples/async/package.json @@ -3,16 +3,16 @@ "version": "0.0.1", "private": true, "devDependencies": { - "react-scripts": "^2.0.2" + "react-scripts": "^3.0.0" }, "dependencies": { - "prop-types": "^15.6.1", - "react": "^16.3.1", - "react-dom": "^16.3.1", - "react-redux": "^5.0.7", - "redux": "^3.5.2", + "prop-types": "^15.7.2", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.0.2", + "redux": "^4.0.1", "redux-logger": "^3.0.6", - "redux-thunk": "^2.1.0" + "redux-thunk": "^2.3.0" }, "scripts": { "start": "react-scripts start", diff --git a/examples/counter/package-lock.json.REMOVED.git-id b/examples/counter/package-lock.json.REMOVED.git-id index 28f705741f..35c53c60a4 100644 --- a/examples/counter/package-lock.json.REMOVED.git-id +++ b/examples/counter/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -54abb3861ccc99afa7e6dc46b010fbf32096c6a7 \ No newline at end of file +7d0dc4eda0500ef16619561ccc201bebc97ef164 \ No newline at end of file diff --git a/examples/counter/package.json b/examples/counter/package.json index dd72a3a614..ce92ffdd1d 100644 --- a/examples/counter/package.json +++ b/examples/counter/package.json @@ -3,16 +3,16 @@ "version": "0.0.1", "private": true, "devDependencies": { - "enzyme": "^3.6.0", - "enzyme-adapter-react-16": "^1.5.0", - "react-scripts": "^2.0.2" + "enzyme": "^3.9.0", + "enzyme-adapter-react-16": "^1.12.1", + "react-scripts": "^3.0.0" }, "dependencies": { - "prop-types": "^15.6.1", - "react": "^16.3.1", - "react-dom": "^16.3.1", - "react-redux": "^5.0.7", - "redux": "^3.5.2" + "prop-types": "^15.7.2", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.0.2", + "redux": "^4.0.1" }, "scripts": { "start": "react-scripts start", diff --git a/examples/real-world/package-lock.json.REMOVED.git-id b/examples/real-world/package-lock.json.REMOVED.git-id index 2e03409fe5..869e1eec8c 100644 --- a/examples/real-world/package-lock.json.REMOVED.git-id +++ b/examples/real-world/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -fabf7fbec65500daca890432cafcfd9b2a83cff3 \ No newline at end of file +74a63688f476a7720d3092c6e5d8c71e802a373f \ No newline at end of file diff --git a/examples/real-world/package.json b/examples/real-world/package.json index 38f311415a..dd8a6de1d9 100644 --- a/examples/real-world/package.json +++ b/examples/real-world/package.json @@ -3,23 +3,23 @@ "version": "0.0.1", "private": true, "devDependencies": { - "react-scripts": "^2.0.2", - "redux-devtools": "^3.4.1", + "react-scripts": "^3.0.0", + "redux-devtools": "^3.5.0", "redux-devtools-dock-monitor": "^1.1.3", "redux-devtools-log-monitor": "^1.4.0", "redux-logger": "^3.0.6" }, "dependencies": { "humps": "^2.0.0", - "lodash": "^4.17.5", - "normalizr": "^3.2.4", - "prop-types": "^15.6.1", - "react": "^16.3.1", - "react-dom": "^16.3.1", - "react-redux": "^5.0.7", - "react-router-dom": "^4.1.2", - "redux": "^3.5.2", - "redux-thunk": "^2.1.0" + "lodash": "^4.17.11", + "normalizr": "^3.3.0", + "prop-types": "^15.7.2", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.0.2", + "react-router-dom": "^5.0.0", + "redux": "^4.0.1", + "redux-thunk": "^2.3.0" }, "scripts": { "start": "react-scripts start", diff --git a/examples/shopping-cart/package-lock.json.REMOVED.git-id b/examples/shopping-cart/package-lock.json.REMOVED.git-id index 58622f59d9..0596ba3085 100644 --- a/examples/shopping-cart/package-lock.json.REMOVED.git-id +++ b/examples/shopping-cart/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -90efac8ab8cbed86a5805a76a85bd7eae582c744 \ No newline at end of file +7f1f5ea7c7fc2490cf73e60aaa00386abf8ace1a \ No newline at end of file diff --git a/examples/shopping-cart/package.json b/examples/shopping-cart/package.json index 08c6ae4c7c..62e7df73c2 100644 --- a/examples/shopping-cart/package.json +++ b/examples/shopping-cart/package.json @@ -3,18 +3,18 @@ "version": "0.0.1", "private": true, "devDependencies": { - "enzyme": "^3.6.0", - "enzyme-adapter-react-16": "^1.5.0", - "react-scripts": "^2.0.2" + "enzyme": "^3.9.0", + "enzyme-adapter-react-16": "^1.12.1", + "react-scripts": "^3.0.0" }, "dependencies": { - "prop-types": "^15.6.1", - "react": "^16.3.1", - "react-dom": "^16.3.1", - "react-redux": "^5.0.7", - "redux": "^3.5.2", + "prop-types": "^15.7.2", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.0.2", + "redux": "^4.0.1", "redux-logger": "^3.0.6", - "redux-thunk": "^2.1.0" + "redux-thunk": "^2.3.0" }, "scripts": { "start": "react-scripts start", diff --git a/examples/todomvc/package-lock.json.REMOVED.git-id b/examples/todomvc/package-lock.json.REMOVED.git-id index d71ed6f5ad..12a0867691 100644 --- a/examples/todomvc/package-lock.json.REMOVED.git-id +++ b/examples/todomvc/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -f0805d243ad237bd819e35a14de6631da12cd1a8 \ No newline at end of file +0c99195abaa52c537029847192ed0ddc467c85b8 \ No newline at end of file diff --git a/examples/todomvc/package.json b/examples/todomvc/package.json index 94f3b05c82..081dc9bb9f 100644 --- a/examples/todomvc/package.json +++ b/examples/todomvc/package.json @@ -3,18 +3,18 @@ "version": "0.0.1", "private": true, "devDependencies": { - "react-scripts": "^2.0.2", - "react-test-renderer": "^16.3.1" + "react-scripts": "^3.0.0", + "react-test-renderer": "^16.8.6" }, "dependencies": { - "classnames": "^2.2.5", - "prop-types": "^15.6.1", - "react": "^16.3.1", - "react-dom": "^16.3.1", - "react-redux": "^5.0.7", - "redux": "^3.5.2", - "reselect": "^3.0.1", - "todomvc-app-css": "^2.1.1" + "classnames": "^2.2.6", + "prop-types": "^15.7.2", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.0.2", + "redux": "^4.0.1", + "reselect": "^4.0.0", + "todomvc-app-css": "^2.2.0" }, "scripts": { "start": "react-scripts start", diff --git a/examples/todos-flow/package-lock.json.REMOVED.git-id b/examples/todos-flow/package-lock.json.REMOVED.git-id index 1c2c87b1f6..4dba83c020 100644 --- a/examples/todos-flow/package-lock.json.REMOVED.git-id +++ b/examples/todos-flow/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -285c4c147de777c59351d548824e9ccf2e30d028 \ No newline at end of file +b58aae85d503d15ad9c466388c6c3fe8f898de23 \ No newline at end of file diff --git a/examples/todos-flow/package.json b/examples/todos-flow/package.json index f23eaed431..d10e53aa8b 100644 --- a/examples/todos-flow/package.json +++ b/examples/todos-flow/package.json @@ -3,19 +3,19 @@ "version": "0.0.1", "private": true, "devDependencies": { - "enzyme": "3.4.1", - "enzyme-adapter-react-16": "1.2.0", - "flow-bin": "0.78.0", + "enzyme": "^3.9.0", + "enzyme-adapter-react-16": "^1.12.1", + "flow-bin": "^0.78.0", "flow-typed": "2.5.1", - "react-scripts": "^2.0.2", + "react-scripts": "^3.0.0", "redux-mock-store": "1.5.3" }, "dependencies": { - "react": "16.4.2", - "react-dom": "16.4.2", - "react-redux": "^5.0.7", - "redux": "4.0.0", - "reselect": "^3.0.1" + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.0.2", + "redux": "^4.0.1", + "reselect": "^4.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/examples/todos-flow/src/components/__snapshots__/App.spec.js.snap b/examples/todos-flow/src/components/__snapshots__/App.spec.js.snap index 2fceebc35e..b5cad74c49 100644 --- a/examples/todos-flow/src/components/__snapshots__/App.spec.js.snap +++ b/examples/todos-flow/src/components/__snapshots__/App.spec.js.snap @@ -1,129 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`App renders without crashing 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - , -