diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index 695648773..0a3967bf2 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -14,7 +14,7 @@ Make sure you read [Mastering-Markdown](https://guides.github.com/features/maste - NodeJS: 0.0.0 - mongodb-memory-server-*: 0.0.0 -- mongodb(the binary version): 0.0.0 +- mongodb(the binary version): 0.0.0 - mongodb(the js package): 0.0.0 - mongoose: 0.0.0 - system: @@ -40,7 +40,7 @@ code here ## Debug Output ## Versions @@ -72,7 +72,7 @@ console.log("Arch", os.arch()); ## Current Error - + ```txt Paste Error in Here diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae452e9f2..ff47d3271 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,7 +53,9 @@ jobs: CI: true - name: Send codecov.io stats if: matrix.node-version == '16.x' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} publish: if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/heads/old') diff --git a/CHANGELOG.md b/CHANGELOG.md index ad99428ae..b2aae99a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,13 @@ * **prettier:** upgrade to version 3.3.0 ([fe1d62d](https://github.com/nodkz/mongodb-memory-server/commit/fe1d62d4fff1849e3fd76d0db745337e6fb693d7)) * **typedoc:** upgrade to version 0.25.13 ([0775c60](https://github.com/nodkz/mongodb-memory-server/commit/0775c60f14ec3026849ed70d24535c013b1d3aa7)) +## [9.4.1](https://github.com/typegoose/mongodb-memory-server/compare/v9.4.0...v9.4.1) (2024-07-13) + + +### Fixes + +* trigger release ([8c48020](https://github.com/typegoose/mongodb-memory-server/commit/8c48020816fe19fbcc4f886fcfb96302eaff8714)) + ## [9.4.0](https://github.com/nodkz/mongodb-memory-server/compare/v9.3.0...v9.4.0) (2024-06-24) @@ -787,6 +794,18 @@ also "disable" has been removed * **typescript:** upgrade to version 5.0.4 ([d531dde](https://github.com/nodkz/mongodb-memory-server/commit/d531ddea767cef2c038e228597812507e0590c2a)) * **uuid:** remove package ([41b2551](https://github.com/nodkz/mongodb-memory-server/commit/41b2551a89df0eb806511efb85d5bd5f6419664c)) +## [8.16.1](https://github.com/typegoose/mongodb-memory-server/compare/v8.16.0...v8.16.1) (2024-07-13) + + +### Fixes + +* trigger release ([62f43e7](https://github.com/typegoose/mongodb-memory-server/commit/62f43e7c9801ab3541157093b73de158bae48558)) + + +### Style + +* **errors:** fix lint ([4137d32](https://github.com/typegoose/mongodb-memory-server/commit/4137d32f1c30ec65bec03191d1ab39679719533d)) + ## [8.16.0](https://github.com/nodkz/mongodb-memory-server/compare/v8.15.1...v8.16.0) (2023-10-05) diff --git a/README.md b/README.md index 8d142c0ae..eb699ac2d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # MongoDB In-Memory Server -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server.svg)](https://www.npmjs.com/package/mongodb-memory-server) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server.svg)](http://www.npmtrends.com/mongodb-memory-server) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![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 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`) -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. +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. 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). @@ -82,11 +82,11 @@ On Linux, you will also need `libcurl4` (or `libcurl3` on some older distro vers ### Choose the Correct Package -[Choose the right package for the task](https://nodkz.github.io/mongodb-memory-server/docs/guides/quick-start-guide#choose-the-right-package) +[Choose the right package for the task](https://typegoose.github.io/mongodb-memory-server/docs/guides/quick-start-guide#choose-the-right-package) ### Configuring which mongod binary to use -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: +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: ```sh 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({ }, binary?: { version?: string, // by default '7.0.9' - downloadDir?: string, // see the documentation on what is chosen by default https://nodkz.github.io/mongodb-memory-server/docs/api/config-options#download_dir + downloadDir?: string, // see the documentation on what is chosen by default https://typegoose.github.io/mongodb-memory-server/docs/api/config-options#download_dir platform?: string, // by default os.platform() arch?: string, // by default os.arch() checkMD5?: boolean, // by default false OR process.env.MONGOMS_MD5_CHECK @@ -217,15 +217,15 @@ const replSet = new MongoMemoryReplSet({ ### Config Options -[Documentation of Config Options](https://nodkz.github.io/mongodb-memory-server/docs/api/config-options) +[Documentation of Config Options](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options) ### Simple test with MongoClient in Jest -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. +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. -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. +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. -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. +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. ### Provide connection string to mongoose @@ -247,13 +247,13 @@ const mongoServer = await MongoMemoryServer.create(); ### Test Runner Examples -[Documentation for Test Runner Integration Examples](https://nodkz.github.io/mongodb-memory-server/docs/guides/integration-examples/test-runners) +[Documentation for Test Runner Integration Examples](https://typegoose.github.io/mongodb-memory-server/docs/guides/integration-examples/test-runners) ### Docker Alpine There isn't currently an official MongoDB release for alpine linux. This means that we can't pull binaries for Alpine (or any other platform that isn't officially supported by MongoDB), but you can use a Docker image that already has mongod -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. +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. ### Enable Debug Mode @@ -275,7 +275,7 @@ or } ``` -Also see the [Enable Debug Mode](https://nodkz.github.io/mongodb-memory-server/docs/guides/enable-debug-mode) Guide. +Also see the [Enable Debug Mode](https://typegoose.github.io/mongodb-memory-server/docs/guides/enable-debug-mode) Guide. ## Contributing @@ -287,9 +287,9 @@ To ask questions or just talk with us, [join our Discord Server](https://discord ## Documentation -- [Documentation](https://nodkz.github.io/mongodb-memory-server/docs/api/index-api) -- [Quick start guide](https://nodkz.github.io/mongodb-memory-server/docs/guides/quick-start-guide/) -- [Known Issues](https://nodkz.github.io/mongodb-memory-server/docs/guides/known-issues) +- [Documentation](https://typegoose.github.io/mongodb-memory-server/docs/api/index-api) +- [Quick start guide](https://typegoose.github.io/mongodb-memory-server/docs/guides/quick-start-guide/) +- [Known Issues](https://typegoose.github.io/mongodb-memory-server/docs/guides/known-issues) ## Credits diff --git a/docs/api/classes/mongo-instance.md b/docs/api/classes/mongo-instance.md index d4106209a..f52c198da 100644 --- a/docs/api/classes/mongo-instance.md +++ b/docs/api/classes/mongo-instance.md @@ -42,7 +42,7 @@ Typings: `async start(): Promise` Start the `mongod` and the watcher processes :::caution -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). +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). ::: ### stop diff --git a/docs/api/interfaces/mongo-memory-server-createuser.md b/docs/api/interfaces/mongo-memory-server-createuser.md index 92f4c4bf9..e84b5c4e0 100644 --- a/docs/api/interfaces/mongo-memory-server-createuser.md +++ b/docs/api/interfaces/mongo-memory-server-createuser.md @@ -7,7 +7,7 @@ API Documentation of `CreateUser`-Interface ## Values -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. +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. Because most values are inherited, only the new ones and important ones are described here. diff --git a/docs/guides/error-warning-details.md b/docs/guides/error-warning-details.md index d26eccf4c..43ac6d9d0 100644 --- a/docs/guides/error-warning-details.md +++ b/docs/guides/error-warning-details.md @@ -10,7 +10,7 @@ Example: ```txt Incorrect State for operation: "${gotState}", allowed States: "[${wantedStates.join(',')}]" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything ``` Details: @@ -186,11 +186,11 @@ The Linux distro in use does not have a mapping for a mongodb version, please re Code: `MMS001` Message: `mongodb-memory-server will fully drop support for ia32 in 9.0` -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). +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). ### MMS002 Code: `MMS002` Message: `mongodb-memory-server will fully drop support for sunos in 9.0` -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). +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). diff --git a/docs/guides/migration/migrate7.md b/docs/guides/migration/migrate7.md index c1e2c3117..c139a02d3 100644 --- a/docs/guides/migration/migrate7.md +++ b/docs/guides/migration/migrate7.md @@ -6,7 +6,7 @@ title: 'Migrate to version 7.0.0' Here are the Important changes made for 7.0.0 :::caution Important, Read this first -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) +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) ::: ## Requirement Changes @@ -84,7 +84,7 @@ This also includes function renames: This was changed to allow mongodb and mongoose URI's to work at the same time (they slightly differ). -[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) +[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) ## Non-Breaking changes / Additions diff --git a/docs/guides/migration/migrate8.md b/docs/guides/migration/migrate8.md index ff7a9b977..390cc7d47 100644 --- a/docs/guides/migration/migrate8.md +++ b/docs/guides/migration/migrate8.md @@ -6,7 +6,7 @@ title: 'Migrate to version 8.0.0' Here are the Important changes made for 8.0.0 :::caution Important, Read this first -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) +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) ::: ## Breaking Changes diff --git a/docs/guides/migration/migrate9.md b/docs/guides/migration/migrate9.md index 6fce16688..4d1c0de74 100644 --- a/docs/guides/migration/migrate9.md +++ b/docs/guides/migration/migrate9.md @@ -6,7 +6,7 @@ title: 'Migrate to version 9.0.0' Here are the Important changes made for 9.0.0 :::caution Important, Read this first -This Guide is written for migration from version `8.16.0` to `9.0.0`, for versions `>9.0.0 <10.0.0`, please consult the [CHANGELOG](https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md) +This Guide is written for migration from version `8.16.0` to `9.0.0`, for versions `>9.0.0 <10.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md) ::: ## Breaking Changes diff --git a/package.json b/package.json index ace0cd1b8..86c200689 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "In-memory MongoDB Server. Designed with testing in mind, the server will allow you to connect your favourite ODM or client library to the MongoDB Server and run integration tests isolated from each other.", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git" + "url": "git+https://github.com/typegoose/mongodb-memory-server.git" }, "devDependencies": { "@commitlint/cli": "17.8.1", diff --git a/packages/mongodb-memory-server-core/README.md b/packages/mongodb-memory-server-core/README.md index b60664c85..431c515f5 100644 --- a/packages/mongodb-memory-server-core/README.md +++ b/packages/mongodb-memory-server-core/README.md @@ -1,15 +1,15 @@ # mongodb-memory-server-core -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server-core.svg)](https://www.npmjs.com/package/mongodb-memory-server-core) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server-core.svg)](http://www.npmtrends.com/mongodb-memory-server-core) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![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) Core package which contains main code. Used in all other packages. -[Full README with available options and examples](https://github.com/nodkz/mongodb-memory-server) +[Full README with available options and examples](https://github.com/typegoose/mongodb-memory-server) diff --git a/packages/mongodb-memory-server-core/package.json b/packages/mongodb-memory-server-core/package.json index 4029a1b1f..de56ecb5f 100644 --- a/packages/mongodb-memory-server-core/package.json +++ b/packages/mongodb-memory-server-core/package.json @@ -7,7 +7,7 @@ "type": "commonjs", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git", + "url": "git+https://github.com/typegoose/mongodb-memory-server.git", "directory": "packages/mongodb-memory-server-core" }, "engines": { @@ -28,9 +28,9 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/nodkz/mongodb-memory-server/issues" + "url": "https://github.com/typegoose/mongodb-memory-server/issues" }, - "homepage": "https://github.com/nodkz/mongodb-memory-server", + "homepage": "https://github.com/typegoose/mongodb-memory-server", "devDependencies": { "@types/debug": "^4.1.12", "@types/find-cache-dir": "^3.2.1", diff --git a/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryReplSet.test.ts.snap b/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryReplSet.test.ts.snap index 1f9043902..a66bd6fc0 100644 --- a/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryReplSet.test.ts.snap +++ b/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryReplSet.test.ts.snap @@ -7,19 +7,19 @@ exports[`MongoMemoryReplSet getters & setters setter of "replSetOpts" should thr exports[`MongoMemoryReplSet getters & setters state errors setter of "binaryOpts" should throw an error if state is not "stopped" 1`] = ` "Incorrect State for operation: \\"init\\", allowed States: \\"[stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryReplSet getters & setters state errors setter of "instanceOpts" should throw an error if state is not "stopped" 1`] = ` "Incorrect State for operation: \\"init\\", allowed States: \\"[stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryReplSet getters & setters state errors setter of "replSetOpts" should throw an error if state is not "stopped" 1`] = ` "Incorrect State for operation: \\"init\\", allowed States: \\"[stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryReplSet server version specific should warn if "ephemeralForTest" is used explicitly in mongodb 7.0 1`] = ` @@ -34,7 +34,7 @@ This warning is because the mentioned storage engine is explicitly used and mong exports[`single server replset "_initReplSet" should throw an error if _state is not "init" 1`] = ` "Incorrect State for operation: \\"running\\", allowed States: \\"[init]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`single server replset "_initReplSet" should throw if server count is 0 or less 1`] = `"One or more servers are required."`; @@ -42,7 +42,7 @@ exports[`single server replset "_initReplSet" should throw if server count is 0 exports[`single server replset "getUri" should throw an error if _state is not "running" or "init" 1`] = ` "Incorrect State for operation: \\"stopped\\", allowed States: \\"[running,init]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`single server replset "new" should throw an error if replSet count is 0 or less 1`] = `"ReplSet Count needs to be 1 or higher! (specified count: \\"0\\")"`; @@ -50,11 +50,11 @@ exports[`single server replset "new" should throw an error if replSet count is 0 exports[`single server replset "start" should throw an error if _state is not "stopped" 1`] = ` "Incorrect State for operation: \\"running\\", allowed States: \\"[stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`single server replset "waitUntilRunning" should throw an error if _state is not "init" 1`] = ` "Incorrect State for operation: \\"stopped\\", allowed States: \\"[running,init]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; diff --git a/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryServer.test.ts.snap b/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryServer.test.ts.snap index 11c9d82d8..0116363f1 100644 --- a/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryServer.test.ts.snap +++ b/packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryServer.test.ts.snap @@ -5,7 +5,7 @@ exports[`MongoMemoryServer "createAuth" should throw an error if called without exports[`MongoMemoryServer cleanup() should throw an error if state is not "stopped" 1`] = ` "Incorrect State for operation: \\"new\\", allowed States: \\"[stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryServer ensureInstance() should throw an error if "instanceInfo" is undefined but "_state" is "running" 1`] = `"\\"instanceInfo\\" was undefined when expected to be defined! (where: \\"MongoMemoryServer.ensureInstance (state: running)\\")"`; @@ -15,7 +15,7 @@ exports[`MongoMemoryServer ensureInstance() should throw an error if no "instanc exports[`MongoMemoryServer ensureInstance() should throw an error if the given "_state" has no case 1`] = ` "Incorrect State for operation: \\"not Existing\\", allowed States: \\"[running,new,stopped,starting]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryServer getStartOptions() should work with -latest versions [#841] 1`] = ` @@ -29,13 +29,13 @@ Array [ exports[`MongoMemoryServer getUri() should throw an state error, if not starting or running 1`] = ` "Incorrect State for operation: \\"new\\", allowed States: \\"[running,starting]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryServer getUri() should throw an state error, if not starting or running 2`] = ` "Incorrect State for operation: \\"new\\", allowed States: \\"[running,starting]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryServer server version specific should warn if "ephemeralForTest" is used explicitly in mongodb 7.0 1`] = ` @@ -50,11 +50,11 @@ This warning is because the mentioned storage engine is explicitly used and mong exports[`MongoMemoryServer start() should throw an error if state is not "new" or "stopped" 1`] = ` "Incorrect State for operation: \\"starting\\", allowed States: \\"[new,stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; exports[`MongoMemoryServer start() should throw an error if state is not "new" or "stopped" 2`] = ` "Incorrect State for operation: \\"running\\", allowed States: \\"[new,stopped]\\" This may be because of using a v6.x way of calling functions, look at the following guide if anything applies: -https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" +https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything" `; diff --git a/packages/mongodb-memory-server-core/src/util/DryMongoBinary.ts b/packages/mongodb-memory-server-core/src/util/DryMongoBinary.ts index 2fb5a916a..e773d4428 100644 --- a/packages/mongodb-memory-server-core/src/util/DryMongoBinary.ts +++ b/packages/mongodb-memory-server-core/src/util/DryMongoBinary.ts @@ -114,7 +114,7 @@ export class DryMongoBinary { // check for the race-condition of "extraction started, but not finished" // or said differently, the file "exists" but is not fully extracted yet - // see https://github.com/nodkz/mongodb-memory-server/issues/872 + // see https://github.com/typegoose/mongodb-memory-server/issues/872 if ( returnValue[0] && (await pathExists(lockfilePath(path.dirname(returnValue[1]), useOpts.version))) diff --git a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts index 79c5b6057..2d2fa1779 100644 --- a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts +++ b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts @@ -248,7 +248,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts { release: '22.04', }); } else if (regexHelper(/gentoo/i, os)) { - // it seems like debian binaries work for gentoo too (at least most), see https://github.com/nodkz/mongodb-memory-server/issues/639 + // it seems like debian binaries work for gentoo too (at least most), see https://github.com/typegoose/mongodb-memory-server/issues/639 console.warn( `There is no official build of MongoDB for Gentoo (${os.dist}). Falling back to Debian.` ); @@ -261,7 +261,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts { } else if (regexHelper(/unknown/i, os)) { // "unknown" is likely to happen if no release file / command could be found console.warn( - 'Couldnt parse dist information, please report this to https://github.com/nodkz/mongodb-memory-server/issues' + 'Couldnt parse dist information, please report this to https://github.com/typegoose/mongodb-memory-server/issues' ); } diff --git a/packages/mongodb-memory-server-core/src/util/MongoInstance.ts b/packages/mongodb-memory-server-core/src/util/MongoInstance.ts index 27d954096..b8ce98211 100644 --- a/packages/mongodb-memory-server-core/src/util/MongoInstance.ts +++ b/packages/mongodb-memory-server-core/src/util/MongoInstance.ts @@ -250,7 +250,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase { /** * Extra promise to avoid multiple calls of `.stop` at the same time * - * @see https://github.com/nodkz/mongodb-memory-server/issues/802 + * @see https://github.com/typegoose/mongodb-memory-server/issues/802 */ // NOTE: i am not sure how to properly test this stopPromise?: Promise; diff --git a/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts b/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts index ec3a56518..029de5692 100644 --- a/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts +++ b/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts @@ -1169,7 +1169,7 @@ describe('MongoBinaryDownloadUrl', () => { }); }); - // see https://github.com/nodkz/mongodb-memory-server/issues/527 + // see https://github.com/typegoose/mongodb-memory-server/issues/527 describe('for amazon', () => { it('should return a archive name for Amazon 1', async () => { const du = new MongoBinaryDownloadUrl({ @@ -1915,7 +1915,7 @@ describe('MongoBinaryDownloadUrl', () => { }); it('should return default version with warning when using ID_LIKE but not being ubuntu', () => { - // Test for https://github.com/nodkz/mongodb-memory-server/issues/616 + // Test for https://github.com/typegoose/mongodb-memory-server/issues/616 const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementationOnce(() => void 0); downloadUrl.version = '6.0.4'; diff --git a/packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts b/packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts index 68c9c9f36..2823d480a 100644 --- a/packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts +++ b/packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts @@ -511,7 +511,7 @@ describe('MongodbInstance', () => { // All the lines used to test here should be sourced from actual mongod output! it('should emit "instanceError" when "aborting after" is found', () => { - // actual line copied from mongod 5.0.8 (from https://github.com/nodkz/mongodb-memory-server/issues/727) + // actual line copied from mongod 5.0.8 (from https://github.com/typegoose/mongodb-memory-server/issues/727) const line = '{"t":{"$date":"2023-01-05T13:55:59.493+00:00"},"s":"F", "c":"-", "id":23079, "ctx":"conn13","msg":"Invariant failure","attr":{"expr":"readTs","file":"src/mongo/db/read_concern_mongod.cpp","line":529}}\n{"t":{"$date":"2023-01-05T13:55:59.493+00:00"},"s":"F", "c":"-", "id":23080, "ctx":"conn13","msg":"\n\n***aborting after invariant() failure\n\n"}'; @@ -555,7 +555,7 @@ describe('MongodbInstance', () => { }); it('should emit "instanceError" when curl-open-ssl-3 is not found', () => { - // actual line copied from mongod 4.0.3 (from https://github.com/nodkz/mongodb-memory-server/issues/204#issuecomment-514492136) + // actual line copied from mongod 4.0.3 (from https://github.com/typegoose/mongodb-memory-server/issues/204#issuecomment-514492136) const line = "/fm/fm-api/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version 'CURL_OPENSSL_3' not found (required by /fm/fm-api/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod)"; @@ -571,7 +571,7 @@ describe('MongodbInstance', () => { }); it('should emit "instanceError" when curl-open-ssl-4 is not found', () => { - // actual line copied from mongod 4.0.14 (from https://github.com/nodkz/mongodb-memory-server/issues/313#issue-631429207) + // actual line copied from mongod 4.0.14 (from https://github.com/typegoose/mongodb-memory-server/issues/313#issue-631429207) const line = "/usr/src/app/packages/backend/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.14/mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /usr/src/app/packages/backend/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.14/mongod)"; diff --git a/packages/mongodb-memory-server-core/src/util/errors.ts b/packages/mongodb-memory-server-core/src/util/errors.ts index 9939ba0aa..0af505738 100644 --- a/packages/mongodb-memory-server-core/src/util/errors.ts +++ b/packages/mongodb-memory-server-core/src/util/errors.ts @@ -10,7 +10,7 @@ export class StateError extends Error { ',' )}]"\n` + 'This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:\n' + - 'https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything' + 'https://typegoose.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything' ); } } diff --git a/packages/mongodb-memory-server-core/src/util/getos/__tests__/getos.test.ts b/packages/mongodb-memory-server-core/src/util/getos/__tests__/getos.test.ts index a66fc1327..bd8cdac25 100644 --- a/packages/mongodb-memory-server-core/src/util/getos/__tests__/getos.test.ts +++ b/packages/mongodb-memory-server-core/src/util/getos/__tests__/getos.test.ts @@ -105,7 +105,7 @@ UBUNTU_CODENAME=focal`; }); it('should parse multiple "id_like"', () => { - // output taken from https://github.com/nodkz/mongodb-memory-server/issues/525#issuecomment-894279720 + // output taken from https://github.com/typegoose/mongodb-memory-server/issues/525#issuecomment-894279720 const example = `NAME="Amazon Linux" VERSION="2" ID="amzn" diff --git a/packages/mongodb-memory-server-core/src/util/utils.ts b/packages/mongodb-memory-server-core/src/util/utils.ts index 71eb67d65..b01a21c10 100644 --- a/packages/mongodb-memory-server-core/src/util/utils.ts +++ b/packages/mongodb-memory-server-core/src/util/utils.ts @@ -104,14 +104,14 @@ export async function killProcess( log(`Mongo[${mongodPort || 'unknown'}] killProcess: ${msg}`); } - // this case can somehow happen, see https://github.com/nodkz/mongodb-memory-server/issues/666 + // this case can somehow happen, see https://github.com/typegoose/mongodb-memory-server/issues/666 if (isNullOrUndefined(childprocess)) { ilog('childprocess was somehow undefined'); return; } - // check if the childProcess (via PID) is still alive (found thanks to https://github.com/nodkz/mongodb-memory-server/issues/411) + // check if the childProcess (via PID) is still alive (found thanks to https://github.com/typegoose/mongodb-memory-server/issues/411) if (!isAlive(childprocess.pid)) { ilog("given childProcess's PID was not alive anymore"); diff --git a/packages/mongodb-memory-server-global-4.0/README.md b/packages/mongodb-memory-server-global-4.0/README.md index bd2625b86..796924c69 100644 --- a/packages/mongodb-memory-server-global-4.0/README.md +++ b/packages/mongodb-memory-server-global-4.0/README.md @@ -1,15 +1,15 @@ # mongodb-memory-server-global-4.0 -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server-global-4.0.svg)](https://www.npmjs.com/package/mongodb-memory-server-global-4.0) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server-global-4.0.svg)](http://www.npmtrends.com/mongodb-memory-server-global-4.0) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![mongodb-memory-server-global-4.0](https://snyk.io/advisor/npm-package/mongodb-memory-server-global-4.0/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server-global-4.0) Main default package which downloads `v4.0` mongod binary to `%HOME/.cache/mongodb-binaries` directory on package install. -[Full README with avaliable options and examples](https://github.com/nodkz/mongodb-memory-server) +[Full README with avaliable options and examples](https://github.com/typegoose/mongodb-memory-server) diff --git a/packages/mongodb-memory-server-global-4.0/package.json b/packages/mongodb-memory-server-global-4.0/package.json index 32ea0a346..e840331b6 100644 --- a/packages/mongodb-memory-server-global-4.0/package.json +++ b/packages/mongodb-memory-server-global-4.0/package.json @@ -8,13 +8,13 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git", + "url": "git+https://github.com/typegoose/mongodb-memory-server.git", "directory": "packages/mongodb-memory-server-global-4.4" }, "engines": { "node": ">=16.20.1" }, - "homepage": "https://github.com/nodkz/mongodb-memory-server", + "homepage": "https://github.com/typegoose/mongodb-memory-server", "keywords": [ "mongodb", "mongoose", diff --git a/packages/mongodb-memory-server-global-4.2/README.md b/packages/mongodb-memory-server-global-4.2/README.md index f650a4ec0..2ab6229d1 100644 --- a/packages/mongodb-memory-server-global-4.2/README.md +++ b/packages/mongodb-memory-server-global-4.2/README.md @@ -1,15 +1,15 @@ # mongodb-memory-server-global-4.2 -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server-global-4.2.svg)](https://www.npmjs.com/package/mongodb-memory-server-global-4.2) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server-global-4.2.svg)](http://www.npmtrends.com/mongodb-memory-server-global-4.2) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![mongodb-memory-server-global-4.2](https://snyk.io/advisor/npm-package/mongodb-memory-server-global-4.2/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server-global-4.2) Main default package which downloads `v4.2` mongod binary to `%HOME/.cache/mongodb-binaries` directory on package install. -[Full README with avaliable options and examples](https://github.com/nodkz/mongodb-memory-server) +[Full README with avaliable options and examples](https://github.com/typegoose/mongodb-memory-server) diff --git a/packages/mongodb-memory-server-global-4.2/package.json b/packages/mongodb-memory-server-global-4.2/package.json index 513d41845..adb4bd1a6 100644 --- a/packages/mongodb-memory-server-global-4.2/package.json +++ b/packages/mongodb-memory-server-global-4.2/package.json @@ -8,13 +8,13 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git", + "url": "git+https://github.com/typegoose/mongodb-memory-server.git", "directory": "packages/mongodb-memory-server-global-4.2" }, "engines": { "node": ">=16.20.1" }, - "homepage": "https://github.com/nodkz/mongodb-memory-server", + "homepage": "https://github.com/typegoose/mongodb-memory-server", "keywords": [ "mongodb", "mongoose", diff --git a/packages/mongodb-memory-server-global-4.4/README.md b/packages/mongodb-memory-server-global-4.4/README.md index 7b9497a69..43c006576 100644 --- a/packages/mongodb-memory-server-global-4.4/README.md +++ b/packages/mongodb-memory-server-global-4.4/README.md @@ -1,15 +1,15 @@ # mongodb-memory-server-global-4.4 -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server-global-4.4.svg)](https://www.npmjs.com/package/mongodb-memory-server-global-4.4) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server-global-4.4.svg)](http://www.npmtrends.com/mongodb-memory-server-global-4.4) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![mongodb-memory-server-global-4.4](https://snyk.io/advisor/npm-package/mongodb-memory-server-global-4.4/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server-global-4.4) Main default package which downloads `v4.4` mongod binary to `%HOME/.cache/mongodb-binaries` directory on package install. -[Full README with avaliable options and examples](https://github.com/nodkz/mongodb-memory-server) +[Full README with avaliable options and examples](https://github.com/typegoose/mongodb-memory-server) diff --git a/packages/mongodb-memory-server-global-4.4/package.json b/packages/mongodb-memory-server-global-4.4/package.json index 6a3327033..58655bd58 100644 --- a/packages/mongodb-memory-server-global-4.4/package.json +++ b/packages/mongodb-memory-server-global-4.4/package.json @@ -8,13 +8,13 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git", + "url": "git+https://github.com/typegoose/mongodb-memory-server.git", "directory": "packages/mongodb-memory-server-global-4.4" }, "engines": { "node": ">=16.20.1" }, - "homepage": "https://github.com/nodkz/mongodb-memory-server", + "homepage": "https://github.com/typegoose/mongodb-memory-server", "keywords": [ "mongodb", "mongoose", diff --git a/packages/mongodb-memory-server-global/README.md b/packages/mongodb-memory-server-global/README.md index 98bdbee19..e83223aaf 100644 --- a/packages/mongodb-memory-server-global/README.md +++ b/packages/mongodb-memory-server-global/README.md @@ -1,15 +1,15 @@ # mongodb-memory-server-global -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server-global.svg)](https://www.npmjs.com/package/mongodb-memory-server-global) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server-global.svg)](http://www.npmtrends.com/mongodb-memory-server-global) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![mongodb-memory-server-global](https://snyk.io/advisor/npm-package/mongodb-memory-server-global/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server-global) Main default package which downloads latest mongod binary to `%HOME%/.cache/mongodb-binaries` / `~/.cache/mongodb-binaries` directory on package install. -[Full README with avaliable options and examples](https://github.com/nodkz/mongodb-memory-server) +[Full README with avaliable options and examples](https://github.com/typegoose/mongodb-memory-server) diff --git a/packages/mongodb-memory-server-global/package.json b/packages/mongodb-memory-server-global/package.json index 2144b05a7..23e646de5 100644 --- a/packages/mongodb-memory-server-global/package.json +++ b/packages/mongodb-memory-server-global/package.json @@ -7,13 +7,13 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git", + "url": "git+https://github.com/typegoose/mongodb-memory-server.git", "directory": "packages/mongodb-memory-server-global" }, "engines": { "node": ">=16.20.1" }, - "homepage": "https://github.com/nodkz/mongodb-memory-server", + "homepage": "https://github.com/typegoose/mongodb-memory-server", "keywords": [ "mongodb", "mongoose", diff --git a/packages/mongodb-memory-server/README.md b/packages/mongodb-memory-server/README.md index 655649cdd..8a23b7743 100644 --- a/packages/mongodb-memory-server/README.md +++ b/packages/mongodb-memory-server/README.md @@ -1,15 +1,15 @@ # mongodb-memory-server -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/mongodb-memory-server.svg)](https://www.npmjs.com/package/mongodb-memory-server) [![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server.svg)](http://www.npmtrends.com/mongodb-memory-server) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org) -[![codecov.io](https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/nodkz/mongodb-memory-server?branch=master) +[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master) [![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors) [![mongodb-memory-server](https://snyk.io/advisor/npm-package/mongodb-memory-server/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server) Main default package which downloads mongod binary to `./node_modules/.cache` directory on package install. -[Full README with avaliable options and examples](https://github.com/nodkz/mongodb-memory-server) +[Full README with avaliable options and examples](https://github.com/typegoose/mongodb-memory-server) diff --git a/packages/mongodb-memory-server/package.json b/packages/mongodb-memory-server/package.json index f267d874e..6fe8424de 100644 --- a/packages/mongodb-memory-server/package.json +++ b/packages/mongodb-memory-server/package.json @@ -7,13 +7,13 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/nodkz/mongodb-memory-server.git", + "url": "git+https://github.com/typegoose/mongodb-memory-server.git", "directory": "packages/mongodb-memory-server" }, "engines": { "node": ">=16.20.1" }, - "homepage": "https://github.com/nodkz/mongodb-memory-server", + "homepage": "https://github.com/typegoose/mongodb-memory-server", "keywords": [ "mongodb", "mongoose", diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index acd3d846f..e7bac7ce6 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -15,21 +15,21 @@ module.exports = { title: 'mongodb-memory-server', tagline: 'Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).', - url: 'https://nodkz.github.io', + url: 'https://typegoose.github.io', baseUrl: baseUrl, favicon: 'img/favicon.ico', - organizationName: 'nodkz', + organizationName: 'typegoose', projectName: 'mongodb-memory-server', themeConfig: { - algolia: { - apiKey: '8fe2db2c68a589011ca177c3f6098a76', - appId: '3KTVP2YGJO', - indexName: 'docusaurus', - contextualSearch: false, // since docusaurus v2.beta-15, it is defaulted to "true", but somehow breaks current search - searchParameters: { - facetFilters: [`version:${deployInfo.searchName}`], - }, - }, + // algolia: { + // apiKey: '8fe2db2c68a589011ca177c3f6098a76', + // appId: '3KTVP2YGJO', + // indexName: 'docusaurus', + // contextualSearch: false, // since docusaurus v2.beta-15, it is defaulted to "true", but somehow breaks current search + // searchParameters: { + // facetFilters: [`version:${deployInfo.searchName}`], + // }, + // }, navbar: { title: 'mongodb-memory-server', // logo: { @@ -68,12 +68,12 @@ module.exports = { target: '_self', }, { - href: 'https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md', + href: 'https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md', label: 'Changelog', position: 'right', }, { - href: 'https://github.com/nodkz/mongodb-memory-server', + href: 'https://github.com/typegoose/mongodb-memory-server', label: 'GitHub', position: 'right', }, @@ -100,7 +100,7 @@ module.exports = { items: [ { label: 'GitHub', - href: 'https://github.com/nodkz/mongodb-memory-server', + href: 'https://github.com/typegoose/mongodb-memory-server', }, ], }, @@ -115,7 +115,7 @@ module.exports = { path: '../docs', routeBasePath: 'docs', sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/nodkz/mongodb-memory-server/edit/master/docs', + editUrl: 'https://github.com/typegoose/mongodb-memory-server/edit/master/docs', }, theme: { customCss: require.resolve('./src/css/custom.css'),