Skip to content

Commit 3f5d421

Browse files
committed
feat(resolveConfig): update default binary version to 6.x
BREAKING CHANGE: Default binary version is now "6.0.9"
1 parent 952609b commit 3f5d421

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
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.19` 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 `6.0.9` 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
@@ -127,7 +127,7 @@ const mongod = new MongoMemoryServer({
127127
args?: string[], // by default no additional arguments, any additional command line arguments for `mongod` `mongod` (ex. ['--notablescan'])
128128
},
129129
binary: {
130-
version?: string, // by default '5.0.19'
130+
version?: string, // by default '6.0.9'
131131
downloadDir?: string, // by default node_modules/.cache/mongodb-memory-server/mongodb-binaries
132132
platform?: string, // by default os.platform()
133133
arch?: string, // by default os.arch()

docs/guides/mongodb-server-versions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ 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+
| 9.0.x - 9.0.x | 6.0.9 |
3435
| 8.14.x - 8.13.x | 5.0.19 |
3536
| 8.13.x - 8.13.x | 5.0.18 |
3637
| 8.11.x - 8.12.x | 5.0.13 |

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

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

0 commit comments

Comments
 (0)