Skip to content

Commit

Permalink
chore: upgrade dependencies (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge authored Oct 13, 2018
1 parent 65674bc commit 64d5232
Show file tree
Hide file tree
Showing 11 changed files with 6,245 additions and 2,484 deletions.
14 changes: 5 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"presets": [["env", { "loose": true, "modules": false }]],
"plugins": [
["transform-class-properties", { "loose": true }],
"transform-object-rest-spread"
],
"presets": [["@babel/preset-env", { "loose": true, "modules": false }]],
"plugins": [["@babel/plugin-proposal-class-properties", { "loose": true }]],
"env": {
"test": {
"plugins": [
"dynamic-import-node",
["transform-class-properties", { "loose": true }],
"transform-object-rest-spread"
"babel-plugin-dynamic-import-node",
["@babel/plugin-proposal-class-properties", { "loose": true }]
],
"presets": [["env", { "loose": true }]]
"presets": [["@babel/preset-env", { "loose": true }]]
}
}
}
3 changes: 3 additions & 0 deletions examples/react/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-react"]
}
13 changes: 7 additions & 6 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"@storybook/cli": "^3.4.5",
"parcel": "^1.8.1",
"@storybook/react": "^3.4.5",
"@babel/core": "^7.1.2",
"@babel/preset-react": "^7.0.0",
"@storybook/addon-actions": "^3.4.5",
"@storybook/addon-links": "^3.4.5",
"@storybook/addons": "^3.4.5",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0"
"@storybook/cli": "^3.4.5",
"@storybook/react": "^3.4.5",
"parcel": "^1.8.1"
},
"dependencies": {
"apollo-boost": "^0.1.6",
"graphql": "^0.13.2",
"graphql": "^14.0.2",
"graphql-tag": "^2.9.2",
"react": "^16.4.0",
"react-apollo": "^2.1.4",
"react-dom": "^16.4.0"
},
"scripts": {
"start": "parcel index.html",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
}
Expand Down
4,021 changes: 3,278 additions & 743 deletions examples/react/yarn.lock

Large diffs are not rendered by default.

41 changes: 20 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,37 @@
"graphql-tools": "^3.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^7.0.0-0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.0.0",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-plugin-dynamic-import-node": "^2.2.0",
"bundlesize": "^0.17.0",
"codecov": "^3.0.1",
"conventional-github-releaser": "^2.0.2",
"conventional-github-releaser": "^3.1.2",
"dtslint": "^0.3.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint": "^5.7.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-import": "^2.11.0",
"graphql": "^0.13.2",
"graphql": "^14.0.2",
"graphql-tag": "^2.9.2",
"graphql-tools": "^3.0.2",
"jest": "^22.4.3",
"graphql-tools": "^4.0.1",
"jest": "^23.6.0",
"prettier": "^1.12.1",
"rollup": "^0.58.2",
"rollup-plugin-babel": "^3.0.4",
"rollup": "^0.66.6",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-uglify": "^3.0.0",
"rollup-plugin-visualizer": "^0.6.0",
"rollup-plugin-uglify": "^6.0.0",
"rollup-plugin-visualizer": "^0.9.2",
"standard-version": "^4.3.0"
},
"bundlesize": [
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import replace from 'rollup-plugin-replace'
import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
import json from 'rollup-plugin-json'
import uglify from 'rollup-plugin-uglify'
import { uglify } from 'rollup-plugin-uglify'
import visualizer from 'rollup-plugin-visualizer'
import sourceMaps from 'rollup-plugin-sourcemaps'

const commonPlugins = [
json(),
nodeResolve(),
sourceMaps(),
babel({ plugins: ['external-helpers'] }),
babel(),
commonjs({ ignoreGlobal: true }),
]

Expand Down Expand Up @@ -56,7 +56,7 @@ const prodUmdConfig = Object.assign({}, umdConfig, {
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
uglify({ sourceMap: true }),
uglify({ sourcemap: true }),
visualizer({ filename: './bundle-stats.html' }),
]),
})
Expand Down
56 changes: 7 additions & 49 deletions src/__snapshots__/server.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Object {
"args": Array [
Object {
"defaultValue": "\\"No longer supported\\"",
"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/).",
"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/).",
"name": "reason",
"type": Object {
"kind": "SCALAR",
Expand Down Expand Up @@ -842,54 +842,6 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
},
},
},
Object {
"args": Array [],
"deprecationReason": "Use \`locations\`.",
"description": null,
"isDeprecated": true,
"name": "onOperation",
"type": Object {
"kind": "NON_NULL",
"name": null,
"ofType": Object {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null,
},
},
},
Object {
"args": Array [],
"deprecationReason": "Use \`locations\`.",
"description": null,
"isDeprecated": true,
"name": "onFragment",
"type": Object {
"kind": "NON_NULL",
"name": null,
"ofType": Object {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null,
},
},
},
Object {
"args": Array [],
"deprecationReason": "Use \`locations\`.",
"description": null,
"isDeprecated": true,
"name": "onField",
"type": Object {
"kind": "NON_NULL",
"name": null,
"ofType": Object {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null,
},
},
},
],
"inputFields": null,
"interfaces": Array [],
Expand Down Expand Up @@ -942,6 +894,12 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
"isDeprecated": false,
"name": "INLINE_FRAGMENT",
},
Object {
"deprecationReason": null,
"description": "Location adjacent to a variable definition.",
"isDeprecated": false,
"name": "VARIABLE_DEFINITION",
},
Object {
"deprecationReason": null,
"description": "Location adjacent to a schema definition.",
Expand Down
2 changes: 1 addition & 1 deletion src/fraql.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import gql from './'
import gql from '.'

describe('fraql', () => {
it('should not do anything on query', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/mock.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GraphQLSchema } from 'graphql'
import { makeExecutableSchema } from 'graphql-tools'
import * as introspectionResult from './__fixtures__/schema.json'
import gql from './'
import gql from '.'
import {
Mocker,
createMockerFromIntrospection,
Expand Down
2 changes: 1 addition & 1 deletion src/transform.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import gql from 'graphql-tag'
import { toInlineFragment } from './'
import { toInlineFragment } from '.'

describe('transform', () => {
describe('#toInlineFragment', () => {
Expand Down
Loading

0 comments on commit 64d5232

Please sign in to comment.