typebox-x

Tools for working with TypeBox

MIT License

Downloads
249
Stars
1
Committers
2

Bot releases are visible (Hide)

typebox-x - v1.3.0

Published by github-actions[bot] about 1 month ago

✨ Features

  • Add LiteralEnum variant for openapi 3.0 compatibility (3fc6916)
  • Add shouldDowngradeSchema to check if downgrade is needed (ff7e5a8)
  • Add downgrade if needed function (9d4131e)
  • Add function for enhancing errors (a225231)
  • Add function to check if schema has ids (fd7736a)
  • Add testing support (473ebf2)
  • nestjs: Include location and param name in validation errors (6a93792)
  • nestjs: Support providing a custom schema transforming function (cefde44)

🐛 Bug Fixes

  • Remove automatic conversion of intersection schemas to composite (dc73d50)

📚 Documentation

  • Add descriptions for all utility variants (077ce54)

♻️ Refactoring

  • Improve and cleanup downgrade schema logic (08da71f)

🚦 Test

  • Add tests for downgrade schema (af40cc3)

📦 Build

  • deps: Update all non-major dependencies (3cef649)
  • deps: Update typebox peer dependency constraints (53142fb)

Full Changelog: v1.2.0...v1.3.0

typebox-x - v1.2.0 Latest Release

Published by github-actions[bot] 3 months ago

✨ Features

  • Add required error factory function (8a683d0)
  • Add validation error factory function (a4b8393)
  • Downgrade constants to enums and recurse on unions (c89d36e)
  • Support coercing array path params (1133434)
  • Support disabling response validation (d92982c)
  • Support merging intersection schemas (620af8b)
  • Support setting required schemas (7704688)

🐛 Bug Fixes

  • Return encoded response value on validation error (453cf87)
  • Use 200 for delete responses (8e2eee5)

Full Changelog: v1.1.0...v1.2.0

typebox-x - v1.1.0

Published by github-actions[bot] 3 months ago

✨ Features

  • Add StringEnum utility (ddfd596)
  • Add additional formats (1d9577d)
  • Add original cause to validation error (718c01e)
  • Downgrade json schemas to be openapi 3.0 compatible (d38cfcf)
  • Support create customised request methods with defaults (f73b2e2)
  • Throw cleaner errors from env loader (bcf1133)

Full Changelog: v1.0.3...v1.1.0

typebox-x - v1.0.3

Published by github-actions[bot] 3 months ago

🐛 Bug Fixes

Full Changelog: v1.0.2...v1.0.3

typebox-x - v1.0.2

Published by github-actions[bot] 3 months ago

🐛 Bug Fixes

  • Avoid esm only validatorjs imports (2e6ecdf)

Full Changelog: v1.0.1...v1.0.2

typebox-x - v1.0.1

Published by github-actions[bot] 3 months ago

📚 Documentation

Full Changelog: v1.0.0...v1.0.1

typebox-x - v1.0.0

Published by github-actions[bot] 3 months ago

✨ Features

  • Add additional kind utils (9f931af)
  • Add env loader (0b0e4de)
  • Add nestjs integration (24f8523)
  • Add nestjs method decorators (661ba94)
  • Add typebox utils (54ad699)
  • formats: Add color-hex format (473ebc4)
  • nestjs: Add extended validation error (629bae6)
  • Strip error with empty path (32b77d2)

🐛 Bug Fixes

  • formats: Improve date-time validation (7f06dad)
  • Unable to extend namespace error (c1714bc)

⚡ Performance

  • Improve validatorjs bundling performance (1315d87)

📚 Documentation

🏗️ Chore

♻️ Refactoring

  • Move formats to top-level (cbe618a)

Full Changelog: ...v1.0.0