relay-local-schema icon indicating copy to clipboard operation
relay-local-schema copied to clipboard

chore(deps): update relay monorepo to v17 (major)

Open renovate[bot] opened this issue 3 years ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
babel-plugin-relay (source) ^10.1.3 -> ^17.0.0 age adoption passing confidence
relay-compiler (source) ^10.1.3 -> ^17.0.0 age adoption passing confidence
relay-runtime (source) ^10.1.3 -> ^17.0.0 age adoption passing confidence

Release Notes

facebook/relay (babel-plugin-relay)

v17.0.0: Version 17.0.0 Release Notes

Compare Source

Since our last release in January of this year, we've made many improvements to Relay. Themes include:

  • Improved correctness checking and validation
  • Additional editor features
  • Experimental features exploring error handling and nullability
Breaking Changes
Schema Validation

Relay compiler now runs spec-compliant schema validation against your schema including client schema extensions and Relay Resolvers. You can opt out of this feature by disabling validation in your Relay compiler config.

// relay.config.json
{
    //...
    "featureFlags": {
       "disable_schema_validation": true
    }
}

[ccc4465] by Jordan Eldredge

Edge Type Validation

We now validate that the names passed to directives like @prependNode and @appendNode are valid typenames. You can opt out of this validation with the following feature flag in your compiler config:

// relay.config.json
{
    //...
    "featureFlags": {
       "disable_edge_type_name_validation_on_declerative_connection_directives": {
          "kind": "enabled"
       }
    }
}

[53b2436] by tobias-tengler

Bug fixes
  • [f87e77d]: Fix MockPayloadGenerator for deferred fragments in lists by Fernando Gorodscy
  • [24b557a]: Use default values from mock resolver for Relay 3D payload by Andrey Lunyov
  • [59ff9c1]: Mark resolves as clean again if we reread their fragment and find data unchanged by Jordan Eldredge
  • [0d7a3d0]: Input fields with defaults shouldn't be required (#​4647) by Graeme Coupar
  • [7cc4f2b]: Check if condition on defer/stream fragments by Fernando Gorodscy
  • [05d64cc]: Update GraphQL parser to consume escaped characters by Monica Tang
  • [448aa67]: Fix Flow Types in RelayObservable by Jerry Francois
Improvements
Runtime Improvements

This release includes a new implementation of our hooks which are significantly more efficient in terms of memory use. Thanks to Dave McCabe for his work on this huge project.

  • [9f03ea5]: Make new useFragment implementation the default by Andrey Lunyov
Editor Integration Improvements

Huge shout out to community contributor Tobias Tengler for many improvements to our Editor Support via our VSCode extension. Our VSCode extension is powered by the relay-compiler so upgrading to version 17.0.0 of the compiler should unlock a number of great IDE features.

  • [dc2cb85]: Add code action to rename fragment (#​4697) by tobias-tengler
  • [68c7cca]: Add SchemaDocument go to definition LSP support (#​4669) by tobias-tengler
  • [8fd21e7]: Attach previous location to duplicate type diagnostic by Jordan Eldredge
  • [dd9d3a0]: Support inlay hints by Jordan Eldredge (Requires upgrading to v2.3.0 of our VSCode extension)
  • [964e078]: Activate LSP for schema and schema extension files (#​4652) by tobias-tengler
  • [bb41169]: Support go to definition for arguments (#​4605) by tobias-tengler
  • [bbddbf3]: Report errors if location provider fails (#​4588) by Jordan Eldredge
  • [964e078]: Activate LSP for schema and schema extension files (#​4652) by tobias-tengler
Compiler Performance Improvements
  • [232985f]: Parallel watchman queries for saved state and changed files by Gordy French
  • [ef22ae6]: Run schema validation in parallel by Jordan Eldredge
  • [a7984bc]: Speed up watchman_query_time_before_subscribe by Tianyu Yao
  • [acd17ec]: Use multithreaded zstd compression by Gordy French
  • [a7984bc]: Speed up watchman_query_time_before_subscribe by Tianyu Yao
  • [f7b030e]: Split a project into multiple chunks and parallelize by Tianyu Yao
  • [bafd56b]: Parallelize GraphQLAsts::from_graphql_sources by Tianyu Yao
  • [69dbfee]: Parallelize from_graphql_sources_map by Tianyu Yao
  • [ce12ecf]: Parallelize building schemas by Tianyu Yao
  • [586483e]: Parallelize from_file_source_changes by Tianyu Yao
  • [ee8523f]: Implement SchemaDocument path resolution (#​4639) by Tobias Tengler
  • [5f1eb8a]: Add path resolution for fragment arguments (#​4651) by tobias-tengler
  • [6601a35]: Speed up LSP requests outside of GraphQL by Evan Yeung
  • [a5a7947]: Incrementally build Enum schema changes by Evan Yeung
  • [ce6ea74]: Add go to definition support for type defined in variable definition (#​4629) by tobias-tengler
  • [2ba726b]: Add go to definition support for directives (#​4625) by tobias-tengler
Misc. Improvements
  • [29d9e55]: Add preferFetchable argument to the @​refetchable directive by Andrey Lunyov
  • [f45b35f]: New feature flag that will allow to opt-out @​fetchable types from the node query generation in @​refetchable by Andrey Lunyov
  • [9958e56]: Print raw response on persisting parsing error by Tianyu Yao
  • [9cf21af]: Integrate with Sapling or Git if they exist (#​4691) by Jon Janzen
  • [badd538]: Migrate relay hooks to hook-syntax by Alex Taylor (alta)
  • [349b5a8]: Use client schema extension enum values as source of truth for Flow types by Jordan Eldredge
  • [d3c8d1c]: Add feature flag for fragment arguments (#​4648) by tobias-tengler
  • [9e9428e]: Add support for ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE flag in the the new hooks implementation by Andrey Lunyov
Documentation Improvements
  • [acb227a]: Fix search on relay.dev (#​4715) by Paul O’Shannessy
  • [6b91a2e]: Improve compiler explorer (#​4698) by Jordan Eldredge
  • [4c5cd41]: Add docs for preferFetchable argument by Andrey Lunyov
  • [95010c8]: Relay: Update Obsolete Docs Reference to ReactTestUtils by Tim Yung
  • [51a82f6]: Document Relay Resolvers (#​4547) by Jordan Eldredge
  • [ff8e80d]: Update docs to clarify behavior of refetchable variables with nullable fragment reference by Jordan Eldredge
  • [76d6d77]: Demonstrate using custom scalar to replace RelayResolverValue by Jordan Eldredge
  • [05cf065]: Fixing minor typo in website (#​4673) by Jeshuran Paul
  • [906f5ed]: Relay docs: Fix shell script getting Prism'd as a JS comment by Robin Giese
  • [0109168]: Relay docs: Tutorial page should have proper title by Robin Giese
  • [ea2cbbc]: Fix typos in the Relay Resolvers docs by Evan Yeung
  • [dc36b48]: Fix typos in tutorial by Monica Tang
  • [14314f9]: Escape asterisks in README.md (#​4635) by Chris Morin
  • [ee03182]: Fix(docs): add instructions about installing watchman if necessary in the tutorial (#​4620) by Mark Feng
  • [1256e73]: Remove CodeSandbox Example by Jordan Eldredge
  • [b7f59af]: Chore(doc): improve relay compiler doc for persist (#​4608) by eMerzh
  • [8e557f9]: Fix typos (#​4597) by Kenneth Lum
  • [615c2d2]: Fix(doc): update config name following update (#​4596) by eMerzh
Experimental Changes

We are also continuing to evolve many experimental features which are not yet stable enough to be enabled by default in Relay.

Relay Resolvers

Relay Resolvers have been extended to support defining types which implement interfaces, and define resolvers that return client-defined interfaces where all implementing types are defined using Relay Resolvers. Relay Resolvers are now stable enough to have full documentation with instructions on how to enable them.

  • [ba5e48f]: Add model resolvers for interfaces by Monica Tang
  • [55b8716]: Return an interface with multiple weak concrete types from a resolver field by Monica Tang
  • [46879b4]: Multiple weak models implement an interface by Monica Tang
  • [98823ea]: Add model resolvers for unions by Monica Tang
  • [245602f]: Remove allow_legacy_verbose_syntax ParseOption by Lynn Yu
  • [cdab89f]: Remove ENABLE_CLIENT_EDGES runtime feature flag by Jordan Eldredge
  • [b26f3be]: Remove @​outputType feature flag by Monica Tang
  • [7ce13bc]: Remove LiveResolverStore from experimental export namespace by Jordan Eldredge
  • [f193cda]: Invert the default for emit_normalization_node_for_client_edges by Jordan Eldredge
  • [0cac319]: Define resolver on interface with weak types by Monica Tang
  • [6bda98c]: Make interface model resolver fields compatible with client schema extension-defined concrete types by Monica Tang Additionally, we are exploring the ability to extract Resolver type and field definitions directly from your typed JavaScript code, similar to how Grats works. This work is still highly experimental, only supported for Flow, and not yet fully functional. If you are interested in working with us to help bring this support to TypeScript, please get in touch.
  • [722b18f]: Better error message for using an optional flow type for strong objects by Tianyu Yao
  • [4267075]: Implement schema generation for weak object fields by Evan Yeung
  • [5d2fa70]: Prevent docblock parsing error for new resolver syntax in LSP by Tianyu Yao
  • [36802d9]: Properly support nullable strong return type by Tianyu Yao
  • [8e5c565]: Add "description" to Flow schema generation by Evan Yeung
  • [7e41583]: Fix passing empty documents to schema gen by Tianyu Yao
  • [8cce449]: A RelayResolverValue generic by Tianyu Yao
  • [0d1b5c2]: Add argument support for Flow schema generation by Evan Yeung
  • [95aaa48]: IdOf<> return type by Tianyu Yao
  • [5052062]: Support boolean by Tianyu Yao
  • [77a87be]: Add root fragment support to relay resolvers by Evan Yeung
  • [35f9763]: Pass fragment information to Flow schema generation code by Evan Yeung
  • [a8a41e2]: Treat existing resolve syntax fields as fields by Tianyu Yao
  • [16e28af]: Add @​live to Flow schema generation by Evan Yeung
  • [49563f1]: Fix incorrect error message for Relay Resolver missing function param by Evan Yeung
  • [24510ae]: Improve error messages for Relay Resolver schema generation imports by Evan Yeung
  • [433c93e]: Improve error messages for resolver schema generation by Evan Yeung
  • [d1749df]: Add weak type definitions to Flow resolvers by Evan Yeung
  • [8fa3d43]: Crate for extracting type information from JS definitions by Tianyu Yao
@​alias

We've added an experimental new directive to allow fragments to appear as fields. This can enable you, or optionally require you, to check if a fragment was fetched before using it.

Error Handling and Semantic Nullability

As part of our involvement with the GraphQL Nullability Working Group we are exploring features to enable explicit error handling and semantic nullability. Neither of these features are officially available yet, but we're excited about what will become possible here.

  • [af1f9de]: Disallow required on non-null and semanticNonNull fields by Gordy French
  • [56c099a]: Fix non-null-required validator's field traversal by Gordy French
  • [470c814]: Create CatchField for @​catch on Scalar by Itamar Kestenbaum
  • [38655ec]: Create CatchField for @​catch and throw unimplemented by Itamar Kestenbaum
  • [7bfd200]: Emit proper Flow for semanticNonNull RelayResolverValue by Gordy French
  • [88a6ff9]: Fix semanticNonNull levels support in resolver docblock by Gordy French
  • [c7d46c3]: Create CatchField feature flag by Itamar Kestenbaum
  • [696a1b3]: Support @​catch directive in RelayReader by Itamar Kestenbaum
  • [d1cf472]: Emit semanticNonNull in generated schema by Gordy French
  • [ddfa2b0]: Parse semanticNonNull from docblock by Gordy French
  • [145c788]: Add allow_non_null_resolver_fields feature flag by Gordy French
  • [cebc7f0]: Experimental support for @​semanticNonNull (#​4601) by Jordan Eldredge

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 as customScalarTypes.

Added

Bug fixes

  • [b995eec40461]: Update config.ts for typo (#​4594) by Orta Therox
  • [2f9e88affdc7]: Fix goto references for TerseRelayResolver (#​4587) by tobias-tengler
  • [d513e42f881e]: Suspend on active promises for client edge queries in the new hooks implementation by Andrey Lunyov
  • [eb0b7fcd991c]: Cleanup outdated records after model/output type resolvers updates by Andrey Lunyov
  • [ece1fd953b98]: Fix SDLSchema replacing logic by Deepak Singh
  • [d90dedfc577e]: Replace invariant in SuspenseResource with the warning in the case where GC is disabled by Monica Tang
  • [9f135b8f92a7]: Fix path on Windows (#​4544) by martin
  • [aac57b30e812]: UseFragmentInternal should suspend if environment changes and there is a query in flight by Andrey Lunyov
  • [00aabd00be72]: Fix client->client nullable model issue for PluralConcrete object output types by Monica Tang
  • [7b3b0779b570]: Fix client->client nullable model issue for SingularConcrete object output types by Monica Tang
  • [3873809c2df8]: Handle missed updates from the low-priority state changes in the new hooks implementation by Andrey Lunyov

Improvements

  • [0037d05c61d8]: Cleanup allow(unused_imports) by Cameron Pickett
  • [ada971e33838]: Disallow some read time features in mutation responses by Jordan Eldredge
  • [a2c7ed480e2d]: Relay-compiler diagnostic errors logging improvements (#​4574) by Alex Coleman
  • [1a57f0832665]: FIX(Graphql): Add support for input with default values (#​4540) by eMerzh
  • [2f97f25e53a1]: Consume LiveState from relay-runtime root in typegen by Jordan Eldredge
  • [182a86647000]: Fix missing space in diagnostic location print (#​4573) by Alex Coleman
  • [5a18984e4155]: Refactor model resolver codegen to re-use build_reader_relay_resolver by Monica Tang
  • [1972913c2d12]: Augment corpus digraph logic to intake a vec of TextSource by Monica Tang
  • [06cb092ae28f]: Implement compiler command to get graphql text sources and program by Monica Tang
  • [1a06f3269985]: Use Parameters and indexed access type to extract PreloadParams by Sam Zhou
  • [5cf0af11be92]: Update print_schema to support ARGUMENT_DEFINITION and INPUT_FIELD_DEFINITION directives by James Wren
  • [4c25549bcb1a]: More strict selectors equal check by Tianyu Yao

Documentation Improvements

Miscellaneous

  • [4619f9706d97]: Add a json output option by Tianyu Yao
  • [49e4da17abbc]: Make compiler results seriaizable by Tianyu Yao

Experimental Changes

  • [5718ca9fd9b2]: Transform to convert fragments and linked fields on abstract types to inline fragment by Monica Tang
  • [399bf9201eba]: 6/n - Add tests for errorResponseFields by Itamar Kestenbaum
  • [27a062376ce3]: 5/n - Add erroring on seeing relayFieldErrors by Itamar Kestenbaum
  • [12d169fc9c23]: 4/n - Add logging on seeing relayFieldErrors by Itamar Kestenbaum
  • [0a9d473edeee]: 3/n - Add RelayFieldError and rename RelayFieldError to TRelayFieldError by Itamar Kestenbaum
  • [914794c4ddba]: 2/n - Rename requiredFieldLogger to relayFieldLogger by Itamar Kestenbaum
  • [af4afbdc2ab3]: 1/n - Add field errors to Snapshot by Itamar Kestenbaum
  • [08c32cfede3b]: Integration test for resolvers implementing fields for interface by Jordan Eldredge
  • [396a1dbfb8cd]: Expose live resolver modules outside of experimental-live-resolvers directory by Jordan Eldredge
  • [bac5f9c790a9]: Update for normalization node changes by Bhuwan Khattar
  • [8dd004f4711a]: Add apply_to_normalization_ast config for resolvers_schema_module by Bhuwan Khattar

Full Changelog: https://github.com/facebook/relay/compare/v16.1.0...v16.2.0

v16.1.0

Compare Source

Added

  • [b683e8c2c355]: Add validations for custom scalar arguments by Alex Danoff 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

  • [b379edf30a6e]: Handle the document type change from Query to Fragment by Andrey Lunyov
  • [5ffcdbcf0114]: Fix missing validation for global variables in client-edges (#​4513) by Andrey Lunyov
  • [8e0949d6d90a]: Apply fragment renaming to resolver fields by Jordan Eldredge

Improvements

  • [dfad61878904]: Fix types in RelayMockPayloadGenerator.js by George Zahariev
  • [24ef22b4946c]: Adopt conditional type for useRefetchableFragment related functions by Sam Zhou
  • [400cfa841445]: Refactor extra typegen config fields into TypegenOptions struct by Monica Tang
  • [e694ba8792a6]: Use conditional type to power EntryPointElementConfig by Sam Zhou
  • [1cc9d937ea1a]: Refactor extra artifact project config fields into extra_artifacts_config by Monica Tang
  • [cf0fb394dbb6]: Incremental build compatible ResolversSchemaModule by Bhuwan Khattar
  • [0d429f796e69]: Implement fmt::Display for SchemaChange by Monica Tang
  • [d48a0e025385]: Fix RelayResolverModel-test by Monica Tang
  • [ab92df525948]: Use placeholder in connection warning by Jan Kassens
  • [6519571a092a]: Shallow freeze resolver value by Tianyu Yao
  • [7f54255c92ea]: Do not mutate a shallowly frozen subtree by Tianyu Yao
  • [904924c6925b]: Add validations for mutation resolvers by Alex Danoff
  • [ef84550353b6]: Handle panics in integration tests by Alex Danoff
  • [5c7555b2c00d]: Expose Sink type from relay-runtime (#​4516) by jaroslav-kubicek
  • [9e0acc1d8c77]: Improve test coverage for recycleNodesInto on deeply frozen data by Tianyu Yao
  • [6b89a29678ad]: Add normalizeResponse to MultiActorEnvironmentConfig by Bhuwan Khattar
  • [61c7bffac76f]: Regression test for mutating complex resolver values by Tianyu Yao
  • [22a3c89f9518]: Import ClientRequest for client only mutations by Alex Danoff
  • [3017057e77eb]: Only freeze plain JS objects and arrays by Tianyu Yao
  • [f90edc4cb52a]: Add regression test for fragment spreads with undefined global variables as arguments by Monica Tang
  • [8011e22b6043]: Add areEqualOwners to check for structural equality of fragment owners. (#​4500) by Andrey Lunyov

Documentation Improvements

  • [e854fa04acfe]: Typos (#​4532) by Michael Letcher
  • [06756209a4aa]: Fix typo in website/docs/tutorial/queries-1.md (#​4522) by Priyansh Agrawal
  • [59f5d604bb43]: Fix typo in Relay Mutations & updates doc by Mingshi Yang
  • [a0b50ac400b4]: Add graphql operation naming and organization docs by Aaron Lichtman
  • [19970477942d]: Add blog post explaining how Relay provides unique value in data loading by Jordan Eldredge
  • [4668757a37e9]: Add back updating-connections to current doc by Tianyu Yao

Miscellaneous

  • [2863820b5000]: Export fragment type generation for FCL setup by Monica Tang
  • [4712bcc92e85]: Replace uppercase React import with lowercase one by Sam Zhou

Experimental Changes

  • [cf30bf4a3561]: Upstream resolvers_schema_module from fb-relay-compiler by Bhuwan Khattar
  • [05689b07f341]: Js_module_import_path -> js_module_import_identifier by Bhuwan Khattar
  • [a2c57d988bc2]: Consolidate __relay_model_instance definitions by Monica Tang
  • [4f7739ac3363]: Generate_schema_resolvers -> ResolversSchemaModule by Bhuwan Khattar
  • [400090b0ad8a]: Make LiveState and suspenseSentinel top level exports of Relay by Jordan Eldredge
  • [07a90ee56ab5]: Repro tests for resolver client edges to nullable models by Monica Tang
  • [5bbdfc92cd35]: Generate rootFragment normalization ast for schema_resolvers by Bhuwan Khattar
  • [70a5ff0b15c9]: Always pass an args object to resolvers that define runtime args by Jordan Eldredge
  • [3ee60181ff50]: Inject useFragmentInternal to use in useLazyLoadQueryNode by Andrey Lunyov
  • [aa64b588fff4]: Unsubscribing from resolvers before removing the record while runing the garbage collector by Leonel Fernandez Mir
  • [44227353d574]: Validate that field arguments passed to relay resolvers are defined by Monica Tang
  • [930864a33ede]: Deprecate verbose resolver syntax with feature flag to enable by Jordan Eldredge
  • [86dc27050b26]: Add regression tests for undefined fragment arguments in relay resolvers by Monica Tang
  • [00d621701622]: Add regression tests for undefined field arguments in relay resolvers by Monica Tang
  • [41a33a19331f]: Add regression tests for both field and fragment arguments in relay resolvers by Monica Tang
  • [0c70e547f27b]: Update normalization AST generation by Gerard Moreno-Torres Bertran

v16.0.0

Compare Source

Breaking
  • Arguments passed to the filters keyword for the @connection directive will now throw if they are invalid instead of being a no-op. [2dd7954]

Flow-related breaking changes:

  • Explicit type annotations are no longer needed for commitMutation [603ce54] and useMutation [051e469].
  • Records can no longer be modified directly and can only be passed to utility functions such as those in RelayModernRecord.js. [21a896c]
  • Added the babel-plugin-syntax-hermes-parser plugin, which switches Babel to use hermes-parser instead of @babel/parser, and enables full syntax support for Flow. [c320a89]
  • [1d95ce2] - Make React.Element fully opaque

TypeScript-related breaking changes:

  • Empty variables will now be typed as Record<PropertyKey, never> instead of as {} to represent an object without properties. [16910c9] (#​4404)
  • Nullable fields will now yield a union of the actual type, null and undefined (T | null | undefined) instead of (T | null). To keep the old type generation behavior for now, you may set the typescriptExcludeUndefinedFromNullableUnion feature flag in the relay-compiler config as follows. ~Note the feature flag will be removed in a future release~. [cc47bc9] (#​4380)
    • Update: We will leave the feature flag available indefinitely, or until we have an explicit solution to missing data. See this issue for more context.
{
  "language": "typescript",
  "typescriptExcludeUndefinedFromNullableUnion": true
}
Bug Fixes
  • [313d62d] - Don't assign to frozen objects and arrays
  • [a5e0ba3] - Fix flow errors in the reactive executor and relay runtimes
  • [17f4abf] - Make isWithinUnmatchedTypeRefinement be set on a per-fragment basis
  • [33d5475] - Fix RelayObservable ifEmpty: Cannot access 'current' before initialization
  • [4123383] - Do not freeze array buffer views
  • [a2c2b64] - 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 messages
  • [6f30869] - Updating connection handler to be able to deal with streamed edges that are already in memory
  • [2699206] - 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 details

Improvements:

  • [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 metadata
  • [77304c2] - Add flag and validation for strict resolver flavors
  • [3d66ad8] - Add artifact with schema resolvers
  • [998fd49] - Regression test for not detecting undefined variables on resolver fields
  • [556d696] - Fix Relay Resolver typegen for Typescript-based projects (#​4274)
  • [508dca3] - Add handleMissedUpdates to subscription callback
  • [c899a68] - skip generating client edge queries for base project fragments
  • [bb50fdf] - Support Graph Mode GraphQL response data processing
  • [c93322b] - 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 resolvers
  • [64b707d] - Set the cache as missing state when missed updates
  • [b09fd94] - Support for suspend after initial mounting for plural fragments
  • [f4bdd5a] - Components can suspend after initial mounting
  • [900f40c] - Update operation tracker for optimistic updates
  • [b2dcbfe] - Allow @required to bubble to client edge resolvers.
  • [b23fe58] - Split out method in RelayReader responsible for propagating resolver metadata
  • [fca7a9c] - Catch errors thrown during .read()
  • [4a1d71d] - Log Required fields even if not missing data
  • [5dfb88b] - Simplify what we keep in the store for resolver errors
  • [feaba45] - Validate that resolver fields are always nullable
  • [147498f] - non-nullable __relay_model_instance
  • [6e4ff95] - Unify handling of plural/nullabile resolver field types
  • [2732238] - Reflect correct resolver type in test fixture
  • [f0e802a] - Ensure incremental builds include all @​rootFragment fragments
  • [6a80a0f] - Add runtime test validating plural @live field
  • [6347254] - Fix bug where suspending @weak resolver values were getting normalized
  • [3c44796] - Enable tsx extension on relay resolvers (#​4303)
  • [a02b706] - Don't wrap nullish values returned from @weak model resolvers
  • [0fe2553] - Allow legacy resolvers with @rootFragment on model types
  • [fd06faa] - Preserve correct resolver path across client edges
  • [fccb3c8] - Allow resolvers with @rootFragment on model types
  • [b4099fc] - Type bug with resolverDataInjector and resolvers that accept args
  • [5c0a740] - Fix for @required on client edges
  • [ed612b8] - Add feature flag for operation tracking that would work with lazy React notification
  • [cf1650e] - Log on LiveResolver batch start/end
  • [f7d62f4] - When adding a concrete object that implements an interface to a schema, also modify interfaces
Improvements
  • [58da806] - Allow configurable @defer/@stream names (#​4467)
  • [c4618c6] - Add support for copying field errors into the store
  • [9a96c6a] - Improve error message clarity
  • [4ffd869] - Add typescriptExcludeUndefinedFromNullableUnion to SingleProjectConfigFile (#​4482)
  • [51fca35] - Stabilize printing paths in fixture tests
  • [9c7b92a] - Type-safe updaters for TypeScript (#​4370)
  • [0bc4142] - allow using provided variables with refetchable fragments
  • [38a08ed] - Allow printing interfaces implementing interfaces
  • [1328fc1] - Export node from assignable fragment (#​4409)
  • [bacd1ae] - Allow extending interface interfaces
  • [7ba6387] - Add getFields() to RelayModernRecord
  • [a062e17] - Extend multiple schemas in parallel
  • [699b0ab] - Improve fragment and fragment spread hover
  • [091a4f0] - Allow ast_diff_in_doc drops machine readable struct
  • [99ce43f] - Inject changed schema files when loading from saved state
  • [bc40b4b] - Fix error message in UpdatableDisallowRelayResolvers error
  • [7a14de0] - Extract type for RequiredFieldLoggerEvent
  • [95c54b4] - Allow persisting to also include the query text for safe migration (#​3917)
  • [de6594b] - Using opaque type trick to enforce nested relay entry point safety
  • [ce74006] - Recommend Babel extension to fix VSCode syntax highlighting (#​4324)
  • [d04c7be] - MockPayloadGenerator support for @​no_inline with args
  • [39ebc1c] - Avoid reusing AST nodes (#​4309)
  • [35fea88] - Add parent node information when providing error about printing empty selections
  • [2108aed] - Add support for deferred fragments in MockPayloadGenerator
Documentation

Additions:

Typo fixes:

Tutorial updates:

Other corrections:

  • [9eb2747] - fix(docs): readInlineData function (#​4451)
  • [0ce764a] - Remove flow-type parameters from Relay API references
  • [9a1ea37] - A full example of creating Relay environment in Relay Environment Provider docs
  • [5357c44] - fix(docs): Error boundaries link points to React legacy docs (#​4392)
  • [[0bf353a](https://togithub.com/facebook/relay/commit/0bf35

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.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Mar 10 '21 00:03 renovate[bot]