Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@contractkit/plugin-typescript

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contractkit/plugin-typescript - npm Package Compare versions

Comparing version
0.25.2
to
0.25.3
+4
-4
.turbo/turbo-build$colon$ci.log

@@ -8,7 +8,7 @@ $ eslint --max-warnings=0 && pnpm run build

ESM Build start
ESM dist/index.js 149.94 KB
ESM dist/index.js.map 327.66 KB
ESM ⚡️ Build success in 332ms
ESM dist/index.js 149.89 KB
ESM dist/index.js.map 327.56 KB
ESM ⚡️ Build success in 392ms
DTS Build start
DTS ⚡️ Build success in 6236ms
DTS ⚡️ Build success in 5194ms
DTS dist/index.d.ts 1.82 KB

@@ -6,13 +6,13 @@ $ vitest run --coverage

✓ tests/codegen-contract.test.ts (127 tests) 156ms
✓ tests/codegen-operation.test.ts (88 tests) 178ms
✓ tests/codegen-sdk.test.ts (132 tests) 149ms
✓ tests/codegen-server.test.ts (19 tests) 53ms
✓ tests/codegen-plain-types.test.ts (61 tests) 35ms
✓ tests/pipeline.test.ts (25 tests) 125ms
✓ tests/codegen-sdk.test.ts (132 tests) 227ms
✓ tests/codegen-operation.test.ts (88 tests) 154ms
✓ tests/codegen-contract.test.ts (127 tests) 180ms
✓ tests/codegen-plain-types.test.ts (61 tests) 40ms
✓ tests/pipeline.test.ts (25 tests) 173ms
✓ tests/codegen-server.test.ts (19 tests) 39ms
 Test Files  6 passed (6)
 Tests  452 passed (452)
 Start at  20:26:30
 Duration  7.21s (transform 5.44s, setup 0ms, import 14.56s, tests 696ms, environment 1ms)
 Start at  13:20:47
 Duration  7.42s (transform 6.23s, setup 0ms, import 15.65s, tests 813ms, environment 1ms)

@@ -23,6 +23,6 @@  % Coverage report from v8

-------------------|---------|----------|---------|---------|-------------------
All files | 80.01 | 75.28 | 83.5 | 82.62 |
src | 79.79 | 74.96 | 83.06 | 82.38 |
All files | 80 | 75.28 | 83.5 | 82.6 |
src | 79.78 | 74.96 | 83.06 | 82.36 |
...n-contract.ts | 87.92 | 82.7 | 90.08 | 89.06 | ...1085,1090-1091
...-operation.ts | 78.18 | 74.26 | 77.77 | 79.75 | ...75-686,691-692
...-operation.ts | 78.09 | 74.26 | 77.77 | 79.64 | ...73-684,689-690
...lain-types.ts | 89.08 | 78.37 | 96.66 | 92.3 | ...31,243,249,301

@@ -29,0 +29,0 @@ codegen-sdk.ts | 88.09 | 82.56 | 87.32 | 91.32 | ...1108-1109,1112

# @contractkit/contractkit-plugin-typescript
## 0.25.3
### Patch Changes
- 5da85ca: Stop emitting `await next()` at the end of generated Koa route handlers — route handlers are the terminus of the middleware chain.
## 0.25.2

@@ -4,0 +10,0 @@

@@ -26,5 +26,5 @@

<div class='fl pad1y space-right2'>
<span class="strong">80.01% </span>
<span class="strong">80% </span>
<span class="quiet">Statements</span>
<span class='fraction'>2034/2542</span>
<span class='fraction'>2032/2540</span>
</div>

@@ -48,5 +48,5 @@

<div class='fl pad1y space-right2'>
<span class="strong">82.62% </span>
<span class="strong">82.6% </span>
<span class="quiet">Lines</span>
<span class='fraction'>1783/2158</span>
<span class='fraction'>1781/2156</span>
</div>

@@ -85,7 +85,7 @@

<td class="file medium" data-value="src"><a href="src/index.html">src</a></td>
<td data-value="79.79" class="pic medium">
<td data-value="79.78" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 79%"></div><div class="cover-empty" style="width: 21%"></div></div>
</td>
<td data-value="79.79" class="pct medium">79.79%</td>
<td data-value="2490" class="abs medium">1987/2490</td>
<td data-value="79.78" class="pct medium">79.78%</td>
<td data-value="2488" class="abs medium">1985/2488</td>
<td data-value="74.96" class="pct medium">74.96%</td>

@@ -95,4 +95,4 @@ <td data-value="1606" class="abs medium">1204/1606</td>

<td data-value="372" class="abs high">309/372</td>
<td data-value="82.38" class="pct high">82.38%</td>
<td data-value="2112" class="abs high">1740/2112</td>
<td data-value="82.36" class="pct high">82.36%</td>
<td data-value="2110" class="abs high">1738/2110</td>
</tr>

@@ -123,3 +123,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -126,0 +126,0 @@ <script src="prettify.js"></script>

@@ -985,3 +985,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -988,0 +988,0 @@ <script src="../prettify.js"></script>

@@ -26,5 +26,5 @@

<div class='fl pad1y space-right2'>
<span class="strong">79.79% </span>
<span class="strong">79.78% </span>
<span class="quiet">Statements</span>
<span class='fraction'>1987/2490</span>
<span class='fraction'>1985/2488</span>
</div>

@@ -48,5 +48,5 @@

<div class='fl pad1y space-right2'>
<span class="strong">82.38% </span>
<span class="strong">82.36% </span>
<span class="quiet">Lines</span>
<span class='fraction'>1740/2112</span>
<span class='fraction'>1738/2110</span>
</div>

@@ -100,7 +100,7 @@

<td class="file medium" data-value="codegen-operation.ts"><a href="codegen-operation.ts.html">codegen-operation.ts</a></td>
<td data-value="78.18" class="pic medium">
<td data-value="78.09" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 78%"></div><div class="cover-empty" style="width: 22%"></div></div>
</td>
<td data-value="78.18" class="pct medium">78.18%</td>
<td data-value="463" class="abs medium">362/463</td>
<td data-value="78.09" class="pct medium">78.09%</td>
<td data-value="461" class="abs medium">360/461</td>
<td data-value="74.26" class="pct medium">74.26%</td>

@@ -110,4 +110,4 @@ <td data-value="338" class="abs medium">251/338</td>

<td data-value="72" class="abs medium">56/72</td>
<td data-value="79.75" class="pct medium">79.75%</td>
<td data-value="400" class="abs medium">319/400</td>
<td data-value="79.64" class="pct medium">79.64%</td>
<td data-value="398" class="abs medium">317/398</td>
</tr>

@@ -198,3 +198,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -201,0 +201,0 @@ <script src="../prettify.js"></script>

@@ -733,3 +733,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -736,0 +736,0 @@ <script src="../prettify.js"></script>

@@ -580,3 +580,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -583,0 +583,0 @@ <script src="../prettify.js"></script>

@@ -814,3 +814,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -817,0 +817,0 @@ <script src="../prettify.js"></script>

@@ -104,3 +104,3 @@

<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-05-15T20:26:37.802Z
at 2026-05-17T13:20:54.468Z
</div>

@@ -107,0 +107,0 @@ <script src="../prettify.js"></script>

{
"name": "@contractkit/plugin-typescript",
"version": "0.25.2",
"version": "0.25.3",
"description": "ContractKit built-in plugin: TypeScript codegen (SDK clients, Koa routers, Zod schemas, plain types)",

@@ -32,4 +32,4 @@ "author": {

"devDependencies": {
"@repo/config-eslint": "0.3.1",
"@repo/config-typescript": "0.1.0"
"@repo/config-typescript": "0.1.0",
"@repo/config-eslint": "0.3.1"
},

@@ -36,0 +36,0 @@ "scripts": {

@@ -357,4 +357,2 @@ import type { OpRootNode, OpRouteNode, OpOperationNode, ContractTypeNode, ParamSource, ObjectMode } from '@contractkit/core';

lines.push('');
lines.push(` await next();`);
lines.push(`});`);

@@ -361,0 +359,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display