@forestadmin/datasource-mongoose 1.0.0-beta.13 → 1.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
# @forestadmin/datasource-mongoose [1.0.0-beta.16](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.0.0-beta.15...@forestadmin/datasource-mongoose@1.0.0-beta.16) (2022-09-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Dependencies
|
|
8
|
+
|
|
9
|
+
* **@forestadmin/datasource-toolkit:** upgraded to 1.0.0-beta.28
|
|
10
|
+
|
|
11
|
+
# @forestadmin/datasource-mongoose [1.0.0-beta.15](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.0.0-beta.14...@forestadmin/datasource-mongoose@1.0.0-beta.15) (2022-08-24)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **mongoose:** options are not required when creating the connector ([#391](https://github.com/ForestAdmin/agent-nodejs/issues/391)) ([0cdd295](https://github.com/ForestAdmin/agent-nodejs/commit/0cdd295d8fce2f851622fd9537893c3b1b12a31e))
|
|
17
|
+
|
|
18
|
+
# @forestadmin/datasource-mongoose [1.0.0-beta.14](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.0.0-beta.13...@forestadmin/datasource-mongoose@1.0.0-beta.14) (2022-08-23)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@forestadmin/datasource-toolkit:** upgraded to 1.0.0-beta.27
|
|
27
|
+
|
|
1
28
|
# @forestadmin/datasource-mongoose [1.0.0-beta.13](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.0.0-beta.12...@forestadmin/datasource-mongoose@1.0.0-beta.13) (2022-06-16)
|
|
2
29
|
|
|
3
30
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { DataSourceFactory } from '@forestadmin/datasource-toolkit';
|
|
|
3
3
|
import { MongooseOptions } from './types';
|
|
4
4
|
export { default as MongooseCollection } from './collection';
|
|
5
5
|
export { default as MongooseDatasource } from './datasource';
|
|
6
|
-
export declare function createMongooseDataSource(connection: Connection, options
|
|
6
|
+
export declare function createMongooseDataSource(connection: Connection, options?: MongooseOptions): DataSourceFactory;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var collection_1 = require("./collection");
|
|
|
9
9
|
Object.defineProperty(exports, "MongooseCollection", { enumerable: true, get: function () { return __importDefault(collection_1).default; } });
|
|
10
10
|
var datasource_2 = require("./datasource");
|
|
11
11
|
Object.defineProperty(exports, "MongooseDatasource", { enumerable: true, get: function () { return __importDefault(datasource_2).default; } });
|
|
12
|
-
function createMongooseDataSource(connection, options) {
|
|
12
|
+
function createMongooseDataSource(connection, options = {}) {
|
|
13
13
|
return async () => new datasource_1.default(connection, options);
|
|
14
14
|
}
|
|
15
15
|
exports.createMongooseDataSource = createMongooseDataSource;
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBSUEsOERBQThDO0FBRTlDLDJDQUE2RDtBQUFwRCxpSUFBQSxPQUFPLE9BQXNCO0FBQ3RDLDJDQUE2RDtBQUFwRCxpSUFBQSxPQUFPLE9BQXNCO0FBRXRDLFNBQWdCLHdCQUF3QixDQUN0QyxVQUFzQixFQUN0QixVQUEyQixFQUFFO0lBRTdCLE9BQU8sS0FBSyxJQUFJLEVBQUUsQ0FBQyxJQUFJLG9CQUFrQixDQUFDLFVBQVUsRUFBRSxPQUFPLENBQUMsQ0FBQztBQUNqRSxDQUFDO0FBTEQsNERBS0MifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forestadmin/datasource-mongoose",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.16",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist/**/*.d.ts"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@forestadmin/datasource-toolkit": "1.0.0-beta.
|
|
19
|
+
"@forestadmin/datasource-toolkit": "1.0.0-beta.28",
|
|
20
20
|
"luxon": "^2.3.0",
|
|
21
21
|
"mongoose": "^6.3.2"
|
|
22
22
|
},
|