Skip to content

Commit ebe7c1f

Browse files
committed
docs(migrate10): add entry for "portGeneration"
1 parent 100e571 commit ebe7c1f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/guides/migration/migrate10.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 'Migrate to version 10.0.0'
66
Here are the Important changes made for 10.0.0
77

88
:::caution Important, Read this first
9-
This Guide is written for migration from version `9.4.0` 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)
9+
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)
1010
:::
1111

1212
## Breaking Changes
@@ -40,3 +40,9 @@ This should be a non-breaking change.
4040

4141
This means a port is now generated by the engine (like nodejs) itself, previously known as `EXP_NET0LISTEN`.
4242
This should reduce amount of `Max port tries exceeded` errors.
43+
44+
### Allow setting port generation in MongoMemoryServer
45+
46+
Starting with 10.0 there is a new option to set whether port generation is enabled or not on `MongoMemoryServer` called `portGeneration`. (default: `true`)
47+
48+
(Note that the `forceSamePort` parameter in `.start` will overwrite this option)

0 commit comments

Comments
 (0)