Skip to content

Commit ae076c3

Browse files
authored
chore: remove @parity/truapi-host package and its codegen pipeline (#236)
Drop the @parity/truapi-host TypeScript package along with the codegen path that generated it: the `--host-output` flag and `generate_host` emitter in truapi-codegen, the host build/format steps in scripts/codegen.sh, and the host artifact upload in CI. The truapi-codegen TypeScript emitter now only produces the @parity/truapi client surface, so the host-only name-resolution modes collapse to the single Public mode.
1 parent 621a48c commit ae076c3

18 files changed

Lines changed: 13 additions & 2943 deletions
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
22
"@parity/truapi": minor
3-
"@parity/truapi-host": patch
43
---
54

6-
Rename the exported `Provider` transport type to `WireProvider` to make its role explicit — it is the low-level SCALE-wire-frame pipe (a `MessagePort` or iframe `postMessage` channel) that `createTransport` runs on. The `createIframeProvider` / `createMessagePortProvider` factories are unchanged; only the type name moves. Consumers importing `Provider` should import `WireProvider` instead.
7-
8-
`@parity/truapi-host` follows: its `createHostServer` / `createTrUApiServer` signatures and the codegen emitter now reference `WireProvider`.
5+
Rename the exported `Provider` transport type to `WireProvider` to make its role explicit. It is the low-level SCALE-wire-frame pipe (a `MessagePort` or iframe `postMessage` channel) that `createTransport` runs on. The `createIframeProvider` / `createMessagePortProvider` factories are unchanged; only the type name moves. Consumers importing `Provider` should import `WireProvider` instead.

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ jobs:
100100
js/packages/truapi/src/playground/codegen
101101
js/packages/truapi/src/explorer/codegen
102102
js/packages/truapi/src/explorer/versions.ts
103-
js/packages/truapi-host/src/generated
104103
playground/test/generated
105104
106105
ts-client:

js/packages/truapi-host/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

js/packages/truapi-host/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

js/packages/truapi-host/README.md

Lines changed: 0 additions & 125 deletions
This file was deleted.

js/packages/truapi-host/package-lock.json

Lines changed: 0 additions & 82 deletions
This file was deleted.

js/packages/truapi-host/package.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

js/packages/truapi-host/scripts/ensure-generated.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)