Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Latest commit

 

History

History
288 lines (200 loc) · 7.64 KB

CHANGELOG.md

File metadata and controls

288 lines (200 loc) · 7.64 KB

0.26.7

  • Add exports to package.json so node knows which version of the code to import
  • Make sure default exports work when using this library from CommonJS

0.26.6

  • Fix some default imports/exports

0.26.5

  • Move type.js file into source

0.26.4

  • Use yarn
  • Use eslint to build source
  • Convert package to ESM

0.26.3

  • Add code coverage to danger

0.26.2

  • Update pull-request workflow to better catch test failures

0.26.1

  • Converted the tests to jest

0.26.0

  • Make sure facet type uses options filter(s) (if any) for cardinality query

0.25.2

  • Updated peerDependency to reflect current requirement

0.25.1

  • Updated CI to use node16 and npm7
  • Updated package-lock.json to version 2

0.25.0

  • Add debug calls to track request/response queries via the contexture:mongo namespace.

0.24.0

  • Change facet type optionsFilter to $and all words by doing a $regex match for each word as opposed to all words at once

0.23.0

  • Add last 1 Day and last 1 hour to date math calculations

0.22.4

  • Changed over CI from CircleCI to Github Actions

0.22.4

  • fix bug when populate is restricting what fields (specifically when the include has dotted object fields when the schema only has the parent object) to return from the looked up record based on the include provided

0.22.3

  • fix bug when populate is restricting what fields (specifically when the include has nested object fields) to return from the looked up record based on the include provided

0.22.2

  • fix the bug the response of facet remove the 0 value name option ( compactObject consider it as a false value ).

0.22.1

  • [Results] further improved as-aware checkPopulate

0.22.0

  • [Results] Don't run checkPopulate function on results nodes when include is missing or empty

0.21.1

  • Fix the bug when converting the 'as' attribute to the $lookup 'as' prop
  • Fix the wrong throw when includes an empty array and schema contains the valid fields

0.21.0

  • support converting the 'as' attribute to the $lookup 'as' prop

0.20.0

  • [Results] check populate localField props for coherence with node includes

0.19.2

  • [Results] imporove performance when includes are present on a results node populate

0.19.1

  • [Results] fix populate include bug (missing $ prefix on localField)

0.19.0

  • [Results] add include support on populate config
  • [Results] default foreignField to _id if not provided

0.18.0

  • add next18Months rolling date type options

0.17.5

  • Sort early when "hasMany" is set on a "populate" field, but we are not sorting on a joined field

0.17.4

  • Fix for count query when has many is present on a "populate" field

0.17.3

  • Add populate field option to indicate that the join field has many records and adjust sort, skip, limit order in aggregation pipeline

0.17.2

  • Fix searching bug when label.fields is undefined for facet type
  • Fix boolean values zero count search bug for facet type

0.17.1

  • Fix the missing select values bug for facet type

0.17.0

  • Add more rolling date types.

0.16.0

  • Support passing a timezone for rolling dates.
  • NOTE: Passing datemath expressions is no longer supported.

0.15.0

  • Support for bool example type and tests
  • Updated 'hasValue` for the exists type and added tests for it

0.14.2

  • Add tests for facet pipeline
  • Remove console log

0.14.1

  • Facet example type: Add a case to sort and limit earlier in the pipeline if there is no facet search

0.14.0

  • Facet example type: Add ability to filter/match keywords that span over multiple projected fields

0.13.2

  • Correct fix of dateHistogram cardinality implementation

0.13.1

  • Fix the facet results function to use the unwind prop or field in both options and cardinality results searches

0.13.0

  • support an optional unwind override in the call for facet results in order to access a nested property inside an array of objects

0.12.0

  • support foreign collection lookups of data for facet labels

0.11.3

  • Fix dateHistogram cardinality aggregation and accompanying test

0.11.2

  • Results example type: Add a doesn't-have-more test case for hasMore

0.11.1

  • Fix typo in README
  • Fix accidental NPM publish in 0.11.0

0.11.0

  • Results example type: Add hasMore flag to context if skipCount is true and the query has results beyond the current page

0.10.1

  • [DateHistogram] Fix key timestamp bug

0.10.0

  • Add termsStats example type
  • Add dateHistogram example type
  • Add skipCount flag to results to avoid getting counts
  • Fix meta request logging to wrap collection and aggs under a request key

0.9.5

  • Refactor hasValue flow.

0.9.4

  • Make sure hasValue takes into account empty strings for text type.

0.9.3

  • Leverage new futil export regex builders in the facet options filter
  • Move from futil-js to lastest futil (just package rename + version bump)
  • Change internal naming from context to node

0.9.2

  • Make sure to use the populate key when $unwinding a $lookup.

0.9.1

  • Add "preserveNullAndEmptyArrays" to the unwind for the populate configuration

0.9.0

  • Add support for unwind on the populate configuration

0.8.5

  • Results example type: Don't $project redundant child paths when parent path is already projected.

0.8.4

  • Results example type: Removed default $sort. Fixed $limit when pageSize is 0.

0.8.3

  • Results example type: sort after lookups and include is respected now via $project.

0.8.2

  • Fix typo on tagsText example type

0.8.1

  • Remove uneccessary contexture peer dependency (which causes an issue since minor revisions are breaking in semver at 0.x)

0.8.0

  • Add tagsText example type

0.7.1

  • The Results type now allows unlimited results by setting pageSize to zero.

0.7.0

  • Added support for Mongo ObjectIDs to teh facet example type.

0.6.3

  • number properly handle empty string, null, undefined, and NaN

0.6.2

  • number properly supports casting strings to numbers

0.6.1

  • Fix bug in statistical when there are no results

0.6.0

  • facet options are sorted by count
  • facet options filter now translates words to intersection regexes
  • facet properly filters before limiting (so filter works properly)

0.5.0

  • Add dateType support to date type (with date, timestamp, and unix options)

0.4.0

  • Add support for facet optionsFilter
  • Cleanup changelog

0.3.0

  • Add array support for facet example type

0.2.3

  • Some more tests for the example-types

0.2.2

  • Changed the statistical type so it wouldn't return an array

0.2.1

  • Improved the facet type, allowing for unlimited queries

0.2.0

  • Added the statistical type

0.1.6

  • Fixed the text type using F.cascade with more than one parammeter

0.1.5

  • Fixed the contexture version in our peerDependencies

0.1.4

  • Kill data and config, requiring contexture >= 0.40

0.1.3

  • Refactoring exclude mongoId

0.1.2

  • Added the option to exclude on the mongoId type

0.1.1

  • Fix bluebird regression and temporarily disable missing collection check

0.1.0

  • Add populate support to results type, which performs $lookups

0.0.10

  • Add error for specified collection not being found

0.0.9

Added data.values support to mongoId

0.0.8

  • Make sure types are available contexture-mongo/types
  • Rename the default types to example types
  • Made integration tests for the text and the mongoId example types

0.0.7

  • Use the native mongo driver
  • Renamed the expected model property to be collection

0.0.6

  • Making sure we export the types

0.0.5

  • Add dev tooling around contributing

0.0.4

  • Add date documentation and missing mongoId dependencies

0.0.3

  • Add date unit tests and missing date dependencies

0.0.2

  • Fixed dependencies

0.0.1

  • Initial Release