From 54dd6001009a1c4f66f3dbe3f21aabfc695d4342 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 28 Oct 2026 15:14:45 +0000 Subject: [PATCH] chore: version packages --- .changeset/boundary-try.md | 5 ----- .changeset/cli-in-faultline.md | 5 ----- .changeset/eslint-plugin-publish-fixes.md | 16 -------------- .changeset/redaction-globstar.md | 7 ------ .changeset/taskresult-cancellation.md | 13 ----------- packages/eslint-plugin-faultline/CHANGELOG.md | 20 +++++++++++++++++ packages/eslint-plugin-faultline/package.json | 2 +- packages/faultline/CHANGELOG.md | 22 +++++++++++++++++++ packages/faultline/package.json | 2 +- 9 files changed, 44 insertions(+), 48 deletions(-) delete mode 100644 .changeset/boundary-try.md delete mode 100644 .changeset/cli-in-faultline.md delete mode 100644 .changeset/eslint-plugin-publish-fixes.md delete mode 100644 .changeset/redaction-globstar.md delete mode 100644 .changeset/taskresult-cancellation.md create mode 100644 packages/eslint-plugin-faultline/CHANGELOG.md diff --git a/.changeset/boundary-try.md b/.changeset/boundary-try.md deleted file mode 100644 index 93d0827..0000000 --- a/.changeset/boundary-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"faultline": minor ---- - -Add `boundary.try(error)` — a non-throwing variant of a boundary that returns `Result` instead of throwing on an unmapped tag. Boundaries usually sit at a transport edge where an uncaught throw is costly; `.try()` lets you handle an unexpected (untyped/foreign) error tag as a value. Exposes the `BoundaryViolationError` type. diff --git a/.changeset/cli-in-faultline.md b/.changeset/cli-in-faultline.md deleted file mode 100644 index c8dbba2..0000000 --- a/.changeset/cli-in-faultline.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"faultline": minor ---- - -The `faultline` package now ships the CLI (`npx faultline [path] [--json]`), previously the unpublished `faultline-cli` workspace package. `typescript` is an optional peer dependency used only by the CLI, which loads it on demand and explains how to install it when it is missing; the library entry points do not import it. diff --git a/.changeset/eslint-plugin-publish-fixes.md b/.changeset/eslint-plugin-publish-fixes.md deleted file mode 100644 index 792fcff..0000000 --- a/.changeset/eslint-plugin-publish-fixes.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"eslint-plugin-faultline": minor ---- - -Rule improvements and publish-readiness fixes. - -Rules: -- `throw-type-mismatch` now inspects all overload signatures, not just the first — overloaded functions are fully checked for transitive error propagation. -- `throw-type-mismatch` reports `throw ` when the surrounding function declares a `TypedPromise` error type and the thrown variable's type has no resolvable `_tag`. -- `uncovered-catch` no longer misattributes throws inside async closures (e.g. `setTimeout(async () => ...)`) to the outer try's catch. -- Published `LIMITATIONS.md` documenting patterns the rules can't detect, plus an 11-pattern torture-fixture corpus guarding the rules. - -Packaging: -- Ship the previously-missing `README.md` (it was already listed in `files`). -- Derive `meta.version` from `package.json` at build time so it can no longer drift from the published version (was hardcoded `0.1.0`). -- Run tests as part of `prepublishOnly`. diff --git a/.changeset/redaction-globstar.md b/.changeset/redaction-globstar.md deleted file mode 100644 index 15ad9fd..0000000 --- a/.changeset/redaction-globstar.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"faultline": minor ---- - -Redaction: support a `**` globstar segment in `redactPaths` to redact a key at any depth (e.g. `**.password`). Redaction paths are matched against the serialized error structure and a non-matching path is a silent no-op (it fails open), so `**.` is now the recommended form for sensitive keys — it can't silently miss a nested occurrence the way a brittle exact path can. Documented this behavior in the README and SECURITY.md. - -Also clarified (docs only, no behavior change): `attemptAsync`/`TaskResult` cancellation is cooperative — aborting short-circuits *subsequent* steps and stops the caller waiting, but does not preempt in-flight work unless your function threads the `AbortSignal` through. And `defineBoundary` throws `System.BoundaryViolation` (preserving the original as cause) when an unmapped error tag reaches it. diff --git a/.changeset/taskresult-cancellation.md b/.changeset/taskresult-cancellation.md deleted file mode 100644 index eee3754..0000000 --- a/.changeset/taskresult-cancellation.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"faultline": minor ---- - -TaskResult cancellation, rejection safety, and API pruning. - -Breaking changes: -- `TaskResult.toPromise()` removed. Use `.run()` instead — same signature. -- TaskResult chain methods (`.map`, `.andThen`, `.catchTag`, etc.) now widen their error union to include `System.Cancelled`. Exhaustive `match()` over a TaskResult needs a `'System.Cancelled'` handler or a `_` branch. -- `TaskResult.fromPromise` return type now widens to include `System.Unexpected`. Factory rejections are no longer unhandled — they are caught and wrapped as `System.Unexpected` with the original throw preserved as `.cause`. - -Added: -- TaskResult chain steps check `context.signal?.aborted` between every step. Aborting the signal mid-pipeline short-circuits the remaining steps to `System.Cancelled` instead of running them to completion. diff --git a/packages/eslint-plugin-faultline/CHANGELOG.md b/packages/eslint-plugin-faultline/CHANGELOG.md new file mode 100644 index 0000000..3e87274 --- /dev/null +++ b/packages/eslint-plugin-faultline/CHANGELOG.md @@ -0,0 +1,20 @@ +# eslint-plugin-faultline + +## 0.3.0 + +### Minor Changes + +- 7a010cc: Rule improvements and publish-readiness fixes. + + Rules: + + - `throw-type-mismatch` now inspects all overload signatures, not just the first — overloaded functions are fully checked for transitive error propagation. + - `throw-type-mismatch` reports `throw ` when the surrounding function declares a `TypedPromise` error type and the thrown variable's type has no resolvable `_tag`. + - `uncovered-catch` no longer misattributes throws inside async closures (e.g. `setTimeout(async () => ...)`) to the outer try's catch. + - Published `LIMITATIONS.md` documenting patterns the rules can't detect, plus an 11-pattern torture-fixture corpus guarding the rules. + + Packaging: + + - Ship the previously-missing `README.md` (it was already listed in `files`). + - Derive `meta.version` from `package.json` at build time so it can no longer drift from the published version (was hardcoded `0.1.0`). + - Run tests as part of `prepublishOnly`. diff --git a/packages/eslint-plugin-faultline/package.json b/packages/eslint-plugin-faultline/package.json index c98eea2..e4af2a7 100644 --- a/packages/eslint-plugin-faultline/package.json +++ b/packages/eslint-plugin-faultline/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-faultline", - "version": "0.2.0", + "version": "0.3.0", "description": "ESLint rules for type-safe error handling — checks that catch blocks cover all throwable error types.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/faultline/CHANGELOG.md b/packages/faultline/CHANGELOG.md index 83011ce..0014dcf 100644 --- a/packages/faultline/CHANGELOG.md +++ b/packages/faultline/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 0.3.0 + +### Minor Changes + +- 7a010cc: Add `boundary.try(error)` — a non-throwing variant of a boundary that returns `Result` instead of throwing on an unmapped tag. Boundaries usually sit at a transport edge where an uncaught throw is costly; `.try()` lets you handle an unexpected (untyped/foreign) error tag as a value. Exposes the `BoundaryViolationError` type. +- 79611e7: The `faultline` package now ships the CLI (`npx faultline [path] [--json]`), previously the unpublished `faultline-cli` workspace package. `typescript` is an optional peer dependency used only by the CLI, which loads it on demand and explains how to install it when it is missing; the library entry points do not import it. +- 7a010cc: Redaction: support a `**` globstar segment in `redactPaths` to redact a key at any depth (e.g. `**.password`). Redaction paths are matched against the serialized error structure and a non-matching path is a silent no-op (it fails open), so `**.` is now the recommended form for sensitive keys — it can't silently miss a nested occurrence the way a brittle exact path can. Documented this behavior in the README and SECURITY.md. + + Also clarified (docs only, no behavior change): `attemptAsync`/`TaskResult` cancellation is cooperative — aborting short-circuits _subsequent_ steps and stops the caller waiting, but does not preempt in-flight work unless your function threads the `AbortSignal` through. And `defineBoundary` throws `System.BoundaryViolation` (preserving the original as cause) when an unmapped error tag reaches it. + +- 7a010cc: TaskResult cancellation, rejection safety, and API pruning. + + Breaking changes: + + - `TaskResult.toPromise()` removed. Use `.run()` instead — same signature. + - TaskResult chain methods (`.map`, `.andThen`, `.catchTag`, etc.) now widen their error union to include `System.Cancelled`. Exhaustive `match()` over a TaskResult needs a `'System.Cancelled'` handler or a `_` branch. + - `TaskResult.fromPromise` return type now widens to include `System.Unexpected`. Factory rejections are no longer unhandled — they are caught and wrapped as `System.Unexpected` with the original throw preserved as `.cause`. + + Added: + + - TaskResult chain steps check `context.signal?.aborted` between every step. Aborting the signal mid-pipeline short-circuits the remaining steps to `System.Cancelled` instead of running them to completion. + ## 0.1.0 Initial release. diff --git a/packages/faultline/package.json b/packages/faultline/package.json index c9f803f..2a48893 100644 --- a/packages/faultline/package.json +++ b/packages/faultline/package.json @@ -1,6 +1,6 @@ { "name": "faultline", - "version": "0.2.0", + "version": "0.3.0", "description": "The incremental type-safe error system for TypeScript.", "author": "Daniel Fry", "license": "MIT",