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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ jobs:
- run: node scripts/package-smoke.mjs
- run: node scripts/interop.mjs
- run: node scripts/hydrated-interop.mjs
# The release runs this against its tag; run it here against the pushed
# commit so the public-module consumer is exercised on Linux before a tag.
- name: Go module consumer from the pushed commit
run: node scripts/go-smoke.mjs "${{ github.event.pull_request.head.sha || github.sha }}"
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.7.1

- Release fix only; no library change from 0.7.0. The v0.7.0 release run
failed in its Go consumer smoke on Linux: the script built the hydrated peer
onto the peer's own source directory. The v0.7.0 tag and its Go module are
public, but no GitHub release or tarball was published for it. The smoke now
builds `hydrated-peer`, and CI runs it against each pushed commit.

## 0.7.0

- Require bitwire 0.6.0, with its public hydrated declarations and shared pure
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Wire grants sending ground ontos values. Endpoint adds one detachable receive ow
Install the release package and shared contract:

```sh
npm install --allow-remote=root --@bitspark:registry=https://registry.npmjs.org @bitspark/bitwire@0.6.0 https://github.com/Bitspark/bitruntime/releases/download/v0.7.0/bitspark-bitruntime-0.7.0.tgz
npm install --allow-remote=root --@bitspark:registry=https://registry.npmjs.org @bitspark/bitwire@0.6.0 https://github.com/Bitspark/bitruntime/releases/download/v0.7.1/bitspark-bitruntime-0.7.1.tgz
```

```ts
Expand All @@ -34,7 +34,7 @@ A raw endpoint can send an atom directly. The addressed facade works on the same
## Go

```sh
go get github.com/Bitspark/bitruntime@v0.7.0
go get github.com/Bitspark/bitruntime@v0.7.1
```

Use `core/go.NewPair` and `websocket/go.Dial`, `Accept`, `NewServer` or `Listen`. They return bitwire Endpoints. `core/go.Addressed`, `Bind`, `Under` and `AsAddressed` implement the same layering as TypeScript; absent tree paths return ErrMissingPath. `hydrated/go` provides `NewScope`, `NewEndpoint`, `NewNamespace` and `NewTuple` over bitwire's hydrated declarations. A receiver runs on its endpoint's dispatcher. Close does not wait for or cancel dispatched application work.
Expand Down
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Releasing

One root `vX.Y.Z` tag versions the Go module and TypeScript package together. bitruntime 0.7.0 implements bitwire 0.6.0: raw ontos-codec-v1 messages, the optional `bitwire/addressed/1` layer, WebSocket `bitwire.ontos.v2` and the hydrated layer `bitwire/hydrated/1` (decision 0019).
One root `vX.Y.Z` tag versions the Go module and TypeScript package together. bitruntime 0.7.1 implements bitwire 0.6.0: raw ontos-codec-v1 messages, the optional `bitwire/addressed/1` layer, WebSocket `bitwire.ontos.v2` and the hydrated layer `bitwire/hydrated/1` (decision 0019).

- Go module: `github.com/Bitspark/bitruntime`, packages `core/go`, `websocket/go` and `hydrated/go`.
- TypeScript package: `@bitspark/bitruntime`, subpaths `/core`, `/websocket` and `/hydrated`.
Expand Down
9 changes: 8 additions & 1 deletion docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# bitruntime 0.7.0
# bitruntime 0.7.1

0.7.1 publishes what 0.7.0 tagged: its library code is unchanged. The v0.7.0
release run failed in its Go consumer smoke on Linux after the tag, so v0.7.0
has a public Go module but no GitHub release or tarball. The smoke is fixed and
CI now runs it against each pushed commit.

## The hydrated layer, introduced in 0.7.0

This release adds the hydrated wire layer, realizing bitwire decision 0019 over
bitwire 0.6.0's public hydrated declarations and shared pure codec. A message may
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bitspark/bitruntime",
"version": "0.7.0",
"version": "0.7.1",
"description": "Addressless endpoints, addressed access, byte-keyed trees, local pairs and WebSocket carriers.",
"license": "Apache-2.0",
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion scripts/go-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ run(['run', '.', 'smoke']);
const hydrated = join(temp, 'hydrated');
mkdirSync(hydrated);
writeFileSync(join(hydrated, 'main.go'), readFileSync(new URL('../conformance/interop/hydrated/main.go', import.meta.url)));
const binary = join(temp, process.platform === 'win32' ? 'hydrated.exe' : 'hydrated');
// Not `hydrated`: that is the peer's source directory, and go build -o into an
// existing directory writes the binary inside it.
const binary = join(temp, process.platform === 'win32' ? 'hydrated-peer.exe' : 'hydrated-peer');
run(['build', '-o', binary, './hydrated']);
const server = spawn(binary, ['serve'], {stdio: ['pipe', 'pipe', 'inherit']});
const url = await new Promise((resolve, reject) => {
Expand Down
Loading