Skip to content

Commit f51d01a

Browse files
steveluscherfacebook-github-bot-9
authored andcommitted
Updated dependencies on the example apps; upgraded them to Babel 6
Summary: Closes #813 Reviewed By: wincent Differential Revision: D2920173 fb-gh-sync-id: 975ba44cb61ca54d96d432d1b8eaca5e17eb210c shipit-source-id: 975ba44cb61ca54d96d432d1b8eaca5e17eb210c
1 parent 1381780 commit f51d01a

File tree

17 files changed

+161
-79
lines changed

17 files changed

+161
-79
lines changed

examples/relay-treasurehunt/.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"passPerPreset": true,
3+
"presets": [
4+
{
5+
"plugins": [
6+
"./build/babelRelayPlugin"
7+
]
8+
},
9+
"react",
10+
"es2015",
11+
"stage-0"
12+
]
13+
}

examples/relay-treasurehunt/data/schema.json

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"mutationType": {
88
"name": "Mutation"
99
},
10+
"subscriptionType": null,
1011
"types": [
1112
{
1213
"kind": "OBJECT",
@@ -132,7 +133,7 @@
132133
"description": "Places where treasure might be hidden",
133134
"args": [
134135
{
135-
"name": "before",
136+
"name": "after",
136137
"description": null,
137138
"type": {
138139
"kind": "SCALAR",
@@ -142,21 +143,21 @@
142143
"defaultValue": null
143144
},
144145
{
145-
"name": "after",
146+
"name": "first",
146147
"description": null,
147148
"type": {
148149
"kind": "SCALAR",
149-
"name": "String",
150+
"name": "Int",
150151
"ofType": null
151152
},
152153
"defaultValue": null
153154
},
154155
{
155-
"name": "first",
156+
"name": "before",
156157
"description": null,
157158
"type": {
158159
"kind": "SCALAR",
159-
"name": "Int",
160+
"name": "String",
160161
"ofType": null
161162
},
162163
"defaultValue": null
@@ -217,7 +218,7 @@
217218
{
218219
"kind": "SCALAR",
219220
"name": "Int",
220-
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since represented in JSON as double-precision floating point numbers specifiedby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).",
221+
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",
221222
"fields": null,
222223
"inputFields": null,
223224
"interfaces": null,
@@ -571,7 +572,7 @@
571572
{
572573
"kind": "OBJECT",
573574
"name": "__Schema",
574-
"description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query and mutation operations.",
575+
"description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
575576
"fields": [
576577
{
577578
"name": "types",
@@ -624,6 +625,18 @@
624625
"isDeprecated": false,
625626
"deprecationReason": null
626627
},
628+
{
629+
"name": "subscriptionType",
630+
"description": "If this server support subscription, the type that subscription operations will be rooted at.",
631+
"args": [],
632+
"type": {
633+
"kind": "OBJECT",
634+
"name": "__Type",
635+
"ofType": null
636+
},
637+
"isDeprecated": false,
638+
"deprecationReason": null
639+
},
627640
{
628641
"name": "directives",
629642
"description": "A list of all directives supported by this server.",
@@ -1140,7 +1153,7 @@
11401153
{
11411154
"kind": "OBJECT",
11421155
"name": "__Directive",
1143-
"description": "A Directives provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL’s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
1156+
"description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL’s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
11441157
"fields": [
11451158
{
11461159
"name": "name",

examples/relay-treasurehunt/package.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,26 @@
66
"preinstall": "cd ../.. && npm install --ignore-scripts && cd scripts/babel-relay-plugin && npm install --ignore-scripts"
77
},
88
"dependencies": {
9-
"babel": "5.8.23",
10-
"babel-core": "^5.8.25",
11-
"babel-loader": "5.3.2",
9+
"babel-core": "6.5.1",
10+
"babel-loader": "6.2.2",
11+
"babel-polyfill": "6.5.0",
12+
"babel-preset-es2015": "6.5.0",
13+
"babel-preset-react": "6.5.0",
14+
"babel-preset-stage-0": "6.5.0",
1215
"babel-relay-plugin": "file:../../scripts/babel-relay-plugin/",
13-
"classnames": "^2.1.3",
14-
"express": "^4.13.1",
15-
"express-graphql": "^0.4.0",
16-
"graphql": "0.4.13",
17-
"graphql-relay": "^0.3.3",
18-
"react": "^0.14.0",
19-
"react-dom": "^0.14.0",
16+
"classnames": "2.1.5",
17+
"express": "4.13.4",
18+
"express-graphql": "0.4.9",
19+
"graphql": "0.4.17",
20+
"graphql-relay": "0.3.6",
21+
"history": "1.17.0",
22+
"react": "0.14.7",
23+
"react-dom": "0.14.7",
2024
"react-relay": "file:../../",
21-
"webpack": "^1.10.5",
22-
"webpack-dev-server": "^1.10.1"
25+
"webpack": "1.12.13",
26+
"webpack-dev-server": "1.14.1"
27+
},
28+
"devDependencies": {
29+
"babel-cli": "6.5.1"
2330
}
2431
}

examples/relay-treasurehunt/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ var compiler = webpack({
3535
{
3636
exclude: /node_modules/,
3737
loader: 'babel',
38-
query: {stage: 0, plugins: ['./build/babelRelayPlugin']},
3938
test: /\.js$/,
4039
},
4140
],

examples/star-wars/.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"passPerPreset": true,
3+
"presets": [
4+
{
5+
"plugins": [
6+
"./build/babelRelayPlugin"
7+
]
8+
},
9+
"react",
10+
"es2015",
11+
"stage-0"
12+
]
13+
}

examples/star-wars/data/schema.json

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"mutationType": {
88
"name": "Mutation"
99
},
10+
"subscriptionType": null,
1011
"types": [
1112
{
1213
"kind": "OBJECT",
@@ -125,7 +126,7 @@
125126
"description": "The ships used by the faction.",
126127
"args": [
127128
{
128-
"name": "before",
129+
"name": "after",
129130
"description": null,
130131
"type": {
131132
"kind": "SCALAR",
@@ -135,21 +136,21 @@
135136
"defaultValue": null
136137
},
137138
{
138-
"name": "after",
139+
"name": "first",
139140
"description": null,
140141
"type": {
141142
"kind": "SCALAR",
142-
"name": "String",
143+
"name": "Int",
143144
"ofType": null
144145
},
145146
"defaultValue": null
146147
},
147148
{
148-
"name": "first",
149+
"name": "before",
149150
"description": null,
150151
"type": {
151152
"kind": "SCALAR",
152-
"name": "Int",
153+
"name": "String",
153154
"ofType": null
154155
},
155156
"defaultValue": null
@@ -281,7 +282,7 @@
281282
{
282283
"kind": "SCALAR",
283284
"name": "Int",
284-
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since represented in JSON as double-precision floating point numbers specifiedby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).",
285+
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",
285286
"fields": null,
286287
"inputFields": null,
287288
"interfaces": null,
@@ -592,7 +593,7 @@
592593
{
593594
"kind": "OBJECT",
594595
"name": "__Schema",
595-
"description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query and mutation operations.",
596+
"description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
596597
"fields": [
597598
{
598599
"name": "types",
@@ -645,6 +646,18 @@
645646
"isDeprecated": false,
646647
"deprecationReason": null
647648
},
649+
{
650+
"name": "subscriptionType",
651+
"description": "If this server support subscription, the type that subscription operations will be rooted at.",
652+
"args": [],
653+
"type": {
654+
"kind": "OBJECT",
655+
"name": "__Type",
656+
"ofType": null
657+
},
658+
"isDeprecated": false,
659+
"deprecationReason": null
660+
},
648661
{
649662
"name": "directives",
650663
"description": "A list of all directives supported by this server.",
@@ -1161,7 +1174,7 @@
11611174
{
11621175
"kind": "OBJECT",
11631176
"name": "__Directive",
1164-
"description": "A Directives provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL’s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
1177+
"description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL’s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
11651178
"fields": [
11661179
{
11671180
"name": "name",

examples/star-wars/package.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,26 @@
66
"preinstall": "cd ../.. && npm install --ignore-scripts && cd scripts/babel-relay-plugin && npm install --ignore-scripts"
77
},
88
"dependencies": {
9-
"babel": "5.8.23",
10-
"babel-core": "^5.8.25",
11-
"babel-loader": "5.3.2",
9+
"babel-core": "6.5.1",
10+
"babel-loader": "6.2.2",
11+
"babel-polyfill": "6.5.0",
12+
"babel-preset-es2015": "6.5.0",
13+
"babel-preset-react": "6.5.0",
14+
"babel-preset-stage-0": "6.5.0",
1215
"babel-relay-plugin": "file:../../scripts/babel-relay-plugin/",
13-
"classnames": "^2.1.3",
14-
"express": "^4.13.1",
15-
"express-graphql": "^0.4.0",
16-
"graphql": "0.4.13",
17-
"graphql-relay": "^0.3.3",
18-
"react": "^0.14.0",
19-
"react-dom": "^0.14.0",
16+
"classnames": "2.1.5",
17+
"express": "4.13.4",
18+
"express-graphql": "0.4.9",
19+
"graphql": "0.4.17",
20+
"graphql-relay": "0.3.6",
21+
"history": "1.17.0",
22+
"react": "0.14.7",
23+
"react-dom": "0.14.7",
2024
"react-relay": "file:../../",
21-
"webpack": "^1.10.5",
22-
"webpack-dev-server": "^1.10.1"
25+
"webpack": "1.12.13",
26+
"webpack-dev-server": "1.14.1"
27+
},
28+
"devDependencies": {
29+
"babel-cli": "6.5.1"
2330
}
2431
}

examples/star-wars/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ var compiler = webpack({
3535
{
3636
exclude: /node_modules/,
3737
loader: 'babel',
38-
query: {stage: 0, plugins: ['./build/babelRelayPlugin']},
3938
test: /\.js$/,
4039
},
4140
],

examples/todo/.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"passPerPreset": true,
3+
"presets": [
4+
{
5+
"plugins": [
6+
"./build/babelRelayPlugin"
7+
]
8+
},
9+
"react",
10+
"es2015",
11+
"stage-0"
12+
]
13+
}

examples/todo/data/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
{
308308
"kind": "SCALAR",
309309
"name": "Int",
310-
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since represented in JSON as double-precision floating point numbers specifiedby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).",
310+
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",
311311
"fields": null,
312312
"inputFields": null,
313313
"interfaces": null,

0 commit comments

Comments
 (0)