Back to Explore

fastify/fastify-error

GitHub
1 watchersOpen source

Last release:

@fastify/error is a small utility used by Fastify to generate consistent error objects across your codebase and plugins. It exports a function to create custom error constructors with a standardized code, message (optionally with string interpolation), and optional status code, base error type, and stack trace capture.

Project status

  • The repository appears to be actively worked on (GitHub push on 2026-08-07), but the most recent tagged published update in the provided data is v4.2.0 from 2025-06-01.
  • Update cadence looks moderate, with v4.1.0 on 2025-03-12 and v4.2.0 on 2025-06-01 (about 3 months), while earlier updates were much farther apart (v4.0.0 on 2024-06-23 to v4.1.0 on 2025-03-12, roughly 9 months).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.2.0

    v4.2.0 introduces a new instanceof implementation for errors created by @fastify/error, intended to make instanceof checks behave correctly. It also includes CI workflow permission tweaks and a dev dependency bump for tsd.

    Features
  • v4.1.0

    v4.1.0 primarily introduces a new optional `captureStackTrace` parameter to the exported `createError` factory, allowing callers to control whether stack traces are captured. The release also updates development and CI tooling (test runner, coverage, linting, and workflow version) plus some minor housekeeping changes.

    Features
  • v4.0.0

    Release v4.0.0 primarily updates development tooling and housekeeping. The code diff shows changes limited to CI workflow configuration, .gitignore, and devDependency version bumps, with no runtime source-code changes.