react-relay v7.1.0 Release Notes

Release Date: 2019-11-07 // over 2 years ago
  • 7.1.0

    โž• Added

    • ๐Ÿ†• New warning in RelayPublishQueue if if RelayPublishQueue::run() is called again during a run(): 3823534
    • ๐Ÿ‘Œ Support for the new configuration option in the compiler (aa1453b) writerConfig.writeQueryParameters - that can accept the function:

      writeQueryParams: ( dir: CodegenDirectory, filename: string, moduleName: string, params: RequestParameters, ) => void

    ๐Ÿ›  Fixed

    • 0๏ธโƒฃ Compiler: fix validation of required fields with default values #2903 by @mrtnzlml
    • [Allow non-nullable Viewer field in ViewerQueryGenerator #2924 by @janicduplessis
    • โž• Add exports to relay-runtime to make available in relay-experimental: a0fc101

    Misc

    • ๐Ÿšš Renaming/cleanup in the compiler: Moving some parts of the new codegen runner to OSS, removed redundant prefixes.

    Experimental

    • ๐Ÿ‘ Allow an extraOptions object on PreloadOptions: 68e893e
    • ๐Ÿ‘ Allows passing a raw query to preloadQuery(), which makes it usable without the special $Parameters file: edb4670
    • getModuleIfRequired replaced with queryResource in the EntryPoints: 32f4a71
    • โž• Added new Relay Experimental Docs: 3f7ba11
    • โž• Added Step-by-step guide to Relay Hooks: 2d1473f
    • โž• Add support for loading 3D resources in optimistic responses: bef3551