@feathersjs/express 5.0.0-pre.18 → 5.0.0-pre.19

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 CHANGED
@@ -3,6 +3,22 @@
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.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+ ### Features
15
+
16
+ * **typescript:** Improve params and query typeability ([#2600](https://github.com/feathersjs/feathers/issues/2600)) ([df28b76](https://github.com/feathersjs/feathers/commit/df28b7619161f1df5e700326f52cca1a92dc5d28))
17
+
18
+
19
+
20
+
21
+
6
22
  # [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
23
 
8
24
 
@@ -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.18",
4
+ "version": "5.0.0-pre.19",
5
5
  "homepage": "https://feathersjs.com",
6
6
  "main": "lib/",
7
- "type": "lib/",
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.18",
55
- "@feathersjs/commons": "^5.0.0-pre.18",
56
- "@feathersjs/errors": "^5.0.0-pre.18",
57
- "@feathersjs/feathers": "^5.0.0-pre.18",
58
- "@feathersjs/transport-commons": "^5.0.0-pre.18",
54
+ "@feathersjs/authentication": "^5.0.0-pre.19",
55
+ "@feathersjs/commons": "^5.0.0-pre.19",
56
+ "@feathersjs/errors": "^5.0.0-pre.19",
57
+ "@feathersjs/feathers": "^5.0.0-pre.19",
58
+ "@feathersjs/transport-commons": "^5.0.0-pre.19",
59
59
  "@types/express": "^4.17.13",
60
60
  "@types/express-serve-static-core": "^4.17.28",
61
- "express": "^4.17.3"
61
+ "express": "^4.18.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@feathersjs/authentication-local": "^5.0.0-pre.18",
65
- "@feathersjs/tests": "^5.0.0-pre.18",
66
- "@types/lodash": "^4.14.181",
67
- "@types/mocha": "^9.1.0",
68
- "@types/node": "^17.0.23",
69
- "axios": "^0.26.1",
64
+ "@feathersjs/authentication-local": "^5.0.0-pre.19",
65
+ "@feathersjs/tests": "^5.0.0-pre.19",
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": "^9.2.2",
71
+ "mocha": "^10.0.0",
72
72
  "shx": "^0.3.4",
73
73
  "ts-node": "^10.7.0",
74
- "typescript": "^4.6.3"
74
+ "typescript": "^4.6.4"
75
75
  },
76
- "gitHead": "c0b7b67d872dcd6b6d94e4587f21332c8a519b50"
76
+ "gitHead": "57f3e18bb62735e1869ffafee90286498738fdfa"
77
77
  }
@@ -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