@uniflowed/relay 0.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +26 -0
  2. package/package.json +23 -0
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ // @flow
2
+ //
3
+ // `@uniflowed/relay`: Relay, re-exported.
4
+ //
5
+ // This is the real `react-relay`, not a declaration of it. uf owns
6
+ // orchestration, not implementation: Relay is a store, a normaliser, a compiler
7
+ // and a decade of work on cache consistency, and a uf-shaped reimplementation
8
+ // would be a worse Relay that uf then had to keep up with.
9
+ //
10
+ // What uf adds is the toolchain around it. `uf check` type checks `graphql`
11
+ // tagged templates against the artifacts Relay's compiler generates, and
12
+ // `uf transform` rewrites those tags to the artifact they name. The library is
13
+ // Meta's; the integration is uf's.
14
+ //
15
+ // `export *` rather than a list of names: the list was a second copy of
16
+ // Relay's export surface, and Relay adds hooks faster than uf releases.
17
+ //
18
+ // Relay is a peer dependency, so its version is the project's. An application
19
+ // can pin or override one with its package manager's `resolutions` without
20
+ // waiting for a uf release.
21
+
22
+ export * from "react-relay";
23
+
24
+ import * as ReactRelay from "react-relay";
25
+
26
+ export { ReactRelay };
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@uniflowed/relay",
3
+ "version": "0.0.0-alpha.10",
4
+ "description": "Relay, re-exported by name, for the Unified Toolchain for Flow (React).",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/ubugeeei-prod/uf.git",
11
+ "directory": "packages/relay"
12
+ },
13
+ "exports": {
14
+ ".": "./index.js"
15
+ },
16
+ "files": [
17
+ "index.js"
18
+ ],
19
+ "peerDependencies": {
20
+ "react": ">=19",
21
+ "react-relay": ">=20"
22
+ }
23
+ }