@contractkit/plugin-typescript 0.25.3 → 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 149.89 KB
9
- ESM dist/index.js.map 327.56 KB
10
- ESM ⚡️ Build success in 392ms
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 5194ms
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) 227ms
7
- ✓ tests/codegen-operation.test.ts (88 tests) 154ms
8
- ✓ tests/codegen-contract.test.ts (127 tests) 180ms
9
- ✓ tests/codegen-plain-types.test.ts (61 tests) 40ms
10
- ✓ tests/pipeline.test.ts (25 tests) 173ms
11
- ✓ tests/codegen-server.test.ts (19 tests) 39ms
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:20:47
16
-  Duration  7.42s (transform 6.23s, setup 0ms, import 15.65s, tests 813ms, 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 | 75.28 | 83.5 | 82.6 |
23
- src | 79.78 | 74.96 | 83.06 | 82.36 |
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.09 | 74.26 | 77.77 | 79.64 | ...73-684,689-690
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,22 @@
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
+
14
+ ## 0.25.4
15
+
16
+ ### Patch Changes
17
+
18
+ - c5e74a3: Emit the missing `import { MultipartBody } from '@maroonedsoftware/multipart'` in generated Koa routers when an operation declares a `multipart/form-data` request body.
19
+
3
20
  ## 0.25.3
4
21
 
5
22
  ### Patch Changes