keq 5.0.0-alpha.21 → 5.0.0-alpha.23
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 +13 -0
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/shared-context.d.ts +1 -1
- package/dist/context/shared-context.d.ts.map +1 -1
- package/dist/context/utils/assign-shared-context.d.ts.map +1 -1
- package/dist/context/utils/create-proxy-response.d.ts +2 -0
- package/dist/context/utils/create-proxy-response.d.ts.map +1 -0
- package/dist/context/utils/fork.d.ts +6 -0
- package/dist/context/utils/fork.d.ts.map +1 -0
- package/dist/context/utils/index.d.ts +2 -0
- package/dist/context/utils/index.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +587 -454
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +587 -454
- package/dist/index.mjs.map +1 -1
- package/dist/middleware/utils/compose-middleware.d.ts.map +1 -1
- package/dist/middleware/utils/get-middleware-name.d.ts +3 -0
- package/dist/middleware/utils/get-middleware-name.d.ts.map +1 -0
- package/dist/middleware/utils/index.d.ts +1 -0
- package/dist/middleware/utils/index.d.ts.map +1 -1
- package/dist/orchestrator/executor.d.ts.map +1 -1
- package/dist/request/core.d.ts.map +1 -1
- package/dist/request/utils/intelligent-parse-response.d.ts.map +1 -1
- package/dist/router/keq-pathname-route.d.ts.map +1 -1
- package/dist/router/keq-router.d.ts +1 -0
- package/dist/router/keq-router.d.ts.map +1 -1
- package/dist/router/types/keq-route.d.ts +4 -1
- package/dist/router/types/keq-route.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
## 5.0.0-alpha.6 (2025-09-17)
|
|
2
2
|
|
|
3
|
+
## 5.0.0-alpha.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 842e555: **Perf:** avoid unnecessary deserialization.
|
|
8
|
+
- 7873a0a: Optimize middleware name generation
|
|
9
|
+
|
|
10
|
+
## 5.0.0-alpha.22
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- df114d1: Fixed the issue of missing res after merging forked orchestrator.
|
|
15
|
+
|
|
3
16
|
## 5.0.0-alpha.21
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './execution-context.js';
|
|
2
2
|
export * from './shared-context.js';
|
|
3
3
|
export * from './types/index.js';
|
|
4
|
-
export { cloneSharedContext } from './utils/
|
|
4
|
+
export { cloneSharedContext, unwrap, createProxyResponse } from './utils/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -22,7 +22,7 @@ export declare class KeqSharedContext implements KeqContext {
|
|
|
22
22
|
[ContextEmitterProperty]: KeqContextEmitter;
|
|
23
23
|
[ContextOptionsProperty]: KeqContextOptions;
|
|
24
24
|
[ContextOutputProperty]?: any;
|
|
25
|
-
|
|
25
|
+
[ContextDataProperty]: KeqContextData;
|
|
26
26
|
/**
|
|
27
27
|
* original response
|
|
28
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-context.d.ts","sourceRoot":"","sources":["../../src/context/shared-context.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,qBAAqB,EACtB,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"shared-context.d.ts","sourceRoot":"","sources":["../../src/context/shared-context.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,qBAAqB,EACtB,MAAM,yBAAyB,CAAA;AAMhC,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,SAAS,EAEV,MAAM,kBAAkB,CAAA;AAEzB,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,qBAAqB,CAAA;IAC9B,MAAM,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,eAAO,MAAM,yBAAyB,eAAyC,CAAA;AAC/E,eAAO,MAAM,sBAAsB,eAAsC,CAAA;AACzE,eAAO,MAAM,qBAAqB,eAAqC,CAAA;AACvE,eAAO,MAAM,sBAAsB,eAAsC,CAAA;AACzE,eAAO,MAAM,sBAAsB,eAAsC,CAAA;AACzE,eAAO,MAAM,mBAAmB,eAAmC,CAAA;AACnE,eAAO,MAAM,qBAAqB,eAAqC,CAAA;AAEvE,qBAAa,gBAAiB,YAAW,UAAU;IACjD,QAAQ,CAAC,CAAC,yBAAyB,CAAC,CAAC,EAAE,MAAM,CAAA;IAC7C,CAAC,sBAAsB,CAAC,EAAE,cAAc,CAAA;IACxC,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5C,CAAC,sBAAsB,CAAC,EAAE,iBAAiB,CAAA;IAC3C,CAAC,sBAAsB,CAAC,EAAE,iBAAiB,CAAA;IAC3C,CAAC,qBAAqB,CAAC,CAAC,EAAE,GAAG,CAAA;IAG7B,CAAC,mBAAmB,CAAC,EAAE,cAAc,CAAK;IAG1C;;OAEG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAA;gBAEF,OAAO,EAAE,uBAAuB;IAe5C;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAI,OAAO,IAAI,cAAc,CAE5B;IAED,IAAI,MAAM,IAAI,SAAS,CAEtB;IAED,IAAI,OAAO,IAAI,iBAAiB,CAE/B;IAED,IAAI,OAAO,IAAI,iBAAiB,CAE/B;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,EAEpB;IAED,IAAI,QAAQ,IAAI,QAAQ,GAAG,SAAS,CAInC;IAED,IAAI,IAAI,IAAI,cAAc,CAEzB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-shared-context.d.ts","sourceRoot":"","sources":["../../../src/context/utils/assign-shared-context.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"assign-shared-context.d.ts","sourceRoot":"","sources":["../../../src/context/utils/assign-shared-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAiD,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEnG,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,gBAAgB,GACvB,IAAI,CAWN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-proxy-response.d.ts","sourceRoot":"","sources":["../../../src/context/utils/create-proxy-response.ts"],"names":[],"mappings":"AAKA,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAuDhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../src/context/utils/fork.ts"],"names":[],"mappings":"AAuBA;;GAEG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAgEtC;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,QAAQ,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { createRequest, Keq, request, KeqRequest, type KeqOptions, type KeqApiSchema, type KeqOperation, type KeqDefaultOperation, type KeqQueryInit, type KeqPathParameterInit, type KeqQueryOptions, } from './request';
|
|
2
2
|
export { type KeqBodyInit, } from './request-init';
|
|
3
3
|
export { composeMiddleware, type KeqMiddleware, type KeqNext, } from './middleware';
|
|
4
|
-
export { type KeqRoute
|
|
5
|
-
export { KeqExecutionContext, KeqSharedContext, type KeqSharedContextOptions, type KeqContext, type KeqContextData, type KeqContextEmitter, type KeqGlobal, type KeqContextOptions, type KeqMiddlewareOptions, type KeqEvents, type KeqRetryDelay, type KeqRetryOn, } from './context';
|
|
4
|
+
export { type KeqRoute, composeRoute, keqHostRoute, keqLocationRoute, keqMethodRoute, keqModuleRoute, keqPathnameRoute, } from './router';
|
|
5
|
+
export { createProxyResponse, KeqExecutionContext, KeqSharedContext, type KeqSharedContextOptions, type KeqContext, type KeqContextData, type KeqContextEmitter, type KeqGlobal, type KeqContextOptions, type KeqMiddlewareOptions, type KeqEvents, type KeqRetryDelay, type KeqRetryOn, } from './context';
|
|
6
6
|
export { Exception, TypeException, TimeoutException, AbortException, RequestException, BadRequestException, UnauthorizedException, ForbiddenException, NotFoundedException, MethodNotAllowedException, NotAcceptableException, ProxyAuthenticationRequiredException, RequestTimeoutException, ConflictException, PreconditionFailedException, ContentTooLargeException, UriTooLongException, ImATeapotException, TooManyRequestsException, UnsupportedMediaTypeException, InternalServerErrorException, NotImplementedException, BadGatewayException, ServiceUnavailableException, GatewayTimeoutException, } from './exception';
|
|
7
7
|
export { KeqMiddlewareOrchestrator, KeqMiddlewareExecutor, } from './orchestrator';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,GAAG,EACH,OAAO,EACP,UAAU,EACV,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,OAAO,GACb,MAAM,cAAc,CAAA;AAErB,OAAO,EACL,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,GAAG,EACH,OAAO,EACP,UAAU,EACV,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAA;A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