@contractkit/plugin-bruno 1.3.0 → 1.4.1
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.
- package/.turbo/turbo-build$colon$ci.log +6 -6
- package/.turbo/turbo-test$colon$ci.log +15 -15
- package/CHANGELOG.md +19 -0
- package/coverage/clover.xml +369 -333
- package/coverage/coverage-final.json +3 -3
- package/coverage/index.html +21 -21
- package/coverage/src/codegen-bruno.ts.html +760 -181
- package/coverage/src/index.html +30 -30
- package/coverage/src/index.ts.html +103 -76
- package/coverage/tests/helpers.ts.html +16 -16
- package/coverage/tests/index.html +1 -1
- package/dist/codegen-bruno.d.ts +41 -3
- package/dist/codegen-bruno.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +185 -85
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/codegen-bruno.ts +236 -43
- package/src/index.ts +60 -51
- package/tests/codegen-bruno.test.ts +114 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/plugin-bruno@1.
|
|
2
|
+
> @contractkit/plugin-bruno@1.4.1 build:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-bruno
|
|
3
3
|
> eslint --max-warnings=0 && pnpm run build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @contractkit/plugin-bruno@1.
|
|
6
|
+
> @contractkit/plugin-bruno@1.4.1 build /home/runner/work/ContractKit/ContractKit/packages/plugin-bruno
|
|
7
7
|
> tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly --declaration
|
|
8
8
|
|
|
9
9
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
[34mCLI[39m tsup v8.5.1
|
|
12
12
|
[34mCLI[39m Target: esnext
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
15
|
-
[32mESM[39m [1mdist/index.js.map [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m26.68 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m68.11 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 171ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 3959ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.95 KB[39m
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/plugin-bruno@1.
|
|
2
|
+
> @contractkit/plugin-bruno@1.4.1 test:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-bruno
|
|
3
3
|
> vitest run --coverage
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.5 [39m[90m/home/runner/work/ContractKit/ContractKit/packages/plugin-bruno[39m
|
|
7
7
|
[2mCoverage enabled with [22m[33mv8[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m tests/codegen-bruno.test.ts [2m([22m[
|
|
9
|
+
[32m✓[39m tests/codegen-bruno.test.ts [2m([22m[2m116 tests[22m[2m)[22m[33m 449[2mms[22m[39m
|
|
10
10
|
|
|
11
11
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
|
-
[2m Tests [22m [1m[
|
|
13
|
-
[2m Start at [22m
|
|
14
|
-
[2m Duration [22m
|
|
12
|
+
[2m Tests [22m [1m[32m116 passed[39m[22m[90m (116)[39m
|
|
13
|
+
[2m Start at [22m 11:16:36
|
|
14
|
+
[2m Duration [22m 6.07s[2m (transform 1.88s, setup 0ms, import 4.36s, tests 449ms, environment 0ms)[22m
|
|
15
15
|
|
|
16
16
|
[34m % [39m[2mCoverage report from [22m[33mv8[39m
|
|
17
|
-
|
|
18
|
-
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
19
|
-
|
|
20
|
-
All files |
|
|
21
|
-
src |
|
|
22
|
-
codegen-bruno.ts |
|
|
23
|
-
index.ts |
|
|
24
|
-
tests | 75 | 77.41 | 76 | 78.94 |
|
|
25
|
-
helpers.ts | 75 | 77.41 | 76 | 78.94 | 43-47,55-59,71,113,133,145
|
|
26
|
-
|
|
17
|
+
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------
|
|
18
|
+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
19
|
+
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------
|
|
20
|
+
All files | 80.42 | 74.46 | 81.72 | 81.26 |
|
|
21
|
+
src | 80.98 | 74.19 | 83.82 | 81.5 |
|
|
22
|
+
codegen-bruno.ts | 88.26 | 78.1 | 93.22 | 89.29 | 166,318-319,530-531,615,623,676-679,686-693,713,719,723-725,741,751,775,785-787,793-795,800,804-812,821,825
|
|
23
|
+
index.ts | 27.45 | 40 | 22.22 | 26.08 | 72-186
|
|
24
|
+
tests | 75 | 77.41 | 76 | 78.94 |
|
|
25
|
+
helpers.ts | 75 | 77.41 | 76 | 78.94 | 43-47,55-59,71,113,133,145
|
|
26
|
+
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @contractkit/contractkit-plugin-bruno
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 130d53b: Fix `stableStringify` (and therefore `hashFingerprint` / `runIncrementalCodegen`) crashing with "Do not know how to serialize a BigInt" when an AST payload contains a `bigint` default or literal. Bigints now serialize as a tagged string `"<bigint:VALUE>"` so they're stable in fingerprints and distinguishable from plain strings. `undefined` is also normalized to `null` so `{a: undefined}` and `{}` don't collide.
|
|
8
|
+
- Updated dependencies [130d53b]
|
|
9
|
+
- @contractkit/core@0.15.1
|
|
10
|
+
|
|
11
|
+
## 1.4.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 10ca07b: Add per-output incremental caching to the Bruno, Python, and TypeScript plugins. Editing a single contract or operation no longer regenerates every output file — only the units whose transitive inputs actually changed are re-rendered, with the rest reused from a per-plugin manifest. `@contractkit/core` exposes the shared utility (`runIncrementalCodegen`, `parseIncrementalManifest`, `hashFingerprint`, `collectTransitiveModelRefs`, manifest types) for plugin authors. `PluginContext` gains a `cacheEnabled` flag so plugins can honor `--force` / `cache: false`.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [10ca07b]
|
|
20
|
+
- @contractkit/core@0.15.0
|
|
21
|
+
|
|
3
22
|
## 1.3.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|