Skip to content

Commit e257bcd

Browse files
committed
Merge branch 'feature/9.0' into beta
2 parents 78011de + 6e9a9cc commit e257bcd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3677
-4107
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Top Level; Everything that is not convered by anything below
2-
* @nodkz @AJRdev @hasezoey
2+
* @nodkz @hasezoey
33

44
**/LICENSE.md @nodkz
55
website/ @hasezoey

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
node-version: [12.x, 14.x, 16.x, 18.x]
20+
node-version: [14.x, 16.x, 18.x, 20.x]
2121
steps:
2222
- uses: actions/checkout@v3
2323
if: github.event.inputs.git-ref == ''

.releaserc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ module.exports = {
1414
{type: "perf", release: "patch"},
1515
{type: "test", release: false},
1616
{type: "chore", release: false},
17+
{type: "deps", release: "minor"},
18+
// backwards compatability, remove after 9.0 has been published
1719
{type: "dependencies", release: "minor"},
1820
// dont trigger another release on release commit
1921
{type: "release", release: false}
@@ -37,6 +39,8 @@ module.exports = {
3739
{type: "perf", section: "Performance"},
3840
{type: "test", hidden: true},
3941
{type: "chore", hidden: true},
42+
{type: "deps", section: "Dependencies"},
43+
// backwards compatability, remove after 9.0 has been published
4044
{type: "dependencies", section: "Dependencies"},
4145
{type: "revert", section: "Reverts"},
4246
{type: "release", hidden: true}
@@ -46,7 +50,7 @@ module.exports = {
4650
],
4751
[
4852
// Update versions in sub-packages dependencies
49-
"@google/semantic-release-replace-plugin",
53+
"semantic-release-replace-plugin",
5054
{
5155
"replacements": [
5256
{

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ Choose any package, because they are the same. They differ only in the default c
6868

6969
### Requirements
7070

71-
- NodeJS: 12.22+
72-
- Typescript: 4.4+ (if used)
71+
- NodeJS: 14.20.1+
72+
- Typescript: 5.0+ (if used)
7373

7474
And one of those (on Linux):
7575

@@ -124,7 +124,6 @@ const mongod = new MongoMemoryServer({
124124
dbPath?: string, // by default create in temp directory
125125
storageEngine?: string, // by default `ephemeralForTest`, available engines: [ 'ephemeralForTest', 'wiredTiger' ]
126126
replSet?: string, // by default no replica set, replica set name
127-
auth?: boolean, // by default `mongod` is started with '--noauth', start `mongod` with '--auth'
128127
args?: string[], // by default no additional arguments, any additional command line arguments for `mongod` `mongod` (ex. ['--notablescan'])
129128
},
130129
binary: {
@@ -173,7 +172,7 @@ const replSet = new MongoMemoryReplSet({
173172
// unless otherwise noted below these values will be in common with all instances spawned:
174173
replSet: {
175174
name, // replica set name (default: 'testset')
176-
auth, // enable auth support? (default: false)
175+
auth, // enable auth support? (default: undefined / disabled)
177176
args, // any args specified here will be combined with any per instance args from `instanceOpts`
178177
count, // number of additional `mongod` processes to start (will not start any extra if instanceOpts.length > replSet.count); (default: 1)
179178
dbName, // default database for db URI strings. (default: uuid.v4())

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
'test',
1717
'chore',
1818
'revert',
19-
'dependencies',
19+
'deps',
2020
'release',
2121
],
2222
],

docs/api/config-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Valid Options are `win32`, `darwin`, `linux`, ~~`sunos`~~(never actually support
4545

4646
Option `ARCH` is used to overwrite the Architecture to download for
4747

48-
Valid Options are `x64`, `arm64`, ~~`ia32`~~([will be removed in 9.0](../guides/error-warning-details.md#mms001))
48+
Valid Options are `x64`, `arm64`
4949

5050
[See here for what versions are available for what architectures](https://www.mongodb.com/download-center/community/releases/archive)
5151

@@ -171,7 +171,7 @@ Default: `true`
171171

172172
Option `MD5_CHECK` is used to enable an md5 check after download
173173

174-
Default: `false`
174+
Default: `true`
175175

176176
### ARCHIVE_NAME
177177

docs/api/interfaces/mongo-memory-instance-opts.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,11 @@ Only has a effect when started with [`MongoMemoryReplSet`](../classes/mongo-memo
8585

8686
## Helper Type `StorageEngine`
8787

88-
Typings: `StorageEngine = 'devnull' | 'ephemeralForTest' | 'mmapv1' | 'wiredTiger'`
88+
Typings: `StorageEngine = 'ephemeralForTest' | 'wiredTiger'`
8989

9090
Storage Engines supported by mongodb, see [MongoDB Storage Engines](https://www.mongodb.com/docs/manual/core/storage-engines/).
9191

9292
Custom Explanation:
9393

94-
- `devnull` is a storage engine which discards everything and cannot be read from.
9594
- `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
9795
- `wiredTiger` is a storage engine which stores data on disk.

docs/api/interfaces/mongo-memory-server-automaticauth.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ API Documentation of `AutomaticAuth`-Interface
77

88
## Values
99

10-
### disable
10+
### enable
1111

12-
Typings: `disable?: boolean`
12+
Typings: `enable?: boolean`
1313
Default: `false`
1414

15-
Disable Authentication creation.
16-
Normally authentication is enabled when the `auth` field a object, but with this option it can be explicitly disabled.
15+
Enable or disable Authentication creation.
1716

1817
### extraUsers
1918

docs/api/interfaces/mongo-memory-server-opts.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ API Documentation of `MongoMemoryServerOpts`-Interface
99

1010
### instance
1111

12-
Typings: `instance?: MongoMemoryInstanceOpts`
12+
Typings: `instance?: MemoryServerInstanceOpts`
1313

14-
Set custom options for the instance, uses [`MongoMemoryInstanceOpts`](./mongo-memory-instance-opts.md).
14+
Set custom options based on [`MongoMemoryInstanceOpts`](./mongo-memory-instance-opts.md), but ignores some properties:
15+
16+
- `auth` is ignored because it is set via [auth](#auth) property.
1517

1618
### binary
1719

docs/api/interfaces/replset-opts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ API Documentation of `ReplSetOpts`-Interface
99

1010
### auth
1111

12-
Typings: `auth?: boolean | AutomaticAuth`
13-
Default: `false`
12+
Typings: `auth?: AutomaticAuth`
13+
Default: `{ enable: false }`
1414

15-
Set wheter to enable Authentication, with configuration from [`AutomaticAuth`](./mongo-memory-server-automaticauth.md).
15+
Set whether to enable Authentication, with configuration from [`AutomaticAuth`](./mongo-memory-server-automaticauth.md).
1616

1717
Also see [`MongoMemoryInstanceOpts.auth`](./mongo-memory-instance-opts.md#auth).
1818

0 commit comments

Comments
 (0)