kofrasa/mingo (mingo)
### [`v6.4.15`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6415--2024-04-16)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.14...6.4.15)
**New**
- Support custom type comparison using `toString` when defined on the type.
### [`v6.4.14`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6414--2024-04-12-deprecated)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.13...6.4.14)
- ESM import broken. See [#437](https://togithub.com/kofrasa/mingo/issues/437)
### [`v6.4.13`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6413--2024-03-22)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.12...6.4.13)
**Update**
- Add support for `Query` condition to updater function.
### [`v6.4.12`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6412--2024-02-26)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.11...6.4.12)
**New**
- Autoload basic query operators and expression operators for boolean and comparison for use with `Updater`. [#413](https://togithub.com/kofrasa/mingo/issues/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](https://togithub.com/kofrasa/mingo/issues/420))
### [`v6.4.11`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6411--2024-02-24-deprecated)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.10...6.4.11)
**New**
- Autoload basic query operators and expression operators for boolean and comparison for use with `Updater`. [#413](https://togithub.com/kofrasa/mingo/issues/413)
- Add explicit `MingoError` type to represent errors caught by the library.
**Fixes**
- Add fix for Vitest. [#420](https://togithub.com/kofrasa/mingo/pull/420)
### [`v6.4.10`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6410--2023-12-20)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.9...6.4.10)
**Fixes**
- Support BigInt only when available on platform [#407](https://togithub.com/kofrasa/mingo/issues/407)
### [`v6.4.9`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#649--2023-11-12)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.8...6.4.9)
**New**
- Add support for accumulator and expression operators; `$percentile`, `$median`.
### [`v6.4.8`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#648--2023-10-21)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.7...6.4.8)
**Fixes**
- Minor refactoring improvements to fix build issues in some web frameworks.
### [`v6.4.7`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#647--2023-10-06)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.6...6.4.7)
**New**
- Add support for bitwise aggregation operators. `$bitAnd`, `$bitOr`,`$bitXor`,`$bitNot`.
- Add support for typed arrays in `isEqual`, `cloneDeep`, and `stringify`.
**Fixes**
- Build object graph for relevant update operators `$inc`,`$mul`,`$max`,`$min`,`$push`,`$bit`.
- Compare user-defined types with referential equality only with `isEqual`.
- Process user-defined types correctly with `stringify`.
- Properly handle cycles in `stringify` operation.
### [`v6.4.6`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#646--2023-10-02)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.5...6.4.6)
**Fixes**
- Support nested object query expressions for `$pull`. [373](https://togithub.com/kofrasa/mingo/issues/373)
### [`v6.4.5`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#645--2023-09-26)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.4...6.4.5)
**Fixes**
- Allow specifying only field expression for `$getField` operator.
- Make place argument optional for `$trunc` and `$round`. [347](https://togithub.com/kofrasa/mingo/issues/347)
- Add and default to new clone mode `copy` for UpdateOptions.
- Remove clone mode `structured` for UpdateOptions.
### [`v6.4.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#644--2023-08-13)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.3...6.4.4)
**Fixes**
- Fixed incorrect query normalization when a regex condition is specified as an object literal. [355](https://togithub.com/kofrasa/mingo/issues/355)
- Restore generic type annotations for top-level classes. [357](https://togithub.com/kofrasa/mingo/issues/357)
### [`v6.4.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#643--2023-06-28)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.2...6.4.3)
**Fixes**
- Fix rounding of even whole numbers. [347](https://togithub.com/kofrasa/mingo/issues/347)
### [`v6.4.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#642--2023-06-23)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.1...6.4.2)
**New**
- Add `Context` to enable isolated configurations of usable operators in the same runtime context.
### [`v6.4.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6415--2024-04-16)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.0...6.4.1)
**New**
- Support custom type comparison using `toString` when defined on the type.
### [`v6.4.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#640--2023-06-06)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.3.4...6.4.0)
**New**
- Added support for update operators accessible via `updateObject` from `mingo/updater`. Includes;
- Field Update Operators: `$currentDate`, `$inc`, `$max`, `$min`, `$mul`, `$set`, `$unset`, `$rename`.
- Array Update Operators: `$[]`, `$[]`, `$addToSet`, `$pop`, `$push`, `$pull`, `$pushAll`.
- Bitwise Update Operators: `$bit`.
### [`v6.3.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#634--2023-05-26)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.3.3...6.3.4)
**Fixes**
- Fixed hash collision resolution for `$sort` and `$group`. Closes [332](https://togithub.com/kofrasa/mingo/issues/332).
- Support MongoDB compatibility truth check for `$where` operator.
**Minor**
- Export `walk` util function.
- Flatten module exports to expose only `index` roots.
- Update dependencies.
### [`v6.3.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#633--2023-05-26-deprecated)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.3.2...6.3.3)
- Deprecated due to invalid operator imports.
### [`v6.3.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#632--2023-03-29)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.3.1...6.3.2)
**Fixes**
- Coerce empty string `""` to `true` for applicable operators when using strict MongoDB compatibility mode. [321](https://togithub.com/kofrasa/mingo/issues/321)
### [`v6.3.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#631--2023-03-28)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.3.0...6.3.1)
**Fixes**
- Fix `$filter` to properly handle truthy values. [320](https://togithub.com/kofrasa/mingo/issues/320)
- Fix `$arrayToObject` to flatten array before converting to objects.
### [`v6.3.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#630--2023-03-27)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.7...6.3.0)
**Fixes**
- Fix `$size` predicate failing when applied to undefined array. [313](https://togithub.com/kofrasa/mingo/issues/313)
- Fix `$min` and `$max` operators to consider type sorting order.
- Fix `$group` operator to enforce `_id` in spec.
- Fix variable propagation from parent to child expressions. [315](https://togithub.com/kofrasa/mingo/issues/315)
- Fix missing validations for `$setWindowFields` operator.
**New**
- Add support for `$locf` window operator.
- Add support for `$linearFill` window operator.
- Add support for `$fill` pipeline operator.
### [`v6.2.7`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#627--2023-01-12)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.6...6.2.7)
**Fixes**
- Ensure all variables are accessible in their local contexts. Closes [302](https://togithub.com/kofrasa/mingo/issues/302)
### [`v6.2.6`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#626--2023-01-12-deprecated)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.5...6.2.6)
**Fixes**
- Ensure all variables are accessible in their local contexts. Closes [302](https://togithub.com/kofrasa/mingo/issues/302)
### [`v6.2.5`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#625--2023-01-06)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.4...6.2.5)
**Fixes**
- ADD .json files to package.json files array ([#299](https://togithub.com/kofrasa/mingo/issues/299))
### [`v6.2.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#624--2023-01-06)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.3...6.2.4)
**Fixes**
- Include `package.json` in explicit module exports.
- Create `package.json` files for subpackages to support all ESM bundlers ([#298](https://togithub.com/kofrasa/mingo/issues/298))
### [`v6.2.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#623--2023-01-05)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.2...6.2.3)
**Fixes**
- Export all module paths explicitly for CommonJS and ES6 formats. Closes [295](https://togithub.com/kofrasa/mingo/issues/295).
### [`v6.2.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#622--2023-0105)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.1...6.2.2)
- Distribute package for both commongJS and as ES6 module.
### [`v6.2.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#621--2022-12-28)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.2.0...6.2.1)
**Fixes**
- Properly bind `$$this` when resolving fields using array operators. Closes [289](https://togithub.com/kofrasa/mingo/issues/289)
### [`v6.2.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#620--2022-12-16)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.1.3...6.2.0)
**New**
- Added array expression operators; `$maxN`, `$minN`, `$firstN`, `$lastN`, and `$sortArray`.
- Added accumulator operators; `$maxN`, `$minN`, `$first`, `$firstN`, `$last`, `$lastN`, `$top`, `$topN`, `$bottom`, and `$bottomN`.
- Added trignometry operators; `$cosh` and `$sinh`.
**Fixes**
- Correclt handle boundary values for trignometry functions.
- Nested arrays are projected correctly when excluded in results.
- Support MongoDB comparison sort order by data type.
### [`v6.1.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#613--2022-12-09)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.1.2...6.1.3)
**Fixes**
- Use correct context for resolving paths. Closes [284](https://togithub.com/kofrasa/mingo/issues/284)
- Support user-defined global variables.
### [`v6.1.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#612--2022-10-02)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.1.1...6.1.2)
**Fixes**
- Fix breaking change in `6.1.1`. Closes [274](https://togithub.com/kofrasa/mingo/issues/274)
- Fix `$dateToString` formatter `%V` to be week of year in ISO 8601 format (i.e. `01`-`53`)
- Fix `$dateToString` formatter `%u` to be day of week number in ISO 8601 format (i.e. `1`-`7`)
- Add `$dateToString` formatter `%U` for week of year.
### [`v6.1.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#611--2022-09-30)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.1.0...6.1.1)
**Fixes**
- Handle timezone correctly for `$dateToParts`. Closes [#256](https://togithub.com/kofrasa/mingo/issues/256)
### [`v6.1.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#610--2022-07-27)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.6...6.1.0)
**Fixes**
- Allow multiple expressions to `$ifNull` conditional.
**New**
- Added `$dateDiff` operator. See [#244](https://togithub.com/kofrasa/mingo/pull/244)
### [`v6.0.6`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#606--2022-04-29)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.5...6.0.6)
**Fixes**
- Correctly handle comparison of multiple deeply nested arrays. Fixes [#238](https://togithub.com/kofrasa/mingo/issues/238)
### [`v6.0.5`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#605--2022-02-24)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.4...6.0.5)
**Fixes**
- Handle timezone letters for `$dateFromString`. Fixes [#228](https://togithub.com/kofrasa/mingo/issues/228)
### [`v6.0.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#604--2022-02-09)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.3...6.0.4)
**Fixes**
- Handle hash collisions to correct behaviour of set operators; `setEqual`, `$setIntersection`, `$setIsSubset`, and `$setUnion`.
- Support arbitrary number of arrays in `$setIntersection`.
### [`v6.0.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#603--2022-02-03)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.2...6.0.3)
**Fixes**
- Remove use of `console.assert`. See [#226](https://togithub.com/kofrasa/mingo/pull/226)
- Remove deprecated `mingo/init` import.
### [`v6.0.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#602--2022-02-02)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.1...6.0.2)
**Fixes**
- Fix incorrect date bug when handling underflows in `dateFromParts`. See [#224](https://togithub.com/kofrasa/mingo/issues/224)
### [`v6.0.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#601--2022-02-01)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/6.0.0...6.0.1)
**Fixes**
- Fixed bug in `$dateFromParts` which incorrectly computes the dates for some input values. See [#223](https://togithub.com/kofrasa/mingo/pull/223).
### [`v6.0.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#600--2022-01-31)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/5.1.0...6.0.0)
**New**
- Add option `processingMode` to control input and output behaviour.
- Add option `scriptEnabled` to control whether to enable custom function operators; `$where`, `$function`, and `$accumulator`.
- Add new operator type `OperatorType.WINDOW`.
- Add aggregation expression operators;
- `$accumulator`
- `$function`
- `$getField`
- `$setField`
- `$unsetField`
- `$sampleRate`
- `$replaceOne`
- `$replaceAll`
- Add pipeline operators.
- `$setWindowFields`
- `$merge`
- `$unionWith`
- Add window operators for `$setWindowFields`.
- `$denseRank`
- `$derivative`
- `$documentNumber`
- `$expMovingAvg`
- `$integral`
- `$rank`
- `$shift`
- Add accumulator operators.
- `$count`
- `$covarianceSamp`
- `$covariancePop`
- Add support for `$$NOW` system variable.
- Add ISO date operators.
- `$isoWeek`
- `$isoWeekYear`
- `$isoDayOfWeek`
- Add support for `iso8601` option to `$dateToParts`.
- Add `useStrictMode` option to enable useful non-standard behaviour on specific operators.
- The `$elemMatch` projection operator return all matching nested documents instead when `useStrictMode` is `false`.
**Removed**
- Removed support for string function body in `$where` operator.
- Remove `addOperators` function.
- Removed `Collection` type.
**Fixes**
- Fixed computation bug in `$dateAdd` and `$dateSubtract` operators.
- Fix bug in `sortBy` which causes duplicate values.
- Fix ranking for duplicate values for `$denseRank` operator.
- Fix cursor navigation bugs.
- Fix timezone handling in `$dateToString` operator.
- Return list of single item for `$count` aggregation operator.
### [`v5.1.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#510--2022-01-28)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/5.0.0...5.1.0)
Changes not published. Updates moved to `6.0.0`.
### [`v5.0.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#500--2021-12-05)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.4.1...5.0.0)
Changes not published. Updates moved to `6.0.0`.
### [`v4.4.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#441--2021-11-16)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.4.0...4.4.1)
**Fixes**
- Remove `lodash` reference in expression operators.
### [`v4.4.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#440--2021-11-15)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.3.0...4.4.0)
**Features**
- Add bitwise query operators.
- `$bitsAllClear`
- `$bitsAllSet`
- `$bitsAnyClear`
- `$bitsAnySet`.
- Add `$jsonSchema` query operator.
### [`v4.3.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#430--2021-11-07)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.2.0...4.3.0)
**Features**
- Add `$rand` aggregation and query operator
**Fixes**
- Support arbitrary input expressions for date operators
- Use hash function for deep-equality check in `union` function
### [`v4.2.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#420--2021-09-26)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.1.5...4.2.0)
- Add array operators `$first` and `$last`.
- Add date operators `$dateAdd` and `$dateSubtract`.
### [`v4.1.5`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#415--2021-09-22)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.1.4...4.1.5)
- Fix regex not supported in `$all` query operator. [#190](https://togithub.com/kofrasa/mingo/issues/190)
- Fix behaviour of `$setUnion`. [#192](https://togithub.com/kofrasa/mingo/issues/192)
### [`v4.1.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#414--2021-08-06)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.1.3...4.1.4)
- Use context object in `$filter`.
### [`v4.1.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#413--2021-07-12)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.1.2...4.1.3)
- Add stronger type definitions for custom operators.
- Convert unit tests to Typescript.
- Update Typedocs.
### [`v4.1.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#412--2021-02-17)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.1.1...4.1.2)
- Fix `$unwind` incorrectly removing `0` value, by correcting behaviour of `isEmpty`
### [`v4.1.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#411--2021-01-31)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.1.0...4.1.1)
- Fix `$elemMatch` to support top-level boolean operators `$and`,`$or`, and `$nor`
### [`v4.1.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#410--2021-01-14)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/4.0.0...4.1.0)
**Features**
- Added trignometry operators.
- `$sin`
- `$cos`
- `$tan`
- `$asin`
- `$acos`
- `$atan`
- `$atan2`
- `$asinh`
- `$acosh`
- `$atanh`
- `$degreesToRadians`
- `$radiansToDegrees`
### [`v4.0.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#400--2021-01-07)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.1.0...4.0.0)
**Features**
- Added option `hashFunction` to enable custom hash functions
- Added `$unset` pipeline operator
- Added `$isNumber` expression operator
- Added option `collectionResolver` to resolve collections from names for use in supported operators. Closes [#150](https://togithub.com/kofrasa/mingo/issues/150)
- Removed `$where` operator from default query operators included at load time. Closes [#155](https://togithub.com/kofrasa/mingo/issues/155)
**Fixes**
- Support object type names with integer characters
**Other**
- Improved type annotations
- Added ES lint to ensure code quality
- Added Prettier to maintain consistent code format
### [`v3.1.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#310--2020-10-23)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.6...3.1.0)
- Fix `isObject` to enforce plain Javascript objects.
- Fix `collation` options of `$sort` operator
- Merge `Config` into `Options` type
- Pass `Options` to predicate function for comparison operators
- Replace `createConfig` with `makeOptions`
### [`v3.0.6`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#306--2020-08-05)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.5...3.0.6)
- Fix $bucket default and boundaries mutation. Fixes [#147](https://togithub.com/kofrasa/mingo/issues/147)
- Handle empty array values to `$not` expression operator.
### [`v3.0.5`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#305--2020-07-20)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.4...3.0.5)
- Handle non-array values to `$not` expression operator. Fixes [#146](https://togithub.com/kofrasa/mingo/issues/146)
### [`v3.0.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#304--2020-07-19)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.3...3.0.4)
- Deprecate `mingo/init` in favour of explicit `mingo/init/basic`.
### [`v3.0.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#303--2020-07-16)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.2...3.0.3)
- Remove `esm` module dependency. Fixes [#145](https://togithub.com/kofrasa/mingo/issues/145)
### [`v3.0.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#302--2020-05-22)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.1...3.0.2)
- `$map` operator operand 'as', should default to `this` if missing. Fixes [#143](https://togithub.com/kofrasa/mingo/pull/143)
### [`v3.0.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#301--2020-04-27)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/3.0.0...3.0.1)
- Throw exception for specifying unregistered operators
- Fix regression bug in `$elemMatch`. Closes [#139](https://togithub.com/kofrasa/mingo/issues/139)
### [`v3.0.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#300--2020-04-12)
[Compare Source](https://togithub.com/kofrasa/mingo/compare/2.5.3...3.0.0)
- Convert project to Typescript
- Build ES6 libraries with support for selective import
- Default export only `Aggregator`, `Query`, `aggregate()`, `find()`, and `remove()`
- Auto load only Query and Projection operators in main module via `mingo/init`
- Provide module `mingo/init/system` to auto load all operators
- Expose library via `esm` dependency to support module imports for ES5
- Implement type operators `$type`, `$convert`, `$toBool`, `$toDate`, `$toString`, `$toInt`, `$toLong`, `$toDouble`, `$toDecimal`
- Implement date operators `$dateFromString`, `$dateFromParts`, `dateToParts`.
- Implement string operators `$trim`, `$rtrim`, `$ltrim`, `$regexFind`, `$regexFindAll`, `$regexMatch`
- Add timezone support for all date operators
- Return all date operator results in UTC
- Split large expression operator groups to file per operator
- Rename `group` module to `accumulator`
- Removed `dist/` files. Deferring to consumers to use their own packaging solutions
- Removed `setup()` function. Replaced by passing in config to `Query` or `Aggregator`.
- Removed `VERSION` fields
- Removed `_internal()`
- Pass only `computeValue` and `resolve` functions to custom operator
- Deprecate and replace `OP_XXX` constants with enum `OperatorType.XXX`.
- Removed `CollectionMixin`
- Removed `Lazy`, `Cursor`, and `addOperators` from default export
- Support extra options parameter on all operator functions
Configuration
📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^2.2.2
->^6.0.0
Release Notes
kofrasa/mingo (mingo)
### [`v6.4.15`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6415--2024-04-16) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.14...6.4.15) **New** - Support custom type comparison using `toString` when defined on the type. ### [`v6.4.14`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6414--2024-04-12-deprecated) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.13...6.4.14) - ESM import broken. See [#437](https://togithub.com/kofrasa/mingo/issues/437) ### [`v6.4.13`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6413--2024-03-22) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.12...6.4.13) **Update** - Add support for `Query` condition to updater function. ### [`v6.4.12`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6412--2024-02-26) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.11...6.4.12) **New** - Autoload basic query operators and expression operators for boolean and comparison for use with `Updater`. [#413](https://togithub.com/kofrasa/mingo/issues/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](https://togithub.com/kofrasa/mingo/issues/420)) ### [`v6.4.11`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6411--2024-02-24-deprecated) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.10...6.4.11) **New** - Autoload basic query operators and expression operators for boolean and comparison for use with `Updater`. [#413](https://togithub.com/kofrasa/mingo/issues/413) - Add explicit `MingoError` type to represent errors caught by the library. **Fixes** - Add fix for Vitest. [#420](https://togithub.com/kofrasa/mingo/pull/420) ### [`v6.4.10`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6410--2023-12-20) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.9...6.4.10) **Fixes** - Support BigInt only when available on platform [#407](https://togithub.com/kofrasa/mingo/issues/407) ### [`v6.4.9`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#649--2023-11-12) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.8...6.4.9) **New** - Add support for accumulator and expression operators; `$percentile`, `$median`. ### [`v6.4.8`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#648--2023-10-21) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.7...6.4.8) **Fixes** - Minor refactoring improvements to fix build issues in some web frameworks. ### [`v6.4.7`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#647--2023-10-06) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.6...6.4.7) **New** - Add support for bitwise aggregation operators. `$bitAnd`, `$bitOr`,`$bitXor`,`$bitNot`. - Add support for typed arrays in `isEqual`, `cloneDeep`, and `stringify`. **Fixes** - Build object graph for relevant update operators `$inc`,`$mul`,`$max`,`$min`,`$push`,`$bit`. - Compare user-defined types with referential equality only with `isEqual`. - Process user-defined types correctly with `stringify`. - Properly handle cycles in `stringify` operation. ### [`v6.4.6`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#646--2023-10-02) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.5...6.4.6) **Fixes** - Support nested object query expressions for `$pull`. [373](https://togithub.com/kofrasa/mingo/issues/373) ### [`v6.4.5`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#645--2023-09-26) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.4...6.4.5) **Fixes** - Allow specifying only field expression for `$getField` operator. - Make place argument optional for `$trunc` and `$round`. [347](https://togithub.com/kofrasa/mingo/issues/347) - Add and default to new clone mode `copy` for UpdateOptions. - Remove clone mode `structured` for UpdateOptions. ### [`v6.4.4`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#644--2023-08-13) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.3...6.4.4) **Fixes** - Fixed incorrect query normalization when a regex condition is specified as an object literal. [355](https://togithub.com/kofrasa/mingo/issues/355) - Restore generic type annotations for top-level classes. [357](https://togithub.com/kofrasa/mingo/issues/357) ### [`v6.4.3`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#643--2023-06-28) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.2...6.4.3) **Fixes** - Fix rounding of even whole numbers. [347](https://togithub.com/kofrasa/mingo/issues/347) ### [`v6.4.2`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#642--2023-06-23) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.1...6.4.2) **New** - Add `Context` to enable isolated configurations of usable operators in the same runtime context. ### [`v6.4.1`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#6415--2024-04-16) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.4.0...6.4.1) **New** - Support custom type comparison using `toString` when defined on the type. ### [`v6.4.0`](https://togithub.com/kofrasa/mingo/blob/HEAD/CHANGELOG.md#640--2023-06-06) [Compare Source](https://togithub.com/kofrasa/mingo/compare/6.3.4...6.4.0) **New** - Added support for update operators accessible via `updateObject` from `mingo/updater`. Includes; - Field Update Operators: `$currentDate`, `$inc`, `$max`, `$min`, `$mul`, `$set`, `$unset`, `$rename`. - Array Update Operators: `$[]`, `$[Configuration
📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.