Skip to content

Releases: pbatey/query-to-mongo

v0.12.1

24 Sep 15:21
Compare
Choose a tag to compare

0.12.1 - 2024-09-24

Fixed

  • added typescript for fields
  • corrected typescript for sort

v0.12.0

03 Sep 14:13
Compare
Choose a tag to compare

0.12.0 - 2024-09-03

Fixed

  • added typescript def for keywords

v0.11.4

02 Jul 16:17
Compare
Choose a tag to compare

0.11.4 - 2024-07-02

Changed

  • dependabot bump braces from 3.0.2 to 3.0.3

v0.11.3

19 Oct 14:43
Compare
Choose a tag to compare

0.11.3 - 2023-10-19

Changed

  • dependabot bump @babel/traverse to 7.23.2

v0.11.2

04 Sep 19:41
Compare
Choose a tag to compare

0.11.2 - 2023-09-04

Added

  • eslint

Changed

  • replaced mocha+chai with jest

Fixed

  • addressed eslint issues

v0.11.1

04 Sep 18:40
Compare
Choose a tag to compare

0.11.1 - 2023-09-04

Added

  • Changelog

Fixed

  • Corrected export in typescript declaration

Typescript types

04 Sep 16:13
Compare
Choose a tag to compare

Added support for Typescript types - thanks Marcos Piñero!

Commas in regex

01 Oct 01:58
Compare
Choose a tag to compare

This patch release handles commas within regular expressions such as &text=/word,word/i.

Keyword override

05 Apr 19:17
Compare
Choose a tag to compare

With this release, query keywords can be overridden so they may be used as query filters.

This will allow an omit=false query filter by replacing the omit keyword with $omit.

altKeywords = {fields:'$fields', omit:'$omit', sort:'$sort', offset:'$offset', limit:'$limit'}
var q = q2m(res.query, {keywords: altKeywords});

Thanks @plbin97 for the suggestion.

Multiple negations

13 Mar 00:12
Compare
Choose a tag to compare

This version now handles multiple !value negations. For instance field=!a&field=!b yields the query criteria {field:{$nin:["a","b"]}}.