Skip to content

Commit

Permalink
docs: update links "github.com/nodkz" -> "github.com/typegoose"
Browse files Browse the repository at this point in the history
github automatically redirects those links, but it is still better the update them
  • Loading branch information
hasezoey committed Jul 13, 2024
1 parent dacd9a5 commit 2d5db7e
Show file tree
Hide file tree
Showing 29 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ code here
## Debug Output

<!--
In most cases the [Debug Output](https://github.com/nodkz/mongodb-memory-server#enable-debug-mode) would be helpful
In most cases the [Debug Output](https://github.com/typegoose/mongodb-memory-server#enable-debug-mode) would be helpful
Please provide the debug output in one of the following ways (the higher the more its preferred):
(replace the `<details>` section with the url, if a URL is needed)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -221,11 +221,11 @@ const replSet = new MongoMemoryReplSet({

### 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

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/mongo-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Typings: `async start(): Promise<void>`
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
Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/mongo-memory-server-createuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/guides/error-warning-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
4 changes: 2 additions & 2 deletions docs/guides/migration/migrate7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/migration/migrate8.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/migration/migrate9.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/mongodb-memory-server-core/README.md
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 3 additions & 3 deletions packages/mongodb-memory-server-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
Expand All @@ -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'
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,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<boolean>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,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({
Expand Down Expand Up @@ -1867,7 +1867,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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"}';

Expand Down Expand Up @@ -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)";

Expand All @@ -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)";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/mongodb-memory-server-core/src/util/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
6 changes: 3 additions & 3 deletions packages/mongodb-memory-server-global-4.0/README.md
Original file line number Diff line number Diff line change
@@ -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)
Loading

0 comments on commit 2d5db7e

Please sign in to comment.