@contractkit/plugin-bruno 1.4.0 → 1.5.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.
- package/.turbo/turbo-build$colon$ci.log +6 -6
- package/.turbo/turbo-test$colon$ci.log +8 -8
- package/CHANGELOG.md +23 -0
- package/coverage/clover.xml +360 -355
- package/coverage/coverage-final.json +2 -2
- package/coverage/index.html +15 -15
- package/coverage/src/codegen-bruno.ts.html +21 -6
- package/coverage/src/index.html +15 -15
- package/coverage/src/index.ts.html +65 -14
- package/coverage/tests/helpers.ts.html +1 -1
- package/coverage/tests/index.html +1 -1
- package/dist/codegen-bruno.d.ts +6 -1
- package/dist/codegen-bruno.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/codegen-bruno.ts +8 -3
- package/src/index.ts +23 -6
- package/tests/codegen-bruno.test.ts +8 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/plugin-bruno@1.
|
|
2
|
+
> @contractkit/plugin-bruno@1.5.0 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.5.0 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[32m27.11 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m69.67 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 154ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 4860ms
|
|
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.5.0 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[2m116 tests[22m[2m)[22m[33m
|
|
9
|
+
[32m✓[39m tests/codegen-bruno.test.ts [2m([22m[2m116 tests[22m[2m)[22m[33m 332[2mms[22m[39m
|
|
10
10
|
|
|
11
11
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
12
|
[2m Tests [22m [1m[32m116 passed[39m[22m[90m (116)[39m
|
|
13
|
-
[2m Start at [22m 11:
|
|
14
|
-
[2m Duration [22m
|
|
13
|
+
[2m Start at [22m 11:38:18
|
|
14
|
+
[2m Duration [22m 5.05s[2m (transform 1.91s, setup 0ms, import 3.85s, tests 332ms, environment 0ms)[22m
|
|
15
15
|
|
|
16
16
|
[34m % [39m[2mCoverage report from [22m[33mv8[39m
|
|
17
17
|
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------
|
|
18
18
|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
19
19
|
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------
|
|
20
|
-
All files |
|
|
21
|
-
src | 80.
|
|
22
|
-
codegen-bruno.ts | 88.26 | 78.1 | 93.22 | 89.29 |
|
|
23
|
-
index.ts |
|
|
20
|
+
All files | 79.78 | 74.46 | 80.85 | 80.52 |
|
|
21
|
+
src | 80.27 | 74.19 | 82.6 | 80.68 |
|
|
22
|
+
codegen-bruno.ts | 88.26 | 78.1 | 93.22 | 89.29 | 172,323-324,535-536,620,628,681-684,691-698,718,724,728-730,746,756,780,790-792,798-800,805,809-817,826,830
|
|
23
|
+
index.ts | 26.78 | 40 | 20 | 25.49 | 76-203
|
|
24
24
|
tests | 75 | 77.41 | 76 | 78.94 |
|
|
25
25
|
helpers.ts | 75 | 77.41 | 76 | 78.94 | 43-47,55-59,71,113,133,145
|
|
26
26
|
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @contractkit/contractkit-plugin-bruno
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4ac6d4d: Move plugin incremental-build manifests under the CLI cache directory (default `.contractkit/cache/`, configurable via `config.cache.dir`). Bruno's `.contractkit-bruno-manifest.json` (in the bruno-collection dir), Python's `.contractkit-python-manifest.json` (in the python-sdk dir), and TypeScript's `.contractkit-typescript-manifest.json` (at rootDir) now all live as `bruno-manifest.json` / `python-manifest.json` / `typescript-manifest.json` under `ctx.cacheDir`, alongside the CLI's existing `build.json` and HTTP cache. Output dirs no longer contain build state.
|
|
8
|
+
|
|
9
|
+
`PluginContext` gains a `cacheDir: string` field. `runIncrementalCodegen` no longer takes a `manifestFilename` argument and no longer bundles the manifest into `filesToWrite` — the result's `manifest` is returned separately so plugins can persist it wherever they want. New helper `serializeIncrementalManifest(manifest)` produces the JSON form.
|
|
10
|
+
|
|
11
|
+
After upgrading, the old in-output manifests can be deleted manually (or with `--force`); plugins will simply do a full regen on the first run since they won't find a manifest at the new path.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [4ac6d4d]
|
|
16
|
+
- @contractkit/core@0.16.0
|
|
17
|
+
|
|
18
|
+
## 1.4.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 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.
|
|
23
|
+
- Updated dependencies [130d53b]
|
|
24
|
+
- @contractkit/core@0.15.1
|
|
25
|
+
|
|
3
26
|
## 1.4.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|