Skip to content

Commit 8976574

Browse files
committed
Merge branch 'master' into pr/hasezoey/377
2 parents 88119d4 + 0b03a9c commit 8976574

File tree

11 files changed

+409
-425
lines changed

11 files changed

+409
-425
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
flow-typed/*
22
lib/*
3+
.eslintrc.js

.releaserc.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,13 @@ module.exports = {
4646
pkgRoot: './packages/mongodb-memory-server-global',
4747
},
4848
],
49-
[
50-
'@semantic-release/npm',
51-
{
52-
npmPublish: true,
53-
pkgRoot: './packages/mongodb-memory-server-global-3.4',
54-
},
55-
],
5649
[
5750
'@semantic-release/npm',
5851
{
5952
npmPublish: true,
6053
pkgRoot: './packages/mongodb-memory-server-global-3.6',
6154
},
6255
],
63-
[
64-
'@semantic-release/npm',
65-
{
66-
npmPublish: true,
67-
pkgRoot: './packages/mongodb-memory-server-global-4.0',
68-
},
69-
],
7056
[
7157
'@semantic-release/npm',
7258
{

.vscode/settings.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
{
22
"javascript.validate.enable": false,
3-
"eslint.validate": [
4-
{ "language": "javascript", "autoFix": true },
5-
{ "language": "javascriptreact", "autoFix": true },
6-
{ "language": "typescript", "autoFix": true },
7-
{ "language": "typescriptreact", "autoFix": true }
8-
],
93
"typescript.tsdk": "node_modules/typescript/lib",
4+
"editor.formatOnSave": false,
5+
"javascript.format.enable": false,
6+
"typescript.format.enable": false,
107
"editor.codeActionsOnSave": {
118
"source.fixAll.eslint": true
129
},
13-
"eslint.autoFixOnSave": true,
1410
}

README.md

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ Works perfectly [with Travis CI](https://github.com/nodkz/graphql-compose-mongoo
2525
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
2626
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
2727

28-
- [MongoDB In-Memory Server](#mongodb-in-memory-server)
29-
- [Installation](#installation)
30-
- [Requirements](#requirements)
31-
- [Known Incompatibilities](#known-incompatibilities)
32-
- [mongodb-memory-server](#mongodb-memory-server)
33-
- [mongodb-memory-server-global](#mongodb-memory-server-global)
34-
- [mongodb-memory-server-core](#mongodb-memory-server-core)
35-
- [Configuring which mongod binary to use](#configuring-which-mongod-binary-to-use)
36-
- [Usage](#usage)
37-
- [Simple server start](#simple-server-start)
38-
- [Available options for MongoMemoryServer](#available-options-for-mongomemoryserver)
39-
- [Replica Set start](#replica-set-start)
40-
- [Available options for MongoMemoryReplSet](#available-options-for-mongomemoryreplset)
41-
- [Options which can be set via ENVIRONMENT variables](#options-which-can-be-set-via-environment-variables)
42-
- [Options which can be set via package.json's `config` section](#options-which-can-be-set-via-packagejsons-config-section)
43-
- [Simple test with MongoClient](#simple-test-with-mongoclient)
44-
- [Provide connection string to mongoose](#provide-connection-string-to-mongoose)
45-
- [Several mongoose connections simultaneously](#several-mongoose-connections-simultaneously)
46-
- [Simple Mocha/Chai test example](#simple-mochachai-test-example)
47-
- [Simple Jest test example](#simple-jest-test-example)
48-
- [AVA test runner](#ava-test-runner)
49-
- [Docker Alpine](#docker-alpine)
50-
- [Enable Debug Mode](#enable-debug-mode)
51-
- [CI](#ci)
52-
- [Contributing](#contributing)
53-
- [Credits](#credits)
54-
- [License](#license)
55-
- [Maintainers](#maintainers)
28+
- [Installation](#installation)
29+
- [Requirements](#requirements)
30+
- [Known Incompatibilities](#known-incompatibilities)
31+
- [mongodb-memory-server](#mongodb-memory-server)
32+
- [mongodb-memory-server-global](#mongodb-memory-server-global)
33+
- [mongodb-memory-server-global-x.x](#mongodb-memory-server-global-xx)
34+
- [mongodb-memory-server-core](#mongodb-memory-server-core)
35+
- [Configuring which mongod binary to use](#configuring-which-mongod-binary-to-use)
36+
- [Usage](#usage)
37+
- [Simple server start](#simple-server-start)
38+
- [Available options for MongoMemoryServer](#available-options-for-mongomemoryserver)
39+
- [Replica Set start](#replica-set-start)
40+
- [Available options for MongoMemoryReplSet](#available-options-for-mongomemoryreplset)
41+
- [Options which can be set via ENVIRONMENT variables](#options-which-can-be-set-via-environment-variables)
42+
- [Options which can be set via package.json's `config` section](#options-which-can-be-set-via-packagejsons-config-section)
43+
- [Simple test with MongoClient](#simple-test-with-mongoclient)
44+
- [Provide connection string to mongoose](#provide-connection-string-to-mongoose)
45+
- [Several mongoose connections simultaneously](#several-mongoose-connections-simultaneously)
46+
- [Simple Mocha/Chai test example](#simple-mochachai-test-example)
47+
- [Simple Jest test example](#simple-jest-test-example)
48+
- [AVA test runner](#ava-test-runner)
49+
- [Docker Alpine](#docker-alpine)
50+
- [Enable Debug Mode](#enable-debug-mode)
51+
- [CI](#ci)
52+
- [Contributing](#contributing)
53+
- [Credits](#credits)
54+
- [License](#license)
55+
- [Maintainers](#maintainers)
5656

5757
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
5858

@@ -102,6 +102,14 @@ yarn add mongodb-memory-server-global --dev
102102
npm install mongodb-memory-server-global --save-dev
103103
```
104104

105+
#### mongodb-memory-server-global-x.x
106+
107+
This Repository provides stub packages that set an MongoDB version, currently availabe are:
108+
109+
`3.4, 3.6, 4.0, 4.2, 4.4`
110+
111+
Note: **The packages below 4.2 have been deprecated**
112+
105113
### mongodb-memory-server-core
106114

107115
Does NOT auto-download `mongod` on npm install.

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,32 @@
55
"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.",
66
"repository": "https://github.com/nodkz/mongodb-memory-server",
77
"devDependencies": {
8-
"@commitlint/cli": "^9.1.2",
9-
"@commitlint/config-conventional": "^9.1.2",
8+
"@commitlint/cli": "11.0.0",
9+
"@commitlint/config-conventional": "11.0.0",
1010
"@google/semantic-release-replace-plugin": "^1.0.0",
1111
"@semantic-release/changelog": "^5.0.1",
1212
"@semantic-release/commit-analyzer": "^8.0.1",
1313
"@semantic-release/git": "^9.0.0",
1414
"@semantic-release/github": "^7.1.1",
1515
"@semantic-release/npm": "^7.0.6",
1616
"@semantic-release/release-notes-generator": "^9.0.1",
17-
"@types/jest": "26.0.13",
17+
"@types/jest": "26.0.14",
1818
"@types/mongodb": "3.5.27",
19-
"@types/node": "14.10.0",
20-
"@typescript-eslint/eslint-plugin": "4.1.0",
21-
"@typescript-eslint/parser": "4.1.0",
22-
"commitlint": "^9.1.2",
19+
"@types/node": "14.10.2",
20+
"@typescript-eslint/eslint-plugin": "4.1.1",
21+
"@typescript-eslint/parser": "4.1.1",
22+
"commitlint": "11.0.0",
2323
"cross-env": "^7.0.2",
2424
"doctoc": "^1.4.0",
25-
"eslint": "7.8.1",
25+
"eslint": "7.9.0",
2626
"eslint-config-prettier": "6.11.0",
2727
"eslint-plugin-prettier": "3.1.4",
2828
"husky": "^4.3.0",
2929
"jest": "26.4.2",
3030
"lerna": "^3.22.1",
31-
"lint-staged": "^10.3.0",
32-
"prettier": "2.1.1",
31+
"lint-staged": "10.4.0",
32+
"mongodb": "3.6.2",
33+
"prettier": "2.1.2",
3334
"semantic-release": "^17.1.1",
3435
"ts-jest": "26.3.0",
3536
"typescript": "4.0.2"
@@ -58,6 +59,7 @@
5859
"scripts": {
5960
"test": "lerna run test --stream",
6061
"lint": "lerna run lint --stream --npm-client=yarn --no-prefix",
62+
"eslint": "eslint 'packages/mongodb-memory-server-core/src/**/*.{js,ts}'",
6163
"watch": "jest --env node --watch",
6264
"jest": "jest --env node",
6365
"build": "tsc --build tsconfig.build.json",

packages/mongodb-memory-server-core/package.json

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,14 @@
3636
"@types/dedent": "^0.7.0",
3737
"@types/find-cache-dir": "^3.2.0",
3838
"@types/find-package-json": "^1.1.1",
39-
"@types/jest": "26.0.13",
4039
"@types/lockfile": "^1.0.1",
4140
"@types/md5-file": "^4.0.2",
4241
"@types/mkdirp": "^1.0.1",
4342
"@types/mongodb": "3.5.27",
44-
"@types/semver": "^7.3.3",
43+
"@types/semver": "7.3.4",
4544
"@types/tar-stream": "^2.1.0",
4645
"@types/uuid": "^8.0.0",
47-
"@types/yauzl": "^2.9.1",
48-
"@typescript-eslint/eslint-plugin": "4.1.0",
49-
"@typescript-eslint/parser": "4.1.0",
50-
"cross-env": "^7.0.2",
51-
"eslint": "7.8.1",
52-
"eslint-config-prettier": "6.11.0",
53-
"flowgen": "^1.10.0",
54-
"jest": "26.4.2",
55-
"lerna": "3.22.1",
56-
"mongodb": "3.6.2",
57-
"rimraf": "^3.0.2",
58-
"ts-jest": "26.3.0",
59-
"typescript": "4.0.2"
46+
"@types/yauzl": "^2.9.1"
6047
},
6148
"dependencies": {
6249
"@types/tmp": "^0.2.0",

0 commit comments

Comments
 (0)