@contractkit/prettier-plugin 0.9.0 → 0.9.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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @contractkit/prettier-plugin@0.9.0 build:ci /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
2
+ > @contractkit/prettier-plugin@0.9.1 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.0 build /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
6
+ > @contractkit/prettier-plugin@0.9.1 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.10 KB
15
- ESM dist/index.js.map 43.05 KB
16
- ESM ⚡️ Build success in 136ms
14
+ ESM dist/index.js 18.13 KB
15
+ ESM dist/index.js.map 43.70 KB
16
+ ESM ⚡️ Build success in 123ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 4069ms
18
+ DTS ⚡️ Build success in 3581ms
19
19
  DTS dist/index.d.ts 157.00 B
@@ -1,25 +1,25 @@
1
1
 
2
- > @contractkit/prettier-plugin@0.9.0 test:ci /home/runner/work/ContractKit/ContractKit/apps/prettier-plugin
2
+ > @contractkit/prettier-plugin@0.9.1 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 (50 tests) 425ms
9
+ ✓ tests/print-ck.test.ts (55 tests) 215ms
10
10
 
11
11
   Test Files  1 passed (1)
12
-  Tests  50 passed (50)
13
-  Start at  17:30:30
14
-  Duration  5.05s (transform 1.11s, setup 0ms, import 3.63s, tests 425ms, environment 0ms)
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)
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 | 61.7 | 53.98 | 68 | 68.51 |
20
+ All files | 66.02 | 56.81 | 69.23 | 71.87 |
21
21
  indent.ts | 100 | 100 | 100 | 100 |
22
- print-ck.ts | 67.14 | 64.19 | 100 | 78.84 | 23-28,32-37,49
22
+ print-ck.ts | 89.85 | 80 | 100 | 98.03 | 59
23
23
  print-contract.ts | 41.93 | 28.57 | 50 | 42.85 | 10,37-68
24
24
  ...t-operation.ts | 70.62 | 63.74 | 90 | 80.43 | ...92,200-211,243
25
25
  print-type.ts | 45.23 | 42.55 | 40 | 47.14 | ...09,132,135-138
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @contractkit/prettier-plugin-contractkit
2
2
 
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7555412: Round-trip path-like values in `options.keys` and `options.services` correctly.
8
+
9
+ Values that aren't plain identifiers (paths with slashes, values starting with `.` or `#`, values containing spaces, etc.) are now consistently double-quoted on output. Previously only values starting with `#` or containing spaces were quoted, so a value like `"../../bruno"` lost its quotes on round-trip and re-parsed as a different shape.
10
+
11
+ - Updated dependencies [7555412]
12
+ - @contractkit/core@0.13.0
13
+
3
14
  ## 0.9.0
4
15
 
5
16
  ### Minor Changes
@@ -1,65 +1,64 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1777656635771" clover="3.2.0">
3
- <project timestamp="1777656635771" name="All files">
4
- <metrics statements="289" coveredstatements="198" conditionals="402" coveredconditionals="217" methods="25" coveredmethods="17" elements="716" coveredelements="432" complexity="0" loc="289" ncloc="289" packages="1" files="5" classes="5"/>
2
+ <coverage generated="1777661353616" clover="3.2.0">
3
+ <project timestamp="1777661353616" name="All files">
4
+ <metrics statements="288" coveredstatements="207" conditionals="396" coveredconditionals="225" methods="26" coveredmethods="18" elements="710" coveredelements="450" complexity="0" loc="288" ncloc="288" packages="1" files="5" classes="5"/>
5
5
  <file name="indent.ts" path="/home/runner/work/ContractKit/ContractKit/apps/prettier-plugin/src/indent.ts">
6
6
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
7
7
  <line num="1" count="1" type="stmt"/>
8
8
  </file>
9
9
  <file name="print-ck.ts" path="/home/runner/work/ContractKit/ContractKit/apps/prettier-plugin/src/print-ck.ts">
10
- <metrics statements="52" coveredstatements="41" conditionals="81" coveredconditionals="52" methods="3" coveredmethods="3"/>
10
+ <metrics statements="51" coveredstatements="50" conditionals="75" coveredconditionals="60" methods="4" coveredmethods="4"/>
11
11
  <line num="7" count="1" type="stmt"/>
12
- <line num="12" count="50" type="stmt"/>
13
- <line num="13" count="50" type="stmt"/>
14
- <line num="14" count="50" type="stmt"/>
15
- <line num="15" count="50" type="cond" truecount="8" falsecount="0"/>
16
- <line num="16" count="50" type="cond" truecount="8" falsecount="0"/>
17
- <line num="18" count="50" type="cond" truecount="7" falsecount="0"/>
18
- <line num="20" count="2" type="stmt"/>
19
- <line num="22" count="2" type="cond" truecount="1" falsecount="1"/>
20
- <line num="23" count="0" type="stmt"/>
21
- <line num="24" count="0" type="cond" truecount="0" falsecount="4"/>
22
- <line num="25" count="0" type="cond" truecount="0" falsecount="4"/>
23
- <line num="26" count="0" type="stmt"/>
24
- <line num="28" count="0" type="stmt"/>
25
- <line num="31" count="2" type="cond" truecount="1" falsecount="1"/>
26
- <line num="32" count="0" type="stmt"/>
27
- <line num="33" count="0" type="cond" truecount="0" falsecount="4"/>
28
- <line num="34" count="0" type="cond" truecount="0" falsecount="4"/>
29
- <line num="35" count="0" type="stmt"/>
30
- <line num="37" count="0" type="stmt"/>
31
- <line num="40" count="2" type="cond" truecount="2" falsecount="0"/>
32
- <line num="41" count="1" type="stmt"/>
33
- <line num="44" count="2" type="cond" truecount="2" falsecount="0"/>
34
- <line num="45" count="1" type="stmt"/>
35
- <line num="48" count="2" type="cond" truecount="1" falsecount="1"/>
36
- <line num="49" count="0" type="stmt"/>
37
- <line num="52" count="2" type="stmt"/>
38
- <line num="53" count="2" type="stmt"/>
39
- <line num="57" count="2" type="stmt"/>
40
- <line num="58" count="2" type="stmt"/>
41
- <line num="59" count="2" type="stmt"/>
42
- <line num="60" count="2" type="cond" truecount="2" falsecount="2"/>
43
- <line num="61" count="3" type="cond" truecount="2" falsecount="0"/>
44
- <line num="62" count="3" type="cond" truecount="1" falsecount="1"/>
45
- <line num="63" count="3" type="stmt"/>
46
- <line num="65" count="2" type="stmt"/>
47
- <line num="66" count="2" type="stmt"/>
12
+ <line num="20" count="5" type="cond" truecount="2" falsecount="0"/>
13
+ <line num="24" count="55" type="stmt"/>
14
+ <line num="25" count="55" type="stmt"/>
15
+ <line num="26" count="55" type="stmt"/>
16
+ <line num="27" count="55" type="cond" truecount="8" falsecount="0"/>
17
+ <line num="28" count="55" type="cond" truecount="8" falsecount="0"/>
18
+ <line num="30" count="55" type="cond" truecount="7" falsecount="0"/>
19
+ <line num="32" count="7" type="stmt"/>
20
+ <line num="34" count="7" type="cond" truecount="2" falsecount="0"/>
21
+ <line num="35" count="3" type="stmt"/>
22
+ <line num="36" count="3" type="cond" truecount="2" falsecount="2"/>
23
+ <line num="37" count="3" type="stmt"/>
24
+ <line num="39" count="3" type="stmt"/>
25
+ <line num="42" count="7" type="cond" truecount="2" falsecount="0"/>
26
+ <line num="43" count="2" type="stmt"/>
27
+ <line num="44" count="2" type="cond" truecount="2" falsecount="2"/>
28
+ <line num="45" count="2" type="stmt"/>
29
+ <line num="47" count="2" type="stmt"/>
30
+ <line num="50" count="7" type="cond" truecount="2" falsecount="0"/>
31
+ <line num="51" count="1" type="stmt"/>
32
+ <line num="54" count="7" type="cond" truecount="2" falsecount="0"/>
33
+ <line num="55" count="1" type="stmt"/>
34
+ <line num="58" count="7" type="cond" truecount="1" falsecount="1"/>
35
+ <line num="59" count="0" type="stmt"/>
36
+ <line num="62" count="7" type="stmt"/>
37
+ <line num="63" count="7" type="stmt"/>
48
38
  <line num="67" count="2" type="stmt"/>
49
- <line num="72" count="50" type="cond" truecount="2" falsecount="2"/>
50
- <line num="73" count="50" type="stmt"/>
51
- <line num="76" count="50" type="stmt"/>
52
- <line num="77" count="50" type="cond" truecount="2" falsecount="0"/>
53
- <line num="80" count="50" type="cond" truecount="2" falsecount="2"/>
54
- <line num="81" count="3" type="cond" truecount="1" falsecount="1"/>
55
- <line num="82" count="3" type="stmt"/>
56
- <line num="86" count="50" type="stmt"/>
57
- <line num="87" count="50" type="stmt"/>
58
- <line num="88" count="50" type="cond" truecount="2" falsecount="2"/>
59
- <line num="89" count="47" type="cond" truecount="2" falsecount="0"/>
60
- <line num="90" count="47" type="cond" truecount="6" falsecount="0"/>
61
- <line num="91" count="47" type="stmt"/>
62
- <line num="94" count="50" type="stmt"/>
39
+ <line num="68" count="2" type="stmt"/>
40
+ <line num="69" count="2" type="stmt"/>
41
+ <line num="70" count="2" type="cond" truecount="2" falsecount="2"/>
42
+ <line num="71" count="3" type="cond" truecount="2" falsecount="0"/>
43
+ <line num="72" count="3" type="cond" truecount="1" falsecount="1"/>
44
+ <line num="73" count="3" type="stmt"/>
45
+ <line num="75" count="2" type="stmt"/>
46
+ <line num="76" count="2" type="stmt"/>
47
+ <line num="77" count="2" type="stmt"/>
48
+ <line num="90" count="55" type="cond" truecount="2" falsecount="2"/>
49
+ <line num="91" count="55" type="stmt"/>
50
+ <line num="94" count="55" type="stmt"/>
51
+ <line num="95" count="55" type="cond" truecount="2" falsecount="0"/>
52
+ <line num="98" count="55" type="cond" truecount="2" falsecount="2"/>
53
+ <line num="99" count="3" type="cond" truecount="1" falsecount="1"/>
54
+ <line num="100" count="3" type="stmt"/>
55
+ <line num="104" count="55" type="stmt"/>
56
+ <line num="105" count="55" type="stmt"/>
57
+ <line num="106" count="55" type="cond" truecount="2" falsecount="2"/>
58
+ <line num="107" count="47" type="cond" truecount="2" falsecount="0"/>
59
+ <line num="108" count="47" type="cond" truecount="6" falsecount="0"/>
60
+ <line num="109" count="47" type="stmt"/>
61
+ <line num="112" count="55" type="stmt"/>
63
62
  </file>
64
63
  <file name="print-contract.ts" path="/home/runner/work/ContractKit/ContractKit/apps/prettier-plugin/src/print-contract.ts">
65
64
  <metrics statements="28" coveredstatements="12" conditionals="56" coveredconditionals="16" methods="2" coveredmethods="1"/>