@contractkit/prettier-plugin 0.9.1 → 0.9.3

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @contractkit/prettier-plugin@0.9.1 build:ci /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
2
+ > @contractkit/prettier-plugin@0.9.3 build:ci /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
3
3
  > eslint --max-warnings=0 && pnpm run build
4
4
 
5
5
 
6
- > @contractkit/prettier-plugin@0.9.1 build /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
6
+ > @contractkit/prettier-plugin@0.9.3 build /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
7
7
  > tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly --declaration
8
8
 
9
9
  CLI Building entry: src/index.ts
@@ -11,9 +11,9 @@
11
11
  CLI tsup v8.5.1
12
12
  CLI Target: esnext
13
13
  ESM Build start
14
- ESM dist/index.js 18.13 KB
15
- ESM dist/index.js.map 43.70 KB
16
- ESM ⚡️ Build success in 123ms
14
+ ESM dist/index.js 20.51 KB
15
+ ESM dist/index.js.map 48.93 KB
16
+ ESM ⚡️ Build success in 151ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 3581ms
18
+ DTS ⚡️ Build success in 3938ms
19
19
  DTS dist/index.d.ts 157.00 B
@@ -1,26 +1,26 @@
1
1
 
2
- > @contractkit/prettier-plugin@0.9.1 test:ci /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
2
+ > @contractkit/prettier-plugin@0.9.3 test:ci /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
3
3
  > vitest run --coverage
4
4
 
5
5
 
6
6
   RUN  v4.1.5 /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
7
7
  Coverage enabled with v8
8
8
 
9
- ✓ tests/print-ck.test.ts (55 tests) 215ms
9
+ ✓ tests/print-ck.test.ts (60 tests) 181ms
10
10
 
11
11
   Test Files  1 passed (1)
12
-  Tests  55 passed (55)
13
-  Start at  18:49:08
14
-  Duration  5.56s (transform 1.50s, setup 0ms, import 4.05s, tests 215ms, environment 0ms)
12
+  Tests  60 passed (60)
13
+  Start at  12:37:07
14
+  Duration  5.30s (transform 1.98s, setup 0ms, import 3.82s, tests 181ms, environment 0ms)
15
15
 
16
16
   % Coverage report from v8
17
17
  -------------------|---------|----------|---------|---------|-------------------
18
18
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
19
19
  -------------------|---------|----------|---------|---------|-------------------
20
- All files | 66.02 | 56.81 | 69.23 | 71.87 |
20
+ All files | 68.47 | 58.91 | 74.19 | 74.69 |
21
21
  indent.ts | 100 | 100 | 100 | 100 |
22
22
  print-ck.ts | 89.85 | 80 | 100 | 98.03 | 59
23
- print-contract.ts | 41.93 | 28.57 | 50 | 42.85 | 10,37-68
24
- ...t-operation.ts | 70.62 | 63.74 | 90 | 80.43 | ...92,200-211,243
25
- print-type.ts | 45.23 | 42.55 | 40 | 47.14 | ...09,132,135-138
23
+ print-contract.ts | 41.93 | 30.35 | 50 | 42.85 | 10,37-68
24
+ ...t-operation.ts | 73.41 | 64.35 | 92.85 | 83.33 | ...61,269-280,312
25
+ print-type.ts | 47.12 | 46.87 | 45.45 | 48.61 | ...10,139,142-145
26
26
  -------------------|---------|----------|---------|---------|-------------------
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @contractkit/prettier-plugin-contractkit
2
2
 
3
+ ## 0.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a9e9ec0: Replace per-operation `pluginFiles` with structured `pluginExtensions`. The `plugins:` block on an operation now accepts JSON-like values (string, number, boolean, null, object, array) so each plugin owns its own schema for its entry. `file://` URLs in any string position are resolved relative to the `.ck` source file before plugins run, and `http://` / `https://` URLs are fetched via GET. `op.pluginExtensions` carries the resolved tree; the raw form lives at `op.plugins`. The Bruno plugin now expects `{ template: "file://..." }` (was a bare path string) and ships a `validateBrunoExtension` hook that fails compilation on unknown fields or non-string `template`.
8
+
9
+ Plugins can now implement `validateExtension(value)` on the `ContractKitPlugin` interface to surface compilation-time errors/warnings on their entry.
10
+
11
+ All CLI caching is unified under `<rootDir>/.contractkit/cache/` via a new `CacheService` class: `build.json` for file/plugin hashes and `http/<sha256(url)>` for fetched HTTP response bodies. The `cache: string` config field is reinterpreted as a custom cache **directory** (was a custom build-cache filename); previous file paths under `.contractkit-cache` and `.contractkit-http-cache/` are abandoned. Add `.contractkit/` to `.gitignore`.
12
+
13
+ - Updated dependencies [a9e9ec0]
14
+ - @contractkit/core@0.14.0
15
+
16
+ ## 0.9.2
17
+
18
+ ### Patch Changes
19
+
20
+ - 1be6771: Fix prettier printer to re-quote enum values that contain spaces or other non-identifier characters, preventing round-trip parse failures for values like `"Sole Proprietorship"`.
21
+
3
22
  ## 0.9.1
4
23
 
5
24
  ### Patch Changes