v8.0.0
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 tofalse
and returns an error when the query includes$regex
options.access
no longer accepts a callback and be can anasync
function instead (or a function that returns aPromise
)- Removed
defaults
method: apps should define default options and spread them intoserve
options