@sproutboat/wire 0.2.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # @sproutboat/wire
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c45098e: Adopt broker, JSON utilities, assets, wrapper, source validation, both transports and the prelude from sproutboat-cli (moved verbatim). First publishable versions; consumed via `file:` links until the npm publish flow lands.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [c45098e]
12
+ - @sproutboat/assets@0.2.0
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # `@sproutboat/wire`
2
+
3
+ Single source of truth for the broker frame protocol: op dispatch, storage
4
+ tables, queue and alarm delivery, plus the JSON validation utilities the
5
+ protocol is built on.
6
+
7
+ Current sources, moved verbatim: `sproutboat-cli/src/broker.ts`,
8
+ `broker.test.ts`, `json.ts`. Contract tests move with the code; the CLI's
9
+ `CONTRACTS.md` broker-wire and storage sections keep generating from here.
10
+
11
+ Note: `broker.ts` imports `@sproutboat/assets`, deliberately declared
12
+ nowhere here. Bun resolves transitive `file:` links from the consumer root,
13
+ not the declaring package, so every consumer links all `@sproutboat/*`
14
+ packages it needs at its own root. Add a real version range here at first
15
+ npm publish.
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@sproutboat/wire",
3
+ "version": "0.2.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "./src/index.ts",
7
+ "types": "./src/index.ts",
8
+ "dependencies": {
9
+ "@sproutboat/assets": "^0.2.0"
10
+ },
11
+ "exports": {
12
+ ".": "./src/index.ts",
13
+ "./broker": "./src/broker.ts",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "scripts": {
17
+ "test": "bun test ./"
18
+ }
19
+ }