Skip to content

Commit fefb155

Browse files
committed
feat(resolveConfig): update default binary version to 8.2.1
from 7.0.24 BREAKING CHANGE: Default mongodb binary version is now 8.2.x
1 parent 910402e commit fefb155

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
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 `7.0.24` for your OS will be downloaded. By setting [Environment variables](https://typegoose.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 `8.2.1` for your OS will be downloaded. By setting [Environment variables](https://typegoose.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
auth?: boolean, // add "--auth" argument, dont use this directly use top-level "auth"
129129
},
130130
binary?: {
131-
version?: string, // by default '7.0.24'
131+
version?: string, // by default '8.2.1'
132132
downloadDir?: string, // see the documentation on what is chosen by default https://typegoose.github.io/mongodb-memory-server/docs/api/config-options#download_dir
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
@@ -93,7 +93,7 @@ Example: `ubuntu-18.04`
9393

9494
Option `VERSION` is used to set what mongodb version should be downloaded
9595

96-
Default: `7.0.24` (see [Mongodb Server Versions](../guides/mongodb-server-versions.md) for a complete list and policy)
96+
Default: `8.2.1` (see [Mongodb Server Versions](../guides/mongodb-server-versions.md) for a complete list and policy)
9797

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

docs/guides/migration/migrate11.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ The used MongoDB Driver version is now `7.0.0`.
3737

3838
See [Minimal mongodb version is now `4.2.0`](#minimal-mongodb-version-is-now-420).
3939

40-
<!-- ### Default binary version is now 7.x
40+
### Default binary version is now 8.2.x
4141

42-
The default binary version has been upgraded from `6.0.x` to `7.0.x`. For more specifics see [mongodb-server-versions](../mongodb-server-versions.md).
43-
44-
:::note
45-
In mongodb `7.0.0` storage engine `ephemeralForTest` has been removed, mongodb-memory-server will automatically translate any occurrence to `wiredTiger` with a warning.
46-
47-
It is recommended to run the tests against a tmpfs or equivalent (default `/tmp` on linux / macos).
48-
:::-->
42+
The default binary version has been upgraded from `7.0.x` to `8.2.x`. For more specifics see [mongodb-server-versions](../mongodb-server-versions.md).
4943

5044
## Non-Breaking changes / Additions
5145

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+
| 11.0.x - 11.0.x | 8.2.1 |
3435
| 10.3.x - 10.3.x | 7.0.24 |
3536
| 10.1.x - 10.2.x | 7.0.14 |
3637
| 10.0.x - 10.0.x | 7.0.11 |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export enum ResolveConfigVariables {
4141
/** The Prefix for Environmental values */
4242
export const ENV_CONFIG_PREFIX = 'MONGOMS_';
4343
/** This Value exists here, because "defaultValues" can be changed with "setDefaultValue", but this property is constant */
44-
export const DEFAULT_VERSION = '7.0.24';
44+
export const DEFAULT_VERSION = '8.2.1';
4545
/** Default values for some config options that require explicit setting, it is constant so that the default values cannot be interfered with */
4646
export const defaultValues = new Map<ResolveConfigVariables, string>([
4747
// apply app-default values here

0 commit comments

Comments
 (0)