Skip to content

Commit c92afdf

Browse files
committed
Merge branch 'master' into beta
2 parents 2ffc024 + 1cf50d4 commit c92afdf

File tree

35 files changed

+124
-103
lines changed

35 files changed

+124
-103
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Make sure you read [Mastering-Markdown](https://guides.github.com/features/maste
1414

1515
- NodeJS: 0.0.0
1616
- mongodb-memory-server-*: 0.0.0 <!--"latest" is not a version-->
17-
- mongodb(the binary version): 0.0.0 <!--Let this stay at "0", when assuming default, also see https://nodkz.github.io/mongodb-memory-server/docs/guides/mongodb-server-versions#mongodb-memory-server-core-version-table -->
17+
- mongodb(the binary version): 0.0.0 <!--Let this stay at "0", when assuming default, also see https://typegoose.github.io/mongodb-memory-server/docs/guides/mongodb-server-versions#mongodb-memory-server-core-version-table -->
1818
- mongodb(the js package): 0.0.0 <!--Not required when having "mongoose" set-->
1919
- mongoose: 0.0.0 <!--Remove this if not used-->
2020
- system: <!--One of: Windows, MacOS, Linux (with distro and distro version)-->
@@ -40,7 +40,7 @@ code here
4040
## Debug Output
4141

4242
<!--
43-
In most cases the [Debug Output](https://github.com/nodkz/mongodb-memory-server#enable-debug-mode) would be helpful
43+
In most cases the [Debug Output](https://github.com/typegoose/mongodb-memory-server#enable-debug-mode) would be helpful
4444
Please provide the debug output in one of the following ways (the higher the more its preferred):
4545
(replace the `<details>` section with the url, if a URL is needed)
4646

.github/ISSUE_TEMPLATE/distribution-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: 'hasezoey'
99
<!--
1010
Make sure you read [Mastering-Markdown](https://guides.github.com/features/mastering-markdown/)
1111
12-
List of currently [Supported Systems](https://nodkz.github.io/mongodb-memory-server/docs/guides/supported-systems)
12+
List of currently [Supported Systems](https://typegoose.github.io/mongodb-memory-server/docs/guides/supported-systems)
1313
-->
1414

1515
## Versions
@@ -72,7 +72,7 @@ console.log("Arch", os.arch());
7272
## Current Error
7373

7474
<!--Please include the current error you are having, if any-->
75-
<!--Also if you see any "Falling back to legacy MongoDB build!" please include Debug Output, see https://nodkz.github.io/mongodb-memory-server/docs/guides/enable-debug-mode -->
75+
<!--Also if you see any "Falling back to legacy MongoDB build!" please include Debug Output, see https://typegoose.github.io/mongodb-memory-server/docs/guides/enable-debug-mode -->
7676

7777
```txt
7878
Paste Error in Here

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
CI: true
5454
- name: Send codecov.io stats
5555
if: matrix.node-version == '16.x'
56-
uses: codecov/codecov-action@v3
56+
uses: codecov/codecov-action@v4
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
5759

5860
publish:
5961
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/heads/old')

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
* **prettier:** upgrade to version 3.3.0 ([fe1d62d](https://github.com/nodkz/mongodb-memory-server/commit/fe1d62d4fff1849e3fd76d0db745337e6fb693d7))
4141
* **typedoc:** upgrade to version 0.25.13 ([0775c60](https://github.com/nodkz/mongodb-memory-server/commit/0775c60f14ec3026849ed70d24535c013b1d3aa7))
4242

43+
## [9.4.1](https://github.com/typegoose/mongodb-memory-server/compare/v9.4.0...v9.4.1) (2024-07-13)
44+
45+
46+
### Fixes
47+
48+
* trigger release ([8c48020](https://github.com/typegoose/mongodb-memory-server/commit/8c48020816fe19fbcc4f886fcfb96302eaff8714))
49+
4350
## [9.4.0](https://github.com/nodkz/mongodb-memory-server/compare/v9.3.0...v9.4.0) (2024-06-24)
4451

4552

@@ -787,6 +794,18 @@ also "disable" has been removed
787794
* **typescript:** upgrade to version 5.0.4 ([d531dde](https://github.com/nodkz/mongodb-memory-server/commit/d531ddea767cef2c038e228597812507e0590c2a))
788795
* **uuid:** remove package ([41b2551](https://github.com/nodkz/mongodb-memory-server/commit/41b2551a89df0eb806511efb85d5bd5f6419664c))
789796

797+
## [8.16.1](https://github.com/typegoose/mongodb-memory-server/compare/v8.16.0...v8.16.1) (2024-07-13)
798+
799+
800+
### Fixes
801+
802+
* trigger release ([62f43e7](https://github.com/typegoose/mongodb-memory-server/commit/62f43e7c9801ab3541157093b73de158bae48558))
803+
804+
805+
### Style
806+
807+
* **errors:** fix lint ([4137d32](https://github.com/typegoose/mongodb-memory-server/commit/4137d32f1c30ec65bec03191d1ab39679719533d))
808+
790809
## [8.16.0](https://github.com/nodkz/mongodb-memory-server/compare/v8.15.1...v8.16.0) (2023-10-05)
791810

792811

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# MongoDB In-Memory Server
22

3-
[![Node.js CI](https://github.com/nodkz/mongodb-memory-server/workflows/Node.js%20CI/badge.svg)](https://github.com/nodkz/mongodb-memory-server/actions/workflows/tests.yml?query=workflow%3A%22Node.js+CI%22)
3+
[![Node.js CI](https://github.com/typegoose/mongodb-memory-server/workflows/Node.js%20CI/badge.svg)](https://github.com/typegoose/mongodb-memory-server/actions/workflows/tests.yml?query=workflow%3A%22Node.js+CI%22)
44
[![NPM version](https://img.shields.io/npm/v/mongodb-memory-server.svg)](https://www.npmjs.com/package/mongodb-memory-server)
55
[![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server.svg)](http://www.npmtrends.com/mongodb-memory-server)
66
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
77
[![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org)
8-
[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master)
8+
[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master)
99
[![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers)
1010
[![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors)
1111
[![mongodb-memory-server-core](https://snyk.io/advisor/npm-package/mongodb-memory-server-core/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server-core)
@@ -14,7 +14,7 @@ This package spins up an actual/real MongoDB server programmatically from within
1414

1515
On install, this [package downloads](#configuring-which-mongod-binary-to-use) the latest MongoDB binaries and saves them to a cache folder. (only `mongodb-memory-server-core` does not download on `postinstall`)
1616

17-
On starting a new instance of the memory server, if the binary cannot be found, it will be auto-downloaded (if [`RUNTIME_DOWNLOAD`](https://nodkz.github.io/mongodb-memory-server/docs/api/config-options#runtime_download) option is truthy), thus the first run may take some time. All further runs will be fast, because they will use the downloaded binaries.
17+
On starting a new instance of the memory server, if the binary cannot be found, it will be auto-downloaded (if [`RUNTIME_DOWNLOAD`](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options#runtime_download) option is truthy), thus the first run may take some time. All further runs will be fast, because they will use the downloaded binaries.
1818

1919
This package automatically downloads binaries from [https://fastdl.mongodb.org/](https://fastdl.mongodb.org/) according to your operating system. You can see all available versions for [Linux](https://www.mongodb.org/dl/linux) (Ubuntu, RHEL, Debian, SUSE, Amazon), [OSX](https://www.mongodb.org/dl/osx), and [Windows](https://www.mongodb.org/dl/win32).
2020

@@ -82,11 +82,11 @@ On Linux, you will also need `libcurl4` (or `libcurl3` on some older distro vers
8282

8383
### Choose the Correct Package
8484

85-
[Choose the right package for the task](https://nodkz.github.io/mongodb-memory-server/docs/guides/quick-start-guide#choose-the-right-package)
85+
[Choose the right package for the task](https://typegoose.github.io/mongodb-memory-server/docs/guides/quick-start-guide#choose-the-right-package)
8686

8787
### Configuring which mongod binary to use
8888

89-
The default behavior is that version `7.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:
89+
The default behavior is that version `7.0.9` for your OS will be downloaded. By setting [Environment variables](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options) you are able to specify which version and binary will be downloaded:
9090

9191
```sh
9292
export MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.2.8.tgz
@@ -129,7 +129,7 @@ const mongod = new MongoMemoryServer({
129129
},
130130
binary?: {
131131
version?: string, // by default '7.0.9'
132-
downloadDir?: string, // see the documentation on what is chosen by default https://nodkz.github.io/mongodb-memory-server/docs/api/config-options#download_dir
132+
downloadDir?: string, // see the documentation on what is chosen by default https://typegoose.github.io/mongodb-memory-server/docs/api/config-options#download_dir
133133
platform?: string, // by default os.platform()
134134
arch?: string, // by default os.arch()
135135
checkMD5?: boolean, // by default false OR process.env.MONGOMS_MD5_CHECK
@@ -217,15 +217,15 @@ const replSet = new MongoMemoryReplSet({
217217

218218
### Config Options
219219

220-
[Documentation of Config Options](https://nodkz.github.io/mongodb-memory-server/docs/api/config-options)
220+
[Documentation of Config Options](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options)
221221

222222
### Simple test with MongoClient in Jest
223223

224-
A example test file for a *single* [MongoMemoryServer](https://github.com/nodkz/mongodb-memory-server/blob/master/packages/mongodb-memory-server-core/src/__tests__/singleDB.test.ts) within jest.
224+
A example test file for a *single* [MongoMemoryServer](https://github.com/typegoose/mongodb-memory-server/blob/master/packages/mongodb-memory-server-core/src/__tests__/singleDB.test.ts) within jest.
225225

226-
A example test file for *multiple* [MongoMemoryServer](https://github.com/nodkz/mongodb-memory-server/blob/master/packages/mongodb-memory-server-core/src/__tests__/multipleDB.test.ts) within jest.
226+
A example test file for *multiple* [MongoMemoryServer](https://github.com/typegoose/mongodb-memory-server/blob/master/packages/mongodb-memory-server-core/src/__tests__/multipleDB.test.ts) within jest.
227227

228-
A example test file for a *single* [MongoMemoryReplSet](https://github.com/nodkz/mongodb-memory-server/blob/master/packages/mongodb-memory-server-core/src/__tests__/replset-multi.test.ts) within jest.
228+
A example test file for a *single* [MongoMemoryReplSet](https://github.com/typegoose/mongodb-memory-server/blob/master/packages/mongodb-memory-server-core/src/__tests__/replset-multi.test.ts) within jest.
229229

230230
### Provide connection string to mongoose
231231

@@ -247,13 +247,13 @@ const mongoServer = await MongoMemoryServer.create();
247247

248248
### Test Runner Examples
249249

250-
[Documentation for Test Runner Integration Examples](https://nodkz.github.io/mongodb-memory-server/docs/guides/integration-examples/test-runners)
250+
[Documentation for Test Runner Integration Examples](https://typegoose.github.io/mongodb-memory-server/docs/guides/integration-examples/test-runners)
251251

252252
### Docker Alpine
253253

254254
There isn't currently an official MongoDB release for alpine linux. This means that we can't pull binaries for Alpine
255255
(or any other platform that isn't officially supported by MongoDB), but you can use a Docker image that already has mongod
256-
built in and then set the [`MONGOMS_SYSTEM_BINARY`](https://nodkz.github.io/mongodb-memory-server/docs/api/config-options#system_binary) variable to point at that binary. This should allow you to use `mongodb-memory-server` on any system on which you can install mongod manually.
256+
built in and then set the [`MONGOMS_SYSTEM_BINARY`](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options#system_binary) variable to point at that binary. This should allow you to use `mongodb-memory-server` on any system on which you can install mongod manually.
257257

258258
### Enable Debug Mode
259259

@@ -275,7 +275,7 @@ or
275275
}
276276
```
277277

278-
Also see the [Enable Debug Mode](https://nodkz.github.io/mongodb-memory-server/docs/guides/enable-debug-mode) Guide.
278+
Also see the [Enable Debug Mode](https://typegoose.github.io/mongodb-memory-server/docs/guides/enable-debug-mode) Guide.
279279

280280
## Contributing
281281

@@ -287,9 +287,9 @@ To ask questions or just talk with us, [join our Discord Server](https://discord
287287

288288
## Documentation
289289

290-
- [Documentation](https://nodkz.github.io/mongodb-memory-server/docs/api/index-api)
291-
- [Quick start guide](https://nodkz.github.io/mongodb-memory-server/docs/guides/quick-start-guide/)
292-
- [Known Issues](https://nodkz.github.io/mongodb-memory-server/docs/guides/known-issues)
290+
- [Documentation](https://typegoose.github.io/mongodb-memory-server/docs/api/index-api)
291+
- [Quick start guide](https://typegoose.github.io/mongodb-memory-server/docs/guides/quick-start-guide/)
292+
- [Known Issues](https://typegoose.github.io/mongodb-memory-server/docs/guides/known-issues)
293293

294294
## Credits
295295

docs/api/classes/mongo-instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Typings: `async start(): Promise<void>`
4242
Start the `mongod` and the watcher processes
4343

4444
:::caution
45-
Currently does not check if the instance is in a correct state and just resets all values, see [#662](https://github.com/nodkz/mongodb-memory-server/issues/662).
45+
Currently does not check if the instance is in a correct state and just resets all values, see [#662](https://github.com/typegoose/mongodb-memory-server/issues/662).
4646
:::
4747

4848
### stop

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ API Documentation of `CreateUser`-Interface
77

88
## Values
99

10-
This Interface inherits most values from the `CreateUserMongoDB` interface, which is a interface for the `createUser` command manually types, see [#663](https://github.com/nodkz/mongodb-memory-server/issues/663) for tracking on switching to native interface.
10+
This Interface inherits most values from the `CreateUserMongoDB` interface, which is a interface for the `createUser` command manually types, see [#663](https://github.com/typegoose/mongodb-memory-server/issues/663) for tracking on switching to native interface.
1111

1212
Because most values are inherited, only the new ones and important ones are described here.
1313

docs/guides/error-warning-details.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Example:
1010
```txt
1111
Incorrect State for operation: "${gotState}", allowed States: "[${wantedStates.join(',')}]"
1212
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
13-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything
13+
https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything
1414
```
1515

1616
Details:
@@ -186,11 +186,11 @@ The Linux distro in use does not have a mapping for a mongodb version, please re
186186
Code: `MMS001`
187187
Message: `mongodb-memory-server will fully drop support for ia32 in 9.0`
188188

189-
In the major version `9.0` MMS will fully drop support for the architecture `ia32` (`i386` / `i686`), because MongoDB stopped supporting the architecture past 3.x, and MMS never full supported 3.6 or lower anyway, see [#638 for tracking](https://github.com/nodkz/mongodb-memory-server/issues/638).
189+
In the major version `9.0` MMS will fully drop support for the architecture `ia32` (`i386` / `i686`), because MongoDB stopped supporting the architecture past 3.x, and MMS never full supported 3.6 or lower anyway, see [#638 for tracking](https://github.com/typegoose/mongodb-memory-server/issues/638).
190190

191191
### MMS002
192192

193193
Code: `MMS002`
194194
Message: `mongodb-memory-server will fully drop support for sunos in 9.0`
195195

196-
In the major version `9.0` MMS will fully drop support for the platfrom `sunos`, because MMS never actually supported `sunos` in the first place and Mongodb has stopped providing builds after ~3.4, see [#661 for tracking](https://github.com/nodkz/mongodb-memory-server/issues/661).
196+
In the major version `9.0` MMS will fully drop support for the platfrom `sunos`, because MMS never actually supported `sunos` in the first place and Mongodb has stopped providing builds after ~3.4, see [#661 for tracking](https://github.com/typegoose/mongodb-memory-server/issues/661).

docs/guides/migration/migrate7.md

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

88
:::caution Important, Read this first
9-
This Guide is written for migration from version `6.9.6` to `7.0.0`, for versions `>7.0.0 <8.0.0`, please consult the [CHANGELOG](https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md)
9+
This Guide is written for migration from version `6.9.6` to `7.0.0`, for versions `>7.0.0 <8.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md)
1010
:::
1111

1212
## Requirement Changes
@@ -84,7 +84,7 @@ This also includes function renames:
8484

8585
This was changed to allow mongodb and mongoose URI's to work at the same time (they slightly differ).
8686

87-
[See the code comment for more information](https://github.com/nodkz/mongodb-memory-server/blob/3624253f509a54cff04997943894b9eb7e7e64fe/packages/mongodb-memory-server-core/src/util/utils.ts#L13-L17)
87+
[See the code comment for more information](https://github.com/typegoose/mongodb-memory-server/blob/3624253f509a54cff04997943894b9eb7e7e64fe/packages/mongodb-memory-server-core/src/util/utils.ts#L13-L17)
8888

8989
## Non-Breaking changes / Additions
9090

docs/guides/migration/migrate8.md

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

88
:::caution Important, Read this first
9-
This Guide is written for migration from version `7.6.0` to `8.0.0`, for versions `>8.0.0 <9.0.0`, please consult the [CHANGELOG](https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md)
9+
This Guide is written for migration from version `7.6.0` to `8.0.0`, for versions `>8.0.0 <9.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md)
1010
:::
1111

1212
## Breaking Changes

0 commit comments

Comments
 (0)