Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mingo

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mingo - npm Package Versions

23
15

6.5.1

Diff

Changelog

Source

6.5.1 / 2024-12-07

Improvements

  • Export default update function and factory in module index.
  • Improve performance of $bucketAuto by removing excessive hashing.
  • Simplify API for adding operators in Context class.
  • Renamed updateObject(..) to update(..).
  • Remove optimistic string representation on custom type without explicit toString() method.
  • Expression operator $type returns "regexp" instead of "regex" when useStrictMode=false.

Fixes

  • Use MongoDB comparator for $cmp.
kofrasa
published 6.5.0 •

Changelog

Source

6.5.0 / 2024-11-27

New

  • Added $densify pipeline stage operator.
  • Added $graphLookup pipeline stage operator.
  • Added $dateTrunc expression operator.
  • Support $lookup by array and sub-queries with nested pipeline.
  • Support granularity option in $bucketAuto.
  • Add Olson timezone support for date operators.
  • Expression operator $type uses JS type names when useStrictMode=false or MongoDB type names otherwise.
    • Types in non-strict mode: "undefined","boolean", and "number".
    • Types in strict mode: "missing", "bool", "int", "long", and "double".
  • Renamed AnyVal -> Any and RawObject -> AnyObject.

Fixes

  • Implement $dateDiff to be consistent with MongoDB.
  • Handle null inputs to $objectToArray,$setUnion,$map,$zip, and $filter.
  • Pass parent variables down to nested expressions.
  • Include idKey for $project when no other fields are selected.
  • Removed caching of current timestamp for $$NOW variable in options.
  • Handle date inputs for $subtract operator.
  • Improve input validations for $first, $last, and $ifNull.
  • Update implementation of $min and $max to be consistent with new behaviour in latest MongoDB.
kofrasa
published 6.4.15 •

Changelog

Source

6.4.15 / 2024-04-16

New

  • Support custom type comparison using toString when defined on the type.
kofrasa
published 6.4.14 •

Changelog

Source

6.4.14 / 2024-04-12 (deprecated)

  • ESM import broken. See #437
kofrasa
published 6.4.13 •

Changelog

Source

6.4.13 / 2024-03-22

Update

  • Add support for Query condition to updater function.
kofrasa
published 6.4.12 •

Changelog

Source

6.4.12 / 2024-02-26

New

  • Autoload basic query operators and expression operators for boolean and comparison for use with Updater. #413
  • Add explicit MingoError type to represent errors caught by the library.

Fixes

  • Revert "add import field to built package.json file to ensure proper vitest resolution (#420)
kofrasa
published 6.4.11 •

Changelog

Source

6.4.11 / 2024-02-24 (deprecated)

New

  • Autoload basic query operators and expression operators for boolean and comparison for use with Updater. #413
  • Add explicit MingoError type to represent errors caught by the library.

Fixes

  • Add fix for Vitest. #420
kofrasa
published 6.4.10 •

Changelog

Source

6.4.10 / 2023-12-20

Fixes

  • Support BigInt only when available on platform #407
kofrasa
published 6.4.9 •

Changelog

Source

6.4.9 / 2023-11-12

New

  • Add support for accumulator and expression operators; $percentile, $median.
kofrasa
published 6.4.8 •

Changelog

Source

6.4.8 / 2023-10-21

Fixes

  • Minor refactoring improvements to fix build issues in some web frameworks.
23
15
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc