Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions product-sdk/.changeset/truapi-0.24.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@parity/product-sdk": minor
"@parity/product-sdk-host": minor
"@parity/product-sdk-react-renderer": minor
"@parity/product-sdk-renderer": minor
---

**Pair with a truapi 0.24.0 host.** `@parity/truapi` moves from `^0.23.0` to `^0.24.0`. The codec version stays at 3, but `TRUAPI_WIRE_SCHEMA_HASH` moves from `ea1a1441ff0219b1` to `c130fa60ef495768`, so the schema a product speaks no longer matches a host still on 0.23.0. Every host surface has to move in the same window.
9 changes: 6 additions & 3 deletions product-sdk/packages/host/src/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
* option. Not modeled: the rest of the PAPI `chain` JSON-RPC surface behind
* `getHostProvider()` — there's no chain-read fake, by design; the host owns RPC
* selection — the `system` domain's `info`, and the
* `chat` / `coinPayment` / `contacts` / `entropy` / `locale` / `notifications` / `payment` /
* `permissions` / `pocket` / `renderer` / `resourceAllocation` / `theme` /
* `worker` domains. Touching an unmodeled domain throws a descriptive error
* `chat` / `coinPayment` / `contacts` / `entropy` / `game` / `locale` /
* `notifications` / `payment` / `permissions` / `pocket` / `renderer` /
* `resourceAllocation` / `scanner` / `theme` / `worker` domains. Touching an
* unmodeled domain throws a descriptive error
* rather than failing with `undefined is not a function`.
*
* @packageDocumentation
Expand Down Expand Up @@ -339,13 +340,15 @@ export function createFakeTruApiClient(options?: CreateFakeTruApiClientOptions):
coinPayment: notModeled("coinPayment"),
contacts: notModeled("contacts"),
entropy: notModeled("entropy"),
game: notModeled("game"),
locale: notModeled("locale"),
notifications: notModeled("notifications"),
payment: notModeled("payment"),
permissions: notModeled("permissions"),
pocket: notModeled("pocket"),
renderer: notModeled("renderer"),
resourceAllocation: notModeled("resourceAllocation"),
scanner: notModeled("scanner"),
theme: notModeled("theme"),
worker: notModeled("worker"),
};
Expand Down
19 changes: 14 additions & 5 deletions product-sdk/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions product-sdk/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ packages:

catalog:
"@parity/host-api-test-sdk": ^0.16.0
"@parity/truapi": ^0.23.0
"@parity/truapi": ^0.24.0
"@playwright/test": ^1.60.0
"@polkadot-api/json-rpc-provider": ^0.2.0
"@polkadot-api/metadata-builders": ^0.14.3
Expand Down Expand Up @@ -39,4 +39,4 @@ allowBuilds:

minimumReleaseAgeExclude:
- '@parity/host-api-test-sdk@0.16.0'
- '@parity/truapi@0.23.0'
- '@parity/truapi@0.24.0'
Loading