@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.
- package/.turbo/turbo-build$colon$ci.log +6 -6
- package/.turbo/turbo-test$colon$ci.log +9 -9
- package/CHANGELOG.md +19 -0
- package/coverage/clover.xml +274 -230
- package/coverage/coverage-final.json +4 -4
- package/coverage/indent.ts.html +1 -1
- package/coverage/index.html +31 -31
- package/coverage/print-ck.ts.html +21 -21
- package/coverage/print-contract.ts.html +16 -16
- package/coverage/print-operation.ts.html +252 -45
- package/coverage/print-type.ts.html +56 -35
- package/dist/index.js +74 -3
- package/dist/index.js.map +1 -1
- package/dist/print-operation.d.ts.map +1 -1
- package/dist/print-type.d.ts +3 -0
- package/dist/print-type.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/print-operation.ts +70 -1
- package/src/print-type.ts +9 -2
- package/tests/print-ck.test.ts +77 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/prettier-plugin@0.9.
|
|
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.
|
|
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
|
[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[32m20.51 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m48.93 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 151ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 3938ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m157.00 B[39m
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/prettier-plugin@0.9.
|
|
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
|
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.5 [39m[90m/home/runner/work/ContractKit/ContractKit/apps/prettier-plugin[39m
|
|
7
7
|
[2mCoverage enabled with [22m[33mv8[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m tests/print-ck.test.ts [2m([22m[
|
|
9
|
+
[32m✓[39m tests/print-ck.test.ts [2m([22m[2m60 tests[22m[2m)[22m[32m 181[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 5.
|
|
12
|
+
[2m Tests [22m [1m[32m60 passed[39m[22m[90m (60)[39m
|
|
13
|
+
[2m Start at [22m 12:37:07
|
|
14
|
+
[2m Duration [22m 5.30s[2m (transform 1.98s, setup 0ms, import 3.82s, tests 181ms, 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 |
|
|
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 |
|
|
24
|
-
...t-operation.ts |
|
|
25
|
-
print-type.ts |
|
|
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
|