@jeffusion/bungee-core 5.19.0 → 5.20.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.
@@ -144,6 +144,7 @@ export interface InboundChain {
144
144
  onError: (ctx: any) => Promise<void>;
145
145
  }
146
146
  export interface PhaseAwareHooks {
147
+ dispatchAdapter?: PrecompiledHooks;
147
148
  routePhase: PrecompiledHooks;
148
149
  servicePhase: PrecompiledHooks | null;
149
150
  upstreamPhase: PrecompiledHooks;
@@ -185,6 +186,7 @@ export declare class ScopedPluginRegistry {
185
186
  * same canonical owner/lifecycle/lease registry as every other consumer.
186
187
  */
187
188
  readonly serviceHost: PluginServiceHost;
189
+ private dispatchConfig?;
188
190
  private readonly rpcContexts;
189
191
  private readonly requestLeases;
190
192
  /** Host request entry: async credential work reuses the original owner lease. */
@@ -391,7 +393,7 @@ export declare class ScopedPluginRegistry {
391
393
  * }
392
394
  * ```
393
395
  */
394
- getPrecompiledHooks(routeId: string, upstreamId?: string, serviceName?: string): PhaseAwareHooks;
396
+ getPrecompiledHooks(routeId: string, upstreamId?: string, serviceName?: string, adapter?: import('./plugin.types').Plugin): PhaseAwareHooks;
395
397
  /** Retain every instance actually executed by handshake phases; observer precedence is different. */
396
398
  getWebSocketHandshakeOwners(routeId: string, upstreamId: string, serviceName?: string): Array<{
397
399
  pluginName: string;
@@ -425,7 +427,7 @@ export declare class ScopedPluginRegistry {
425
427
  buildRoutePhaseHooks(routeId: string): PrecompiledHooks;
426
428
  buildServicePhaseHooks(routeId: string, serviceName: string): PrecompiledHooks | null;
427
429
  buildUpstreamPhaseHooks(routeId: string, upstreamId: string): PrecompiledHooks;
428
- buildInboundChain(routeId: string, upstreamId: string, serviceName?: string): InboundChain;
430
+ buildInboundChain(routeId: string, upstreamId: string, serviceName?: string, adapter?: PrecompiledHooks): InboundChain;
429
431
  /**
430
432
  * 清除指定 scope 的预编译缓存
431
433
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeffusion/bungee-core",
3
- "version": "5.19.0",
3
+ "version": "5.20.0",
4
4
  "description": "Bungee reverse proxy core engine",
5
5
  "main": "./dist/main.js",
6
6
  "types": "./dist/main.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "@bungee/ws-client": "npm:ws@8.22.0",
16
16
  "@types/ws": "^8.18.1",
17
- "@jeffusion/bungee-types": "^5.19.0",
17
+ "@jeffusion/bungee-types": "^5.20.0",
18
18
  "@types/lodash-es": "^4.17.12",
19
19
  "acorn": "^8.15.0",
20
20
  "canonicalize": "3.0.0",