Skip to content

Latest commit

 

History

History
1029 lines (515 loc) · 22.5 KB

CHANGES.md

File metadata and controls

1029 lines (515 loc) · 22.5 KB

2024-11-13, Version 7.0.0-alpha.2

  • feat: always use optimized findOrCreate (Rifa Achrinza)

  • chore: update Node.js and MongoDB supported versions (Rifa Achrinza)

2022-11-20, Version 7.0.0-alpha.1

  • chore(release): v7.0.0-alpha.1 (Rifa Achrinza)

  • ci: update Node.js test matrix (Rifa Achrinza)

  • chore: update Node.js engine matrix (Rifa Achrinza)

  • feat: upgrade mongodb driver to version 4.x (Antonio Ramón Sánchez Morales)

  • chore: lock file maintenance (renovate[bot])

  • chore: update supercharge/mongodb-github-action action to v1.8.0 (renovate[bot])

  • chore: update dependency eslint to ^8.23.0 (renovate[bot])

  • chore: update commitlint monorepo to v17 (renovate[bot])

  • chore: update dependency eslint to ^8.19.0 (renovate[bot])

  • chore: update github/codeql-action action to v2 (renovate[bot])

  • chore: update dependency mocha to ^9.2.2 (renovate[bot])

  • chore: update dependency loopback-datasource-juggler to ^4.27.1 (renovate[bot])

  • chore: update dependency eslint to ^8.18.0 (renovate[bot])

  • chore: update dependency strong-globalize to ^6.0.5 (renovate[bot])

  • chore: update supercharge/mongodb-github-action action to v1.7.0 (renovate[bot])

  • chore: update actions/setup-node action to v3 (renovate[bot])

  • chore: update actions/checkout action to v3 (renovate[bot])

  • chore: update dependency semver to ^7.3.7 (renovate[bot])

  • chore: update dependency should to ^13.2.3 (renovate[bot])

  • chore: update dependency debug to ^4.3.4 (renovate[bot])

  • chore: update dependency loopback-connector to ^5.0.1 (renovate[bot])

  • chore: update dependency bson to ^1.1.6 (renovate[bot])

  • chore: update dependency bluebird to ^3.7.2 (renovate[bot])

  • chore: update dependency async to ^3.2.4 (renovate[bot])

  • ci: add renovate config (Rifa Achrinza)

  • fix(*): run autoupdate in serial to avoid conflicts (Simon Stone)

  • fix: optional chaining (preussmann)

  • chore: update v6 EOL (Rifa Achrinza)

  • ci: test against Node.js v18 (Rifa Achrinza)

2022-03-31, Version 6.2.0

  • docs: add SECURITY.md (Diana Lau)

  • chore: tls README example (d-bo)

  • docs: update coc (Diana Lau)

  • docs: add code of conduct (Diana Lau)

  • chore: update v6 EOL (Rifa Achrinza)

  • ci: fix typo (Rifa Achrinza)

  • chore: update deps (Rifa Achrinza)

  • feat: add tls options as of mongo 3.7 (d-bo)

  • ci: update Node.js version (Rifa Achrinza)

  • ci: pin NPM version (Rifa Achrinza)

  • chore: add @achrinza and update CODEOWNERS (Diana Lau)

  • fix: isObjectIDProperty array param check (Rifa Achrinza)

  • fix: handle url default db name (Rifa Achrinza)

  • ci: restrict GITHUB_TOKEN permissions (Rifa Achrinza)

2021-09-07, Version 6.1.0

  • ci: misc updates (Rifa Achrinza)

  • feat: add transaction support (Sergey Nosenko)

  • ci: align gh actions workflow with 5.x (Rifa Achrinza)

  • chore: move repo to loopbackio org (Diana Lau)

2021-05-03, Version 6.0.1

  • fix: allows fields filter with custom field name (louis.nguyen)

  • README: update notes about 6.0 (Miroslav Bajtoš)

2021-03-22, Version 6.0.0

  • coerce values of array defined as ObjectID type (=)

  • Update mongodb to ^3.6.4 (wolrajhti)

  • ci: convert from Travis to Github action ci (Agnes Lin)

  • README: mention our work on 6.0 (Miroslav Bajtoš)

  • [SEMVER-MAJOR] Drop support for LoopBack 3.x (Yaapa Hage)

2020-12-01, Version 5.5.0

  • atomic upsertWithWhere (#563) (Matteo Padovano)

2020-09-02, Version 5.4.0

  • fix: allow to include options to mongodb connector (Jamil Omar)

  • Update loopback-connector to 5.x (Miroslav Bajtoš)

  • chore: switch to DCO (Diana Lau)

  • docs: update loopback types link (Agnes Lin)

  • chore: add Node.js 14 to travis (Diana Lau)

  • Extract function that map db data to model entity (=)

2020-07-10, Version 5.3.0

2020-07-10, Version 5.2.4

  • fix: sanitize extra dollar signs for operators (Agnes Lin)

  • fix: fix (Agnes Lin)

  • fix: allow arrays to be stored in type ObjecId (Agnes Lin)

  • fix: fix sections order (Agnes Lin)

  • chore: add bluemix security to the ci ignore list (Agnes Lin)

  • docs: update Mongo connector readme with lb4 style (Agnes Lin)

  • Update README.md (VusalIs)

  • fix: throws when the custom id field name is set (Agnes Lin)

  • Update strong-globalize to ^6.0 (Miroslav Bajtoš)

  • Add Node.js 13.x to Travis matrix (Miroslav Bajtoš)

  • Drop support for Node 8.x (Miroslav Bajtoš)

  • chore: update strong-globalize version (Diana Lau)

2020-03-19, Version 5.2.3

  • Exclude 'deps' and '.github' from npm publish (Dominique Emond)

2020-02-10, Version 5.2.2

  • chore: update copyright year (Diana Lau)

  • chore: update CODEOWNERS (Diana Lau)

  • coerce property value defined as array of ObjectID (=)

  • fix: update the error message and name (#561) (Janny)

2019-11-22, Version 5.2.1

  • fix creation of LB4 models with auto-generated id (Miroslav Bajtoš)

  • chore: improve issue and PR templates (Nora)

  • feat: update dependenies (Francois)

  • feat: upgrade to eslint v6 (Francois)

2019-10-25, Version 5.2.0

  • Remove db.unref as it's not implemented (Raymond Feng)

  • fixed linting errors (Louis Beullens)

  • implicitNullType + tests (Louis Beullens)

2019-10-24, Version 5.1.0

  • Resolve issue #540 for v4.2.0 (Herberts Cruz)

  • Callback with url parsing error (Raymond Feng)

2019-09-19, Version 5.0.1

  • fix: preserve id on update (Hage Yaapa)

  • fix: call toDatabase update and upsert (alexandreferreira)

  • docs: special characters in username and password (Hage Yaapa)

2019-06-26, Version 5.0.0

  • chore: add coverage (Hage Yaapa)

  • fix: ObjectID data type preservation (Hage Yaapa)

  • feat: add mongodb.dataType to property definition (Hage Yaapa)

  • chore: replace var with let and const (Hage Yaapa)

  • chore: meaningful variable names (Hage Yaapa)

  • Run shared tests from both v3 and v4 of juggler (Miroslav Bajtoš)

  • Fix tests to correctly assert on MongoNetworkError (Miroslav Bajtoš)

  • Add Node.js 12 to Travis CI platforms (Miroslav Bajtoš)

  • specify downstreamIgnoreList in CI (Diana Lau)

2019-05-03, Version 4.2.0

  • fix: edge cases to coerce nested decimal props (biniam)

  • test: strict model update with mongo operators (biniam)

  • chore: update copyrights years (Diana Lau)

  • add check for embedded property type conversion (Dimitris)

  • Remove port when using mongodb+srv (JREEVE)

  • ci: fix previously failing tests (biniam)

2019-04-12, Version 4.1.0

  • fix: coerce deep nested decimal properties (biniam)

  • Fix missing '_id' when selected in filter.fields (#439) (Helge Willum Thingvad)

2018-11-06, Version 4.0.0

  • Use new url parser by default (#462) (Hugo Da Roit)

  • remove the infinite inspect (#480) (Janny)

  • Add case insensitive indexes support (maxim.sharai)

2018-10-23, Version 3.9.0

  • support decimal128 (#475) (Janny)

  • Added "authSource" in doc connection properties (Rémi AUGUSTE)

  • Convert embedded binary properties to buffer (ntsekouras)

  • Convert projection fields option to object (Dimitris)

2018-09-19, Version 3.8.0

  • fix performance issues on count #464 (Clément)

  • feat: allow methods to pass strictObjectIDCoercion (virkt25)

2018-09-14, Version 3.7.1

  • fix: map new names to old for connector hooks (virkt25)

2018-09-12, Version 3.7.0

  • update deprecated mongo driver commands (Hugo Da Roit)

  • Remove hard dependency of memwatch-next (Raymond Feng)

  • Add support for protocol to be 'monogodb+srv' (Raymond Feng)

2018-08-15, Version 3.6.0

  • docs: update with security consideration section (virkt25)

  • fix: sanitize query by default (virkt25)

  • change count to countDocuments (Rahmat Nugraha)

  • add useNewUrlParser on validOptionNames (Rahmat Nugraha)

  • Dedicated Model for testing disableDefaultSort (HugoPoi)

  • Add disableDefaultSort in README (HugoPoi)

  • Add settings disableDefaultSort for find method (HugoPoi)

2018-07-23, Version 3.5.0

  • chore: drop node 4 and update deps (Taranveer Virk)

  • [WebFM] cs/pl/ru translation (candytangnb)

2018-06-05, Version 3.4.4

  • Fields projection fix (#436) (John Gonyo)

2018-04-06, Version 3.4.3

  • update bson version (Diana Lau)

2018-03-23, Version 3.4.2

  • chore:update CODEOWNERS (Diana Lau)

  • Prioritize db url (Dimitris)

  • CODEOWNERS: add nitro404 (Miroslav Bajtoš)

2018-01-19, Version 3.4.1

  • fix: allow db name to be parsed from url (Raymond Feng)

2018-01-19, Version 3.4.0

  • upgrade to mongodb driver 3.x (Raymond Feng)

  • Alias find as findById (jannyHou)

2017-12-04, Version 3.3.1

  • Switch to bson.ObjectID (#401) (Kevin Delisle)

  • chore: update license (Diana Lau)

2017-10-13, Version 3.3.0

  • update strong-globalize to 3.1.0 (shimks)

  • Create Issue and PR Templates (#386) (Sakib Hasan)

  • Use stalebot on this repo (#383) (Kevin Delisle)

  • Use stalebot on this repo (Kevin Delisle)

  • Add CODEOWNER file (Diana Lau)

2017-07-10, Version 3.2.1

  • Apply feedback (ssh24)

  • Add docs on lazyConnect flag (ssh24)

2017-06-28, Version 3.2.0

  • Remove the hard-coded writeConcern (Raymond Feng)

  • Document strictObjectIDCorecion flag (Loay)

  • Allow different forms of regexp on like/nlike op (ssh24)

  • Require init on mocha args (ssh24)

  • Use buildSort function to sort (ssh24)

  • Add docker setup (#373) (Sakib Hasan)

  • test: use mongodb-3.2 on Travis (#369) (Ryan Graham)

2017-04-17, Version 3.1.0

  • Update connector version (#368) (Sakib Hasan)

  • Replicate issue_template from loopback repo (#350) (siddhipai)

  • Fix buildNearFilter to work with any key depth (#322) (Corentin H)

  • Fix Update when id not found (Loay)

  • Add additional envs for node v4/v6 (#365) (Sakib Hasan)

  • Update node version (ssh24)

  • Reconnect on execute after disconnect (#362) (phairow)

  • update the near query with minDistance test (#361) (Vincent Wen)

  • Fix lazy connect (#360) (phairow)

  • Export the additional functions (#353) (James Cooke)

  • Mongo 3.4 Support/Delete index ‘kind’ property from index options (#335) (Dylan Lundy)

  • Update README.md (Rand McKinney)

2017-02-13, Version 3.0.1

  • Remove invalid options (jannyHou)

  • Add nestedProperty to connectorCapabilities (jannyHou)

  • Update README.md (Rand McKinney)

  • add info on url override (ivy ho)

  • add link for loopback types to mongodb (ivy ho)

  • replace MySQL with MongodDB (ivy ho)

  • Update Readme with Properties (ivy ho)

  • update lB connector version (Loay)

  • Fix replaceById to report err when id not found (Loay Gewily)

2017-01-13, Version 3.0.0

  • Delete extraneous id for replacById (Amir Jafarian)

  • Update paid support URL (Siddhi Pai)

  • Start 3.x + drop support for Node v0.10/v0.12 (siddhipai)

  • Drop support for Node v0.10 and v0.12 (Siddhi Pai)

  • Start the development of the next major version (Siddhi Pai)

  • Update mongodb version (jannyHou)

  • Update README with correct doc links, etc (Amir Jafarian)

  • Ensure inq/nin use array cond value (Fabien Franzen)

  • More ObjectID vs. String handling improvements (Fabien Franzen)

  • Test returned info for #destroy (Fabien Franzen)

  • Test fix for #253 (Fabien Franzen)

  • Fix Copyright, use process.nextTick (Fabien Franzen)

  • Fix all sorts of issues... (Fabien Franzen)

  • Column renaming should be done before extended ops (Ian Zepp)

  • Added support for renaming columns (Ian Zepp)

2016-10-17, Version 1.17.0

  • Remove TEST prefix for env vars (#292) (Simon Ho)

  • Add connectorCapabilities global object (Nick Duffy)

  • Update translation files - round#2 (Candy)

  • Update deps to loopback 3.0.0 RC (Miroslav Bajtoš)

  • Remove conflict (jannyHou)

  • fix maxDistance not supported in geo filter. (Vincent Wen)

  • Use juggler@3 for running the tests (Miroslav Bajtoš)

  • Remove !intl (jannyHou)

  • Refactor (jannyHou)

  • Globalization (jannyHou)

  • Support patches afterwards (jannyHou)

  • Use the latest compatible mongodb (jannyHou)

  • Update URLs in CONTRIBUTING.md (#264) (Ryan Graham)

2016-05-16, Version 1.15.2

  • Update "mongodb" dependency to caret notation (Bram Borggreve)

2016-05-03, Version 1.15.1

  • insert/update copyrights (Ryan Graham)

  • relicense as MIT only (Ryan Graham)

2016-05-03, Version 1.15.0

  • Lazy connect when booting app (juehou)

  • Add support for geoNear queries (Timo Saikkonen)

  • Fix linting errors (Amir Jafarian)

  • Auto-update by eslint --fix (Amir Jafarian)

  • Add eslint infrastructure (Amir Jafarian)

  • Implementation for replace (Amir Jafarian)

  • Upgrade should to 8.0.2 (Simon Ho)

  • Check dataSource.connecting to prevent race conditions (Fabien Franzen)

  • Remove email from AUTHORS (Simon Ho)

  • Update description in README.md (Simon Ho)

  • Clean up package.json (Simon Ho)

  • Update AUTHORS (Simon Ho)

  • Add AUTHORS file (Simon Ho)

  • Use ObjectId as internal storage for id (Raymond Feng)

  • test: fix order of semver arguments (Ryan Graham)

  • use mocha for test script (Ryan Graham)

  • Add more tests for id coercion (Raymond Feng)

2015-12-13, Version 1.13.2

  • Make sure null/undefined id is not coerced (Raymond Feng)

  • Allow runtime configurable test environment (Simon Ho)

  • changed env variable fortest servers (cgole)

2015-11-23, Version 1.13.1

  • Fix the test set up (Raymond Feng)

  • Added mongo port env var (cgole)

  • Add env variable for mongodb server (cgole)

  • Refer to licenses with a link (Sam Roberts)

  • Fix repository field in package.json (Simon Ho)

  • Use strongloop conventions for licensing (Sam Roberts)

  • Enhance coercion of ids with inq/nin operators (Raymond Feng)

  • Return deleted count (Raymond Feng)

2015-08-06, Version 1.13.0

  • Added a setting to enable optimsied findOrCreate method so that connector continues to work with mongodb < 2.6 (Mike Bissett)

  • Fixed up merge conflicted dependencies in package.json (Mike Bissett)

  • Update deps (Raymond Feng)

  • implement optimized findOrCreate (Clark Wang)

  • extract sort document building to method (Clark Wang)

2015-08-04, Version 1.12.0

  • Add regexp operator support (Simon Ho)

  • Enable options.allowExtendedOperators (Fabien Franzen)

  • Enable Model.settings.mongodb.allowExtendedOperators (Fabien Franzen)

  • Update benchmarks (Simon Ho)

2015-07-02, Version 1.11.3

  • Restore data.id to avoid build breaks (Raymond Feng)

2015-06-25, Version 1.11.2

  • Revert "Add a workaround for auth with multiple mongos servers" (Raymond Feng)

2015-06-15, Version 1.11.1

  • Fix the url (Raymond Feng)

  • Replaced ensureIndex() with createIndex() (U-Zyn Chua)

2015-06-05, Version 1.11.0

  • Add a workaround for auth with multiple mongos servers (Raymond Feng)

  • Use custom collection name for migration (Raymond Feng)

2015-06-03, Version 1.10.1

  • Make sure disconnect calls back (Raymond Feng)

2015-06-01, Version 1.10.0

  • Add execute hooks (Raymond Feng)

2015-05-29, Version 1.9.2

  • Update to memwatch-next for node 0.12 compatibility (Raymond Feng)

2015-05-28, Version 1.9.1

  • Update deps (Raymond Feng)

2015-05-28, Version 1.9.0

  • Add options (Raymond Feng)

  • Update README.md (Simon Ho)

  • Add leak detection (Simon Ho)

  • Add benchmarks (Simon Ho)

  • Support ctx.isNewInstance (Miroslav Bajtoš)

  • Update deps (Raymond Feng)

  • Cleanup for returning count on update/delete (Simon Ho)

  • Default to undefined instead of 0 (Simon Ho)

  • Return info object with affected items count (Simon Ho)

  • added doc about allowExtendedOperators (Pasindu De Silva)

  • Make test instructions more meaningful (Simon Ho)

2015-02-20, Version 1.8.0

  • Update deps (Raymond Feng)

  • Re-enable the inclusion tests (Raymond Feng)

2015-02-08, Version 1.7.0

  • Check if result is null (Raymond Feng)

  • Disable extended tests if mongodb version is lower than 2.6 (Raymond Feng)

  • Include tests of persistence hooks from juggler. (Miroslav Bajtoš)

  • Update should to the latest version 4.6.3 (Miroslav Bajtoš)

  • Fix unit-tests on iojs 1.0 (Miroslav Bajtoš)

  • Tidy up the null check (Raymond Feng)

  • Added options to like/nlike operator to allow for regex flags (Andrew Burgess)

2015-01-23, Version 1.6.0

  • Small optimisation on the loop in parseUpdateData (Alexandru Savin)

  • Optimized the user data parser method (Alexandru Savin)

  • Fixed bug where only the first operator was kept and refactored the parsing logic to be reused (Alexandru Savin)

  • Allows array operators (Felipe Figueroa)

  • Renamed datasource config var for exended parameters (Alexandru Savin)

  • set extended operators to true for the tests where they are needed (Alexandru Savin)

  • added configuration switch extended_operators and more update operators (Alexandru Savin)

  • Added tests (Alexandru Savin)

  • Check for valid operators and disregard any other properties (Alexandru Savin)

  • allow DB specific mappings for indexes (Felipe Figueroa)

  • Changed the solution to use indexOf (Alexandru Savin)

  • Give access to all update operators (Alexandru Savin)

  • Enable additional update actions (other than $set) (Alexandru Savin)

2015-01-14, Version 1.5.0

  • Fix the test case (Raymond Feng)

  • Upgrade to mongodb node driver 2.x (Raymond Feng)

  • Fix bad CLA URL in CONTRIBUTING.md (Ryan Graham)

  • test: Use mongodb on localhost under CI (Ryan Graham)

  • test: bump loopback-datasource-juggler version (Ryan Graham)

  • fixing typo (Marc Puig)

2014-10-31, Version 1.4.5

  • Bump version (Raymond Feng)

  • fix misspelled attribute "unique" in /lib/mongodb.js (kai zhu)

  • Fix the test cases (Raymond Feng)

  • Add contribution guidelines (Ryan Graham)

  • Fix the bad usage of for-in loop against array (Raymond Feng)

2014-09-02, Version 1.4.4

  • Bump version (Raymond Feng)

  • Fix mongodb neq mapping (Raymond Feng)

2014-08-27, Version 1.4.3

  • Bump version (Raymond Feng)

  • Add a test case for ping errors (Raymond Feng)

2014-08-20, Version 1.4.2

  • Bump version (Raymond Feng)

  • Add ping() (Raymond Feng)

2014-06-27, Version 1.4.1

  • Bump versions (Raymond Feng)

  • Tidy up order processing (Raymond Feng)

  • Update link to doc (Rand McKinney)

2014-06-23, Version 1.4.0

  • Bump version (Raymond Feng)

  • Add update support (Raymond Feng)

  • Allows custom mapping from model to collection (Raymond Feng)

  • Add more tests (Raymond Feng)

  • Fix id usage in where clause (Raymond Feng)

  • Add a test case to verify update (Raymond Feng)

2014-06-05, Version 1.3.0

  • Fix the test cases (Raymond Feng)

  • Remove peer dependency on datasource-juggler (Miroslav Bajtoš)

2014-05-27, Version 1.2.6

  • Bump version (Raymond Feng)

  • Map id name to _id for ordering (Raymond Feng)

  • Set the default order using id if no order is specified (Raymond Feng)

2014-05-13, Version 1.2.5

  • Bump version (Raymond Feng)

  • Remove unused code (Raymond Feng)

  • Remove the duplicate test (Raymond Feng)

  • Improve the save method with tests (Raymond Feng)

  • Fix mongodb upsert (Raymond Feng)

2014-05-05, Version 1.2.4

  • Bump versions (Raymond Feng)

  • Make sure where object is built for count/destroyAll (Raymond Feng)

2014-05-02, Version 1.2.3

  • Bump version (Raymond Feng)

  • Add a comment for the null value query (Raymond Feng)

  • Fix the test titles (Raymond Feng)

  • Add support for logical operators (Raymond Feng)

2014-04-24, Version 1.2.2

  • Bump version (Raymond Feng)

  • Add id coercion for findById (Raymond Feng)

2014-04-08, Version 1.2.1

  • Bump version (Raymond Feng)

  • Replace old README with link to docs. (Rand McKinney)

  • Update README (Raymond Feng)

  • Fix the conversion for mongodb.Binary (Raymond Feng)

2014-03-18, Version 1.2.0

  • Set default options for background/unique (Raymond Feng)

  • Add indexes/automigrate/autoupdate/debug (Raymond Feng)

2014-02-27, Version 1.1.8

  • Bump version (Raymond Feng)

  • Simplifying the connector-mongodb PR after database-juggler fix (Aurelien Chivot)

  • Do not return MongoDB-specific _id to client API, except if specifically specified in the model definition (Aurelien Chivot)

2014-02-25, Version 1.1.7

  • Bump version (Raymond Feng)

  • Wrap the condition into RegExp for consistency (Raymond Feng)

  • Add like/nlike support for mongodb (Raymond Feng)

  • Fix error handling for create (Raymond Feng)

2014-02-19, Version 1.1.6

  • Bump version (Raymond Feng)

  • Fix for text id object insertion issue (Aurelien Chivot)

  • Update to dual MIT/StrongLoop license (Raymond Feng)

  • Fix the object id conversion to skip 12-byte strings (Raymond Feng)

2014-02-11, Version 1.1.5

  • Fix update (Raymond Feng)

  • Update getTypes (Raymond Feng)

  • Add type/defaultIdType (Raymond Feng)

  • Reformat code (Raymond Feng)

2013-12-16, Version 1.1.4

  • Bump version (Raymond Feng)

  • Rename the model (Raymond Feng)

  • Add a test case (Raymond Feng)

  • Try to convert the id to ObjectID (Raymond Feng)

2013-12-06, Version 1.1.3

  • First release!