summaryrefslogtreecommitdiff
path: root/.changeset/yellow-tips-cover.md
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2023-08-30 04:38:28 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-30 13:38:28 +0200
commit5598feb71864f814d0a34bb6bf9f6ecdff081497 (patch)
tree15cfefaaeb8b7f346eb96e05a5e9e086d7bd262b /.changeset/yellow-tips-cover.md
parente33d951af178ce0b50a41799d3ce76d107c961db (diff)
downloadastro-5598feb71864f814d0a34bb6bf9f6ecdff081497.tar.gz
astro-5598feb71864f814d0a34bb6bf9f6ecdff081497.tar.zst
astro-5598feb71864f814d0a34bb6bf9f6ecdff081497.zip
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.md26
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');
-}
-```