New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bedrock-validation

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bedrock-validation - npm Package Versions

2345

5.6.3

Diff
dlongley
published 5.6.3 •

Changelog

Source

5.6.3 - 2022-03-24

Fixed

  • Fix slow loading of schemas in same dir (load in parallel).
dlongley
published 5.6.2 •

Changelog

Source

5.6.2 - 2022-03-24

Fixed

  • Handle case that import schema has no default export.
dlongley
published 5.6.1 •

Changelog

Source

5.6.1 - 2022-03-24

Fixed

  • Update schemas to use esm style and esm.js to transpile to CommonJS.
dlongley
published 5.6.0 •

Changelog

Source

5.6.0 - 2022-03-23

Changed

  • Update peer deps:
    • bedrock@4.5.
  • Update internals to use esm style and use esm.js to transpile to CommonJS.
dlongley
published 5.5.0 •

Changelog

Source

5.5.0 - 2022-02-17

Added

  • Add createValidateMiddleware to create a more modern validate express-style middleware. This function has more clear name, simpler parameters, and ensures that the schemas used are compiled once. It requires schemas to be passed directly, a string identifying a schema may not be used.
dlongley
published 5.4.1 •

Changelog

Source

5.4.1 - 2022-02-10

Fixed

  • Ensure title is set on compiled function.
dlongley
published 5.4.0 •

Changelog

Source

5.4.0 - 2022-02-10

Added

  • Add compile() function to pre-compile a schema and return a function that outputs the same validation results as calling validateInstance.
dlongley
published 5.3.0 •

Changelog

Source

5.3.0 - 2022-02-10

Changed

  • Pre-compile schemas that are used in middlewares to prevent compiling on every request.
mattcollier
published 5.2.2 •

Changelog

Source

5.2.2 - 2021-12-15

Fixed

  • Fix bug in graphSignature schema causing it to be invalid.
mattcollier
published 5.2.1 •

Changelog

Source

5.2.1 - 2021-12-14

Fixed

  • Fix api.validate to throw error if schema does not exist instead of returning middleware that raises the error.