@contractkit/plugin-typescript 0.19.0 → 0.19.1

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @contractkit/plugin-typescript@0.19.0 build:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
2
+ > @contractkit/plugin-typescript@0.19.1 build:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
3
3
  > eslint --max-warnings=0 && pnpm run build
4
4
 
5
5
 
6
- > @contractkit/plugin-typescript@0.19.0 build /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
6
+ > @contractkit/plugin-typescript@0.19.1 build /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
7
7
  > tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly --declaration
8
8
 
9
9
  CLI Building entry: src/index.ts
@@ -13,7 +13,7 @@
13
13
  ESM Build start
14
14
  ESM dist/index.js 145.87 KB
15
15
  ESM dist/index.js.map 317.00 KB
16
- ESM ⚡️ Build success in 449ms
16
+ ESM ⚡️ Build success in 429ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 6617ms
18
+ DTS ⚡️ Build success in 5070ms
19
19
  DTS dist/index.d.ts 1.82 KB
@@ -1,22 +1,22 @@
1
1
 
2
- > @contractkit/plugin-typescript@0.19.0 test:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
2
+ > @contractkit/plugin-typescript@0.19.1 test:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
3
3
  > vitest run --coverage
4
4
 
5
5
 
6
6
   RUN  v4.1.5 /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
7
7
  Coverage enabled with v8
8
8
 
9
- ✓ tests/codegen-contract.test.ts (124 tests) 300ms
10
- ✓ tests/codegen-operation.test.ts (88 tests) 264ms
11
- ✓ tests/codegen-sdk.test.ts (131 tests) 201ms
12
- ✓ tests/codegen-plain-types.test.ts (61 tests) 34ms
13
- ✓ tests/pipeline.test.ts (25 tests) 198ms
14
- ✓ tests/codegen-server.test.ts (19 tests) 28ms
9
+ ✓ tests/codegen-contract.test.ts (124 tests) 95ms
10
+ ✓ tests/codegen-sdk.test.ts (131 tests) 179ms
11
+ ✓ tests/codegen-operation.test.ts (88 tests) 62ms
12
+ ✓ tests/codegen-plain-types.test.ts (61 tests) 39ms
13
+ ✓ tests/codegen-server.test.ts (19 tests) 84ms
14
+ ✓ tests/pipeline.test.ts (25 tests) 217ms
15
15
 
16
16
   Test Files  6 passed (6)
17
17
   Tests  448 passed (448)
18
-  Start at  11:09:07
19
-  Duration  7.56s (transform 4.43s, setup 0ms, import 15.37s, tests 1.02s, environment 1ms)
18
+  Start at  11:16:36
19
+  Duration  7.07s (transform 4.48s, setup 0ms, import 13.30s, tests 677ms, environment 20ms)
20
20
 
21
21
   % Coverage report from v8
22
22
  -------------------|---------|----------|---------|---------|-------------------
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @contractkit/contractkit-plugin-typescript
2
2
 
3
+ ## 0.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 130d53b: Fix `stableStringify` (and therefore `hashFingerprint` / `runIncrementalCodegen`) crashing with "Do not know how to serialize a BigInt" when an AST payload contains a `bigint` default or literal. Bigints now serialize as a tagged string `"<bigint:VALUE>"` so they're stable in fingerprints and distinguishable from plain strings. `undefined` is also normalized to `null` so `{a: undefined}` and `{}` don't collide.
8
+ - Updated dependencies [130d53b]
9
+ - @contractkit/core@0.15.1
10
+
3
11
  ## 0.19.0
4
12
 
5
13
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1778152155275" clover="3.2.0">
3
- <project timestamp="1778152155275" name="All files">
2
+ <coverage generated="1778152603701" clover="3.2.0">
3
+ <project timestamp="1778152603701" name="All files">
4
4
  <metrics statements="2113" coveredstatements="1742" conditionals="1619" coveredconditionals="1220" methods="398" coveredmethods="332" elements="4130" coveredelements="3294" complexity="0" loc="2113" ncloc="2113" packages="2" files="8" classes="8"/>
5
5
  <package name="src">
6
6
  <metrics statements="2067" coveredstatements="1699" conditionals="1586" coveredconditionals="1190" methods="370" coveredmethods="307"/>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2026-05-07T11:09:15.235Z
119
+ at 2026-05-07T11:16:43.674Z
120
120
  </div>
121
121
  <script src="prettify.js"></script>
122
122
  <script>
@@ -3598,7 +3598,7 @@ export function pascalToDotCase(name: string): string {
3598
3598
  <div class='footer quiet pad2 space-top1 center small'>
3599
3599
  Code coverage generated by
3600
3600
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
3601
- at 2026-05-07T11:09:15.235Z
3601
+ at 2026-05-07T11:16:43.674Z
3602
3602
  </div>
3603
3603
  <script src="../prettify.js"></script>
3604
3604
  <script>
@@ -2515,7 +2515,7 @@ function deriveTypeImportPath(file: string, template?: string): string {
2515
2515
  <div class='footer quiet pad2 space-top1 center small'>
2516
2516
  Code coverage generated by
2517
2517
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
2518
- at 2026-05-07T11:09:15.235Z
2518
+ at 2026-05-07T11:16:43.674Z
2519
2519
  </div>
2520
2520
  <script src="../prettify.js"></script>
2521
2521
  <script>
@@ -982,7 +982,7 @@ function renderOutputField(field: FieldNode, outputCase: 'camel' | 'snake' | 'pa
982
982
  <div class='footer quiet pad2 space-top1 center small'>
983
983
  Code coverage generated by
984
984
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
985
- at 2026-05-07T11:09:15.235Z
985
+ at 2026-05-07T11:16:43.674Z
986
986
  </div>
987
987
  <script src="../prettify.js"></script>
988
988
  <script>
@@ -3535,7 +3535,7 @@ export function generateSdkAggregator(input: SdkAggregatorInput): string {
3535
3535
  <div class='footer quiet pad2 space-top1 center small'>
3536
3536
  Code coverage generated by
3537
3537
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
3538
- at 2026-05-07T11:09:15.235Z
3538
+ at 2026-05-07T11:16:43.674Z
3539
3539
  </div>
3540
3540
  <script src="../prettify.js"></script>
3541
3541
  <script>
@@ -191,7 +191,7 @@
191
191
  <div class='footer quiet pad2 space-top1 center small'>
192
192
  Code coverage generated by
193
193
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
194
- at 2026-05-07T11:09:15.235Z
194
+ at 2026-05-07T11:16:43.674Z
195
195
  </div>
196
196
  <script src="../prettify.js"></script>
197
197
  <script>
@@ -2425,7 +2425,7 @@ function stableSubConfig(config: unknown): string {
2425
2425
  <div class='footer quiet pad2 space-top1 center small'>
2426
2426
  Code coverage generated by
2427
2427
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
2428
- at 2026-05-07T11:09:15.235Z
2428
+ at 2026-05-07T11:16:43.674Z
2429
2429
  </div>
2430
2430
  <script src="../prettify.js"></script>
2431
2431
  <script>
@@ -634,7 +634,7 @@ export function <span class="fstat-no" title="function not covered" >computePubl
634
634
  <div class='footer quiet pad2 space-top1 center small'>
635
635
  Code coverage generated by
636
636
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
637
- at 2026-05-07T11:09:15.235Z
637
+ at 2026-05-07T11:16:43.674Z
638
638
  </div>
639
639
  <script src="../prettify.js"></script>
640
640
  <script>
@@ -577,7 +577,7 @@ export function renderOutputTsType(type: ContractTypeNode, modelsWithOutput?: Se
577
577
  <div class='footer quiet pad2 space-top1 center small'>
578
578
  Code coverage generated by
579
579
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
580
- at 2026-05-07T11:09:15.235Z
580
+ at 2026-05-07T11:16:43.674Z
581
581
  </div>
582
582
  <script src="../prettify.js"></script>
583
583
  <script>
@@ -811,7 +811,7 @@ operation /users/{id}: {
811
811
  <div class='footer quiet pad2 space-top1 center small'>
812
812
  Code coverage generated by
813
813
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
814
- at 2026-05-07T11:09:15.235Z
814
+ at 2026-05-07T11:16:43.674Z
815
815
  </div>
816
816
  <script src="../prettify.js"></script>
817
817
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2026-05-07T11:09:15.235Z
104
+ at 2026-05-07T11:16:43.674Z
105
105
  </div>
106
106
  <script src="../prettify.js"></script>
107
107
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractkit/plugin-typescript",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "ContractKit built-in plugin: TypeScript codegen (SDK clients, Koa routers, Zod schemas, plain types)",
5
5
  "author": {
6
6
  "name": "Marooned Software",
@@ -26,7 +26,7 @@
26
26
  ".": "./dist/index.js"
27
27
  },
28
28
  "dependencies": {
29
- "@contractkit/core": "0.15.0"
29
+ "@contractkit/core": "0.15.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@repo/config-eslint": "0.3.1",