diff --git a/CHANGELOG.md b/CHANGELOG.md index d51b41d6c..68d6bcd1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,27 @@ # Changelog -## 0.17.3 +## 0.17.4 +### New Features + +- **Paced X DM media downloads.** A DM attachment's download can be sent as exactly `chunks` pieces `interval_ms` apart, the same controls as the OpenAI emulator's paced answers: `attachment.stream` in the seed or on `/_emulate/x/dm/arrive`, or `POST /_emulate/x/media/:media_key/stream`. An emulator control, not X behaviour; downloads stay unpaced unless asked. + ### Fixes -- **X delivers only to webhooks whose challenge was answered.** As on X, a webhook gets DM deliveries only once its challenge has been answered: the CRC at creation or on `PUT /2/webhooks/:id`, or, in control mode, a correct answer at `POST /_emulate/x/webhooks/:id/challenge`. Until then, and for a seeded webhook until `PUT`, deliveries are held, listed as held, and previewable. An address accepted only through control mode's relaxation (`http`, or a port, on an https instance) is never called at all. +- **A large request body no longer resets a hosted instance.** A body over the limit is refused with a `413` before it is read, in the provider's error shape where it has one: 16 MiB on hosted instances, and 32 MiB for the OpenAI emulator (locally too), which answers `request_too_large` in OpenAI's error shape. Bodies within the limit are streamed to the instance. A 100 MiB body used to exhaust the instance's memory, answer 500 and end the other requests in it, a paced stream included. +- **Hosted instances hold their data with less memory, within a stated budget.** The ledger records a body over 1 MiB by size without a second copy, saves keep a fingerprint of each stored value rather than its JSON, and a write that would take an instance's stored data past 32 MiB answers `507 instance_storage_full`. `GET /_emulate/persistence` shows the size and the budget. +- **The local server answers a client still uploading.** After answering a request whose body it did not read, it ends the connection instead of leaving the client waiting. +## 0.17.3 + +### Fixes + +- **X delivers only to webhooks whose challenge was answered.** As on X, a webhook gets DM deliveries only once its challenge has been answered: the CRC at creation or on `PUT /2/webhooks/:id`, or, in control mode, a correct answer at `POST /_emulate/x/webhooks/:id/challenge`. Until then, and for a seeded webhook until `PUT`, deliveries are held, listed as held, and previewable. An address accepted only through control mode's relaxation (`http`, or a port, on an https instance) is never called at all. + ## 0.17.2 ### Changes diff --git a/packages/@emulators/adapter-next/package.json b/packages/@emulators/adapter-next/package.json index 7fb60d264..09b564ace 100644 --- a/packages/@emulators/adapter-next/package.json +++ b/packages/@emulators/adapter-next/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/adapter-next", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/apple/package.json b/packages/@emulators/apple/package.json index d9c146a78..c4eef352c 100644 --- a/packages/@emulators/apple/package.json +++ b/packages/@emulators/apple/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/apple", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/autumn/package.json b/packages/@emulators/autumn/package.json index 15eb8b485..4e2354942 100644 --- a/packages/@emulators/autumn/package.json +++ b/packages/@emulators/autumn/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/autumn", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/aws/package.json b/packages/@emulators/aws/package.json index 856f3a2b4..c2e3a3de1 100644 --- a/packages/@emulators/aws/package.json +++ b/packages/@emulators/aws/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/aws", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/clerk/package.json b/packages/@emulators/clerk/package.json index 14a340621..2327a65d3 100644 --- a/packages/@emulators/clerk/package.json +++ b/packages/@emulators/clerk/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/clerk", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/cloudflare/package.json b/packages/@emulators/cloudflare/package.json index 9c50ebbe7..c2eac9fcd 100644 --- a/packages/@emulators/cloudflare/package.json +++ b/packages/@emulators/cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/cloudflare", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/context/package.json b/packages/@emulators/context/package.json index 7b2c6c8ee..aea7e4988 100644 --- a/packages/@emulators/context/package.json +++ b/packages/@emulators/context/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/context", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/core/package.json b/packages/@emulators/core/package.json index 17937d3e3..f0ac94310 100644 --- a/packages/@emulators/core/package.json +++ b/packages/@emulators/core/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/core", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/github/package.json b/packages/@emulators/github/package.json index 8daf444de..d269dacb2 100644 --- a/packages/@emulators/github/package.json +++ b/packages/@emulators/github/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/github", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/gitlab/package.json b/packages/@emulators/gitlab/package.json index b8eaf3090..f332389c9 100644 --- a/packages/@emulators/gitlab/package.json +++ b/packages/@emulators/gitlab/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/gitlab", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/google/package.json b/packages/@emulators/google/package.json index 75abda8d7..0f6eacf78 100644 --- a/packages/@emulators/google/package.json +++ b/packages/@emulators/google/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/google", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/mcp/package.json b/packages/@emulators/mcp/package.json index fcc68fc1b..6a4c71a64 100644 --- a/packages/@emulators/mcp/package.json +++ b/packages/@emulators/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/mcp", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/microsoft/package.json b/packages/@emulators/microsoft/package.json index 8a02bcb64..b348d806c 100644 --- a/packages/@emulators/microsoft/package.json +++ b/packages/@emulators/microsoft/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/microsoft", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/miro/package.json b/packages/@emulators/miro/package.json index 8702722e4..58f2f8163 100644 --- a/packages/@emulators/miro/package.json +++ b/packages/@emulators/miro/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/miro", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/mongoatlas/package.json b/packages/@emulators/mongoatlas/package.json index f24c5223a..91e82c4de 100644 --- a/packages/@emulators/mongoatlas/package.json +++ b/packages/@emulators/mongoatlas/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/mongoatlas", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/okta/package.json b/packages/@emulators/okta/package.json index 2eaa2ff8a..0bc4acf97 100644 --- a/packages/@emulators/okta/package.json +++ b/packages/@emulators/okta/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/okta", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/openai/package.json b/packages/@emulators/openai/package.json index e452e8b32..2c4afeb2e 100644 --- a/packages/@emulators/openai/package.json +++ b/packages/@emulators/openai/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/openai", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/planetscale/package.json b/packages/@emulators/planetscale/package.json index 301da9b80..0768aa1c3 100644 --- a/packages/@emulators/planetscale/package.json +++ b/packages/@emulators/planetscale/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/planetscale", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/posthog/package.json b/packages/@emulators/posthog/package.json index 13c75d30a..13d8f8552 100644 --- a/packages/@emulators/posthog/package.json +++ b/packages/@emulators/posthog/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/posthog", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/resend/package.json b/packages/@emulators/resend/package.json index 84523c364..7d1fac829 100644 --- a/packages/@emulators/resend/package.json +++ b/packages/@emulators/resend/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/resend", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/slack/package.json b/packages/@emulators/slack/package.json index fe04c2bb5..ae7674e23 100644 --- a/packages/@emulators/slack/package.json +++ b/packages/@emulators/slack/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/slack", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/spotify/package.json b/packages/@emulators/spotify/package.json index 403a67892..b442b71b2 100644 --- a/packages/@emulators/spotify/package.json +++ b/packages/@emulators/spotify/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/spotify", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/stripe/package.json b/packages/@emulators/stripe/package.json index 560b92efc..2e681cf7c 100644 --- a/packages/@emulators/stripe/package.json +++ b/packages/@emulators/stripe/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/stripe", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/vercel/package.json b/packages/@emulators/vercel/package.json index 0c90761d8..550ef5197 100644 --- a/packages/@emulators/vercel/package.json +++ b/packages/@emulators/vercel/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/vercel", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/workos/package.json b/packages/@emulators/workos/package.json index be4367daa..dab11fdcb 100644 --- a/packages/@emulators/workos/package.json +++ b/packages/@emulators/workos/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/workos", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/x/package.json b/packages/@emulators/x/package.json index ef66d0488..9bf3f1e84 100644 --- a/packages/@emulators/x/package.json +++ b/packages/@emulators/x/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/x", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/@emulators/zapier/package.json b/packages/@emulators/zapier/package.json index 84157f755..0651ede7d 100644 --- a/packages/@emulators/zapier/package.json +++ b/packages/@emulators/zapier/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/zapier", - "version": "0.17.3", + "version": "0.17.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/emulate/package.json b/packages/emulate/package.json index 46de8dc5d..6181f2ee4 100644 --- a/packages/emulate/package.json +++ b/packages/emulate/package.json @@ -1,6 +1,6 @@ { "name": "@executor-js/emulate", - "version": "0.17.3", + "version": "0.17.4", "description": "Local drop-in replacement services for CI and no-network sandboxes", "license": "Apache-2.0", "type": "module",