Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Remove deprecated features from Astro 3.0 #76

Closed
alexanderniebuhr opened this issue Nov 27, 2023 · 2 comments · Fixed by #86
Closed

Remove deprecated features from Astro 3.0 #76

alexanderniebuhr opened this issue Nov 27, 2023 · 2 comments · Fixed by #86
Assignees

Comments

@alexanderniebuhr
Copy link
Member

alexanderniebuhr commented Nov 27, 2023

We need to also make sure do check this repo for: withastro/astro#9168

@alexanderniebuhr alexanderniebuhr self-assigned this Nov 27, 2023
@vasfvitor
Copy link
Contributor

vasfvitor commented Dec 3, 2023

I stumbled upon this: type EndpointOutput was removed.
withastro/astro@cdabf6e#diff-cec1de65bb8dd2f8330cb37fe3698afd66162bc0f311aa11e0b3dd573f6a2b9f

it seems that this does the trick

- import { type APIContext, type EndpointOutput } from 'astro';
+ import { type APIContext } from 'astro';
- Promise<EndpointOutput | Response>
+ Promise<Response>

Currently type EndpointOutput is utilized in Cloudflare adapter as lines above. After this change all 60 tests passes

@alexanderniebuhr
Copy link
Member Author

@vasfvitor would you like to open a PR with that fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants