relay-compiler 14.0.0 → 15.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -74,7 +74,10 @@ file sources, and "listen" to the file changes in the "watch" mode. If
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
76
  [string][default: "id"]
77
- - `noFutureProofEnums` For `flow` only. This option controls whether or not a
77
+ - `nonNodeIdFields` Restricts the type of all fields named `id` to `ID`.
78
+ - `allowedIdTypes` Mappings from types in your schema to allowed types
79
+ for their fields named `id` (e.g. "ObjectType": "CustomIdType"). [object]
80
+ - `noFutureProofEnums` This option controls whether or not a
78
81
  catch-all entry is added to enum type definitions values that may be added in
79
82
  the future. Enabling this means you will have to update your application
80
83
  whenever the GraphQL server schema adds new enum values to prevent it from
@@ -104,6 +107,10 @@ file sources, and "listen" to the file changes in the "watch" mode. If
104
107
  [string]
105
108
  - `jsModuleFormat` Formatting style for generated files. `commonjs` or `haste`.
106
109
  Default is `commonjs`. [string]
110
+ - `diagnosticReportConfig` Options for configuring the output of compiler
111
+ diagnostics. [object]
112
+ - `criticalLevel` The severity level of diagnostics that will cause the
113
+ compiler to error out on. ["error" | "warning" | "info"]
107
114
 
108
115
  ### CLI Arguments
109
116
 
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.0.0",
4
+ "version": "15.0.0",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -235,6 +235,29 @@ directive @waterfall on FIELD
235
235
  """
236
236
  (Relay Only)
237
237
 
238
+ A special scalar type which can be used as the return type of a Relay Resolver.
239
+ When used, the resolver field will derive its TypeScript/Flow type from the
240
+ return value of the Resolver function.
241
+
242
+ [Learn More](https://relay.dev/docs/next/guides/relay-resolvers/)
243
+ """
244
+ scalar RelayResolverValue
245
+
246
+ """
247
+ (Relay Only)
248
+
249
+ Marks a Client Schema Extension type as being an Output Type. This means that if
250
+ a Relay Resolver returns an edge to this type, the Resolver will be expected to
251
+ return the full object, rather than an ID.
252
+
253
+ This is intended for use on "weak" objects, which don't have their own strong
254
+ identity, but rather are conceptually owned by the parent object.
255
+ """
256
+ directive @RelayOutputType on OBJECT
257
+
258
+ """
259
+ (Relay Only)
260
+
238
261
  Marks a given query or fragment as updatable.
239
262
 
240
263
  [Read More](https://fb.quip.com/4FZaADvkQPPl)
package/win-x64/relay.exe CHANGED
Binary file