@zuplo/runtime 6.65.5 → 6.65.7

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.
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{b as e,c as t,e as i,f as o,g as a,h as r,i as n}from"../chunk-6ZERWI3T.js";import"../chunk-FU34FDGK.js";export{o as getIdForParameterSchema,r as getIdForRefSchema,a as getIdForRequestBodySchema,i as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
25
+ import{b as e,c as t,e as i,f as o,g as a,h as r,i as n}from"../chunk-WKSWUPSN.js";import"../chunk-THXYBHW6.js";export{o as getIdForParameterSchema,r as getIdForRefSchema,a as getIdForRequestBodySchema,i as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
26
26
  //# sourceMappingURL=index.js.map
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{b as l}from"../chunk-HNEQMV5Z.js";import{Z as n,a as t}from"../chunk-FU34FDGK.js";function g(u={request:new Request("https://api.example.com")}){let e=[];function o(i){e.push(Promise.resolve(i))}return t(o,"waitUntil"),{context:new s({event:{waitUntil:o},route:u.route}),invokeResponse:t(async()=>{await Promise.all(e)},"invokeResponse")}}t(g,"createMockContext");var a={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:t(()=>({}),"raw")},s=class extends EventTarget{static{t(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;analyticsContext;constructor({event:e,route:o=a,parentContext:r}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:n.console.info,log:n.console.log,debug:n.console.debug,warn:n.console.warn,error:n.console.error,setLogProperties:t(()=>{},"setLogProperties")},this.custom={},this.route=o,this.incomingRequestProperties={asn:1234,asOrganization:"ORGANIZATION",city:"Seattle",region:"Washington",regionCode:"WA",colo:"SEA",continent:"NA",country:"US",postalCode:"98004",metroCode:"SEA",latitude:void 0,longitude:void 0,timezone:void 0,httpProtocol:void 0},this.parentContext=r,this.#e=e,this.analyticsContext=new l(this.requestId)}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,r){throw new Error("Not implemented")}invokeRoute(e,o){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,r){let p=t(i=>{try{typeof o=="function"?o(i):o.handleEvent(i)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,p,r)}};export{s as MockZuploContext,g as createMockContext};
25
+ import{b as l}from"../chunk-RQBSMXP2.js";import{Z as n,a as t}from"../chunk-THXYBHW6.js";function g(u={request:new Request("https://api.example.com")}){let e=[];function o(i){e.push(Promise.resolve(i))}return t(o,"waitUntil"),{context:new s({event:{waitUntil:o},route:u.route}),invokeResponse:t(async()=>{await Promise.all(e)},"invokeResponse")}}t(g,"createMockContext");var a={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:t(()=>({}),"raw")},s=class extends EventTarget{static{t(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;analyticsContext;constructor({event:e,route:o=a,parentContext:r}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:n.console.info,log:n.console.log,debug:n.console.debug,warn:n.console.warn,error:n.console.error,setLogProperties:t(()=>{},"setLogProperties")},this.custom={},this.route=o,this.incomingRequestProperties={asn:1234,asOrganization:"ORGANIZATION",city:"Seattle",region:"Washington",regionCode:"WA",colo:"SEA",continent:"NA",country:"US",postalCode:"98004",metroCode:"SEA",latitude:void 0,longitude:void 0,timezone:void 0,httpProtocol:void 0},this.parentContext=r,this.#e=e,this.analyticsContext=new l(this.requestId)}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,r){throw new Error("Not implemented")}invokeRoute(e,o){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,r){let p=t(i=>{try{typeof o=="function"?o(i):o.handleEvent(i)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,p,r)}};export{s as MockZuploContext,g as createMockContext};
26
26
  //# sourceMappingURL=index.js.map
@@ -1989,7 +1989,8 @@ declare type CompatibilityDate =
1989
1989
  | "2024-01-15"
1990
1990
  | "2024-03-14"
1991
1991
  | "2024-09-02"
1992
- | "2025-02-06";
1992
+ | "2025-02-06"
1993
+ | "2026-03-01";
1993
1994
 
1994
1995
  declare interface CompatibilityFlags {
1995
1996
  /**
@@ -2036,6 +2037,19 @@ declare interface CompatibilityFlags {
2036
2037
  * @compatibilityDate 2025-02-06
2037
2038
  */
2038
2039
  useForwardRedirectsPropOnUrlForwardHandler: boolean;
2040
+ /**
2041
+ * Whether response sending hooks should chain properly, where each hook
2042
+ * receives the response from the previous hook instead of the original response.
2043
+ *
2044
+ * Before this flag: All hooks received the original response, so only the last
2045
+ * hook's output was returned.
2046
+ *
2047
+ * After this flag: Hooks are chained properly, each receiving the previous
2048
+ * hook's response.
2049
+ *
2050
+ * @compatibilityDate 2026-03-01
2051
+ */
2052
+ chainResponseSendingHooks: boolean;
2039
2053
  }
2040
2054
 
2041
2055
  /**
@@ -56,7 +56,8 @@ declare type CompatibilityDate =
56
56
  | "2024-01-15"
57
57
  | "2024-03-14"
58
58
  | "2024-09-02"
59
- | "2025-02-06";
59
+ | "2025-02-06"
60
+ | "2026-03-01";
60
61
 
61
62
  declare interface CompatibilityFlags {
62
63
  /**
@@ -103,6 +104,19 @@ declare interface CompatibilityFlags {
103
104
  * @compatibilityDate 2025-02-06
104
105
  */
105
106
  useForwardRedirectsPropOnUrlForwardHandler: boolean;
107
+ /**
108
+ * Whether response sending hooks should chain properly, where each hook
109
+ * receives the response from the previous hook instead of the original response.
110
+ *
111
+ * Before this flag: All hooks received the original response, so only the last
112
+ * hook's output was returned.
113
+ *
114
+ * After this flag: Hooks are chained properly, each receiving the previous
115
+ * hook's response.
116
+ *
117
+ * @compatibilityDate 2026-03-01
118
+ */
119
+ chainResponseSendingHooks: boolean;
106
120
  }
107
121
 
108
122
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.65.5",
4
+ "version": "6.65.7",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {