@mapples/request 1.6.0-beta.20260929074057 → 1.6.0-rc.20260929075450

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/CHANGELOG.md +10 -10
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,23 +1,23 @@
1
1
  # @mapples/request
2
2
 
3
- ## 1.6.0-beta.20260929074057
3
+ ## 1.6.0-rc.20260929075450
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 517b1d4: API responses move to their own `@mapples/state` context (`ApiStateContextProvider`, `useApiState`), so `api.*` bindings resolve inside a nested `StateProvider` — a list row, a scoped data state — the way `vars.*` does; `validateApiDocument` now rejects a state key outside the `api.` namespace (`STATE_KEY_NAMESPACE`, `API_NAMESPACE`) and no longer reads an environment variable's `{{name}}` as the path token `{name`; it also rejects a request name that can't be a binding-path segment (`REQUEST_NAME_INVALID`, `API_REQUEST_NAME_PATTERN`) and an empty path (`PATH_EMPTY`). `@mapples/request` performs calls through a pluggable `RequestTransport` (`transport` prop, `createFetchTransport`), which receives `auth` unresolved so a forwarding transport never holds a secret. The runtime no longer fails silently: an unknown `requestId`, a path token that resolves to nothing, an undefined `{{variable}}`, a relative path without a base URL and an unconfigured secret all throw (`onRequestError` receives the resolution errors), an unresolved `state` source is no longer sent as the string `N/A`, and `event` sources read the event's first argument instead of the `staticData`-merged payload. `RequestProvider` drops its `state` prop.
8
- - 4a8f1d8: `RequestProvider` takes `previewSamples` and `autoRun`. With `previewSamples`, every request that has a `responseSample` publishes it as a settled response (`status: 200`) until a real one arrives, so an editor preview shows bound data before anything has run. With `autoRun`, entering `fetch` mode emits a `mapples:request` for every GET that needs nothing from a trigger — `isAutoRunnable` (new export): params are literals or app state, never `event` / `data` / `route.*` — once per switch, through the action bus like a pressed element. Responses now belong to the mode that produced them: changing `mode` clears them, so leaving `fetch` returns to the samples. Both props default to off; a shipped app behaves as before.
9
- - 132e4a8: Routes carry a flow of their own: a `path` with `:token` params (`/product/:id`), an `onEnter` action emitted on every focus, and an access `guard` with a fallback route. Params travel on the navigate action as literals or value sources (`data` reads the pressed list row, `state` any binding), land in a new `route.*` state namespace the screen binds, and reach root-mounted handlers through `ActiveRouteProvider` — so a request bound to `route.id` loads the product page. `resolveValueSource` is shared by the request and navigation runtimes, and the new `data` source kind reads an action's resolved data. The navigate action form gets one source field per route param, the AI catalog `set_route_path` / `set_route_guard` / `set_route_on_enter` and `add_connection` params.
7
+ - 6f37bab: API responses move to their own `@mapples/state` context (`ApiStateContextProvider`, `useApiState`), so `api.*` bindings resolve inside a nested `StateProvider` — a list row, a scoped data state — the way `vars.*` does; `validateApiDocument` now rejects a state key outside the `api.` namespace (`STATE_KEY_NAMESPACE`, `API_NAMESPACE`) and no longer reads an environment variable's `{{name}}` as the path token `{name`; it also rejects a request name that can't be a binding-path segment (`REQUEST_NAME_INVALID`, `API_REQUEST_NAME_PATTERN`) and an empty path (`PATH_EMPTY`). `@mapples/request` performs calls through a pluggable `RequestTransport` (`transport` prop, `createFetchTransport`), which receives `auth` unresolved so a forwarding transport never holds a secret. The runtime no longer fails silently: an unknown `requestId`, a path token that resolves to nothing, an undefined `{{variable}}`, a relative path without a base URL and an unconfigured secret all throw (`onRequestError` receives the resolution errors), an unresolved `state` source is no longer sent as the string `N/A`, and `event` sources read the event's first argument instead of the `staticData`-merged payload. `RequestProvider` drops its `state` prop.
8
+ - 7052a50: `RequestProvider` takes `previewSamples` and `autoRun`. With `previewSamples`, every request that has a `responseSample` publishes it as a settled response (`status: 200`) until a real one arrives, so an editor preview shows bound data before anything has run. With `autoRun`, entering `fetch` mode emits a `mapples:request` for every GET that needs nothing from a trigger — `isAutoRunnable` (new export): params are literals or app state, never `event` / `data` / `route.*` — once per switch, through the action bus like a pressed element. Responses now belong to the mode that produced them: changing `mode` clears them, so leaving `fetch` returns to the samples. Both props default to off; a shipped app behaves as before.
9
+ - b1b8560: Routes carry a flow of their own: a `path` with `:token` params (`/product/:id`), an `onEnter` action emitted on every focus, and an access `guard` with a fallback route. Params travel on the navigate action as literals or value sources (`data` reads the pressed list row, `state` any binding), land in a new `route.*` state namespace the screen binds, and reach root-mounted handlers through `ActiveRouteProvider` — so a request bound to `route.id` loads the product page. `resolveValueSource` is shared by the request and navigation runtimes, and the new `data` source kind reads an action's resolved data. The navigate action form gets one source field per route param, the AI catalog `set_route_path` / `set_route_guard` / `set_route_on_enter` and `add_connection` params.
10
10
  - a6c5872: All `@mapples/*` runtime packages now share one version and are versioned and published together from `mapplesorg/mapples-kit`; `mapples-open-kit` is a read-only mirror of the source.
11
11
 
12
12
  ### Patch Changes
13
13
 
14
- - Updated dependencies [132e4a8]
15
- - Updated dependencies [517b1d4]
16
- - Updated dependencies [132e4a8]
14
+ - Updated dependencies [b1b8560]
15
+ - Updated dependencies [6f37bab]
16
+ - Updated dependencies [b1b8560]
17
17
  - Updated dependencies [a6c5872]
18
- - @mapples/types@1.6.0-beta.20260929074057
19
- - @mapples/state@1.6.0-beta.20260929074057
20
- - @mapples/action@1.6.0-beta.20260929074057
18
+ - @mapples/types@1.6.0-rc.20260929075450
19
+ - @mapples/state@1.6.0-rc.20260929075450
20
+ - @mapples/action@1.6.0-rc.20260929075450
21
21
 
22
22
  ## 0.1.0
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapples/request",
3
- "version": "1.6.0-beta.20260929074057",
3
+ "version": "1.6.0-rc.20260929075450",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {