You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,8 @@ Choose any package, because they are the same. They differ only in the default c
68
68
69
69
### Requirements
70
70
71
-
- NodeJS: 12.22+
72
-
- Typescript: 4.4+ (if used)
71
+
- NodeJS: 14.20.1+
72
+
- Typescript: 5.0+ (if used)
73
73
74
74
And one of those (on Linux):
75
75
@@ -86,7 +86,7 @@ On Linux, you will also need `libcurl4` (or `libcurl3` on some older distro vers
86
86
87
87
### Configuring which mongod binary to use
88
88
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:
@@ -122,13 +122,12 @@ const mongod = new MongoMemoryServer({
122
122
ip?: string, // by default '127.0.0.1', for binding to all IP addresses set it to `::,0.0.0.0`,
123
123
dbName?: string, // by default '' (empty string)
124
124
dbPath?: string, // by default create in temp directory
125
-
storageEngine?: string, // by default `ephemeralForTest`, available engines: [ 'ephemeralForTest', 'wiredTiger' ]
125
+
storageEngine?: string, // by default `ephemeralForTest`(unless mongodb 7.0.0, where its `wiredTiger`), available engines: [ 'ephemeralForTest', 'wiredTiger' ]
126
126
replSet?: string, // by default no replica set, replica set name
127
-
auth?: boolean, // by default `mongod` is started with '--noauth', start `mongod` with '--auth'
128
127
args?: string[], // by default no additional arguments, any additional command line arguments for `mongod` `mongod` (ex. ['--notablescan'])
129
128
},
130
129
binary?: {
131
-
version?: string, // by default '5.0.19'
130
+
version?: string, // by default '6.0.9'
132
131
downloadDir?: string, // see the documentation on what is chosen by default https://nodkz.github.io/mongodb-memory-server/docs/api/config-options#download_dir
Storage Engines supported by mongodb, see [MongoDB Storage Engines](https://www.mongodb.com/docs/manual/core/storage-engines/).
91
91
92
92
Custom Explanation:
93
93
94
-
-`devnull` is a storage engine which discards everything and cannot be read from.
95
94
-`ephemeralForTest` is a in-memory storage engine, which stores everything in RAM, which is great to use when wanting a simple database testing backend, is not the same as the Enterprise In-Memory Engine
96
-
-`mmapv1` is storage engine which stores data on disk, was removed in mongodb 4.2
97
95
-`wiredTiger` is a storage engine which stores data on disk.
96
+
97
+
:::warning
98
+
MongoDB has stated that storage-engine `ephemeralForTest` is unstable and has been deprecated, it will be removed with mongodb 7.
99
+
100
+
In MMS there has been no observation of `ephemeralForTest` being unstable (aside from some missing features) and will continue to be the default until mongodb-memory-server changes to a version where `ephemeralForTest` is not present anymore.
101
+
102
+
With mongodb-memory-server 9.0.0, if mongodb 7.0.0 or higher is used, `wiredTiger` is the default engine.
0 commit comments