@noego/trust 0.5.0-dev.1 → 0.5.0-dev.2

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 CHANGED
@@ -546,9 +546,14 @@ origin is the one reported, on both sides. See [native/RELEASE.md](native/RELEAS
546
546
 
547
547
  The check walks the given files and directories for `.ts`/`.tsx` (skipping `node_modules`, `dist`,
548
548
  `.d.ts`) and skips the config's `ignore` zone. Exit codes are 0 for clean or warnings only,
549
- 1 for trust violations, and 2 when setup, parsing or the engine fails. `--perf` adds three optional
550
- warnings: `perf-delete-property`, `perf-object-as-map`, and `perf-prototype-mutation`. It does not
551
- include a sparse-array rule. Warnings teach the tradeoff and never change the exit code.
549
+ 1 for trust violations, and 2 when setup, parsing or the engine fails. `--perf` adds four optional
550
+ warnings: `perf-delete-from-copy`, `perf-delete-property`, `perf-object-as-map`, and
551
+ `perf-prototype-mutation`. Spread-copy deletes suggest rest destructuring; fixed-key deletes
552
+ explain the potential shape cost even on index-signature types; computed-key deletes suggest
553
+ Map only for long-lived key churn, not objects that must remain plain JSON/API/process payloads.
554
+ Library-declared host objects (such as dataset and Storage), global objects (including const
555
+ aliases and casts), and values typed as `ProcessEnv`/`NodeJS.ProcessEnv` are skipped.
556
+ There is no sparse-array rule. Measure the hot path: warnings are advisory and never change the exit code.
552
557
  `--json` emits one object with `findings` (each has `severity: "error" | "warning"`), setup `errors`,
553
558
  configuration `warnings`, and a `summary` on success.
554
559
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noego/trust",
3
- "version": "0.5.0-dev.1",
3
+ "version": "0.5.0-dev.2",
4
4
  "description": "Result type plus type-aware ESLint rules that make failure handling explicit: untrusted calls and throws must be caught locally and returned as Result.err.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -73,11 +73,11 @@
73
73
  }
74
74
  },
75
75
  "optionalDependencies": {
76
- "@noego/trust-darwin-arm64": "0.5.0-dev.0",
77
- "@noego/trust-darwin-x64": "0.5.0-dev.0",
78
- "@noego/trust-linux-arm64-gnu": "0.5.0-dev.0",
79
- "@noego/trust-linux-x64-gnu": "0.5.0-dev.0",
80
- "@noego/trust-win32-x64-msvc": "0.5.0-dev.0"
76
+ "@noego/trust-darwin-arm64": "0.5.0-dev.1",
77
+ "@noego/trust-darwin-x64": "0.5.0-dev.1",
78
+ "@noego/trust-linux-arm64-gnu": "0.5.0-dev.1",
79
+ "@noego/trust-linux-x64-gnu": "0.5.0-dev.1",
80
+ "@noego/trust-win32-x64-msvc": "0.5.0-dev.1"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@jridgewell/trace-mapping": "^0.3.31",