Skip to content

Commit ba37680

Browse files
committed
feat: update default-binary 5.0.18
from 5.0.13
1 parent 2856cfd commit ba37680

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ On Linux, you will also need `libcurl4` (or `libcurl3` on some older distro vers
8686

8787
### Configuring which mongod binary to use
8888

89-
The default behavior is that version `5.0.13` for your OS will be downloaded. By setting [Environment variables](https://nodkz.github.io/mongodb-memory-server/docs/api/config-options) you are able to specify which version and binary will be downloaded:
89+
The default behavior is that version `5.0.18` for your OS will be downloaded. By setting [Environment variables](https://nodkz.github.io/mongodb-memory-server/docs/api/config-options) you are able to specify which version and binary will be downloaded:
9090

9191
```sh
9292
export MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.2.8.tgz
@@ -128,7 +128,7 @@ const mongod = new MongoMemoryServer({
128128
args?: string[], // by default no additional arguments, any additional command line arguments for `mongod` `mongod` (ex. ['--notablescan'])
129129
},
130130
binary: {
131-
version?: string, // by default '5.0.13'
131+
version?: string, // by default '5.0.18'
132132
downloadDir?: string, // by default node_modules/.cache/mongodb-memory-server/mongodb-binaries
133133
platform?: string, // by default os.platform()
134134
arch?: string, // by default os.arch()

docs/api/config-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Valid Options are `x64`, `arm64`, ~~`ia32`~~([will be removed in 9.0](../guides/
5757

5858
Option `VERSION` is used to set what mongodb version should be downloaded
5959

60-
Default: `5.0.13`
60+
Default: `5.0.18`
6161

6262
This Option does not have a effect when [`ARCHIVE_NAME`](#archive_name) or [`DOWNLOAD_URL`](#download_url) is defined.
6363

docs/guides/mongodb-server-versions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Starting with MongoDB version 5.0, the default versions for `mongodb-memory-serv
3131

3232
| `mongodb-memory-server-core` Version | Default MongoDB Version |
3333
| :----------------------------------: | :---------------------: |
34-
| 8.11.x - 8.11.x | 5.0.13 |
34+
| 8.13.x - 8.13.x | 5.0.18 |
35+
| 8.11.x - 8.12.x | 5.0.13 |
3536
| 8.6.x - 8.10.x | 5.0.8 |
3637
| 8.0.x - 8.5.x | 5.0.3 |
3738
| 7.5.x - 7.5.x | 4.0.27 |

packages/mongodb-memory-server-core/src/__tests__/testUtils/globalSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { assertion, isNullOrUndefined } from '../../util/utils';
55
export = async function globalSetup(): Promise<void> {
66
const defaultVersion = resolveConfig(ResolveConfigVariables.VERSION);
77
assertion(!isNullOrUndefined(defaultVersion), new Error('Default version is not defined'));
8-
const versions = [defaultVersion, '4.0.28', '4.2.18', '4.4.13', '5.0.13', '6.0.0'];
8+
const versions = [defaultVersion, '4.0.28', '4.2.18', '4.4.13', '5.0.18', '6.0.0'];
99
// Ensure all required versions are downloaded for tests
1010
for (const version of versions) {
1111
await MongoBinary.getPath({ version });

packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ describe('MongodbInstance', () => {
242242
const gotPort = await getPort({ port: 27445 });
243243
const mongod = await MongodbInstance.create({
244244
instance: { port: gotPort, dbPath: tmpDir },
245-
binary: { version: '5.0.13' },
245+
binary: { version: '5.0.18' },
246246
});
247247
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
248248
await mongod.stop();

packages/mongodb-memory-server-core/src/util/resolveConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export enum ResolveConfigVariables {
3030
/** The Prefix for Environmental values */
3131
export const ENV_CONFIG_PREFIX = 'MONGOMS_';
3232
/** This Value exists here, because "defaultValues" can be changed with "setDefaultValue", but this property is constant */
33-
export const DEFAULT_VERSION = '5.0.13';
33+
export const DEFAULT_VERSION = '5.0.18';
3434
/** Default values for some config options that require explicit setting, it is constant so that the default values cannot be interfered with */
3535
export const defaultValues = new Map<ResolveConfigVariables, string>([
3636
// apply app-default values here

0 commit comments

Comments
 (0)