UNPKG

fastify-http-errors-enhanced

Version:

A error handling plugin for Fastify that uses enhanced HTTP errors.

242 lines (138 loc) 4.43 kB
### 2024-12-28 / 6.0.1 - chore: Updated dependencies. ### 2024-10-21 / 6.0.0 - feat!: Dropped support for Node 18 and updated dependencies. - fix: Replicate AJV options in response validator. Fixes #9. - fix: Remove leftover. ### 2024-04-12 / 5.0.4 - chore: Updated dependencies. - chore: Added missing dependency. ### 2024-02-07 / 5.0.3 - chore: Updated dependencies. - chore: Linted code. - chore: Replaced tap with Node test runner. ### 2024-01-27 / 5.0.2 - chore: Updated dependencies. ### 2024-01-24 / 5.0.1 - chore: Updated TypeScript configuration. ### 2023-12-20 / 5.0.0 - chore: Updated dependencies. - chore: Changed TypeScript version. ### 2023-10-23 / 4.3.0 - chore: Updated dependencies and toolchain. ### 2023-10-06 / 4.2.0 - feat: Added use422ForValidationErrors. - chore: Fixed compilation. ### 2022-12-30 / 4.1.0 - feat: Allow skipping setNotFoundHandler. - chore: CI improvement ### 2022-11-23 / 4.0.6 - chore: Updated dependencies. - chore: Update package.json - fix: Fixed build script. ### 2022-10-12 / 4.0.5 - chore: Updated dependencies. ### 2022-10-12 / 4.0.4 - fix: Updated types layout. ### 2022-08-31 / 4.0.3 - chore: Updated dependencies. - chore: Updated compilation configuration. ### 2022-08-30 / 4.0.2 - chore: Updated dependencies. ### 2022-08-30 / 4.0.1 - fix: Improved README. ### 2022-08-30 / 4.0.0 - feat: Updated to fastify 4. ### 2022-07-18 / 3.1.0 - fix: Fixed assertion. - chore: Updated dependencies. - feat: Added preHandler option. - chore: Use sourcemaps with swc ### 2022-03-07 / 3.0.6 - fix: Fixed build. ### 2022-03-07 / 3.0.5 - chore: Updated dependencies. ### 2022-03-07 / 3.0.4 - fix: Added missing files. - chore: Updated build system. ### 2022-01-26 / 3.0.3 - chore: Updated dependencies and linted code. - chore: Updated dependencies. - chore: Removed useless file. ### 2021-11-17 / 3.0.2 ### 2021-11-16 / 3.0.1 - fix: Added ESM note in the README.md - chore: Allow manual CI triggering. - chore: Updated badges. - fix: Fixed Typescript configuration. - chore: Fixed README. ### 2021-08-16 / 3.0.0 - chore: Updated README ### 2021-08-14 / 3.0.0-beta.0 - feat: Only export as ESM. ### 2021-01-14 / 2.9.1 - fix: Added uri format message. ### 2021-01-11 / 2.9.0 - feat: Added responseValidatorCustomizer. - chore: Fine tuned build script. ### 2021-01-04 / 2.8.0 - feat: Export as ESM. ### 2021-01-03 / 2.7.0 - fix: Allow example keyword in AJV. ### 2021-01-03 / 2.6.1 - chore: Updated linter config. ### 2021-01-02 / 2.6.0 - feat: Updated dependencies. ### 2021-01-02 / 2.5.0 - chore: Updated dependencies, code and tools. ### 2020-12-29 / 2.4.1 - fix: Avoid shared decorator data. ### 2020-12-07 / 2.4.0 - chore: Update dependencies. ### 2020-12-06 / 2.3.1 - fix: Consider schema encapsulation. ### 2020-12-06 / 2.3.0 - feat: Support shared schema in responses validation. ### 2020-12-05 / 2.2.1 - chore: Update dependencies. ### 2020-11-30 / 2.2.0 - feat: Merge pull request #4 from ShogunPanda/undeclared-response - chore: Fix CI. - feat: Add allowUndeclaredResponses option. ### 2020-11-30 / 2.1.0 - feat: Output code property when it doesn't start with standard prefix. - chore: Updated README. ### 2020-11-22 / 2.0.0 - feat: Renamed to `fastify-http-errors-enhanced`. - feat: Dropped all error related depedencies in favor of `http-errors-enhanced`. - feat: Removed `addAdditionalProperties` and `serializeError` which can now be found in `http-errors-enhanced`. ### 2020-09-28 / 1.0.0 - feat: Updated to fastify 3.x.x. - chore: Updated CI configuration. ### 2020-03-09 / 0.7.0 - feat: Improve types, only support Node LTS, replaced jest with tap. ### 2020-03-07 / 0.6.1 - feat: Export serializeError. - chore: Remove leftover. ### 2020-01-08 / 0.6.0 - fix: Allow CommonJS default import. Fixes #1. ### 2019-12-30 / 0.5.0 - feat: Drop lodash dependencies. ### 2019-12-21 / 0.4.1 - feat: Improve response validation. - chore: Minor change. ### 2019-11-26 / 0.4.0 - feat: Updated docs. - feat: Added response validation. ### 2019-11-20 / 0.3.0 - chore: Include yarn.lock in repo. - chore: Minor CI fix. - chore: Switch to GitHub Actions. - fix: Improved validation handling. ### 2019-11-19 / 0.2.0 - feat: Added validation errors handling. ### 2019-11-19 / 0.1.1 - chore: Fixed documentation. ### 2019-11-19 / 0.1.0 - chore: Rebuild. - feat: Extract errors to another module.