Skip to content

Bump fastify-utils from 0.0.1 to 0.0.2#15

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fastify-utils-0.0.2
Open

Bump fastify-utils from 0.0.1 to 0.0.2#15
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fastify-utils-0.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 29, 2026

Bumps fastify-utils from 0.0.1 to 0.0.2.

Release notes

Sourced from fastify-utils's releases.

0.0.2

What's new

Flat validation error response

ValidationErrorHandler now returns a single human-readable message string instead of a structured errors array. This simplifies client-side error handling — no array traversal needed.

Before

{
    "code": "SCHEMA_VALIDATION_ERROR",
    "message": "Validation failed for body",
    "errors": [
        { "field": "email", "message": "must be string", "keyword": "type", "received": 123 }
    ]
}

After

{
    "code": "SCHEMA_VALIDATION_ERROR",
    "statusCode": 400,
    "error": "Bad Request",
    "message": "Schema validation failed for body: email: must be string"
}

ValidationErrorResponse updated

TypeBox schema updated to reflect the new response shape — statusCode and error fields added, errors array removed.


Breaking changes

  • ValidationErrorItem schema removed — no longer exported.
  • ValidationErrorResponse shape changed — update any response schema references.
  • Error message format changed from "Validation failed for {path}" to "Schema validation failed for {path}: ...".

Internal changes

  • AjvErrorObject internal type removed; errors are now typed via SchemaValidationError interface.
  • ErrorsByPath interface added for internal error grouping.
  • Dependencies moved from peerDependencies to dependenciesfastify, typebox, and @fastify/error are now bundled.
  • Updated packageManager to pnpm@11.2.2.

... (truncated)

Commits
  • d6613c2 feat: update validation error response structure and improve README installat...
  • b4ee40a feat: refine validation error handling and response structure
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [fastify-utils](https://github.com/xcfio/fastify-utils) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/xcfio/fastify-utils/releases)
- [Commits](xcfio/fastify-utils@0.0.1...0.0.2)

---
updated-dependencies:
- dependency-name: fastify-utils
  dependency-version: 0.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants