Files
smartmongo/readme.hints.md

446 B

Project Hints

Deno Compatibility

mongodb-memory-server Import

  • The package uses a default import for mongodb-memory-server in ts/smartmongo.plugins.ts
  • Syntax: import mongoPlugin from 'mongodb-memory-server';
  • This works in both Node.js and Deno environments
  • Why: Deno wraps CommonJS exports in a default property, so default imports are required
  • Fixed in version 2.0.13 (changed from import * as mongoPlugin)