Skip to content

Releases: furey/mongodb-lens

v9.1.4

23 Apr 00:44
Compare
Choose a tag to compare
no message

v9.1.3

14 Apr 06:50
Compare
Choose a tag to compare
no message

v9.1.0

07 Apr 15:06
Compare
Choose a tag to compare

🍃🔎 MongoDB Lens v9.1.0

Features

  • Selective Component Enabling: Added ability to explicitly specify which components (tools, prompts, resources) should be enabled, implicitly disabling all others via the new enabled configuration option.

Improvements

  • Data Flow Documentation: Added comprehensive explanation of how data flows through the system when using MongoDB Lens with remote LLM providers, including diagrams and best practices for protecting sensitive data.
  • Legacy Connection Options Removed: Removed deprecated MongoDB connection options (useNewUrlParser and useUnifiedTopology) which are no longer needed with modern MongoDB driver versions.

v9.0.2

03 Apr 22:56
Compare
Choose a tag to compare
no message

v9.0.0

03 Apr 15:09
Compare
Choose a tag to compare

🍃🔎 MongoDB Lens v9.0.0

Significant Changes

  • MongoDB Driver Upgrade: Upgraded the underlying mongodb Node.js driver from v3.x to v6.x. While efforts were made to maintain compatibility, this is a major version jump and could introduce subtle behavioral changes. Please test thoroughly.
  • Removed map-reduce Tool: The deprecated map-reduce tool and its associated functionality have been completely removed from MongoDB Lens. Users should migrate to the Aggregation Framework (aggregate-data tool). Corresponding documentation and examples have also been removed.

Features

  • Comprehensive Test Suite: Introduced a full test suite (mongodb-lens.test.js) covering tools, resources, and prompts. This improves code quality and provides a way to verify functionality. See the updated README for instructions on running tests (npm test, npm run test:localhost, npm run test:in-memory, etc.) and filtering options (--test, --group, --pattern).
  • EJSON Input Support: Tool arguments accepting JSON strings now correctly parse MongoDB Extended JSON (EJSON) types (e.g. ObjectId(...), ISODate(...), { "$date": "..." }).

Improvements

  • Standardized Error Handling: Implemented a consistent error handling mechanism (withErrorHandling) across most tools, providing more robust and uniform error messages.
  • Graceful Schema Inference for Empty Collections: The analyze-schema tool and related functions now handle empty collections gracefully, returning a minimal schema structure instead of throwing an error.
  • Dockerfile Optimization: The Dockerfile now uses npm ci --production, installing only production dependencies, resulting in a smaller final Docker image.
  • Robust Health Check Prompt: The database-health-check prompt is more resilient, handling potential errors during data fetching (e.g. schema inference on empty collections, permission errors for user listing) without failing.
  • Improved Performance Metrics Formatting: The output for performance metrics (especially long-running operations and slow queries) is now more concise and robust against missing data points.
  • Node.js Compatibility: Lowered the minimum required Node.js version from v22 to v18, broadening compatibility.
  • Code Cleanup: Various minor internal code refactorings and cleanups.

Dependencies

  • Upgraded mongodb driver to v6.15.0 (from v3.7.4).
  • Upgraded @modelcontextprotocol/sdk to v1.8.0 (from v1.6.1).
  • Added mongodb-memory-server as a dev dependency for the new test suite.

v8.1.2

01 Apr 15:55
Compare
Choose a tag to compare
no message

v8.1.0

01 Apr 08:31
Compare
Choose a tag to compare

🍃🔎 MongoDB Lens v8.1.0

Cache Management

  • New Tool: clear-cache for refreshing memory caches on demand
  • Field Caching: Dedicated cache for field lists with configurable TTL
  • Automatic Invalidation: Smart cache invalidation when collections are modified

Connection Handling

  • URI Enhancement: Automatic protocol detection for simplified connection strings
  • Improved Validation: Better handling of database names vs connection URIs

Performance Optimizations

  • Efficient JSON Parsing: Centralized, error-handled JSON parsing functionality
  • Memory Management: Improved cache clearing during high memory pressure events
  • Related Cache Invalidation: Targeted cache clearing after write operations

Stability Improvements

  • Transaction Handling: Proper cache invalidation after transactions
  • Error Resilience: Better handling of malformed user input

v8.0.4

01 Apr 00:45
Compare
Choose a tag to compare
no message

v8.0.3

29 Mar 14:21
Compare
Choose a tag to compare
no message

v8.0.1

29 Mar 06:38
Compare
Choose a tag to compare
no message