@gusnips/react 0.4.2 → 0.4.3

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.
package/dist/index.js CHANGED
@@ -13,11 +13,11 @@
13
13
  // @gusnips/react/guards the route guards → react-router-dom
14
14
  // @gusnips/react/hydrate hydrateOrMount → react-dom
15
15
  //
16
- // `react-dom` is the one the second migration added, and it is the sharpest case yet: olhary
17
- // ships a REACT NATIVE app beside its two web apps, and React Native has no react-dom to give.
18
- // A required peer nobody can satisfy is not a strict contract, it is a closed door — the whole
19
- // package was unusable there, for one function no phone would ever call. The rule did not need
20
- // changing to catch it; `react-dom` simply had to stop being required.
16
+ // `react-dom` is the one the second migration added, and it is the sharpest case yet: that
17
+ // adopter ships a REACT NATIVE app beside its two web apps, and React Native has no react-dom to
18
+ // give. A required peer nobody can satisfy is not a strict contract, it is a closed door — the
19
+ // whole package was unusable there, for one function no phone would ever call. The rule did not
20
+ // need changing to catch it; `react-dom` simply had to stop being required.
21
21
  //
22
22
  // So what is left here imports `react` and `@gusnips/http` and nothing else, and an app on
23
23
  // TanStack Router, on Redux, or on a phone takes the fetch client without installing a router, a
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,2CAA2C;AAC3C,EAAE;AACF,+FAA+F;AAC/F,gGAAgG;AAChG,+FAA+F;AAC/F,iGAAiG;AACjG,0BAA0B;AAC1B,EAAE;AACF,oEAAoE;AACpE,6DAA6D;AAC7D,sEAAsE;AACtE,+DAA+D;AAC/D,EAAE;AACF,6FAA6F;AAC7F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,uEAAuE;AACvE,EAAE;AACF,2FAA2F;AAC3F,iGAAiG;AACjG,qFAAqF;AACrF,6FAA6F;AAC7F,iGAAiG;AACjG,yFAAyF;AACzF,uBAAuB;AAEvB,OAA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,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EACL,eAAe,GAMhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAiB,MAAM,UAAU,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAC;AAEjG,OAAO,EACL,aAAa,GAGd,MAAM,qBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,YAAY,GAMb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAE3B,iGAAiG;AACjG,kGAAkG;AAClG,6FAA6F;AAC7F,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAwB,MAAM,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gusnips/react",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "The headless runtime under a Vite + React SPA: typed fetch client with single-flight refresh, auth store, query defaults, route guards, error boundary, chunk-reload recovery, i18n bootstrap.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -13,11 +13,11 @@
13
13
  // @gusnips/react/guards the route guards → react-router-dom
14
14
  // @gusnips/react/hydrate hydrateOrMount → react-dom
15
15
  //
16
- // `react-dom` is the one the second migration added, and it is the sharpest case yet: olhary
17
- // ships a REACT NATIVE app beside its two web apps, and React Native has no react-dom to give.
18
- // A required peer nobody can satisfy is not a strict contract, it is a closed door — the whole
19
- // package was unusable there, for one function no phone would ever call. The rule did not need
20
- // changing to catch it; `react-dom` simply had to stop being required.
16
+ // `react-dom` is the one the second migration added, and it is the sharpest case yet: that
17
+ // adopter ships a REACT NATIVE app beside its two web apps, and React Native has no react-dom to
18
+ // give. A required peer nobody can satisfy is not a strict contract, it is a closed door — the
19
+ // whole package was unusable there, for one function no phone would ever call. The rule did not
20
+ // need changing to catch it; `react-dom` simply had to stop being required.
21
21
  //
22
22
  // So what is left here imports `react` and `@gusnips/http` and nothing else, and an app on
23
23
  // TanStack Router, on Redux, or on a phone takes the fetch client without installing a router, a