Skip to content

v8.0.0

Compare
Choose a tag to compare
@Zertz Zertz released this 02 Oct 13:41
· 32 commits to main since this release

Re-written in TypeScript, hopefully with very few disruptive breaking changes.

Build output is ESM first (import { serve } from "express-restify-mongoose") but CJS is also supported (const { serve } = require("express-restify-mongoose/cjs"))

Breaking changes

  • allowRegex now defaults to false and returns an error when the query includes $regex
  • options.access no longer accepts a callback and be can an async function instead (or a function that returns a Promise)
  • Removed defaults method: apps should define default options and spread them into serve options