@feathersjs/express 5.0.0-pre.18 → 5.0.0-pre.20
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/lib/declarations.d.ts +4 -2
- package/package.json +17 -17
- package/src/declarations.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.20](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.19...v5.0.0-pre.20) (2022-05-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [5.0.0-pre.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **express:** Fix typo in types reference in package.json ([#2613](https://github.com/feathersjs/feathers/issues/2613)) ([eacf1b3](https://github.com/feathersjs/feathers/commit/eacf1b3474e6d9da69b8671244c23a75cff87d95))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **typescript:** Improve params and query typeability ([#2600](https://github.com/feathersjs/feathers/issues/2600)) ([df28b76](https://github.com/feathersjs/feathers/commit/df28b7619161f1df5e700326f52cca1a92dc5d28))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [5.0.0-pre.18](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.17...v5.0.0-pre.18) (2022-04-11)
|
|
7
34
|
|
|
8
35
|
|
package/lib/declarations.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import http from 'http';
|
|
|
3
3
|
import express, { Express } from 'express';
|
|
4
4
|
import { Application as FeathersApplication, Params as FeathersParams, HookContext, ServiceMethods, ServiceInterface, RouteLookup } from '@feathersjs/feathers';
|
|
5
5
|
interface ExpressUseHandler<T, Services> {
|
|
6
|
-
<L extends keyof Services & string>(path: L, ...middlewareOrService: (Express | express.RequestHandler | (keyof any extends keyof Services ? ServiceInterface : Services[L]))[]): T;
|
|
6
|
+
<L extends keyof Services & string>(path: L, ...middlewareOrService: (Express | express.RequestHandler | express.RequestHandler[] | (keyof any extends keyof Services ? ServiceInterface : Services[L]))[]): T;
|
|
7
7
|
(path: string | RegExp, ...expressHandlers: express.RequestHandler[]): T;
|
|
8
8
|
(...expressHandlers: express.RequestHandler[]): T;
|
|
9
9
|
(handler: Express | express.ErrorRequestHandler): T;
|
|
@@ -28,7 +28,9 @@ declare module '@feathersjs/feathers/lib/declarations' {
|
|
|
28
28
|
}
|
|
29
29
|
declare module 'express-serve-static-core' {
|
|
30
30
|
interface Request {
|
|
31
|
-
feathers?: Partial<FeathersParams
|
|
31
|
+
feathers?: Partial<FeathersParams> & {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
32
34
|
lookup?: RouteLookup;
|
|
33
35
|
}
|
|
34
36
|
interface Response {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/express",
|
|
3
3
|
"description": "Feathers Express framework bindings and REST provider",
|
|
4
|
-
"version": "5.0.0-pre.
|
|
4
|
+
"version": "5.0.0-pre.20",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
|
-
"
|
|
7
|
+
"types": "lib/",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"feathers",
|
|
10
10
|
"feathers-plugin"
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@feathersjs/authentication": "^5.0.0-pre.
|
|
55
|
-
"@feathersjs/commons": "^5.0.0-pre.
|
|
56
|
-
"@feathersjs/errors": "^5.0.0-pre.
|
|
57
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
58
|
-
"@feathersjs/transport-commons": "^5.0.0-pre.
|
|
54
|
+
"@feathersjs/authentication": "^5.0.0-pre.20",
|
|
55
|
+
"@feathersjs/commons": "^5.0.0-pre.20",
|
|
56
|
+
"@feathersjs/errors": "^5.0.0-pre.20",
|
|
57
|
+
"@feathersjs/feathers": "^5.0.0-pre.20",
|
|
58
|
+
"@feathersjs/transport-commons": "^5.0.0-pre.20",
|
|
59
59
|
"@types/express": "^4.17.13",
|
|
60
60
|
"@types/express-serve-static-core": "^4.17.28",
|
|
61
|
-
"express": "^4.
|
|
61
|
+
"express": "^4.18.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@feathersjs/authentication-local": "^5.0.0-pre.
|
|
65
|
-
"@feathersjs/tests": "^5.0.0-pre.
|
|
66
|
-
"@types/lodash": "^4.14.
|
|
67
|
-
"@types/mocha": "^9.1.
|
|
68
|
-
"@types/node": "^17.0.
|
|
69
|
-
"axios": "^0.
|
|
64
|
+
"@feathersjs/authentication-local": "^5.0.0-pre.20",
|
|
65
|
+
"@feathersjs/tests": "^5.0.0-pre.20",
|
|
66
|
+
"@types/lodash": "^4.14.182",
|
|
67
|
+
"@types/mocha": "^9.1.1",
|
|
68
|
+
"@types/node": "^17.0.31",
|
|
69
|
+
"axios": "^0.27.2",
|
|
70
70
|
"lodash": "^4.17.21",
|
|
71
|
-
"mocha": "^
|
|
71
|
+
"mocha": "^10.0.0",
|
|
72
72
|
"shx": "^0.3.4",
|
|
73
73
|
"ts-node": "^10.7.0",
|
|
74
|
-
"typescript": "^4.6.
|
|
74
|
+
"typescript": "^4.6.4"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "54de749a0b392c7da726c668002b50cafaca530c"
|
|
77
77
|
}
|
package/src/declarations.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface ExpressUseHandler<T, Services> {
|
|
|
9
9
|
<L extends keyof Services & string> (
|
|
10
10
|
path: L,
|
|
11
11
|
...middlewareOrService: (
|
|
12
|
-
Express|express.RequestHandler|
|
|
12
|
+
Express|express.RequestHandler|express.RequestHandler[]|
|
|
13
13
|
(keyof any extends keyof Services ? ServiceInterface : Services[L])
|
|
14
14
|
)[]
|
|
15
15
|
): T;
|
|
@@ -44,7 +44,7 @@ declare module '@feathersjs/feathers/lib/declarations' {
|
|
|
44
44
|
|
|
45
45
|
declare module 'express-serve-static-core' {
|
|
46
46
|
interface Request {
|
|
47
|
-
feathers?: Partial<FeathersParams
|
|
47
|
+
feathers?: Partial<FeathersParams> & { [key: string]: any };
|
|
48
48
|
lookup?: RouteLookup;
|
|
49
49
|
}
|
|
50
50
|
|