Skip to content

Commit

Permalink
Bump direct and transitive dependencies (#688)
Browse files Browse the repository at this point in the history
* Bump direct dependencies

* Bump transitive dependencies

* Bump graphql to ^15.0.0 (peer dependency range extended)

* Upgrade Prettier config for prettier@2.0.0

* Bump major versions on dependencies

- @testing-library/react
- extract-files

* Add @urql/exchange-multipart-fetch changeset

* Fix ineffective typescript-transpilation in Rollup

* Fix test mismatches due to graphql and @testing-library/* upgrades

* Revert build change and fix tsconfig files

* Rerun eslint on files

* Update yarn.lock
  • Loading branch information
kitten authored Apr 9, 2020
1 parent 7c4009f commit e09780e
Show file tree
Hide file tree
Showing 23 changed files with 1,671 additions and 2,098 deletions.
13 changes: 13 additions & 0 deletions .changeset/fast-sheep-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@urql/exchange-graphcache': patch
'@urql/exchange-multipart-fetch': patch
'@urql/exchange-populate': patch
'@urql/exchange-retry': patch
'@urql/exchange-suspense': patch
'@urql/core': patch
'@urql/preact': patch
'urql': patch
'@urql/svelte': patch
---

Add graphql@^15.0.0 to peer dependency range.
5 changes: 5 additions & 0 deletions .changeset/large-paws-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@urql/exchange-multipart-fetch': patch
---

Bump extract-files to ^8.1.0
4 changes: 2 additions & 2 deletions exchanges/graphcache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
"wonka": "^4.0.9"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"graphql": "^14.5.8",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion exchanges/graphcache/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["src"],
"compilerOptions": {
"rootDirs": ["./", "../shared", "../populate"],
"baseUrl": "./",
"paths": {
"urql": ["../../node_modules/urql/src"],
Expand Down
6 changes: 3 additions & 3 deletions exchanges/multipart-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
},
"dependencies": {
"@urql/core": ">=1.10.4",
"extract-files": "^7.0.0",
"extract-files": "^8.1.0",
"wonka": "^4.0.9"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"graphql": "^14.5.8",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions exchanges/populate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
"wonka": "^4.0.9"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"graphql": "^14.5.8",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1"
},
"publishConfig": {
Expand Down
10 changes: 5 additions & 5 deletions exchanges/populate/src/populateExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,19 +368,19 @@ describe('on query -> (mutation w/ interface return type)', () => {
expect(print(response[1].query)).toMatchInlineSnapshot(`
"mutation MyMutation {
removeTodo {
...Todo_PopulateFragment_0
...User_PopulateFragment_0
...Todo_PopulateFragment_0
}
}
fragment Todo_PopulateFragment_0 on Todo {
fragment User_PopulateFragment_0 on User {
id
name
text
}
fragment User_PopulateFragment_0 on User {
fragment Todo_PopulateFragment_0 on Todo {
id
text
name
}
"
`);
Expand Down
1 change: 0 additions & 1 deletion exchanges/populate/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"rootDirs": ["./", "../shared", "../populate"],
"paths": {
"urql": ["../../node_modules/urql/src"],
"*-urql": ["../../node_modules/*-urql/src"],
Expand Down
4 changes: 2 additions & 2 deletions exchanges/retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
},
"devDependencies": {
"@types/react": "^16.9.19",
"graphql": "^14.6.0",
"graphql": "^15.0.0",
"react": "^16.13.0",
"react-dom": "^16.13.0"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"dependencies": {
"@urql/core": ">=1.10.4",
Expand Down
4 changes: 2 additions & 2 deletions exchanges/suspense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
},
"devDependencies": {
"@types/react": "^16.9.19",
"graphql": "^14.6.0",
"graphql": "^15.0.0",
"react": "^16.13.0",
"react-dom": "^16.13.0"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0",
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0",
"react": ">= 16.8.0"
},
"dependencies": {
Expand Down
51 changes: 26 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "es5"
},
"lint-staged": {
Expand All @@ -39,56 +40,56 @@
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.24.0",
"@babel/core": "^7.8.7",
"@babel/core": "^7.9.0",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/plugin-transform-react-jsx": "^7.8.3",
"@changesets/cli": "^2.6.1",
"@changesets/get-github-info": "^0.4.1",
"@babel/plugin-transform-react-jsx": "^7.9.4",
"@changesets/cli": "^2.6.2",
"@changesets/get-github-info": "^0.4.2",
"@rollup/plugin-buble": "^0.21.0",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-node-resolve": "^7.0.0",
"@rollup/plugin-replace": "^2.2.0",
"@rollup/plugin-sucrase": "^3.0.0",
"@testing-library/react": "^10.0.1",
"@testing-library/react": "^10.0.2",
"@testing-library/react-hooks": "^3.2.1",
"@types/jest": "^25.1.4",
"@types/react": "^16.9.19",
"@types/jest": "^25.2.1",
"@types/react": "^16.9.33",
"@types/react-test-renderer": "^16.9.2",
"@typescript-eslint/eslint-plugin": "^2.24.0",
"@typescript-eslint/parser": "^2.24.0",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"babel-plugin-closure-elimination": "^1.3.0",
"babel-plugin-transform-async-to-promises": "^0.8.15",
"dotenv": "^8.2.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.1",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.0",
"eslint-plugin-react-hooks": "^3.0.0",
"execa": "^4.0.0",
"glob": "^7.1.6",
"graphql": "^14.6.0",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1",
"husky": "^4.2.3",
"invariant": "^2.2.4",
"jest": "^25.1.0",
"jest": "^25.3.0",
"jest-watch-yarn-workspaces": "^1.1.0",
"lint-staged": "^10.0.8",
"lint-staged": "^10.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-is": "^16.12.0",
"react-test-renderer": "^16.12.0",
"prettier": "^2.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-is": "^16.13.1",
"react-test-renderer": "^16.13.1",
"rimraf": "^3.0.2",
"rollup": "^2.0.6",
"rollup": "^2.3.4",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-generate-package-json": "^3.2.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.26.0",
"rollup-plugin-visualizer": "^3.3.2",
"terser": "^4.6.7",
"ts-jest": "^25.2.1",
"rollup-plugin-typescript2": "^0.27.0",
"rollup-plugin-visualizer": "^4.0.4",
"terser": "^4.6.11",
"ts-jest": "^25.3.1",
"typescript": "^3.8.3"
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
"preset": "../../scripts/jest/preset"
},
"devDependencies": {
"graphql": "^14.6.0",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"dependencies": {
"wonka": "^4.0.9"
Expand Down
6 changes: 1 addition & 5 deletions packages/core/src/utils/stringifyVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ const stringify = (x: any): string => {

const keys = Object.keys(x).sort();
if (!keys.length && x.constructor && x.constructor !== Object) {
const key =
cache.get(x) ||
Math.random()
.toString(36)
.slice(2);
const key = cache.get(x) || Math.random().toString(36).slice(2);
cache.set(x, key);
return `{"__key":"${key}"}`;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/next-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/react-dom": "^16.9.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"graphql": "^14.6.0",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.3",
"isomorphic-unfetch": "^3.0.0",
"next": "^9.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/next-urql/src/__tests__/with-urql-client.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ describe('withUrqlClient', () => {

describe('with ctx callback to create client options', () => {
// Simulate a token that might be passed in a request to the server-rendered application.
const token = Math.random()
.toString(36)
.slice(-10);
const token = Math.random().toString(36).slice(-10);

const mockContext: NextUrqlPageContext = {
AppTree: MockAppTree,
Expand Down
4 changes: 2 additions & 2 deletions packages/preact-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
},
"devDependencies": {
"@testing-library/preact": "^1.0.2",
"graphql": "^14.5.8",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1",
"preact": "^10.3.4"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0",
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0",
"preact": ">= 10.0.0"
},
"dependencies": {
Expand Down
6 changes: 5 additions & 1 deletion packages/preact-urql/src/hooks/useQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ describe('useQuery', () => {
children: [h(QueryUser, { ...props })],
})
);
act(() => unmount());

act(() => {
unmount();
});

expect(start).toBeCalledTimes(1);
expect(unsubscribe).toBeCalledTimes(1);
});
Expand Down
6 changes: 3 additions & 3 deletions packages/react-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"preset": "../../scripts/jest/preset"
},
"devDependencies": {
"@testing-library/react": "^9.4.0",
"@testing-library/react": "^10.0.2",
"@testing-library/react-hooks": "^3.2.1",
"@types/react": "^16.9.19",
"@types/react-test-renderer": "^16.9.2",
"graphql": "^14.6.0",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.1",
"react": "^16.13.0",
"react-dom": "^16.13.0",
Expand All @@ -56,7 +56,7 @@
"react-test-renderer": "^16.12.0"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0",
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0",
"react": ">= 16.8.0"
},
"dependencies": {
Expand Down
11 changes: 6 additions & 5 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@
]
},
"dependencies": {
"@mdx-js/react": "^1.5.7",
"@mdx-js/react": "^1.5.8",
"formidable-oss-badges": "0.3.2",
"history": "^4.7.2",
"path": "^0.12.7",
"preact": "^10.3.3",
"preact": "^10.4.0",
"prism-react-renderer": "^1.0.2",
"prop-types": "^15.6.2",
"react": "^16.9.0",
"react-dom": "^16.12.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-ga": "^2.4.1",
"react-inlinesvg": "^1.2.0",
"react-is": "^16.13.1",
"react-router": "^5.0.1",
"react-router-dom": "^5.0.1",
"react-router-ga": "^1.2.3",
"react-scroll": "^1.7.15",
"react-static": "^7.2.3",
"react-static-plugin-md-pages": "^0.2.0",
"styled-components": "^5.0.1"
"styled-components": "^5.1.0"
},
"devDependencies": {
"@babel/core": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
"preset": "../../scripts/jest/preset"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0",
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0",
"svelte": "^3.0.0"
},
"dependencies": {
"@urql/core": "^1.10.7",
"wonka": "^4.0.9"
},
"devDependencies": {
"graphql": "^14.5.8",
"graphql": "^15.0.0",
"svelte": "^3.20.0"
},
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions scripts/eslint/js-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {

'prettier/prettier': ['error', {
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'es5',
}],
},
Expand Down
1 change: 1 addition & 0 deletions scripts/eslint/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module.exports = {

'prettier/prettier': ['error', {
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'es5',
}],
},
Expand Down
Loading

0 comments on commit e09780e

Please sign in to comment.