Skip to content

Commit 75a722a

Browse files
committed
feat(resolveConfig): upgrade default mongodb version to 5.0.3
fixes #555 BREAKING CHANGE: Default MongoDB Binary version is now "5.0.3"
1 parent a38ce44 commit 75a722a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/api/config-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Valid Options are `ia32`, `x64`, `arm64`
3939

4040
Option `VERSION` is used to set what mongodb version should be downloaded
4141

42-
Default: `4.0.25`
42+
Default: `5.0.3`
4343

4444
Common MongoDB Version formats (`X` is a number):
4545

docs/guides/mongodb-server-versions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ There are some exceptions:
2121

2222
The versions with a brocken default binary may get deprecated (when possible).
2323

24+
:::note
25+
Starting with MongoDB version 5.0, the default versions for `mongodb-memory-server-core` will only be major `X.0` versions (no `X.X` versions), see [MongoDB Versioning](https://docs.mongodb.com/manual/reference/versioning/#std-label-release-version-numbers).
26+
:::
27+
2428
## Version Table
2529

2630
| `mongodb-memory-server-core` Version | Default MongoDB Version |
2731
| :----------------------------------: | :---------------------: |
32+
| 8.0.x - 8.0.x | 5.0.3 |
2833
| 7.0.x - 7.4.x | 4.0.25 |
2934
| 6.4.x - 6.9.x | 4.0.14 |
3035
| 6.0.x - 6.4.x | 4.0.3 |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export enum ResolveConfigVariables {
2727

2828
export const ENV_CONFIG_PREFIX = 'MONGOMS_';
2929
/** This Value exists here, because "defaultValues" can be changed with "setDefaultValue", but this property is constant */
30-
export const DEFAULT_VERSION = '4.0.25';
30+
export const DEFAULT_VERSION = '5.0.3';
3131
export const defaultValues = new Map<ResolveConfigVariables, string>([
3232
// apply app-default values here
3333
[ResolveConfigVariables.VERSION, DEFAULT_VERSION],

0 commit comments

Comments
 (0)