Skip to content

Commit

Permalink
chore: Updates libraries for React to newest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Jul 15, 2019
1 parent 518d91d commit 8a8298e
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function copyMissingPackages(): void {
'react-dom',
'@types/react',
'@types/react-dom',
'react-testing-library',
'@testing-library',

'document-register-element'
];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"prettier": "1.16.4",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-testing-library": "6.0.0",
"@testing-library/react": "8.0.5",
"release-it": "^7.4.0",
"rxjs": "~6.4.0",
"semver": "5.4.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render, cleanup } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';

import App from './app';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render, cleanup } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';

import <%= className %> from './<%= fileName %>';

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/schematics/ng-add/ng-add.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('ng-add', () => {
expect(packageJson.devDependencies['@nrwl/react']).toBeDefined();
expect(packageJson.devDependencies['@types/react']).toBeDefined();
expect(packageJson.devDependencies['@types/react-dom']).toBeDefined();
expect(packageJson.devDependencies['react-testing-library']).toBeDefined();
expect(packageJson.devDependencies['@testing-library/react']).toBeDefined();
});

describe('defaultCollection', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/schematics/ng-add/ng-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function addDependencies(): Rule {
'@nrwl/react': nxVersion,
'@types/react': typesVersion,
'@types/react-dom': domTypesVersion,
'react-testing-library': testingLibraryVersion
'@testing-library/react': testingLibraryVersion
}
);
}
Expand Down
8 changes: 4 additions & 4 deletions packages/react/src/utils/styled.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
emotionVersion,
styledComponentVersion,
styledComponentTypesVersion
styledComponentsVersion,
styledComponentsTypesVersion
} from './versions';
import { PackageDependencies } from './dependencies';

Expand All @@ -10,10 +10,10 @@ export const CSS_IN_JS_DEPENDENCIES: {
} = {
'styled-components': {
dependencies: {
'styled-components': styledComponentVersion
'styled-components': styledComponentsVersion
},
devDependencies: {
'@types/styled-components': styledComponentTypesVersion
'@types/styled-components': styledComponentsTypesVersion
}
},
'@emotion/styled': {
Expand Down
16 changes: 8 additions & 8 deletions packages/react/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const nxVersion = '*';
export const frameworkVersion = '16.8.3';
export const typesVersion = '16.8.4';
export const styledComponentVersion = '4.2.0';
export const styledComponentTypesVersion = '4.1.15';
export const emotionVersion = '10.0.10';
export const domTypesVersion = '16.8.2';
export const reactRouterVersion = '5.0.0';
export const testingLibraryVersion = '6.0.0';
export const frameworkVersion = '16.8.6';
export const typesVersion = '16.8.23';
export const styledComponentsVersion = '4.3.2';
export const styledComponentsTypesVersion = '4.1.18';
export const emotionVersion = '10.0.14';
export const domTypesVersion = '16.8.4';
export const reactRouterVersion = '5.0.1';
export const testingLibraryVersion = '8.0.5';
57 changes: 29 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -847,10 +847,10 @@
js-levenshtein "^1.1.3"
semver "^5.5.0"

"@babel/runtime@^7.3.1", "@babel/runtime@^7.4.3":
version "7.4.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.4.4.tgz#dc2e34982eb236803aa27a07fea6857af1b9171d"
integrity sha512-w0+uT71b6Yi7i5SE0co4NioIpSYS6lLiXvCzWzGSKvpK5vdQtCbICHMj+gbAKAOtxiV6HsVh/MBdaF9EQ6faSg==
"@babel/runtime@^7.4.5", "@babel/runtime@^7.5.4":
version "7.5.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.4.tgz#cb7d1ad7c6d65676e66b47186577930465b5271b"
integrity sha512-Na84uwyImZZc3FKf4aUF1tysApzwf3p2yuFBIyBfbzT5glzKTdvYI4KVW4kcgjrzoGUjC7w3YyCHcJKaRxsr2Q==
dependencies:
regenerator-runtime "^0.13.2"

Expand Down Expand Up @@ -1260,6 +1260,25 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==

"@testing-library/dom@^5.5.4":
version "5.6.0"
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-5.6.0.tgz#18a7c162a6a79964e731ad7b810022a28218047c"
integrity sha512-nAsRvQLr/b6TGNjuHMEbWXCNPLrQYnzqa/KKQZL7wBOtfptUxsa4Ah9aqkHW0ZmCSFmUDj4nFUxWPVTeMu0iCw==
dependencies:
"@babel/runtime" "^7.4.5"
"@sheerun/mutationobserver-shim" "^0.3.2"
aria-query "3.0.0"
pretty-format "^24.8.0"
wait-for-expect "^1.2.0"

"@testing-library/react@6.0.0":
version "8.0.5"
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-8.0.5.tgz#2301011a8c5567eba59691860df19a3cfc9d7425"
integrity sha512-2EzVi7HjUUF8gKzB4s+oCJ1+F4VOrphO+DlUO6Ptgtcz1ko4J2zqnr0t7g+T7uedXXjJ0wdq70zQMhJXP3w37A==
dependencies:
"@babel/runtime" "^7.5.4"
"@testing-library/dom" "^5.5.4"

"@types/anymatch@*":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
Expand Down Expand Up @@ -1928,7 +1947,7 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"

aria-query@^3.0.0:
aria-query@3.0.0, aria-query@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-3.0.0.tgz#65b3fcc1ca1155a8c9ae64d6eee297f15d5133cc"
integrity sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=
Expand Down Expand Up @@ -4931,16 +4950,6 @@ dom-serializer@0:
domelementtype "^1.3.0"
entities "^1.1.1"

dom-testing-library@^3.13.1:
version "3.19.4"
resolved "https://registry.yarnpkg.com/dom-testing-library/-/dom-testing-library-3.19.4.tgz#f5b737f59ee9749a4568fa353f1f59be97c888c3"
integrity sha512-GJOx8CLpnkvM3takILOsld/itUUc9+7Qh6caN1Spj6+9jIgNPY36fsvoH7sEgYokC0lBRdttO7G7fIFYCXlmcA==
dependencies:
"@babel/runtime" "^7.4.3"
"@sheerun/mutationobserver-shim" "^0.3.2"
pretty-format "^24.7.0"
wait-for-expect "^1.1.1"

domain-browser@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
Expand Down Expand Up @@ -10380,7 +10389,7 @@ pretty-error@^2.0.2:
renderkid "^2.0.1"
utila "~0.4"

pretty-format@^24.7.0, pretty-format@^24.8.0:
pretty-format@^24.8.0:
version "24.8.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.8.0.tgz#8dae7044f58db7cb8be245383b565a963e3c27f2"
integrity sha512-P952T7dkrDEplsR+TuY7q3VXDae5Sr7zmQb12JU/NDQa/3CH7/QW0yvqLcGN6jL+zQFKaoJcPc+yJxMTGmosqw==
Expand Down Expand Up @@ -10682,14 +10691,6 @@ react-is@^16.8.1, react-is@^16.8.4:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==

react-testing-library@6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/react-testing-library/-/react-testing-library-6.0.0.tgz#81edfcfae8a795525f48685be9bf561df45bb35d"
integrity sha512-h0h+YLe4KWptK6HxOMnoNN4ngu3W8isrwDmHjPC5gxc+nOZOCurOvbKVYCvvuAw91jdO7VZSm/5KR7TxKnz0qA==
dependencies:
"@babel/runtime" "^7.3.1"
dom-testing-library "^3.13.1"

react@^16.8.3:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
Expand Down Expand Up @@ -13118,10 +13119,10 @@ w3c-xmlserializer@^1.0.1:
webidl-conversions "^4.0.2"
xml-name-validator "^3.0.0"

wait-for-expect@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/wait-for-expect/-/wait-for-expect-1.1.1.tgz#9cd10e07d52810af9e0aaf509872e38f3c3d81ae"
integrity sha512-vd9JOqqEcBbCDhARWhW85ecjaEcfBLuXgVBqatfS3iw6oU4kzAcs+sCNjF+TC9YHPImCW7ypsuQc+htscIAQCw==
wait-for-expect@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/wait-for-expect/-/wait-for-expect-1.2.0.tgz#fdab6a26e87d2039101db88bff3d8158e5c3e13f"
integrity sha512-EJhKpA+5UHixduMBEGhTFuLuVgQBKWxkFbefOdj2bbk2/OpA5Opsc4aUTGmF+qJ+v3kTGxDRNYwKaT4j6g5n8Q==

walker@^1.0.7, walker@~1.0.5:
version "1.0.7"
Expand Down

0 comments on commit 8a8298e

Please sign in to comment.