@contractkit/plugin-typescript 0.17.3 → 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.3 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.3 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 125.56 KB
15
- ESM dist/index.js.map 272.67 KB
16
- ESM ⚡️ Build success in 328ms
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 5174ms
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.3 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) 168ms
10
- ✓ tests/codegen-sdk.test.ts (123 tests) 255ms
11
- ✓ tests/codegen-contract.test.ts (124 tests) 248ms
12
- ✓ tests/codegen-plain-types.test.ts (58 tests) 35ms
13
- ✓ tests/pipeline.test.ts (25 tests) 111ms
14
- ✓ tests/codegen-server.test.ts (15 tests) 17ms
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  433 passed (433)
18
-  Start at  15:36:42
19
-  Duration  6.17s (transform 2.45s, setup 0ms, import 11.28s, tests 833ms, environment 7ms)
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.65 | 74.31 | 82.12 | 79.62 |
26
- src | 77.35 | 73.93 | 81.51 | 79.28 |
25
+ All files | 77.84 | 74.45 | 82.5 | 79.74 |
26
+ src | 77.54 | 74.08 | 81.92 | 79.4 |
27
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,11 @@
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
+
3
9
  ## 0.17.3
4
10
 
5
11
  ### Patch Changes