diff options
author | 2023-08-30 04:38:28 -0700 | |
---|---|---|
committer | 2023-08-30 13:38:28 +0200 | |
commit | 5598feb71864f814d0a34bb6bf9f6ecdff081497 (patch) | |
tree | 15cfefaaeb8b7f346eb96e05a5e9e086d7bd262b /.changeset/yellow-tips-cover.md | |
parent | e33d951af178ce0b50a41799d3ce76d107c961db (diff) | |
download | astro-5598feb71864f814d0a34bb6bf9f6ecdff081497.tar.gz astro-5598feb71864f814d0a34bb6bf9f6ecdff081497.tar.zst astro-5598feb71864f814d0a34bb6bf9f6ecdff081497.zip |
[ci] release (#8279)create-astro@4.0.0astro@3.0.0@astrojs/vue@3.0.0@astrojs/vercel@4.0.0@astrojs/underscore-redirects@0.3.0@astrojs/telemetry@3.0.0@astrojs/tailwind@5.0.0@astrojs/svelte@4.0.0@astrojs/solid-js@3.0.0@astrojs/sitemap@3.0.0@astrojs/rss@3.0.0@astrojs/react@3.0.0@astrojs/prism@3.0.0@astrojs/prefetch@0.4.0@astrojs/preact@3.0.0@astrojs/partytown@2.0.0@astrojs/node@6.0.0@astrojs/netlify@3.0.0@astrojs/mdx@1.0.0@astrojs/markdown-remark@3.0.0@astrojs/markdoc@0.5.0@astrojs/lit@3.0.0@astrojs/internal-helpers@0.2.0@astrojs/deno@5.0.0@astrojs/cloudflare@7.0.0@astrojs/alpinejs@0.3.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.changeset/yellow-tips-cover.md')
-rw-r--r-- | .changeset/yellow-tips-cover.md | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/.changeset/yellow-tips-cover.md b/.changeset/yellow-tips-cover.md deleted file mode 100644 index fb373374e..000000000 --- a/.changeset/yellow-tips-cover.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'astro': patch ---- - -Deprecate returning simple objects from endpoints. Endpoints should only return a `Response`. - -To return a result with a custom encoding not supported by a `Response`, you can use the `ResponseWithEncoding` utility class instead. - -Before: - -```ts -export function GET() { - return { - body: '...', - encoding: 'binary', - }; -} -``` - -After: - -```ts -export function GET({ ResponseWithEncoding }) { - return new ResponseWithEncoding('...', undefined, 'binary'); -} -``` |