@biorate/mongodb 0.27.0 → 0.27.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/index.d.ts +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [0.27.3](https://github.com/biorate/core/compare/v0.27.2...v0.27.3) (2022-05-06)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* index.d.ts file added into mongodb, sequelize, schema-registry connectors ([8f142d3](https://github.com/biorate/core/commit/8f142d36e4face9d101e76f3954d565932a4c40f))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
# [0.27.0](https://github.com/biorate/core/compare/v0.26.0...v0.27.0) (2022-05-06)
|
7
18
|
|
8
19
|
|
package/index.d.ts
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Connector, IConnector } from '@biorate/connector';
|
2
|
+
import { IMongoDBConfig, IMongoDBConnection } from './src';
|
3
|
+
|
4
|
+
declare module '@biorate/mongodb' {
|
5
|
+
export class MongoDBConnector extends Connector<IMongoDBConfig, IMongoDBConnection> {
|
6
|
+
protected readonly namespace: string;
|
7
|
+
protected connect(config: IMongoDBConfig): Promise<IMongoDBConnection>;
|
8
|
+
}
|
9
|
+
|
10
|
+
export function model<T = unknown>(
|
11
|
+
Model: new (...args: any) => T,
|
12
|
+
connection?: string,
|
13
|
+
options?: Record<string, unknown>,
|
14
|
+
): void;
|
15
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@biorate/mongodb",
|
3
|
-
"version": "0.27.
|
3
|
+
"version": "0.27.3",
|
4
4
|
"description": "Mongodb ORM connector based on mongoose and typegoose",
|
5
5
|
"main": "dist",
|
6
6
|
"scripts": {
|
@@ -33,5 +33,5 @@
|
|
33
33
|
"mongodb": "^4.5.0",
|
34
34
|
"mongoose": "^6.3.1"
|
35
35
|
},
|
36
|
-
"gitHead": "
|
36
|
+
"gitHead": "ebd8f7c1efd5a9b312a441ce8fda9857611cf5af"
|
37
37
|
}
|