Skip to content

Commit 64d5232

Browse files
authored
chore: upgrade dependencies (#7)
1 parent 65674bc commit 64d5232

File tree

11 files changed

+6245
-2484
lines changed

11 files changed

+6245
-2484
lines changed

.babelrc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
{
2-
"presets": [["env", { "loose": true, "modules": false }]],
3-
"plugins": [
4-
["transform-class-properties", { "loose": true }],
5-
"transform-object-rest-spread"
6-
],
2+
"presets": [["@babel/preset-env", { "loose": true, "modules": false }]],
3+
"plugins": [["@babel/plugin-proposal-class-properties", { "loose": true }]],
74
"env": {
85
"test": {
96
"plugins": [
10-
"dynamic-import-node",
11-
["transform-class-properties", { "loose": true }],
12-
"transform-object-rest-spread"
7+
"babel-plugin-dynamic-import-node",
8+
["@babel/plugin-proposal-class-properties", { "loose": true }]
139
],
14-
"presets": [["env", { "loose": true }]]
10+
"presets": [["@babel/preset-env", { "loose": true }]]
1511
}
1612
}
1713
}

examples/react/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-react"]
3+
}

examples/react/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@
33
"version": "1.0.0",
44
"license": "MIT",
55
"devDependencies": {
6-
"@storybook/cli": "^3.4.5",
7-
"parcel": "^1.8.1",
8-
"@storybook/react": "^3.4.5",
6+
"@babel/core": "^7.1.2",
7+
"@babel/preset-react": "^7.0.0",
98
"@storybook/addon-actions": "^3.4.5",
109
"@storybook/addon-links": "^3.4.5",
1110
"@storybook/addons": "^3.4.5",
12-
"babel-core": "^6.26.3",
13-
"babel-runtime": "^6.26.0"
11+
"@storybook/cli": "^3.4.5",
12+
"@storybook/react": "^3.4.5",
13+
"parcel": "^1.8.1"
1414
},
1515
"dependencies": {
1616
"apollo-boost": "^0.1.6",
17-
"graphql": "^0.13.2",
17+
"graphql": "^14.0.2",
1818
"graphql-tag": "^2.9.2",
1919
"react": "^16.4.0",
2020
"react-apollo": "^2.1.4",
2121
"react-dom": "^16.4.0"
2222
},
2323
"scripts": {
24+
"start": "parcel index.html",
2425
"storybook": "start-storybook -p 6006",
2526
"build-storybook": "build-storybook"
2627
}

examples/react/yarn.lock

Lines changed: 3278 additions & 743 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,38 +34,37 @@
3434
"graphql-tools": "^3.0.0"
3535
},
3636
"devDependencies": {
37-
"babel-cli": "^6.26.0",
38-
"babel-core": "^6.26.3",
39-
"babel-eslint": "^8.2.3",
37+
"@babel/cli": "^7.1.2",
38+
"@babel/core": "^7.1.2",
39+
"@babel/plugin-proposal-class-properties": "^7.1.0",
40+
"@babel/preset-env": "^7.1.0",
41+
"@babel/preset-react": "^7.0.0",
42+
"babel-core": "^7.0.0-0",
43+
"babel-eslint": "^10.0.1",
4044
"babel-jest": "^23.0.0",
41-
"babel-plugin-dynamic-import-node": "^1.2.0",
42-
"babel-plugin-external-helpers": "^6.22.0",
43-
"babel-plugin-transform-class-properties": "^6.24.1",
44-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
45-
"babel-preset-env": "^1.6.1",
46-
"babel-preset-react": "^6.24.1",
45+
"babel-plugin-dynamic-import-node": "^2.2.0",
4746
"bundlesize": "^0.17.0",
4847
"codecov": "^3.0.1",
49-
"conventional-github-releaser": "^2.0.2",
48+
"conventional-github-releaser": "^3.1.2",
5049
"dtslint": "^0.3.0",
51-
"eslint": "^4.19.1",
52-
"eslint-config-airbnb-base": "^12.1.0",
53-
"eslint-config-prettier": "^2.9.0",
50+
"eslint": "^5.7.0",
51+
"eslint-config-airbnb-base": "^13.1.0",
52+
"eslint-config-prettier": "^3.1.0",
5453
"eslint-plugin-import": "^2.11.0",
55-
"graphql": "^0.13.2",
54+
"graphql": "^14.0.2",
5655
"graphql-tag": "^2.9.2",
57-
"graphql-tools": "^3.0.2",
58-
"jest": "^22.4.3",
56+
"graphql-tools": "^4.0.1",
57+
"jest": "^23.6.0",
5958
"prettier": "^1.12.1",
60-
"rollup": "^0.58.2",
61-
"rollup-plugin-babel": "^3.0.4",
59+
"rollup": "^0.66.6",
60+
"rollup-plugin-babel": "^4.0.3",
6261
"rollup-plugin-commonjs": "^9.1.3",
63-
"rollup-plugin-json": "^2.3.0",
62+
"rollup-plugin-json": "^3.1.0",
6463
"rollup-plugin-node-resolve": "^3.3.0",
6564
"rollup-plugin-replace": "^2.0.0",
6665
"rollup-plugin-sourcemaps": "^0.4.2",
67-
"rollup-plugin-uglify": "^3.0.0",
68-
"rollup-plugin-visualizer": "^0.6.0",
66+
"rollup-plugin-uglify": "^6.0.0",
67+
"rollup-plugin-visualizer": "^0.9.2",
6968
"standard-version": "^4.3.0"
7069
},
7170
"bundlesize": [

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import replace from 'rollup-plugin-replace'
44
import commonjs from 'rollup-plugin-commonjs'
55
import babel from 'rollup-plugin-babel'
66
import json from 'rollup-plugin-json'
7-
import uglify from 'rollup-plugin-uglify'
7+
import { uglify } from 'rollup-plugin-uglify'
88
import visualizer from 'rollup-plugin-visualizer'
99
import sourceMaps from 'rollup-plugin-sourcemaps'
1010

1111
const commonPlugins = [
1212
json(),
1313
nodeResolve(),
1414
sourceMaps(),
15-
babel({ plugins: ['external-helpers'] }),
15+
babel(),
1616
commonjs({ ignoreGlobal: true }),
1717
]
1818

@@ -56,7 +56,7 @@ const prodUmdConfig = Object.assign({}, umdConfig, {
5656
replace({
5757
'process.env.NODE_ENV': JSON.stringify('production'),
5858
}),
59-
uglify({ sourceMap: true }),
59+
uglify({ sourcemap: true }),
6060
visualizer({ filename: './bundle-stats.html' }),
6161
]),
6262
})

src/__snapshots__/server.test.js.snap

Lines changed: 7 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Object {
5959
"args": Array [
6060
Object {
6161
"defaultValue": "\\"No longer supported\\"",
62-
"description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).",
62+
"description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",
6363
"name": "reason",
6464
"type": Object {
6565
"kind": "SCALAR",
@@ -842,54 +842,6 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
842842
},
843843
},
844844
},
845-
Object {
846-
"args": Array [],
847-
"deprecationReason": "Use \`locations\`.",
848-
"description": null,
849-
"isDeprecated": true,
850-
"name": "onOperation",
851-
"type": Object {
852-
"kind": "NON_NULL",
853-
"name": null,
854-
"ofType": Object {
855-
"kind": "SCALAR",
856-
"name": "Boolean",
857-
"ofType": null,
858-
},
859-
},
860-
},
861-
Object {
862-
"args": Array [],
863-
"deprecationReason": "Use \`locations\`.",
864-
"description": null,
865-
"isDeprecated": true,
866-
"name": "onFragment",
867-
"type": Object {
868-
"kind": "NON_NULL",
869-
"name": null,
870-
"ofType": Object {
871-
"kind": "SCALAR",
872-
"name": "Boolean",
873-
"ofType": null,
874-
},
875-
},
876-
},
877-
Object {
878-
"args": Array [],
879-
"deprecationReason": "Use \`locations\`.",
880-
"description": null,
881-
"isDeprecated": true,
882-
"name": "onField",
883-
"type": Object {
884-
"kind": "NON_NULL",
885-
"name": null,
886-
"ofType": Object {
887-
"kind": "SCALAR",
888-
"name": "Boolean",
889-
"ofType": null,
890-
},
891-
},
892-
},
893845
],
894846
"inputFields": null,
895847
"interfaces": Array [],
@@ -942,6 +894,12 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
942894
"isDeprecated": false,
943895
"name": "INLINE_FRAGMENT",
944896
},
897+
Object {
898+
"deprecationReason": null,
899+
"description": "Location adjacent to a variable definition.",
900+
"isDeprecated": false,
901+
"name": "VARIABLE_DEFINITION",
902+
},
945903
Object {
946904
"deprecationReason": null,
947905
"description": "Location adjacent to a schema definition.",

src/fraql.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import gql from './'
1+
import gql from '.'
22

33
describe('fraql', () => {
44
it('should not do anything on query', () => {

src/mock.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { GraphQLSchema } from 'graphql'
22
import { makeExecutableSchema } from 'graphql-tools'
33
import * as introspectionResult from './__fixtures__/schema.json'
4-
import gql from './'
4+
import gql from '.'
55
import {
66
Mocker,
77
createMockerFromIntrospection,

src/transform.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gql from 'graphql-tag'
2-
import { toInlineFragment } from './'
2+
import { toInlineFragment } from '.'
33

44
describe('transform', () => {
55
describe('#toInlineFragment', () => {

0 commit comments

Comments
 (0)