Comparing version 1.10.0 to 1.10.1
# inngest | ||
## 1.10.1 | ||
### Patch Changes | ||
- de8529e: Add `x-inngest-no-retry: true` header when non-retriable for internal executor changes | ||
## 1.10.0 | ||
@@ -4,0 +10,0 @@ |
@@ -372,2 +372,8 @@ "use strict"; | ||
if (stepRes.status === 500 || stepRes.status === 400) { | ||
const headers = { | ||
"Content-Type": "application/json", | ||
}; | ||
if (stepRes.status === 400) { | ||
headers[consts_1.headerKeys.NoRetry] = "true"; | ||
} | ||
return { | ||
@@ -377,5 +383,3 @@ status: stepRes.status, | ||
(0, errors_1.serializeError)(new Error("Unknown error; function failed but no error was returned"))), | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
headers, | ||
}; | ||
@@ -382,0 +386,0 @@ } |
@@ -97,3 +97,4 @@ /** | ||
Platform = "x-inngest-platform", | ||
Framework = "x-inngest-framework" | ||
Framework = "x-inngest-framework", | ||
NoRetry = "x-inngest-no-retry" | ||
} | ||
@@ -100,0 +101,0 @@ export declare const defaultDevServerHost = "http://127.0.0.1:8288/"; |
@@ -105,2 +105,3 @@ "use strict"; | ||
headerKeys["Framework"] = "x-inngest-framework"; | ||
headerKeys["NoRetry"] = "x-inngest-no-retry"; | ||
})(headerKeys = exports.headerKeys || (exports.headerKeys = {})); | ||
@@ -107,0 +108,0 @@ exports.defaultDevServerHost = "http://127.0.0.1:8288/"; |
{ | ||
"name": "inngest", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.10.0"; | ||
export declare const version = "1.10.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "1.10.0"; | ||
exports.version = "1.10.1"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
714949
7354