@contractkit/plugin-typescript 0.17.2 → 0.17.4

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.17.2 build:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
2
+ > @contractkit/plugin-typescript@0.17.4 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.17.2 build /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
6
+ > @contractkit/plugin-typescript@0.17.4 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
@@ -11,9 +11,9 @@
11
11
  CLI tsup v8.5.1
12
12
  CLI Target: esnext
13
13
  ESM Build start
14
- ESM dist/index.js 124.43 KB
15
- ESM dist/index.js.map 269.86 KB
16
- ESM ⚡️ Build success in 431ms
14
+ ESM dist/index.js 126.39 KB
15
+ ESM dist/index.js.map 274.93 KB
16
+ ESM ⚡️ Build success in 216ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 4618ms
18
+ DTS ⚡️ Build success in 5850ms
19
19
  DTS dist/index.d.ts 3.44 KB
@@ -1,32 +1,32 @@
1
1
 
2
- > @contractkit/plugin-typescript@0.17.2 test:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
2
+ > @contractkit/plugin-typescript@0.17.4 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-operation.test.ts (88 tests) 57ms
10
- ✓ tests/codegen-contract.test.ts (122 tests) 122ms
11
- ✓ tests/codegen-sdk.test.ts (123 tests) 86ms
12
- ✓ tests/codegen-server.test.ts (15 tests) 32ms
13
- ✓ tests/codegen-plain-types.test.ts (58 tests) 27ms
14
- ✓ tests/pipeline.test.ts (25 tests) 102ms
9
+ ✓ tests/codegen-operation.test.ts (88 tests) 98ms
10
+ ✓ tests/codegen-contract.test.ts (124 tests) 242ms
11
+ ✓ tests/codegen-sdk.test.ts (123 tests) 282ms
12
+ ✓ tests/codegen-plain-types.test.ts (61 tests) 45ms
13
+ ✓ tests/codegen-server.test.ts (15 tests) 22ms
14
+ ✓ tests/pipeline.test.ts (25 tests) 120ms
15
15
 
16
16
   Test Files  6 passed (6)
17
-  Tests  431 passed (431)
18
-  Start at  18:49:08
19
-  Duration  6.55s (transform 3.76s, setup 0ms, import 13.69s, tests 428ms, environment 1ms)
17
+  Tests  436 passed (436)
18
+  Start at  15:55:13
19
+  Duration  6.81s (transform 3.80s, setup 0ms, import 13.43s, tests 808ms, environment 1ms)
20
20
 
21
21
   % Coverage report from v8
22
22
  -------------------|---------|----------|---------|---------|-------------------
23
23
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
24
24
  -------------------|---------|----------|---------|---------|-------------------
25
- All files | 77.47 | 74.06 | 82.02 | 79.41 |
26
- src | 77.16 | 73.68 | 81.4 | 79.06 |
27
- ...n-contract.ts | 87.57 | 81.63 | 89.91 | 88.57 | ...1025,1030-1031
25
+ All files | 77.84 | 74.45 | 82.5 | 79.74 |
26
+ src | 77.54 | 74.08 | 81.92 | 79.4 |
27
+ ...n-contract.ts | 87.83 | 82.12 | 90.08 | 88.96 | ...1069,1074-1075
28
28
  ...-operation.ts | 78.18 | 74.26 | 78.08 | 79.69 | ...68-679,684-685
29
- ...lain-types.ts | 87.5 | 76.76 | 92.85 | 91.66 | ...99,211,217,269
29
+ ...lain-types.ts | 89.08 | 78.37 | 96.66 | 92.3 | ...31,243,249,301
30
30
  codegen-sdk.ts | 88.75 | 83.6 | 85 | 91.49 | ...23,678,712-729
31
31
  index.ts | 23.35 | 19.51 | 33.33 | 25.69 | ...97,415,418,421
32
32
  path-utils.ts | 23.47 | 18.84 | 58.33 | 23.71 | ...1,54-55,80-187
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @contractkit/contractkit-plugin-typescript
2
2
 
3
+ ## 0.17.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 684a639: Fix plain TypeScript codegen producing invalid `extends` clauses when a child contract redeclares an inherited field without the explicit `override` keyword (e.g. narrowing `kind: BusinessRoleKind` to `kind: 'employee'`). The base is now wrapped in `Omit<Base, 'fieldName'>` for any redeclared field, matching the behaviour for explicit `override` fields.
8
+
9
+ ## 0.17.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 1247514: Fix `override readonly` fields not being omitted from child Input schemas in Zod codegen
14
+
3
15
  ## 0.17.2
4
16
 
5
17
  ### Patch Changes