@daml-tools/daml-lint 0.7.0 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +14 -9
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -20,18 +20,18 @@ that fail to parse degrade to partial structure with a diagnostic on stderr
20
20
 
21
21
  The workspace docs split task guides, reference, and design background:
22
22
 
23
- - [Scan Daml source](../../docs/how-to/scan-daml.md) for CLI usage patterns
24
- - [Write a custom rule](../../docs/tutorials/write-a-daml-lint-custom-rule.md)
23
+ - [Scan Daml source](https://github.com/stevennevins/daml-tools/blob/main/docs/how-to/scan-daml.md) for CLI usage patterns
24
+ - [Write a custom rule](https://github.com/stevennevins/daml-tools/blob/main/docs/tutorials/write-a-daml-lint-custom-rule.md)
25
25
  for a guided first external rule
26
- - [Custom rule contract](../../docs/reference/daml-lint-custom-rule-contract.md)
26
+ - [Custom rule contract](https://github.com/stevennevins/daml-tools/blob/main/docs/reference/daml-lint-custom-rule-contract.md)
27
27
  for the JavaScript runtime contract and TypeScript types
28
- - [CLI reference](../../docs/reference/cli.md) for options, output formats, and
28
+ - [CLI reference](https://github.com/stevennevins/daml-tools/blob/main/docs/reference/cli.md) for options, output formats, and
29
29
  exit codes
30
- - [Crate reference](../../docs/reference/crates.md) for features and public
30
+ - [Crate reference](https://github.com/stevennevins/daml-tools/blob/main/docs/reference/crates.md) for features and public
31
31
  modules
32
- - [Rule authoring model](../../docs/explanation/daml-lint-rule-authoring.md)
32
+ - [Rule authoring model](https://github.com/stevennevins/daml-tools/blob/main/docs/explanation/daml-lint-rule-authoring.md)
33
33
  for why TypeScript authoring is bundled to JavaScript
34
- - [Workspace architecture](../../docs/explanation/workspace-architecture.md)
34
+ - [Workspace architecture](https://github.com/stevennevins/daml-tools/blob/main/docs/explanation/workspace-architecture.md)
35
35
  for how `daml-lint` uses `daml-parser`
36
36
 
37
37
  ## Detectors
@@ -81,7 +81,7 @@ The default features build the published CLI and custom-rule engine:
81
81
 
82
82
  ```toml
83
83
  [dependencies]
84
- daml-lint = "0.7"
84
+ daml-lint = "0.8"
85
85
  ```
86
86
 
87
87
  Library consumers that only need parser lowering and the rule-facing IR can
@@ -89,7 +89,7 @@ avoid the CLI parser and QuickJS runtime:
89
89
 
90
90
  ```toml
91
91
  [dependencies]
92
- daml-lint = { version = "0.7", default-features = false }
92
+ daml-lint = { version = "0.8", default-features = false }
93
93
  ```
94
94
 
95
95
  The `js-runtime` feature enables the QuickJS-backed runtime used by shipped
@@ -325,6 +325,11 @@ wildcard arms when matching enums. Patch releases should remain compatible.
325
325
 
326
326
  Breaking updates introduced in this branch:
327
327
 
328
+ - `Severity` no longer implements `Ord`/`PartialOrd`; use `rank()` or
329
+ `meets_or_exceeds()` for risk-based ordering and thresholds.
330
+ - `Severity::from_str` now returns `SeverityParseError` instead of `()`.
331
+ - Public IR/report DTO structs are `#[non_exhaustive]`; construct through
332
+ parser lowering or documented constructors such as `Finding::new`.
328
333
  - `parse_daml_with_diagnostics` now returns a named `ParseResult` with fields
329
334
  (`module`, `diagnostics`) instead of a tuple.
330
335
  - Rule setting values are now canonical only: `off`, `critical`, `high`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daml-tools/daml-lint",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Static analysis scanner for Daml smart contracts",
5
5
  "keywords": [
6
6
  "daml",
@@ -23,10 +23,10 @@
23
23
  "node": ">=18"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@daml-tools/daml-lint-darwin-arm64": "0.7.0",
27
- "@daml-tools/daml-lint-linux-arm64": "0.7.0",
28
- "@daml-tools/daml-lint-linux-x64": "0.7.0",
29
- "@daml-tools/daml-lint-win32-x64": "0.7.0"
26
+ "@daml-tools/daml-lint-darwin-arm64": "0.8.1",
27
+ "@daml-tools/daml-lint-linux-arm64": "0.8.1",
28
+ "@daml-tools/daml-lint-linux-x64": "0.8.1",
29
+ "@daml-tools/daml-lint-win32-x64": "0.8.1"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"