Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency mingo to v6 #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 1, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mingo ^2.2.2 -> ^6.0.0 age adoption passing confidence

Release Notes

kofrasa/mingo (mingo)

v6.4.15

Compare Source

New

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

v6.4.14

Compare Source

v6.4.13

Compare Source

Update

  • Add support for Query condition to updater function.

v6.4.12

Compare Source

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)

v6.4.11

Compare Source

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

v6.4.10

Compare Source

Fixes

  • Support BigInt only when available on platform #​407

v6.4.9

Compare Source

New

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

v6.4.8

Compare Source

Fixes

  • Minor refactoring improvements to fix build issues in some web frameworks.

v6.4.7

Compare Source

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

Compare Source

Fixes

  • Support nested object query expressions for $pull. 373

v6.4.5

Compare Source

Fixes

  • Allow specifying only field expression for $getField operator.
  • Make place argument optional for $trunc and $round. 347
  • Add and default to new clone mode copy for UpdateOptions.
  • Remove clone mode structured for UpdateOptions.

v6.4.4

Compare Source

Fixes

  • Fixed incorrect query normalization when a regex condition is specified as an object literal. 355
  • Restore generic type annotations for top-level classes. 357

v6.4.3

Compare Source

Fixes

  • Fix rounding of even whole numbers. 347

v6.4.2

Compare Source

New

  • Add Context to enable isolated configurations of usable operators in the same runtime context.

v6.4.1

Compare Source

New

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

v6.4.0

Compare Source

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: $[], $[<identifier>], $addToSet, $pop, $push, $pull, $pushAll.
    • Bitwise Update Operators: $bit.

v6.3.4

Compare Source

Fixes

  • Fixed hash collision resolution for $sort and $group. Closes 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

Compare Source

  • Deprecated due to invalid operator imports.

v6.3.2

Compare Source

Fixes

  • Coerce empty string "" to true for applicable operators when using strict MongoDB compatibility mode. 321

v6.3.1

Compare Source

Fixes

  • Fix $filter to properly handle truthy values. 320
  • Fix $arrayToObject to flatten array before converting to objects.

v6.3.0

Compare Source

Fixes

  • Fix $size predicate failing when applied to undefined array. 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
  • 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

Compare Source

Fixes

  • Ensure all variables are accessible in their local contexts. Closes 302

v6.2.6

Compare Source

Fixes

  • Ensure all variables are accessible in their local contexts. Closes 302

v6.2.5

Compare Source

Fixes

  • ADD .json files to package.json files array (#​299)

v6.2.4

Compare Source

Fixes

  • Include package.json in explicit module exports.
  • Create package.json files for subpackages to support all ESM bundlers (#​298)

v6.2.3

Compare Source

Fixes

  • Export all module paths explicitly for CommonJS and ES6 formats. Closes 295.

v6.2.2

Compare Source

  • Distribute package for both commongJS and as ES6 module.

v6.2.1

Compare Source

Fixes

  • Properly bind $$this when resolving fields using array operators. Closes 289

v6.2.0

Compare Source

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

Compare Source

Fixes

  • Use correct context for resolving paths. Closes 284
  • Support user-defined global variables.

v6.1.2

Compare Source

Fixes

  • Fix breaking change in 6.1.1. Closes 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

Compare Source

Fixes

  • Handle timezone correctly for $dateToParts. Closes #​256

v6.1.0

Compare Source

Fixes

  • Allow multiple expressions to $ifNull conditional.

New

  • Added $dateDiff operator. See #​244

v6.0.6

Compare Source

Fixes

  • Correctly handle comparison of multiple deeply nested arrays. Fixes #​238

v6.0.5

Compare Source

Fixes

  • Handle timezone letters for $dateFromString. Fixes #​228

v6.0.4

Compare Source

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

Compare Source

Fixes

  • Remove use of console.assert. See #​226
  • Remove deprecated mingo/init import.

v6.0.2

Compare Source

Fixes

  • Fix incorrect date bug when handling underflows in dateFromParts. See #​224

v6.0.1

Compare Source

Fixes

  • Fixed bug in $dateFromParts which incorrectly computes the dates for some input values. See #​223.

v6.0.0

Compare Source

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

Compare Source

Changes not published. Updates moved to 6.0.0.

v5.0.0

Compare Source

Changes not published. Updates moved to 6.0.0.

v4.4.1

Compare Source

Fixes

  • Remove lodash reference in expression operators.

v4.4.0

Compare Source

Features

  • Add bitwise query operators.
    • $bitsAllClear
    • $bitsAllSet
    • $bitsAnyClear
    • $bitsAnySet.
  • Add $jsonSchema query operator.

v4.3.0

Compare Source

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

Compare Source

  • Add array operators $first and $last.
  • Add date operators $dateAdd and $dateSubtract.

v4.1.5

Compare Source

  • Fix regex not supported in $all query operator. #​190
  • Fix behaviour of $setUnion. #​192

v4.1.4

Compare Source

  • Use context object in $filter.

v4.1.3

Compare Source

  • Add stronger type definitions for custom operators.
  • Convert unit tests to Typescript.
  • Update Typedocs.

v4.1.2

Compare Source

  • Fix $unwind incorrectly removing 0 value, by correcting behaviour of isEmpty

v4.1.1

Compare Source

  • Fix $elemMatch to support top-level boolean operators $and,$or, and $nor

v4.1.0

Compare Source

Features

  • Added trignometry operators.
    • $sin
    • $cos
    • $tan
    • $asin
    • $acos
    • $atan
    • $atan2
    • $asinh
    • $acosh
    • $atanh
    • $degreesToRadians
    • $radiansToDegrees

v4.0.0

Compare Source

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
  • Removed $where operator from default query operators included at load time. Closes #​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

Compare Source

  • 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

Compare Source

  • Fix $bucket default and boundaries mutation. Fixes #​147
  • Handle empty array values to $not expression operator.

v3.0.5

Compare Source

  • Handle non-array values to $not expression operator. Fixes #​146

v3.0.4

Compare Source

  • Deprecate mingo/init in favour of explicit mingo/init/basic.

v3.0.3

Compare Source

  • Remove esm module dependency. Fixes #​145

v3.0.2

Compare Source

  • $map operator operand 'as', should default to this if missing. Fixes #​143

v3.0.1

Compare Source

  • Throw exception for specifying unregistered operators
  • Fix regression bug in $elemMatch. Closes #​139

v3.0.0

Compare Source

  • 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 was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants