Skip to content

chore(repo): version packages#319

Merged
HugoRCD merged 1 commit into
mainfrom
changeset-release/main
May 5, 2026
Merged

chore(repo): version packages#319
HugoRCD merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 4, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

evlog@2.16.0

Minor Changes

  • #318 8080662 Thanks @HugoRCD! - Add an optional code field to createError / EvlogError so structured errors can carry a stable, machine-readable identifier for client branching, dashboards, and future error-catalog tooling. Foundation for an upcoming defineErrorCatalog primitive.

    import { createError, parseError } from "evlog";
    
    throw createError({
      code: "PAYMENT_DECLINED",
      message: "Payment failed",
      status: 402,
      why: "Card declined by issuer",
      fix: "Try a different payment method",
    });
    
    // Client
    const err = parseError(caught);
    if (err.code === "PAYMENT_DECLINED") retryWithDifferentCard();

    code is public and propagates through every existing serialization path with no breaking change:

    • HTTP responses — surfaces under data.code via the existing EvlogError.data getter (Nitro v2/v3, Next.js, and any framework using serializeEvlogErrorResponse get it for free).
    • parseError(err) — new code field on ParsedError. Extracted from EvlogError JSON, h3-style data.code, and Node-style Error.code (e.g. 'ENOENT', 'ECONNRESET') so existing system errors flow through the same client branch.
    • Wide events — copied onto event.error.code so drains and dashboards can group, alert, and chart by code without parsing free-text messages.
    • toString() — renders a Code: line for terminal pretty-print.

    Out of scope here (planned next): defineErrorCatalog for centralized typed code unions, plus the equivalent for audit actions.

evlog-community-adapter-skeleton@2.0.0

Patch Changes

  • Updated dependencies [8080662]:
    • evlog@2.16.0

evlog-community-enricher-skeleton@2.0.0

Patch Changes

  • Updated dependencies [8080662]:
    • evlog@2.16.0

evlog-community-framework-skeleton@2.0.0

Patch Changes

  • Updated dependencies [8080662]:
    • evlog@2.16.0

@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment, Open in v0 May 5, 2026 1:02pm
just-use-evlog Ready Ready Preview, Comment May 5, 2026 1:02pm

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 4656f9d to 2bf1e35 Compare May 5, 2026 13:00
@HugoRCD HugoRCD merged commit c3d7860 into main May 5, 2026
4 checks passed
@HugoRCD HugoRCD deleted the changeset-release/main branch May 5, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant