relay-compiler 14.1.0 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -73,11 +73,12 @@ file sources, and "listen" to the file changes in the "watch" mode. If
73
73
  - `schemaConfig`
74
74
  - `nodeInterfaceIdField` Configure the name of the globally unique ID field on
75
75
  the Node interface. Useful if you can't use the default `id` field name.
76
+ - `nodeInterfaceIdVariableName` Specifies the name of the variable expected by the `node` query to pass the Node id.
76
77
  [string][default: "id"]
77
78
  - `nonNodeIdFields` Restricts the type of all fields named `id` to `ID`.
78
79
  - `allowedIdTypes` Mappings from types in your schema to allowed types
79
80
  for their fields named `id` (e.g. "ObjectType": "CustomIdType"). [object]
80
- - `noFutureProofEnums` For `flow` only. This option controls whether or not a
81
+ - `noFutureProofEnums` This option controls whether or not a
81
82
  catch-all entry is added to enum type definitions values that may be added in
82
83
  the future. Enabling this means you will have to update your application
83
84
  whenever the GraphQL server schema adds new enum values to prevent it from
@@ -107,6 +108,10 @@ file sources, and "listen" to the file changes in the "watch" mode. If
107
108
  [string]
108
109
  - `jsModuleFormat` Formatting style for generated files. `commonjs` or `haste`.
109
110
  Default is `commonjs`. [string]
111
+ - `diagnosticReportConfig` Options for configuring the output of compiler
112
+ diagnostics. [object]
113
+ - `criticalLevel` The severity level of diagnostics that will cause the
114
+ compiler to error out on. ["error" | "warning" | "info"]
110
115
 
111
116
  ### CLI Arguments
112
117
 
package/cli.js CHANGED
@@ -5,8 +5,9 @@
5
5
  * This source code is licensed under the MIT license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
- * @noflow
9
8
  * @format
9
+ * @noflow
10
+ * @oncall relay
10
11
  */
11
12
 
12
13
  'use strict';
package/index.js CHANGED
@@ -4,8 +4,9 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @noflow
8
7
  * @format
8
+ * @noflow
9
+ * @oncall relay
9
10
  */
10
11
 
11
12
  'use strict';
package/linux-arm64/relay CHANGED
Binary file
package/linux-x64/relay CHANGED
Binary file
package/macos-arm64/relay CHANGED
Binary file
package/macos-x64/relay CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-compiler",
3
3
  "description": "A compiler tool for building GraphQL-driven applications.",
4
- "version": "14.1.0",
4
+ "version": "16.0.0",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -214,9 +214,6 @@ will be prepended to its parent connection.
214
214
  """
215
215
  directive @prependNode(connections: [ID!]!, edgeTypeName: String!) on FIELD
216
216
 
217
- # RelayClientComponentTransform
218
- directive @relay_client_component on FRAGMENT_SPREAD
219
-
220
217
  # RelayResolver
221
218
  directive @relay_resolver(
222
219
  fragment_name: String!
@@ -235,6 +232,29 @@ directive @waterfall on FIELD
235
232
  """
236
233
  (Relay Only)
237
234
 
235
+ A special scalar type which can be used as the return type of a Relay Resolver.
236
+ When used, the resolver field will derive its TypeScript/Flow type from the
237
+ return value of the Resolver function.
238
+
239
+ [Learn More](https://relay.dev/docs/next/guides/relay-resolvers/)
240
+ """
241
+ scalar RelayResolverValue
242
+
243
+ """
244
+ (Relay Only)
245
+
246
+ Marks a Client Schema Extension type as being an Output Type. This means that if
247
+ a Relay Resolver returns an edge to this type, the Resolver will be expected to
248
+ return the full object, rather than an ID.
249
+
250
+ This is intended for use on "weak" objects, which don't have their own strong
251
+ identity, but rather are conceptually owned by the parent object.
252
+ """
253
+ directive @RelayOutputType on OBJECT
254
+
255
+ """
256
+ (Relay Only)
257
+
238
258
  Marks a given query or fragment as updatable.
239
259
 
240
260
  [Read More](https://fb.quip.com/4FZaADvkQPPl)
package/win-x64/relay.exe CHANGED
Binary file