@feathersjs/feathers 5.0.0-pre.23 → 5.0.0-pre.26

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,34 @@
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.26](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.25...v5.0.0-pre.26) (2022-06-22)
7
+
8
+ **Note:** Version bump only for package @feathersjs/feathers
9
+
10
+
11
+
12
+
13
+
14
+ # [5.0.0-pre.25](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.24...v5.0.0-pre.25) (2022-06-22)
15
+
16
+ **Note:** Version bump only for package @feathersjs/feathers
17
+
18
+
19
+
20
+
21
+
22
+ # [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21)
23
+
24
+
25
+ ### Features
26
+
27
+ * **authentication-local:** Add passwordHash property resolver ([#2660](https://github.com/feathersjs/feathers/issues/2660)) ([b41279b](https://github.com/feathersjs/feathers/commit/b41279b55eea3771a6fa4983a37be2413287bbc6))
28
+ * **cli:** Add typed client to a generated app ([#2669](https://github.com/feathersjs/feathers/issues/2669)) ([5b801b5](https://github.com/feathersjs/feathers/commit/5b801b5017ddc3eaa95622b539f51d605916bc86))
29
+
30
+
31
+
32
+
33
+
6
34
  # [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06)
7
35
 
8
36
 
@@ -4,12 +4,18 @@ import { NextFunction, HookContext as BaseHookContext } from '@feathersjs/hooks'
4
4
  declare type SelfOrArray<S> = S | S[];
5
5
  declare type OptionalPick<T, K extends PropertyKey> = Pick<T, Extract<keyof T, K>>;
6
6
  export type { NextFunction };
7
+ /**
8
+ * The object returned from `.find` call by standard database adapters
9
+ */
7
10
  export interface Paginated<T> {
8
11
  total: number;
9
12
  limit: number;
10
13
  skip: number;
11
14
  data: T[];
12
15
  }
16
+ /**
17
+ * Options that can be passed when registering a service via `app.use(name, service, options)`
18
+ */
13
19
  export interface ServiceOptions {
14
20
  events?: string[];
15
21
  methods?: string[];
@@ -57,6 +63,18 @@ export declare type CustomMethods<T extends {
57
63
  }> = {
58
64
  [K in keyof T]: (data: T[K][0], params?: Params) => Promise<T[K][1]>;
59
65
  };
66
+ /**
67
+ * An interface usually use by transport clients that represents a e.g. HTTP or websocket
68
+ * connection that can be configured on the application.
69
+ */
70
+ export declare type TransportConnection<Services = any> = {
71
+ (app: Application<Services>): void;
72
+ Service: any;
73
+ service: <L extends keyof Services & string>(name: L) => keyof any extends keyof Services ? ServiceInterface : Services[L];
74
+ };
75
+ /**
76
+ * The interface for a custom service method. Can e.g. be used to type client side services.
77
+ */
60
78
  export declare type CustomMethod<T = any, R = T, P extends Params = Params> = (data: T, params?: P) => Promise<R>;
61
79
  export declare type ServiceMixin<A> = (service: FeathersService<A>, path: string, options: ServiceOptions) => void;
62
80
  export declare type ServiceGenericType<S> = S extends ServiceInterface<infer T> ? T : any;
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "5.0.0-pre.23";
1
+ declare const _default: "5.0.0-pre.26";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '5.0.0-pre.23';
3
+ exports.default = '5.0.0-pre.26';
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@feathersjs/feathers",
3
3
  "description": "A framework for real-time applications and REST API with JavaScript and TypeScript",
4
- "version": "5.0.0-pre.23",
4
+ "version": "5.0.0-pre.26",
5
5
  "homepage": "http://feathersjs.com",
6
6
  "repository": {
7
7
  "type": "git",
@@ -42,8 +42,8 @@
42
42
  "*.js"
43
43
  ],
44
44
  "scripts": {
45
- "write-version": "node -e \"console.log('export default \\'' + require('./package.json').version + '\\';')\" > src/version.ts",
46
- "reset-version": "node -e \"console.log('export default \\'development\\';')\" > src/version.ts",
45
+ "write-version": "node -e \"console.log('export default \\'' + require('./package.json').version + '\\'')\" > src/version.ts",
46
+ "reset-version": "node -e \"console.log('export default \\'development\\'')\" > src/version.ts",
47
47
  "prepublish": "npm run compile",
48
48
  "version": "npm run write-version",
49
49
  "publish": "npm run reset-version",
@@ -57,7 +57,7 @@
57
57
  "access": "public"
58
58
  },
59
59
  "dependencies": {
60
- "@feathersjs/commons": "^5.0.0-pre.23",
60
+ "@feathersjs/commons": "^5.0.0-pre.26",
61
61
  "@feathersjs/hooks": "^0.7.5",
62
62
  "events": "^3.3.0"
63
63
  },
@@ -69,5 +69,5 @@
69
69
  "ts-node": "^10.8.1",
70
70
  "typescript": "^4.7.3"
71
71
  },
72
- "gitHead": "a60910bd730b88053ca6648337095f1ca1e3b39f"
72
+ "gitHead": "0e7553ded9b24016d36021aaedcc2cdb19ab0157"
73
73
  }
@@ -6,6 +6,9 @@ type OptionalPick<T, K extends PropertyKey> = Pick<T, Extract<keyof T, K>>
6
6
 
7
7
  export type { NextFunction }
8
8
 
9
+ /**
10
+ * The object returned from `.find` call by standard database adapters
11
+ */
9
12
  export interface Paginated<T> {
10
13
  total: number
11
14
  limit: number
@@ -13,6 +16,9 @@ export interface Paginated<T> {
13
16
  data: T[]
14
17
  }
15
18
 
19
+ /**
20
+ * Options that can be passed when registering a service via `app.use(name, service, options)`
21
+ */
16
22
  export interface ServiceOptions {
17
23
  events?: string[]
18
24
  methods?: string[]
@@ -89,6 +95,21 @@ export type CustomMethods<T extends { [key: string]: [any, any] }> = {
89
95
  [K in keyof T]: (data: T[K][0], params?: Params) => Promise<T[K][1]>
90
96
  }
91
97
 
98
+ /**
99
+ * An interface usually use by transport clients that represents a e.g. HTTP or websocket
100
+ * connection that can be configured on the application.
101
+ */
102
+ export type TransportConnection<Services = any> = {
103
+ (app: Application<Services>): void
104
+ Service: any
105
+ service: <L extends keyof Services & string>(
106
+ name: L
107
+ ) => keyof any extends keyof Services ? ServiceInterface : Services[L]
108
+ }
109
+
110
+ /**
111
+ * The interface for a custom service method. Can e.g. be used to type client side services.
112
+ */
92
113
  export type CustomMethod<T = any, R = T, P extends Params = Params> = (data: T, params?: P) => Promise<R>
93
114
 
94
115
  export type ServiceMixin<A> = (service: FeathersService<A>, path: string, options: ServiceOptions) => void
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export default '5.0.0-pre.23';
1
+ export default '5.0.0-pre.26'