chore(deps): update relay monorepo to v16 (major) #341
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^10.1.3
->^16.2.0
^10.1.3
->^16.2.0
^10.1.3
->^16.2.0
Release Notes
facebook/relay (babel-plugin-relay)
v16.2.0
Compare Source
Minor breaking changes
This change is a breaking change, as the
customScalars
config option in the single-project config must now be specified ascustomScalarTypes
.Added
Bug fixes
Improvements
Parameters
and indexed access type to extract PreloadParams by Sam ZhouDocumentation Improvements
directives
argument for@refetchable
(#4520) by Daniel Lo NigroMiscellaneous
Experimental Changes
Full Changelog: facebook/relay@v16.1.0...v16.2.0
v16.1.0
Compare Source
Added
Enable flag
enable_strict_custom_scalars
to perform validations when custom scalar types are used, to check that the user doesn't try to pass literal values (strings, ints, etc) in positions where a custom scalar type is expected, as this can break type safety since Relay can't know whether those literals conform to the underlying custom type.Bug fixes
Improvements
EntryPointElementConfig
by Sam ZhouDocumentation Improvements
Miscellaneous
Experimental Changes
useFragmentInternal
to use inuseLazyLoadQueryNode
by Andrey Lunyovv16.0.0
Compare Source
Breaking
@connection
directive will now throw if they are invalid instead of being a no-op. [2dd7954
]Flow-related breaking changes:
commitMutation
[603ce54
] anduseMutation
[051e469
].RelayModernRecord.js
. [21a896c
]babel-plugin-syntax-hermes-parser
plugin, which switches Babel to usehermes-parser
instead of@babel/parser
, and enables full syntax support for Flow. [c320a89
]1d95ce2
] - MakeReact.Element
fully opaqueTypeScript-related breaking changes:
Record<PropertyKey, never>
instead of as{}
to represent an object without properties. [16910c9
] (#4404)null
andundefined
(T | null | undefined
) instead of (T | null
). To keep the old type generation behavior for now, you may set thetypescriptExcludeUndefinedFromNullableUnion
feature flag in therelay-compiler
config as follows.Note the feature flag will be removed in a future release. [cc47bc9
] (#4380)Bug Fixes
313d62d
] - Don't assign to frozen objects and arraysa5e0ba3
] - Fix flow errors in the reactive executor and relay runtimes17f4abf
] - Make isWithinUnmatchedTypeRefinement be set on a per-fragment basis33d5475
] - Fix RelayObservable ifEmpty: Cannot access 'current' before initialization4123383
] - Do not freeze array buffer viewsa2c2b64
] - Get compiler playground working again (#4336)04005db
] - Replace invalid variable characters for import name (#4293)0fce632
] - Fix refetching and pagination when using a custom nodeInterfaceIdField (#4053)e784ee4
] - Fix version number parsing in cannotReadPropertyOfUndefined__DEPRECATED (#4314)a79038b
] - Fix some grammar in validation selection conflict error messages6f30869
] - Updating connection handler to be able to deal with streamed edges that are already in memory2699206
] - Always use / as path separators in generated artifacts (to allow stable compilation between windows and unix-based systems)Experimental
Relay Resolvers are an experimental feature of Relay which allows you to model derived data, and soon client state, in your Relay graph. Since our last release we’ve put considerable work into stabilizing the feature. This includes bug fixes across our compiler, type generation, runtime and LSP (editor integration). In particular, contributors have fixed a number of bugs which made it impossible to use Relay Resolvers with TypeScript.
Documentation:
bd95f00
] - Updates RelayResolvers docs to include terse syntax and updates to the module resolution detailsImprovements:
15c2715
] - Fix compiler issue with stale artifacts for Resolvers in watch mode (#4415)0b2791f
] - skip_redundant_nodes: do not mess with order of selections within inline fragments with client edge metadata77304c2
] - Add flag and validation for strict resolver flavors3d66ad8
] - Add artifact with schema resolvers998fd49
] - Regression test for not detecting undefined variables on resolver fields556d696
] - Fix Relay Resolver typegen for Typescript-based projects (#4274)508dca3
] - Add handleMissedUpdates to subscription callbackc899a68
] - skip generating client edge queries for base project fragmentsbb50fdf
] - Support Graph Mode GraphQL response data processingc93322b
] - Add directives to the base project resolvers (types/fields)5d22d1c
] - Show a helpful error if a resolver returns an interface with no implementors (#4428)a8dc8a9
] - Retain description for terse resolvers64b707d
] - Set the cache as missing state when missed updatesb09fd94
] - Support for suspend after initial mounting for plural fragmentsf4bdd5a
] - Components can suspend after initial mounting900f40c
] - Update operation tracker for optimistic updatesb2dcbfe
] - Allow@required
to bubble to client edge resolvers.b23fe58
] - Split out method in RelayReader responsible for propagating resolver metadatafca7a9c
] - Catch errors thrown during .read()4a1d71d
] - Log Required fields even if not missing data5dfb88b
] - Simplify what we keep in the store for resolver errorsfeaba45
] - Validate that resolver fields are always nullable147498f
] - non-nullable __relay_model_instance6e4ff95
] - Unify handling of plural/nullabile resolver field types2732238
] - Reflect correct resolver type in test fixturef0e802a
] - Ensure incremental builds include all @rootFragment fragments6a80a0f
] - Add runtime test validating plural@live
field6347254
] - Fix bug where suspending@weak
resolver values were getting normalized3c44796
] - Enable tsx extension on relay resolvers (#4303)a02b706
] - Don't wrap nullish values returned from@weak
model resolvers0fe2553
] - Allow legacy resolvers with@rootFragment
on model typesfd06faa
] - Preserve correct resolver path across client edgesfccb3c8
] - Allow resolvers with@rootFragment
on model typesb4099fc
] - Type bug with resolverDataInjector and resolvers that accept args5c0a740
] - Fix for@required
on client edgesed612b8
] - Add feature flag for operation tracking that would work with lazy React notificationcf1650e
] - Log on LiveResolver batch start/endf7d62f4
] - When adding a concrete object that implements an interface to a schema, also modify interfacesImprovements
58da806
] - Allow configurable@defer
/@stream
names (#4467)c4618c6
] - Add support for copying field errors into the store9a96c6a
] - Improve error message clarity4ffd869
] - Add typescriptExcludeUndefinedFromNullableUnion to SingleProjectConfigFile (#4482)51fca35
] - Stabilize printing paths in fixture tests9c7b92a
] - Type-safe updaters for TypeScript (#4370)0bc4142
] - allow using provided variables with refetchable fragments38a08ed
] - Allow printing interfaces implementing interfaces1328fc1
] - Export node from assignable fragment (#4409)bacd1ae
] - Allow extending interface interfaces7ba6387
] - Add getFields() to RelayModernRecorda062e17
] - Extend multiple schemas in parallel699b0ab
] - Improve fragment and fragment spread hover091a4f0
] - Allow ast_diff_in_doc drops machine readable struct99ce43f
] - Inject changed schema files when loading from saved statebc40b4b
] - Fix error message in UpdatableDisallowRelayResolvers error7a14de0
] - Extract type for RequiredFieldLoggerEvent95c54b4
] - Allow persisting to also include the query text for safe migration (#3917)de6594b
] - Using opaque type trick to enforce nested relay entry point safetyce74006
] - Recommend Babel extension to fix VSCode syntax highlighting (#4324)d04c7be
] - MockPayloadGenerator support for @no_inline with args39ebc1c
] - Avoid reusing AST nodes (#4309)35fea88
] - Add parent node information when providing error about printing empty selections2108aed
] - Add support for deferred fragments in MockPayloadGeneratorDocumentation
Additions:
356bc78
] - Docs v15.0.05df8aee
] - Add blog post highlighting changes in Relay 15 (#4258)098a84e
] - Add Réa to list of relay users (#4430)6e9e000
] - Build Wasm compiler explorer when deploying docs website (#3928)1ef73b2
] - Update mutations-updates.md (#4424)563c570
] - Update connections-pagination.md (#4423)8fcf1fc
] - update docs for missing field handlers (#4259)2877676
] - Add doc explaining client mutation ID and actor IDTypo fixes:
610806b
] - Fix typo in testing-relay-with-preloaded-queries.md (#4405)3b9f90a
] - Fixed typo in refetchable-fragments.md (#4427)b998f9b
] - fix(docs): remove duplicate text in MutationConfig.md (#4462)0d63f5a
] - Update documentation with corrected usage ofuseTransistion
10f00e4
] - Fix typo in tutorial (#4444)555ebfd
] - Fix link to an explanation of @raw_response_type usage (#4435)5450fcd
] - Fix small typo in tutorial (queries-2.md) (#4398)6910c55
] - Connections Doc Minor Typo Fix (#4369)34a3581
] - Fixed a typo in the website tutorial (#4342)9942761
] - Fix typo in load-query.md documentation (#4106)7094921
] - docs: add missing comma (#4295)dc659df
] - docs: Fix typo ingetting-started/installation-and-setup.md
(#4306)442d494
] - Fix typo in jest method name (#4271)Tutorial updates:
94745ee
] - fixing guided tour pagecba7764
] - update fragment tutorial documentation (#4292)007eff0
] - Link to persisted queries in tutorial (#4359)51fee15
] - Fix TypeScript before continuing in tutorial (#4355)97cedbc
] - Rerun relay compiler (#4288)Other corrections:
9eb2747
] - fix(docs):readInlineData
function (#4451)0ce764a
] - Remove flow-type parameters from Relay API references9a1ea37
] - A full example of creating Relay environment in Relay Environment Provider docs5357c44
] - fix(docs): Error boundaries link points to React legacy docs (#4392)0bf353a
] - Update commit-mutation.md (#4346)7e42ea1
] - Fix invalid usage ofuseMemo()
in docs (#4281)37ad7f2
] - Update fetch-query.md (#4296)d431902
] - Update advanced-pagination.md (#4264)2f38a11
] - Fix grammar error in the fragments page of docs (#4267)6ed8289
] - Update record method for filling in missing data docs (#4249)Tooling
392ea1f
] - Build compiler playground as part of GitHub CI (take 2) (#4470)5cadb43
] - Improve inline fragment suggestions for abstract types (#4453)f67e9c5
] - Make the Relay Compiler Terminal Transient (#4455)1ae14fe
] - Add a subcommand to dump definitions to file3b96b01
] - Enable goto def in LSP to goto the actual schema definition (#4434)Miscellaneous
d4ca7d9
] - Add From extension AST to definition ASTbeb0e92
] - graphql-syntax: add comments explaining FloatNodea55a3fa
] - Add newtype for Union::name1c8917b
] - Make InMemory schema cloneable4d9f255
] - Level-based logging for graphql schema toolsa203dc6
] - Remove duplicated flow definitions from arvr/js48ce83a
] - Update strum and enable the derive feature59912af
] - Remove unused method arguments (#4326)17d9f9f
] - Remove Flight support in Relay Compiler5dd6914
] - Create stand-alone PR to fix VSCode extension build (#4275)cc1daa1
] - Create shared mock for scheduler (#4313)f5c48cd
] - Relay: More ResilientcannotReadPropertyOfUndefined
46fa2fa
] - Removeexperimental.abstract_locations
config3073f1e
] - Add feature flag to log missing data using invariant in prode2b8516
] - Removeinference_mode
config now that LTI is the defaultFlow Changes
92aaeaf
] - Add TRawResponse to useClientQuery generics to support @raw_response_type9b7e157
] - Strictify EntryPoint typing by makingTPreloadParams
invariantfe26a5e
] - Fix flow suppression in buildReactRelayContainer79ba933
] - Suppress forwardRef flow error on WWWfdafa27
] - Enable mapped typeeb29556
] - Replace $Call with ReturnType in flow typegen037a28f
] - Make Props readonlyf0dbef2
] - Codemod$Shape
toPartial
in Relay files, suppressing errorsf9cba52
] - Update setLinkedRecords flowtypee43a369
] - Extract events into named types (#4254)v15.0.0
Compare Source
Relay 15.0.0 Release Notes
Breaking
6092ddb
] Change signature of missing field handlers. Instead of accepting aRecord
(which is an untyped grabbag containing whatever the store has), we instead pass a?ReadOnlyRecordProxy
. Furthermore, we replaceNormalizationLinkedField
withCommonLinkedField
, which both aReaderLinkedField
andNormalizationLinkedField
"implement".flow
forgraphql
tags. [a75a445
] [ef29f06
] [78bd12d
] [614c747
] [ab9f04a
]Features
a6eb291
] Find field references for vscode extension96c7193
] Feature: LSP Fragment completions (#4134)50266e1
] Warn on deprecated field and directive args8f1d9be
] Feature: Nested input type field completions (#4148)cbdec0b
] Add recursive implementing objects methodd24c295
] Show schema field description in LSP hover298af34
] Document __typename and __id in LSP hoverc62cad9
] Fix LSP completion icon for fields (#4131)7c06b6c
] Fix: Field alias completions (#4135)233d41b
] Add error reference link for unknown field error3b40fe5
] Improve scoping of diagnostic location for duplicate queries/fragmentsec91ebc
] Validate compiler output in OSS (#4116)603bb4b
] Add script to regenerate rust fixture tests (#4182)b1c9de3
] Copy sort-imports rule to Relay's internal lint rulesb497aa3
] Add spread arguments to Relay Compiler AST9d3a87d
] Ability to define multiple resolvers per-file8dc927f
] Terser syntax allows defining most resolvers with a single line docblock3a151b4
] Model resolvers allow defining new GraphQL types that are backed by JS objects2e134d9
] Retain Relay Resolver data during GCfb96666
] Support resolvers that return plural@weak
objects2bd9788
] Support defining@weak
types in docblocksf5467f2
] Allow live Resolvers to be batchedcb052fc
] Clean up go to definition for resolversdae3159
] Fix LSP on Windows (#4160)e80d6ba
] Compact GraphQL query text (#3983)e64db9b
] Allow passing custom headers when persisting queries (#4066)44fe2bc
] Don't print "default" project name in diagnostics10e20cc
] Update types for LoadMoreFn: use variables directly, do not extract them from query8a44673
] Adding support for client extensions in mock payload generator (#4030)9393fe5
] Use relative to fragment location path for provided variables modules6acd8cb
] Supportimport type
for named imports in typescriptc0d0198
] Handle missing fields in readUpdatableQuery/Fragmentd00df58
] Add support for refetchable interfacesf070bc1
] handle removed schema files in the incremental modebdf1a41
] Fix validate_selection_conflict and enable the optimization in relayac5f397
] More updates to LoadMoreFn types in custom pagination hooksbd0c22a
] Log event when we find an operation to suspend on2e449af
] Sort CustomScalarImports in runtime artifacts470a5fb
] Add SDLSchema.get_unions() (#4036)aa261bf
] Provide default to loadQuery TEnvironmentProviderOptions TParam8eea4aa
] Improve error messages related to @refetchable1802a7d
] Emit forced type assertions for ESModules872a64f
] Sort types of interface when generating selections for abstract @outputTypes051d1c4
] Add non-fatal validation warnings to Relay's compiler4cea5dd
] Add TRawResponse type to ClientQueryf8c1c2d
] Report related locations in diagnosticsbcf7d6f
] Useimport type
in typescript for all imports (#4029)831fa90
] Upgrade to Flow 0.201.096df067
] Export ProfilerContext in react-relay (#4049)Bug Fixes
9790484
] BUGFIX - pop errors in validate_selection_conflict6f248f1
] Manually fix LTI errors196a57b
] Fix bug where resolved promise was being reused9582ec7
] Support Suspension of ReactRelayQueryRenderer121903d
] Default FetchPolicy for Live Queries to "store-and-network"8d49006
] AddassignClientAbstractTypes
to the DataChecker68b6846
] Fix suspense for client-only fragments that contains suspensible live resolvers8c11098
] Fix schema name resolution3cb0415
] ProvidedVariables and RelayResolver5799146
] fix moduleImportConfig support for single project configs585ad64
] Quote key in literal object argument5ea0fb9
] Do not use path in snapshots, they are different on windows. (#4101)4bc0571
] Fix printing nested condition nodes85ab73f
] Fix types of useRefetchableFragment/usePaginationFragment for data/variables with/without optional keys.5028b31
] Strip extensions on file import paths when writing out TypeScript generated code (#4057)976e6ee
] Modifying @relay_test_operation to write metadata for client fields (#4047)e2a7e96
] Fix printing repeated conditionsce5e1ed
] Compiler incorrectly reports missing required fields (#4123)4ba3fe8
] Import fragment types in typegen in non-haste setups54ba473
] Fix duplicate field validation6d01338
] Fix scheduling bug that caused extra queries4d12002
] Stop generatingjs
fields in query for 3D when local import is enabled39c774b
] Don't treat generated fragments as dependenciesMisc
98e7700
] Validate against using Relay Resolvers in typesafe updaters963ada7
] update to rust 1.64.086e476d
] Don't call schema.object 2xb17af8d
] Add Interface.implementing_interfaces689dcb1
] Cleanup relay-flight-experimentale0d62b1
] Populate all types in flatbuffer schemav14.1.0
Compare Source
Relay v14.1.0 adds improvements for existing relay features - primarily fixes and feature compatibility for client extensions and
@inline
. Thanks to our open source contributors who helped us release the Relay VSCode Extension!Added
[
cefab9e
] Support for@required
and client-edges[
90ccda1
] Support@argumentDefinitions
in@inline
fragments (#3935)[
8adcfab
] VS Code: Find references of the Resolver field.[
b965299
] useClientQuery hook[
7d5cc34
] Add support for resolvers without fragments[
8db002f
] Support custom scalar arguments that are passed as literalsFixed
[
a5d67d6
] Add resolvers to the dependency graph (Fix missing resolver fragments in incrmental mode and VS Code)[
57f96a1
] Improve error message when you mix up@live
and non-live values.[
c4dbd26
] Remove.js
and.ts
from require / import (#4002)[
cd1e9ae
] Fix MutationHandlers on field with args[
7e6dbdd
] Ensure only one implemntation on interface[
055908f
] VS Code: Fix comment blocks to recognize the embedded language inside of a JS file. (#4001)[
6a9b0e5
] Performance optimizations in the validate_conflicting_selections[
fa5a3ba
] Explicitly enumerate unsupported ReaderNode types[
9990e6f
]Configuration
📅 Schedule: Branch creation - "before 4am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.