diff options
author | 2023-11-28 01:51:57 +0800 | |
---|---|---|
committer | 2023-11-27 12:51:57 -0500 | |
commit | cdabf6ef02be7220fd2b6bdcef924ceca089381e (patch) | |
tree | 9de67acf8c7bc2e1516e81d36f34232f7bb7d415 /packages/integrations/markdoc/test | |
parent | 37697a2c5511572dc29c0a4ea46f90c2f62be8e6 (diff) | |
download | astro-cdabf6ef02be7220fd2b6bdcef924ceca089381e.tar.gz astro-cdabf6ef02be7220fd2b6bdcef924ceca089381e.tar.zst astro-cdabf6ef02be7220fd2b6bdcef924ceca089381e.zip |
Remove support for simple objects in endpoints (#9181)
* Deprecate simple object from endpoints
* Update changeset
* Add missing Response return
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
* Update .changeset/clever-beds-notice.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/markdoc/test')
2 files changed, 2 insertions, 6 deletions
diff --git a/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/collection.json.js b/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/collection.json.js index 6f389f0a7..cb3c84652 100644 --- a/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/collection.json.js +++ b/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/collection.json.js @@ -4,7 +4,5 @@ import { stripAllRenderFn } from '../../utils.js'; export async function GET() { const posts = await getCollection('blog'); - return { - body: stringify(stripAllRenderFn(posts)) - }; + return new Response(stringify(stripAllRenderFn(posts))); } diff --git a/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/entry.json.js b/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/entry.json.js index aa24117ab..53dd17013 100644 --- a/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/entry.json.js +++ b/packages/integrations/markdoc/test/fixtures/content-collections/src/pages/entry.json.js @@ -4,7 +4,5 @@ import { stripRenderFn } from '../../utils.js'; export async function GET() { const post = await getEntryBySlug('blog', 'post-1'); - return { - body: stringify(stripRenderFn(post)), - }; + return new Response(stringify(stripRenderFn(post))); } |