@daml-tools/daml-fmt 0.6.0 → 0.7.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/README.md +4 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -115,7 +115,10 @@ let checked = try_format_source("module M where\nfoo: Int\nfoo = 1\n").expect("v
|
|
|
115
115
|
assert_eq!(checked, formatted);
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
`ImportOrder`
|
|
118
|
+
`ImportOrder` implements `Default` (`Organize`) and `Display` (`organize` /
|
|
119
|
+
`preserve`), and is `#[non_exhaustive]` for forward-compatible `match` arms.
|
|
120
|
+
`FormatError` exposes its typed diagnostic slice through both `diagnostics()`
|
|
121
|
+
and `AsRef<[FormatDiagnostic]>`.
|
|
119
122
|
`FormatOptions` uses private fields: construct options with `Default`/`new()` and
|
|
120
123
|
`with_*` helpers so new switches can ship with defaults without breaking callers.
|
|
121
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daml-tools/daml-fmt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "A canonical code formatter for the Daml smart-contract language, built on daml-parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"daml",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@daml-tools/daml-fmt-darwin-arm64": "0.
|
|
27
|
-
"@daml-tools/daml-fmt-linux-arm64": "0.
|
|
28
|
-
"@daml-tools/daml-fmt-linux-x64": "0.
|
|
29
|
-
"@daml-tools/daml-fmt-win32-x64": "0.
|
|
26
|
+
"@daml-tools/daml-fmt-darwin-arm64": "0.7.1",
|
|
27
|
+
"@daml-tools/daml-fmt-linux-arm64": "0.7.1",
|
|
28
|
+
"@daml-tools/daml-fmt-linux-x64": "0.7.1",
|
|
29
|
+
"@daml-tools/daml-fmt-win32-x64": "0.7.1"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|