Skip to content

Commit c82e56c

Browse files
committed
feat: upgrade default mongodb binary version to 4.0.27
1 parent ffbc0ca commit c82e56c

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ And one of those (on Linux):
8383

8484
### Configuring which mongod binary to use
8585

86-
The default behavior is that version `4.0.25` 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:
86+
The default behavior is that version `4.0.27` 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:
8787

8888
```sh
8989
export MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.2.8.tgz
@@ -125,7 +125,7 @@ const mongod = new MongoMemoryServer({
125125
args?: string[], // by default no additional arguments, any additional command line arguments for `mongod` `mongod` (ex. ['--notablescan'])
126126
},
127127
binary: {
128-
version?: string, // by default '4.0.25'
128+
version?: string, // by default '4.0.27'
129129
downloadDir?: string, // by default node_modules/.cache/mongodb-memory-server/mongodb-binaries
130130
platform?: string, // by default os.platform()
131131
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
@@ -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: `4.0.27`
4343

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

docs/guides/mongodb-server-versions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ For Packages that are named with a version (like `mongodb-memory-server-global-4
2727

2828
| `mongodb-memory-server-core` Version | Default MongoDB Version |
2929
| :----------------------------------: | :---------------------: |
30+
| 7.5.x - 7.5.x | 4.0.27 |
3031
| 7.0.x - 7.4.x | 4.0.25 |
3132
| 6.4.x - 6.9.x | 4.0.14 |
3233
| 6.0.x - 6.4.x | 4.0.3 |

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.25', '4.2.17', '4.4.10', '5.0.3'];
8+
const versions = [defaultVersion, '4.0.27', '4.2.17', '4.4.10', '5.0.3'];
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
@@ -208,7 +208,7 @@ describe('MongodbInstance', () => {
208208
const gotPort = await getPort({ port: 27445 });
209209
const mongod = await MongodbInstance.create({
210210
instance: { port: gotPort, dbPath: tmpDir.name },
211-
binary: { version: '4.0.25' }, // explicit version instead of default to not mess it up later
211+
binary: { version: '4.0.27' }, // explicit version instead of default to not mess it up later
212212
});
213213
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
214214
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
@@ -26,7 +26,7 @@ export enum ResolveConfigVariables {
2626

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

0 commit comments

Comments
 (0)