Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Align to React version 16.8.3, fix build issues #3098

Merged
merged 9 commits into from
Jun 14, 2019
2 changes: 1 addition & 1 deletion examples/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@apollo/react-testing": "beta",
"react-testing-library": "6.1.2"
"@testing-library/react": "8.0.1"
},
"browserslist": [
">0.2%",
Expand Down
2 changes: 1 addition & 1 deletion examples/components/src/__tests__/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { MockedProvider } from '@apollo/react-testing';
import { render, wait } from 'react-testing-library';
import { render, wait } from '@testing-library/react';

import App, { HERO_QUERY } from '../app';
import { full } from '../__mocks__/data';
Expand Down
2 changes: 1 addition & 1 deletion examples/components/src/__tests__/character.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render } from 'react-testing-library';
import { render } from '@testing-library/react';

import Character from '../Character';

Expand Down
2 changes: 1 addition & 1 deletion examples/mutation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@apollo/react-testing": "beta",
"react-testing-library": "6.1.2"
"@testing-library/react": "^8.0.1"
},
"browserslist": [
">0.2%",
Expand Down
2 changes: 1 addition & 1 deletion examples/mutation/src/addUser.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render, fireEvent, wait } from 'react-testing-library';
import { render, fireEvent, wait } from '@testing-library/react';
import { MockedProvider } from '@apollo/react-testing';

import AddUser, { ADD_USER } from './AddUser';
Expand Down
144 changes: 88 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"lodash.times": "^4.3.2",
"react": "^16.9.0-alpha.0",
"react-dom": "^16.9.0-alpha.0",
"react-testing-library": "^7.0.0",
"@testing-library/react": "^8.0.1",
"recompose": "^0.30.0",
"rollup": "^1.9.3",
"rollup-plugin-commonjs": "^9.3.4",
Expand Down
12 changes: 8 additions & 4 deletions packages/all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
},
"sideEffects": false,
"scripts": {
"clean": "rm -Rf ./node_modules ./lib/* ./meta/bundlesize/* ./meta/coverage/*",
"clean": "rm -Rf ./lib/* ./meta/bundlesize/* ./meta/coverage/*",
"prepare": "npm run build",
"prebuild": "npm run clean",
"build": "../../node_modules/.bin/tsc -p ./config",
"postbuild": "../../node_modules/.bin/rollup -c ./config/rollup.config.js",
"build": "npx tsc -p ./config",
matthargett marked this conversation as resolved.
Show resolved Hide resolved
"postbuild": "npx rollup -c ./config/rollup.config.js",
"predeploy": "npm run build",
"deploy": "npm publish --tag beta"
},
"peerDependencies": {
"apollo-client": "^2.6.0",
"graphql": "^14.2.1",
"react": "^16.8.6"
"react": "^16.8.0"
},
"dependencies": {
"@apollo/react-common": "file:../common",
Expand All @@ -45,5 +45,9 @@
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"rollup": "^1.15.5",
"typescript": "^3.5.2"
}
}
24 changes: 15 additions & 9 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@
},
"sideEffects": false,
"scripts": {
"clean": "rm -Rf ./node_modules ./lib/* ./meta/bundlesize/* ./meta/coverage/*",
"clean": "rm -Rf ./lib/* ./meta/bundlesize/* ./meta/coverage/*",
"prepare": "npm run build",
"prebuild": "npm run clean",
"build": "../../node_modules/.bin/tsc -p ./config",
"postbuild": "../../node_modules/.bin/rollup -c ./config/rollup.config.js",
"watch": "node ../../node_modules/tsc-watch/lib/tsc-watch.js --onSuccess \"npm run postbuild\" -p ./config",
"build": "npx tsc -p ./config",
"postbuild": "npx rollup -c ./config/rollup.config.js",
"watch": "npx tsc-watch --onSuccess \"npm run postbuild\" -p ./config",
"predeploy": "npm run build",
"deploy": "npm publish --tag beta",
"test": "../../node_modules/jest/bin/jest.js --config ../../config/jest.config.js --testPathPattern packages/common",
"test:watch": "../../node_modules/jest/bin/jest.js --config ../../config/jest.config.js --testPathPattern packages/common --watch",
"test:cjs": "npm run build && ../../node_modules/jest/bin/jest.js --config ../../config/jest.cjs.config.js --testPathPattern packages/common",
"test:umd": "npm run build && ../../node_modules/jest/bin/jest.js --config ../../config/jest.umd.config.js --testPathPattern packages/common"
"test": "npx jest --config ../../config/jest.config.js --testPathPattern packages/common",
"test:watch": "npx jest --config ../../config/jest.config.js --testPathPattern packages/common --watch",
"test:cjs": "npm run build && npx jest --config ../../config/jest.cjs.config.js --testPathPattern packages/common",
"test:umd": "npm run build && npx jest --config ../../config/jest.umd.config.js --testPathPattern packages/common"
},
"peerDependencies": {
"apollo-client": "^2.6.0",
"apollo-utilities": "^1.3.0",
"graphql": "^14.2.1",
"react": "^16.8.6"
"react": "^16.8.0"
},
"dependencies": {
"ts-invariant": "^0.4.2",
Expand All @@ -46,5 +46,11 @@
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"jest": "^24.8.0",
"rollup": "^1.15.5",
"tsc-watch": "^2.2.1",
"typescript": "^3.5.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ApolloClient from 'apollo-client';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
import { ApolloLink } from 'apollo-link';
import { render, cleanup } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';

import {
ApolloProvider,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext } from 'react';
import { render, cleanup } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';
import ApolloClient from 'apollo-client';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
import { ApolloLink } from 'apollo-link';
Expand Down
26 changes: 16 additions & 10 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@
},
"sideEffects": false,
"scripts": {
"clean": "rm -Rf ./node_modules ./lib/* ./meta/bundlesize/* ./meta/coverage/*",
"clean": "rm -Rf ./lib/* ./meta/bundlesize/* ./meta/coverage/*",
"prepare": "npm run build",
"prebuild": "npm run clean",
"build": "../../node_modules/.bin/tsc -p ./config",
"postbuild": "../../node_modules/.bin/rollup -c ./config/rollup.config.js",
"watch": "node ../../node_modules/tsc-watch/lib/tsc-watch.js --onSuccess \"npm run postbuild\" -p ./config",
"build": "npx tsc -p ./config",
"postbuild": "npx rollup -c ./config/rollup.config.js",
"watch": "npx tsc-watch --onSuccess \"npm run postbuild\" -p ./config",
"predeploy": "npm run build",
"deploy": "npm publish --tag beta",
"test": "../../node_modules/jest/bin/jest.js --config ../../config/jest.config.js --testPathPattern packages/components",
"test:watch": "../../node_modules/jest/bin/jest.js --config ../../config/jest.config.js --testPathPattern packages/components --watch",
"test:cjs": "npm run build && ../../node_modules/jest/bin/jest.js --config ../../config/jest.cjs.config.js --testPathPattern packages/components",
"test:umd": "npm run build && ../../node_modules/jest/bin/jest.js --config ../../config/jest.umd.config.js --testPathPattern packages/components"
"test": "npx jest --config ../../config/jest.config.js --testPathPattern packages/components",
"test:watch": "npx jest --config ../../config/jest.config.js --testPathPattern packages/components --watch",
"test:cjs": "npm run build && npx jest --config ../../config/jest.cjs.config.js --testPathPattern packages/components",
"test:umd": "npm run build && npx jest --config ../../config/jest.umd.config.js --testPathPattern packages/components"
},
"peerDependencies": {
"apollo-cache": "^1.3.0",
"apollo-client": "^2.6.0",
"apollo-link": "^1.2.11",
"apollo-utilities": "^1.3.0",
"graphql": "^14.2.1",
"react": "^16.8.6",
"react-dom": "^16.8.6"
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
"dependencies": {
"@apollo/react-common": "file:../common",
Expand All @@ -54,5 +54,11 @@
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"jest": "^24.8.0",
"rollup": "^1.15.5",
"tsc-watch": "^2.2.1",
"typescript": "^3.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/components/src/__tests__/client/Mutation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
mockSingleLink,
stripSymbols
} from '@apollo/react-testing';
import { render, cleanup, fireEvent } from 'react-testing-library';
import { render, cleanup, fireEvent } from '@testing-library/react';
import { Query, Mutation } from '@apollo/react-components';

const mutation = gql`
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/__tests__/client/Query.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@apollo/react-testing';
import { DocumentNode } from 'graphql';
import gql from 'graphql-tag';
import { render, cleanup } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';
import { ApolloLink } from 'apollo-link';
import { Query } from '@apollo/react-components';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ApolloLink, Operation } from 'apollo-link';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
import { MockSubscriptionLink } from '@apollo/react-testing';
import { ApolloProvider } from '@apollo/react-common';
import { render, cleanup } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';
import { Subscription } from '@apollo/react-components';

const results = [
Expand Down
Loading