Skip to content

Releases: typegoose/mongodb-memory-server

v6.2.0

26 Dec 09:46

Choose a tag to compare

6.2.0 (2019-12-26)

Features

  • add static async MongoMemoryServer.create();
  • improve Example code
  • add TSDoc to MongoMemoryServer

(tnx @hasezoey) (a2b0fc4),
closes #211
closes #184

v6.1.1

20 Dec 05:38

Choose a tag to compare

6.1.1 (2019-12-20)

Note: Version bump only for package lerna-monorepo

v6.1.0

20 Dec 05:25

Choose a tag to compare

6.1.0 (2019-12-20)

Features

  • add support for Linux Mint (tnx @hasezoey) (92a9381)
  • rewrite getos to look for command lsb_release or /etc/os-release file or any /etc/*-release file

v6.0.2

03 Dec 16:52

Choose a tag to compare

6.0.2 (2019-12-03)

Bug Fixes

  • compatibility with debian 10 (works for Mongo >= v4.2.1) (837d98e)

v6.0.1

22 Oct 18:24

Choose a tag to compare

6.0.1 (2019-10-22)

Hotfix

It helps in future translate config options to connectionString without introducing breaking changes.

  • MongoMemoryServer: getConnectionString() add ? character to the uri by default (505b7c2)
const uri = await mongoServer.getConnectionString();
- mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706
+ mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706?

v6.0.0

22 Oct 17:41

Choose a tag to compare

6.0.0 (2019-10-22)

BREAKING CHANGES

  • Drop support for Node.js < 8 (c99fda8)
  • MongoMemoryServer: getConnectionString() add ? character to the uri by default (505b7c2)
  • MongoMemoryReplSet: getConnectionString() now returns uri with ?replicaSet= option. (401441c)

MongoMemoryServer.getConnectionString() adds ? to uri string

Addition of ? will allow in future add automatically config options to the connection string.

const uri = await mongoServer.getConnectionString();
- mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706
+ mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706?

MongoMemoryReplSet.getConnectionString()

// before `<6.0.0`
const uri = `${await replSet.getConnectionString()}?replicaSet=testset`;

// starting from `>=6.0.0` 
// `?replicaSet=testset` returned by default from `getConnectionString()` method
const uri = await replSet.getConnectionString();

PS. This version contains a fix for high severity vulnerability of https-proxy-agent

v5.2.11

22 Oct 15:38

Choose a tag to compare

5.2.11 (2019-10-22)

Bug Fixes

  • upgrade https-proxy-agent till 3.0.0 (c554faa)

v5.2.10

22 Oct 15:34

Choose a tag to compare

5.2.10 (2019-10-22)

Bug Fixes

  • ReplSet: add HACK for "Maximum call stack size exceeded" in MongoClient topology (470f094), closes #221

v5.2.9

22 Oct 05:45

Choose a tag to compare

5.2.9 (2019-10-22)

Bug Fixes

  • upgrade https-proxy-agent package due high sev. vulnerability (f44ebe4)

v5.2.8

09 Oct 11:16

Choose a tag to compare

5.2.8 (2019-10-09)

Bug Fixes

  • revert add debian v10 downloads (ffa95cd)