github facebook/relay v16.1.0

latest release: v16.2.0
4 months ago

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

Don't miss a new relay release

NewReleases is sending notifications on new releases.