Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ celebrate lists joi as a formal dependency. This means that celebrate will alway

celebrate is tested and has full compatibility with express 4 and 5. It likely works correctly with express 3, but including it in the test matrix was more trouble than it's worth. This is primarily because express 3 exposes route parameters as an array rather than an object.

## 16.x breaking changes

celebrate 16 ships as a native ES module. `require('celebrate')` is no longer supported — use `import` syntax instead. The minimum supported Node version is unchanged at 20+.

## Example Usage

Example of using celebrate on a single POST route to validate `req.body`.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:local": "node --test --watch test/*.test.js",
"test:ci": "c8 --reporter=lcov --reporter=text --100 node --test test/*.test.js",
"benchmark": "node utils/benchmark",
"toc": "node utils/generate-toc",
"toc": "markdown-toc-gen insert README.md",
"version": "npm run toc && git add README.md"
},
"repository": {
Expand All @@ -40,7 +40,7 @@
"homepage": "https://github.com/arb/celebrate#readme",
"dependencies": {
"escape-html": "1.0.3",
"joi": "18.1.x",
"joi": "18.x.x",
"lodash.curry": "4.1.x",
"lodash.flip": "4.2.x"
},
Expand All @@ -56,7 +56,7 @@
"express": "5.x.x",
"globals": "16.x.x",
"is-ci-cli": "2.x.x",
"markdown-toc": "1.x.x",
"markdown-toc-gen": "1.x.x",
"neostandard": "0.x.x",
"tinybench": "5.x.x"
}
Expand Down
21 changes: 0 additions & 21 deletions utils/generate-toc.js

This file was deleted.

Loading