@feathersjs/mongodb 5.0.0-pre.20 → 5.0.0-pre.21
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 +11 -0
- package/lib/adapter.d.ts +1 -1
- package/package.json +5 -5
- package/src/adapter.ts +1 -1
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
|
+
# [5.0.0-pre.21](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.20...v5.0.0-pre.21) (2022-05-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **typescript:** Make additional types generic to work with extended types ([#2625](https://github.com/feathersjs/feathers/issues/2625)) ([269fdec](https://github.com/feathersjs/feathers/commit/269fdecc5961092dc8608b3cbe16f433c80bfa96))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [5.0.0-pre.20](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.19...v5.0.0-pre.20) (2022-05-04)
|
|
7
18
|
|
|
8
19
|
|
package/lib/adapter.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface MongoDBAdapterOptions extends AdapterServiceOptions {
|
|
|
9
9
|
export interface MongoDBAdapterParams<Q = AdapterQuery> extends AdapterParams<Q, Partial<MongoDBAdapterOptions>> {
|
|
10
10
|
mongodb?: BulkWriteOptions | FindOptions | InsertOneOptions | DeleteOptions | CountDocumentsOptions | ReplaceOptions;
|
|
11
11
|
}
|
|
12
|
-
export declare class MongoDbAdapter<T, D = Partial<T>, P extends MongoDBAdapterParams = MongoDBAdapterParams> extends AdapterBase<T, D, P, MongoDBAdapterOptions> {
|
|
12
|
+
export declare class MongoDbAdapter<T, D = Partial<T>, P extends MongoDBAdapterParams<any> = MongoDBAdapterParams> extends AdapterBase<T, D, P, MongoDBAdapterOptions> {
|
|
13
13
|
constructor(options: MongoDBAdapterOptions);
|
|
14
14
|
getObjectId(id: Id | ObjectId): ObjectId | Id;
|
|
15
15
|
filterQuery(id: NullableId, params: P): {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/mongodb",
|
|
3
3
|
"description": "Feathers MongoDB service adapter",
|
|
4
|
-
"version": "5.0.0-pre.
|
|
4
|
+
"version": "5.0.0-pre.21",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"keywords": [
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@feathersjs/adapter-commons": "^5.0.0-pre.
|
|
53
|
+
"@feathersjs/adapter-commons": "^5.0.0-pre.21",
|
|
54
54
|
"@feathersjs/commons": "^5.0.0-pre.20",
|
|
55
|
-
"@feathersjs/errors": "^5.0.0-pre.
|
|
56
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
55
|
+
"@feathersjs/errors": "^5.0.0-pre.21",
|
|
56
|
+
"@feathersjs/feathers": "^5.0.0-pre.21"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"mongodb": "^4.5.0"
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"shx": "^0.3.4",
|
|
68
68
|
"typescript": "^4.6.4"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "ac3baed231f72370a80a06c5944538915479b96e"
|
|
71
71
|
}
|
package/src/adapter.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface MongoDBAdapterParams<Q = AdapterQuery> extends AdapterParams<Q,
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// Create the service.
|
|
22
|
-
export class MongoDbAdapter<T, D = Partial<T>, P extends MongoDBAdapterParams = MongoDBAdapterParams>
|
|
22
|
+
export class MongoDbAdapter<T, D = Partial<T>, P extends MongoDBAdapterParams<any> = MongoDBAdapterParams>
|
|
23
23
|
extends AdapterBase<T, D, P, MongoDBAdapterOptions> {
|
|
24
24
|
constructor (options: MongoDBAdapterOptions) {
|
|
25
25
|
if (!options) {
|