Skip to content

Commit

Permalink
fix: add support for mongodb driver v4
Browse files Browse the repository at this point in the history
This new fix allow support to mongodb driver v4

Closes: #7907
  • Loading branch information
Matheus Melo Antiquera committed Oct 9, 2022
1 parent cdabaa3 commit d04347a
Show file tree
Hide file tree
Showing 47 changed files with 997 additions and 939 deletions.
395 changes: 259 additions & 136 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -98,7 +98,8 @@
"@types/js-yaml": "^4.0.0",
"@types/mkdirp": "^1.0.1",
"@types/mocha": "^8.2.1",
"@types/node": "^14.14.31",
"@types/mongodb": "^4.0.7",
"@types/node": "^18.8.3",
"@types/rimraf": "^3.0.0",
"@types/sha.js": "^2.4.0",
"@types/sinon": "^9.0.10",
Expand All @@ -124,7 +125,7 @@
"gulpclass": "^0.2.0",
"husky": "^5.1.1",
"mocha": "^8.3.0",
"mongodb": "^3.6.4",
"mongodb": "^4.10.0",
"mssql": "^7.3.0",
"mysql": "^2.18.1",
"mysql2": "^2.2.5",
Expand All @@ -149,7 +150,7 @@
"better-sqlite3": "^7.1.2",
"hdb-pool": "^0.1.6",
"ioredis": "^5.0.4",
"mongodb": "^3.6.0",
"mongodb": "^4.10.0",
"mssql": "^7.3.0",
"mysql2": "^2.2.5",
"oracledb": "^5.1.0",
Expand Down Expand Up @@ -235,8 +236,8 @@
"yargs": "^17.3.1"
},
"scripts": {
"test": "rimraf ./build && tsc && mocha --file ./build/compiled/test/utils/test-setup.js --bail --recursive --timeout 60000 ./build/compiled/test",
"test-fast": "mocha --file ./build/compiled/test/utils/test-setup.js --bail --recursive --timeout 60000 ./build/compiled/test",
"test": "rimraf ./build && tsc && mocha --file ./build/compiled/test/utils/test-setup.js --bail --recursive --timeout 90000 ./build/compiled/test",
"test-fast": "mocha --file ./build/compiled/test/utils/test-setup.js --bail --recursive --timeout 90000 ./build/compiled/test",
"compile": "rimraf ./build && tsc",
"watch": "./node_modules/.bin/tsc -w",
"package": "gulp package",
Expand Down
2 changes: 1 addition & 1 deletion src/data-source/DataSource.ts
Expand Up @@ -10,6 +10,7 @@ import {
CannotExecuteNotConnectedError,
EntityMetadataNotFoundError,
QueryRunnerProviderAlreadyReleasedError,
TypeORMError,
} from "../error"
import { TreeRepository } from "../repository/TreeRepository"
import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface"
Expand All @@ -35,7 +36,6 @@ import { RelationLoader } from "../query-builder/RelationLoader"
import { ObjectUtils } from "../util/ObjectUtils"
import { IsolationLevel } from "../driver/types/IsolationLevel"
import { ReplicationMode } from "../driver/types/ReplicationMode"
import { TypeORMError } from "../error"
import { RelationIdLoader } from "../query-builder/RelationIdLoader"
import { DriverUtils } from "../driver/DriverUtils"
import { InstanceChecker } from "../util/InstanceChecker"
Expand Down

0 comments on commit d04347a

Please sign in to comment.