@modern-js/bff-runtime 1.2.5 → 1.4.0
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 +18 -0
- package/dist/js/modern/index.js +3 -3
- package/dist/js/node/index.js +0 -28
- package/dist/js/treeshaking/index.js +3 -3
- package/dist/types/index.d.ts +0 -2
- package/dist/types/match.d.ts +1 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @modern-js/bff-runtime
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 83660b6: chore(server): delete unused `@modern-js/server-utils` dependence
|
|
8
|
+
|
|
9
|
+
chore(server): 删除未使用的 `@modern-js/server-utils` 依赖
|
|
10
|
+
|
|
11
|
+
## 1.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 77a8e9e: feat: support bff operators
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- @modern-js/server-utils@1.2.11
|
|
20
|
+
|
|
3
21
|
## 1.2.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/js/modern/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from 'farrow-schema';
|
|
2
|
-
export * from 'farrow-
|
|
3
|
-
|
|
1
|
+
export * from 'farrow-schema'; // export * from 'farrow-api';
|
|
2
|
+
// export * from 'farrow-pipeline';
|
|
3
|
+
|
|
4
4
|
export { match, isHandler, isSchemaHandler } from "./match";
|
package/dist/js/node/index.js
CHANGED
|
@@ -41,32 +41,4 @@ Object.keys(_farrowSchema).forEach(function (key) {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
var _farrowApi = require("farrow-api");
|
|
45
|
-
|
|
46
|
-
Object.keys(_farrowApi).forEach(function (key) {
|
|
47
|
-
if (key === "default" || key === "__esModule") return;
|
|
48
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
49
|
-
if (key in exports && exports[key] === _farrowApi[key]) return;
|
|
50
|
-
Object.defineProperty(exports, key, {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () {
|
|
53
|
-
return _farrowApi[key];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
var _farrowPipeline = require("farrow-pipeline");
|
|
59
|
-
|
|
60
|
-
Object.keys(_farrowPipeline).forEach(function (key) {
|
|
61
|
-
if (key === "default" || key === "__esModule") return;
|
|
62
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
63
|
-
if (key in exports && exports[key] === _farrowPipeline[key]) return;
|
|
64
|
-
Object.defineProperty(exports, key, {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return _farrowPipeline[key];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
|
|
72
44
|
var _match = require("./match");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from 'farrow-schema';
|
|
2
|
-
export * from 'farrow-
|
|
3
|
-
|
|
1
|
+
export * from 'farrow-schema'; // export * from 'farrow-api';
|
|
2
|
+
// export * from 'farrow-pipeline';
|
|
3
|
+
|
|
4
4
|
export { match, isHandler, isSchemaHandler } from "./match";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from 'farrow-schema';
|
|
2
|
-
export * from 'farrow-api';
|
|
3
|
-
export * from 'farrow-pipeline';
|
|
4
2
|
export { match, isHandler, isSchemaHandler } from './match';
|
|
5
3
|
export type { Handler, SchemaHandler } from './match';
|
|
6
4
|
export type { RequestSchema, TypeOfRequestSchema, InputType } from './request';
|
package/dist/types/match.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ export declare const isSchemaHandler: (input: any) => input is SchemaHandler<any
|
|
|
24
24
|
export declare const isHandler: (input: any) => input is Handler<any, any>;
|
|
25
25
|
export declare const baseMatch: <Req extends RequestSchema, Res extends SchemaCtorInput>(schema: Schema<Req, Res>, handler: Handler<import("./types").MarkReadOnlyDeep<Omit<{ [key in keyof Req]: import("./request").TypeOfRequestField<Req[key]> }, "data"> & import("./types").MarkReadOnlyDeep<Req extends {
|
|
26
26
|
data: any;
|
|
27
|
-
} ? Pick<{ [key_1 in keyof
|
|
27
|
+
} ? Pick<Req extends infer T ? { [key_1 in keyof T]: import("./request").TypeOfRequestField<Req[key_1]> } : never, "data"> : import("./request").RequestExtraType>>, TypeOfRouterRequestField<Res>>) => BaseSchemaHandler<Req, Res>;
|
|
28
28
|
export declare const match: <Req extends RequestSchema, Res extends SchemaCtorInput>(schema: Schema<Req, Res>, handler: Handler<PureTypeOfRequestSchema<Req>, TypeOfRouterRequestField<Res>>) => SchemaHandler<Req, Res>;
|
|
29
29
|
export {};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.4.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -29,21 +29,20 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.18.0",
|
|
32
|
-
"@modern-js/server-utils": "^1.2.11",
|
|
33
32
|
"farrow-api": "^1.10.8",
|
|
34
33
|
"farrow-pipeline": "^1.10.6",
|
|
35
34
|
"farrow-schema": "^1.10.8"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
37
|
+
"@scripts/build": "0.0.0",
|
|
38
|
+
"@scripts/jest-config": "0.0.0",
|
|
38
39
|
"@types/jest": "^27",
|
|
39
40
|
"@types/node": "^14",
|
|
40
41
|
"@types/react": "^17",
|
|
41
42
|
"@types/react-dom": "^17",
|
|
42
|
-
"ts-jest": "^27.0.5",
|
|
43
|
-
"typescript": "^4",
|
|
44
|
-
"@scripts/build": "0.0.0",
|
|
45
43
|
"jest": "^27",
|
|
46
|
-
"
|
|
44
|
+
"ts-jest": "^27.0.5",
|
|
45
|
+
"typescript": "^4"
|
|
47
46
|
},
|
|
48
47
|
"publishConfig": {
|
|
49
48
|
"registry": "https://registry.npmjs.org/",
|