-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,163 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
id: mongo-memory-dispose-opts | ||
title: 'DisposeOptions' | ||
--- | ||
|
||
API Documentation of `DisposeOptions`-Interface | ||
|
||
## Values for `DisposeOptions` | ||
|
||
### enabled | ||
|
||
Typings: `enabled?: boolean` | ||
|
||
Set whether to stop the manager on `[Symbol.asyncDispose]` calls. | ||
|
||
### cleanup | ||
|
||
Typings: `cleanup?: Cleanup` | ||
|
||
Set custom cleanup options to be used for disposal, see [`cleanup` function](../classes/mongo-memory-server.md#cleanup) (the same options apply for the replset). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
id: migrate10 | ||
title: 'Migrate to version 10.0.0' | ||
--- | ||
|
||
Here are the Important changes made for 10.0.0 | ||
|
||
:::caution Important, Read this first | ||
This Guide is written for migration from version `9.4.1` to `10.0.0`, for versions `>10.0.0 <11.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md) | ||
::: | ||
|
||
## Breaking Changes | ||
|
||
### Minimal NodeJS version is now `16` | ||
|
||
With 10.0.0 the minimal nodejs required is `16.20.1`. | ||
|
||
### Mongodb Driver Version upgraded to 6.x | ||
|
||
The used MongoDB Driver version is now `6.7.0`. | ||
|
||
### Default binary version is now 7.x | ||
|
||
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). | ||
|
||
:::note | ||
In mongodb `7.0.0` storage engine `ephemeralForTest` has been removed, mongodb-memory-server will automatically translate any occurrence to `wiredTiger` with a warning. | ||
|
||
It is recommended to run the tests against a tmpfs or equivalent (default `/tmp` on linux / macos). | ||
::: | ||
|
||
## Non-Breaking changes / Additions | ||
|
||
### Compiler target is now `es2021` | ||
|
||
The tsconfig `target` option has been updated to `es2021`, which will result in less polyfills. | ||
This should be a non-breaking change. | ||
|
||
### Getport now uses `net0listen` by default | ||
|
||
This means a port is now generated by the engine (like nodejs) itself, previously known as `EXP_NET0LISTEN`. | ||
This should reduce amount of `Max port tries exceeded` errors. | ||
|
||
### Allow setting port generation in MongoMemoryServer | ||
|
||
Starting with 10.0 there is a new option to set whether port generation is enabled or not on `MongoMemoryServer` called `portGeneration`. (default: `true`) | ||
|
||
(Note that the `forceSamePort` parameter in `.start` will overwrite this option) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.