@softistx/alxia-react-router 0.86.3 → 0.86.4
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/README.md +2 -2
- package/docs/guide/subscriptions.md +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ client's files and the app's middlewares. So does React Router's prerendering.
|
|
|
109
109
|
optional peer, for `/vite`; `react` 19 is an optional peer, for `/pwa/react`, `/fetcher`, `/lists`, `/navigation` and `/oauth/react`; `jose` 6 is an optional peer, for `/oidc`. The six `workbox-*`
|
|
110
110
|
packages (`workbox-core`, `workbox-expiration`, `workbox-navigation-preload`,
|
|
111
111
|
`workbox-precaching`, `workbox-routing`, `workbox-strategies`) are optional
|
|
112
|
-
peers too, for `/pwa/worker` (the [PWA section](#installable-and-offline-pwa) has the install line). `@softistx/alxia-proxy` is an optional peer, for `/mcp` (`bun add @softistx/alxia-proxy`); `/mcp` also reads `@softistx/alxia`'s `MCP_RELAY_PATHS`. `react-hook-form` (7.55 or later) is an optional peer: `SectionForm`, the form `useSectionSave` and `useRowSave` take from `/fetcher`, is the shape of its `useForm()` result. `@softistx/graphql-client` (`^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0`) is an optional peer, for `/subscription/react` (`bun add @softistx/graphql-client`). `/errors` imports `react-router`, a required peer that is already installed. The package declares no dependency.
|
|
112
|
+
peers too, for `/pwa/worker` (the [PWA section](#installable-and-offline-pwa) has the install line). `@softistx/alxia-proxy` is an optional peer, for `/mcp` (`bun add @softistx/alxia-proxy`); `/mcp` also reads `@softistx/alxia`'s `MCP_RELAY_PATHS`. `react-hook-form` (7.55 or later) is an optional peer: `SectionForm`, the form `useSectionSave` and `useRowSave` take from `/fetcher`, is the shape of its `useForm()` result. `@softistx/graphql-client` (`^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0`) is an optional peer, for `/subscription/react` (`bun add @softistx/graphql-client`). `/errors` imports `react-router`, a required peer that is already installed. The package declares no dependency.
|
|
113
113
|
|
|
114
114
|
Its `typescript` peer is 6 or 7. The template's TypeScript 5.9 typechecks,
|
|
115
115
|
but `bun add` warns about it; `bun add -d typescript@^6` silences the
|
|
@@ -1170,7 +1170,7 @@ for the rules, the options and the errors.
|
|
|
1170
1170
|
### Keep it alive in the page: `useLiveSubscription`
|
|
1171
1171
|
|
|
1172
1172
|
`@softistx/alxia-react-router/subscription/react` is the browser side. It wraps
|
|
1173
|
-
`useSubscription` of `@softistx/graphql-client/react` (an optional peer, `^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0`,
|
|
1173
|
+
`useSubscription` of `@softistx/graphql-client/react` (an optional peer, `^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0`,
|
|
1174
1174
|
under a `GraphQLProvider`) and owns what a long-lived stream needs: reconnect
|
|
1175
1175
|
with a growing wait (1 s doubling to 30 s), a stop on a 401 or any 4xx repeating
|
|
1176
1176
|
cannot change, a 429's `retryAfter` honoured, events older than the highest
|
|
@@ -145,7 +145,7 @@ they like: rate-limit it (`@softistx/alxia-rate-limit`) if the API does not.
|
|
|
145
145
|
|
|
146
146
|
`@softistx/alxia-react-router/subscription/react` is the browser side of the route
|
|
147
147
|
above. `useLiveSubscription(document, variables, options)` wraps
|
|
148
|
-
`useSubscription` of `@softistx/graphql-client/react` (an optional peer, `^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0`;
|
|
148
|
+
`useSubscription` of `@softistx/graphql-client/react` (an optional peer, `^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0`;
|
|
149
149
|
the page needs its `GraphQLProvider`) and handles what a stream that lives for
|
|
150
150
|
minutes needs. The bare client never retries, reconnects or deduplicates.
|
|
151
151
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softistx/alxia-react-router",
|
|
3
|
-
"version": "0.86.
|
|
3
|
+
"version": "0.86.4",
|
|
4
4
|
"description": "alxia as the server of a React Router framework app: server rendering behind the app's hooks, loaders reading its typed context, the client's assets served; the code with no UI an installable app shares (`/pwa`), its hooks (`/pwa/react`), `noCache` for the worker's script (`/pwa/server`), the service worker on Workbox (`/pwa/worker`) and its build (`/pwa/build`), an API's refusals worded for the page (`/errors`), the BFF session: cookies, sign-in, step-up and mail links (`/session`), its page hooks (`/session/react`) and what it shares with the page (`/session/model`), a GraphQL subscription relayed to the browser over SSE (`/subscription`) and kept alive in the page (`/subscription/react`), an API's MCP and OAuth endpoints relayed on the app's origin (`/mcp`), per-role flow docs, the help panel's data and its lazy `HelpPanel`, and the role guide's `useGuideRole` (`/help`, `/help/check`), an API's media files read and uploaded through the app (`/media`) and uploaded from the page with progress (`/media/client`), the page's CSP nonce and inline boot scripts (`/document`) and a streaming `entry.server` (`/entry`), the consent screen of an OAuth server: a route's loader and action, the connected apps' list and revoke (`/oauth`) and the decision hook (`/oauth/react`), a user's API keys listed, created behind a step-up and revoked (`/api-keys`) and `/oidc`: a relying party of an external OpenID Connect issuer (authorization code + PKCE, id token validation, a sealed token cookie, refresh and RP-initiated logout)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"@softistx/alxia-openapi": "^0.7.0",
|
|
213
213
|
"@softistx/alxia-proxy": "^0.5.0",
|
|
214
214
|
"@softistx/alxia-secure-headers": "^0.6.0",
|
|
215
|
-
"@softistx/graphql-client": "^0.
|
|
215
|
+
"@softistx/graphql-client": "^0.13.0",
|
|
216
216
|
"@react-router/dev": "^8.5.0",
|
|
217
217
|
"@softistx/janus": "^0.80.0",
|
|
218
218
|
"@types/bun": "^1.4.5",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"peerDependencies": {
|
|
240
240
|
"@softistx/alxia": "^0.28.0",
|
|
241
241
|
"@softistx/alxia-proxy": "^0.5.0",
|
|
242
|
-
"@softistx/graphql-client": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0",
|
|
242
|
+
"@softistx/graphql-client": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0",
|
|
243
243
|
"isbot": "^5.0.0",
|
|
244
244
|
"jose": "^6.0.0",
|
|
245
245
|
"react": "^19.0.0",
|