@contractkit/plugin-typescript 0.25.4 → 0.26.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.
@@ -5,9 +5,9 @@ $ tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly
5
5
  CLI tsup v8.5.1
6
6
  CLI Target: esnext
7
7
  ESM Build start
8
- ESM dist/index.js 150.24 KB
9
- ESM dist/index.js.map 328.17 KB
10
- ESM ⚡️ Build success in 444ms
8
+ ESM dist/index.js 150.35 KB
9
+ ESM dist/index.js.map 328.43 KB
10
+ ESM ⚡️ Build success in 348ms
11
11
  DTS Build start
12
- DTS ⚡️ Build success in 6175ms
12
+ DTS ⚡️ Build success in 7174ms
13
13
  DTS dist/index.d.ts 1.82 KB
@@ -3,26 +3,26 @@ $ vitest run --coverage
3
3
   RUN  v4.1.5 /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
4
4
  Coverage enabled with v8
5
5
 
6
- ✓ tests/codegen-sdk.test.ts (132 tests) 231ms
7
- ✓ tests/codegen-operation.test.ts (88 tests) 186ms
8
- ✓ tests/codegen-contract.test.ts (127 tests) 163ms
9
- ✓ tests/codegen-server.test.ts (19 tests) 90ms
10
- ✓ tests/codegen-plain-types.test.ts (61 tests) 63ms
11
- ✓ tests/pipeline.test.ts (25 tests) 242ms
6
+ ✓ tests/codegen-contract.test.ts (127 tests) 167ms
7
+ ✓ tests/codegen-operation.test.ts (89 tests) 187ms
8
+ ✓ tests/codegen-sdk.test.ts (132 tests) 186ms
9
+ ✓ tests/codegen-plain-types.test.ts (61 tests) 51ms
10
+ ✓ tests/codegen-server.test.ts (19 tests) 74ms
11
+ ✓ tests/pipeline.test.ts (25 tests) 177ms
12
12
 
13
13
   Test Files  6 passed (6)
14
-  Tests  452 passed (452)
15
-  Start at  13:07:26
16
-  Duration  7.02s (transform 3.96s, setup 0ms, import 13.06s, tests 975ms, environment 1ms)
14
+  Tests  453 passed (453)
15
+  Start at  19:14:39
16
+  Duration  7.36s (transform 4.18s, setup 0ms, import 14.22s, tests 841ms, environment 12ms)
17
17
 
18
18
   % Coverage report from v8
19
19
  -------------------|---------|----------|---------|---------|-------------------
20
20
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
21
21
  -------------------|---------|----------|---------|---------|-------------------
22
- All files | 80.04 | 75.34 | 83.66 | 82.63 |
23
- src | 79.83 | 75.03 | 83.24 | 82.4 |
22
+ All files | 80.05 | 75.37 | 83.66 | 82.64 |
23
+ src | 79.83 | 75.06 | 83.24 | 82.41 |
24
24
  ...n-contract.ts | 87.92 | 82.7 | 90.08 | 89.06 | ...1085,1090-1091
25
- ...-operation.ts | 78.37 | 74.56 | 78.94 | 79.85 | ...77-688,693-694
25
+ ...-operation.ts | 78.41 | 74.7 | 78.94 | 79.9 | ...80-691,696-697
26
26
  ...lain-types.ts | 89.08 | 78.37 | 96.66 | 92.3 | ...31,243,249,301
27
27
  codegen-sdk.ts | 88.09 | 82.56 | 87.32 | 91.32 | ...1108-1109,1112
28
28
  index.ts | 60.23 | 47.91 | 63.04 | 65.37 | ...08-811,827-846
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @contractkit/contractkit-plugin-typescript
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fff30df: Add a block form to the operation `signature:` key. Alongside the existing bare form (`signature: KEY`), you can now write `signature: { options: KEY, policy: name }` to attach a signature-scoped policy. The policy is passed through to the generated `requireSignature(KEY, { policy: name })` middleware and surfaces in OpenAPI-to-`.ck` output, Markdown docs, and the explorer UI. The bare form is unchanged and remains shorthand for a block with only `options:`.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [fff30df]
12
+ - @contractkit/core@0.21.0
13
+
3
14
  ## 0.25.4
4
15
 
5
16
  ### Patch Changes