chore(deps): update dependency relay-runtime to v21#92
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
dfc00f2 to
c250716
Compare
c250716 to
acc2b6d
Compare
acc2b6d to
f6b8b85
Compare
f6b8b85 to
21ac036
Compare
21ac036 to
0a8afc6
Compare
0a8afc6 to
27e0991
Compare
27e0991 to
decb947
Compare
decb947 to
0f8eefd
Compare
0f8eefd to
066eb11
Compare
066eb11 to
c5df94d
Compare
c5df94d to
0c94f73
Compare
0c94f73 to
875cf45
Compare
875cf45 to
2fc4e86
Compare
2fc4e86 to
3a37c4f
Compare
3a37c4f to
92de661
Compare
92de661 to
189d4d2
Compare
189d4d2 to
34623c6
Compare
34623c6 to
4cfac7b
Compare
4cfac7b to
8c8266e
Compare
8c8266e to
2e78dbe
Compare
2e78dbe to
0ea9160
Compare
0ea9160 to
4a8b14c
Compare
4a8b14c to
c7a2326
Compare
c7a2326 to
b38f87f
Compare
b38f87f to
75b2963
Compare
75b2963 to
b7674f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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→^21.0.1Release Notes
facebook/relay (relay-runtime)
v21.0.1Compare Source
Version 21.0.0 had an issue where it failed to include our new TypeScript types in the published NPM bundle. Thanks to @PHILLIPS71 for the pull request identifying and resolving the issue. This point release resolves that issue and includes a number of other minor improvements which have landed since to v21.0.0 release.
Bug fixes
Added
Improvements
shard_extra_artifactsfeature flag to shard PHP text artifacts by Tianyu Yao (commit)Documentation Improvements
Miscellaneous
v21.0.0Compare Source
Relay v21.0.0 brings first-party TypeScript support, modernized Flow type generation, new error handling capabilities, and experimental React Server Components support. This release contains several breaking changes -- please read the migration notes below carefully.
Upgrading
TypeScript users: First-party
.d.tstype definitions are now shipped directly inrelay-runtimeandreact-relay. You no longer need@types/relay-runtimefrom DefinitelyTyped. Node.js ESM named imports (e.g.import { fetchQuery } from 'relay-runtime') now work correctly in.mjsfiles. Thank you to everyone who contributed to the DefinitelyTyped type definitions over the years — your work kept the Relay TypeScript community going, and it served as a valuable reference for these first-party types.Flow users -- action required: Generated types now use modern Flow syntax.
(expr: Type)casts are replaced with(expr as Type)(requires Flow >= 0.250.0),$ReadOnlyArraybecomesReadonlyArray,mixedbecomesunknown, and$NonMaybeTypebecomesNonNullable. After upgrading, you must re-run the Relay compiler to regenerate all artifacts.@live_queryremoved: The@live_querydirective has been removed. Migrate to@client_polling(interval: ...)for polling behavior, or@livefor server-pushed updates.Relay Resolvers -- new syntax required: The
enable_legacy_verbose_resolver_syntaxflag has been removed. The legacy verbose docblock syntax (@onType,@onInterface,@fieldName,@edgeTo) no longer works. In addition, we've replaced the generic@RelayResolvertag with more specific@relayFieldand@relayTypetags. The Relay compiler can automatically migrate you to this new syntax via therelay-compiler codemod fix-allcommand. If you're not ready to migrate, you can enable theallow_legacy_relay_resolver_tagfeature flag in your compiler config file.@oneOfinputs:@oneOfinput types now generate a stricter discriminated union type that only permits one property at a time, instead of an object with all optional fields. This catches bugs at compile time where multiple fields were incorrectly set simultaneously. You can opt out viaoneOfType: "relaxed"in compiler config if needed.New Features
@catchexpansion:@catchnow works on@connectionfields and client edge fields, letting you gracefully handle field errors in pagination and client-edge scenarios instead of throwing.@aliason fragment definitions: The@aliasdirective now works on fragment definitions (not just inline fragments).New compiler CLI tools: Two experimental subcommands are available:
experimental-regenerate-sub-schemareplaces the currently configured schema file with the portion of the provided "full schema" andexperimental-compare-document-ircompares intermediate representations (IR) of documents passed and outputs selections that exists in left but not in right.React Server Components (Experimental): A new
react-relay/rsc_EXPERIMENTALentry point provides an experimental API for fetching GraphQL in server components:serverFetchQueryfor server-side data fetching,serverReadFragmentfor reading fragment data on the server, andserverPreloadQuery+useQueryFromServerfor preloading data on the server and hydrating the client store. These APIs are experimental and are likely to change in upcoming versions.Notable Bug Fixes
@raw_response_typeaccuracy: Selections on abstract types in@raw_response_typeare now correctly typed as optional when the concrete type may not implement the abstract type (PR #4775).@matchfields: The compiler now properly validates and reports errors for conflicting@matchfields across fragments, preventing silent runtime issues.--watchmode, including cross-project fragment crash resolution and proper detection of schema field changes.Breaking Changes
mixedtounknown(commit)Added
query-statssubcommand for per-operation fragment usage analysis (commit)Bug Fixes
<Activity>a->b->a mutation edge case (commit)Improvements
extend X { ... }instead ofX { ... }(commit)react-prefer-namespace-importESLint Rule (commit)requireCond(commit)prettycrate for document-based formatting (commit)set_remove_defined_referencesto remove Set contents from a given exclusionary schema (commit)arc lint --take PRETTIERJAVASCRIPT(commit)$ValuestoValues(commit)mixedtounknownin xplat/js (commit)$NonMaybeType) to TypeScript-style types in xplat/js (commit)Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.