relay-compiler 14.1.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/cli.js +2 -1
- package/index.js +2 -1
- package/linux-arm64/relay +0 -0
- package/linux-x64/relay +0 -0
- package/macos-arm64/relay +0 -0
- package/macos-x64/relay +0 -0
- package/package.json +1 -1
- package/relay-extensions.graphql +23 -0
- package/win-x64/relay.exe +0 -0
package/README.md
CHANGED
@@ -77,7 +77,7 @@ file sources, and "listen" to the file changes in the "watch" mode. If
|
|
77
77
|
- `nonNodeIdFields` Restricts the type of all fields named `id` to `ID`.
|
78
78
|
- `allowedIdTypes` Mappings from types in your schema to allowed types
|
79
79
|
for their fields named `id` (e.g. "ObjectType": "CustomIdType"). [object]
|
80
|
-
- `noFutureProofEnums`
|
80
|
+
- `noFutureProofEnums` This option controls whether or not a
|
81
81
|
catch-all entry is added to enum type definitions values that may be added in
|
82
82
|
the future. Enabling this means you will have to update your application
|
83
83
|
whenever the GraphQL server schema adds new enum values to prevent it from
|
@@ -107,6 +107,10 @@ file sources, and "listen" to the file changes in the "watch" mode. If
|
|
107
107
|
[string]
|
108
108
|
- `jsModuleFormat` Formatting style for generated files. `commonjs` or `haste`.
|
109
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"]
|
110
114
|
|
111
115
|
### CLI Arguments
|
112
116
|
|
package/cli.js
CHANGED
package/index.js
CHANGED
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
package/relay-extensions.graphql
CHANGED
@@ -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
|