@cratestack/cbor 0.17.2 → 0.18.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/README.md CHANGED
@@ -66,7 +66,7 @@ its `"."` entry:
66
66
  Conditional `exports` resolution isn't perfectly consistent across every
67
67
  bundler/SSR setup — some SSR frameworks resolve the `"node"` condition even
68
68
  for a module that will also ship to the client (their SSR build sets
69
- `"node"` because the code *runs* under Node during the server render, even
69
+ `"node"` because the code _runs_ under Node during the server render, even
70
70
  though the same module graph gets bundled for the browser too). When
71
71
  automatic resolution doesn't do what you need, import the platform build
72
72
  directly:
@@ -143,7 +143,7 @@ to typecheck a thin re-export wrapper.
143
143
  Practical effect: `pnpm turbo run build test lint --filter='./packages/cratestack-cbor'`
144
144
  type-checks cleanly and passes lint anywhere, but its Node round-trip
145
145
  tests (`tests/node.test.ts`) only run for real if `@cratestack/cbor-node`
146
- is *already* built — otherwise they skip (not fail) with a console
146
+ is _already_ built — otherwise they skip (not fail) with a console
147
147
  warning. For real coverage while developing, build the sibling first:
148
148
 
149
149
  ```sh
package/dist/node.d.ts CHANGED
@@ -7,4 +7,6 @@ import type { CratestackRpcCodec } from "@cratestack/ts-types";
7
7
  * the browser build's `createCborCodec()`, not because Node needs it.
8
8
  */
9
9
  export declare function createCborCodec(): Promise<CratestackRpcCodec>;
10
+ export type { CompactDirection, CompactKeys } from "@cratestack/cbor-node";
11
+ export { createCompactKeys } from "@cratestack/cbor-node";
10
12
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAEnE"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAEnE;AAID,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/node.js CHANGED
@@ -32,4 +32,5 @@ import { cborCodec } from "@cratestack/cbor-node";
32
32
  export async function createCborCodec() {
33
33
  return cborCodec;
34
34
  }
35
+ export { createCompactKeys } from "@cratestack/cbor-node";
35
36
  //# sourceMappingURL=node.js.map
package/dist/node.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,8EAA8E;AAC9E,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,2EAA2E;AAC3E,4EAA4E;AAC5E,yEAAyE;AACzE,2BAA2B;AAC3B,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,yEAAyE;AACzE,yEAAyE;AACzE,yEAAyE;AACzE,mEAAmE;AACnE,2EAA2E;AAC3E,2EAA2E;AAC3E,qCAAqC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,8EAA8E;AAC9E,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,2EAA2E;AAC3E,4EAA4E;AAC5E,yEAAyE;AACzE,2BAA2B;AAC3B,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,yEAAyE;AACzE,yEAAyE;AACzE,yEAAyE;AACzE,mEAAmE;AACnE,2EAA2E;AAC3E,2EAA2E;AAC3E,qCAAqC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,OAAO,SAAS,CAAC;AACnB,CAAC;AAKD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/web.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export { createCborCodec } from "@cratestack/cbor-web";
1
+ export type { CompactDirection, CompactKeys } from "@cratestack/cbor-web";
2
+ export { createCborCodec, createCompactKeys } from "@cratestack/cbor-web";
2
3
  //# sourceMappingURL=web.d.ts.map
package/dist/web.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/web.js CHANGED
@@ -1,15 +1,2 @@
1
- // Browser entry point (resolved by the `"browser"` and `"default"`
2
- // conditions of this package's root `exports["."]`, and directly
3
- // importable as the `@cratestack/cbor/web` escape hatch — see
4
- // package.json and README.md).
5
- //
6
- // @cratestack/cbor-web's own `createCborCodec()` (see its src/index.ts) is
7
- // already the uniform async-factory shape this umbrella package
8
- // standardizes on for both platforms — see src/node.ts's doc comment for
9
- // why. Nothing to adapt here: this file exists so the escape-hatch subpath
10
- // (`@cratestack/cbor/web`) and the root `"browser"`/`"default"` conditions
11
- // have their own dedicated compiled entry point, distinct from
12
- // src/node.ts, rather than sharing one file whose behavior would need to
13
- // branch at runtime.
14
- export { createCborCodec } from "@cratestack/cbor-web";
1
+ export { createCborCodec, createCompactKeys } from "@cratestack/cbor-web";
15
2
  //# sourceMappingURL=web.js.map
package/dist/web.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,iEAAiE;AACjE,8DAA8D;AAC9D,+BAA+B;AAC/B,EAAE;AACF,2EAA2E;AAC3E,gEAAgE;AAChE,yEAAyE;AACzE,2EAA2E;AAC3E,2EAA2E;AAC3E,+DAA+D;AAC/D,yEAAyE;AACzE,qBAAqB;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratestack/cbor",
3
- "version": "0.17.2",
3
+ "version": "0.18.0",
4
4
  "description": "Umbrella CBOR codec for CrateStack's generated TypeScript RPC clients: conditional exports auto-select @cratestack/cbor-node in Node and @cratestack/cbor-web in the browser behind one import path, one uniform async createCborCodec() API on both platforms.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -57,9 +57,9 @@
57
57
  "lint": "biome check ."
58
58
  },
59
59
  "dependencies": {
60
- "@cratestack/cbor-node": "0.17.2",
61
- "@cratestack/cbor-web": "0.17.2",
62
- "@cratestack/ts-types": "0.17.2"
60
+ "@cratestack/cbor-node": "0.18.0",
61
+ "@cratestack/cbor-web": "0.18.0",
62
+ "@cratestack/ts-types": "0.18.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "typescript": "^7.0.2",