Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: simplify getSetCookies #3491

Merged
merged 4 commits into from
Jul 18, 2023

Conversation

lino-levan
Copy link
Contributor

Closes #3487.

I think simplifying it makes more sense rather than deprecating it given that this is a nice utility anyways.

@lino-levan lino-levan requested a review from kt3k as a code owner July 12, 2023 21:00
@github-actions github-actions bot added the http label Jul 12, 2023
@lino-levan
Copy link
Contributor Author

It seems to claim that this isn't browser compatible. It definitely is? Are the TS type definitions out of date?

@kt3k
Copy link
Member

kt3k commented Jul 13, 2023

getSetCookie was added recently in TS microsoft/TypeScript#54725 ( microsoft/TypeScript-DOM-lib-generator#1553 ). It looks like it will be available in TS 5.2 (Deno uses TS 5.1.6)

@kt3k
Copy link
Member

kt3k commented Jul 17, 2023

Note: TS 5.2 iteration plan microsoft/TypeScript#54298

We probably need to wait another month.

I think landing this with @ts-ignore and TODO comment might be an option.

@lino-levan
Copy link
Contributor Author

I'm game to land this with a ts-ignore. Let me update the PR.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit e0753ab into denoland:main Jul 18, 2023
6 checks passed
@lino-levan lino-levan deleted the chore-simplifiy-getsetcookies branch July 18, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suggestion: deprecate getSetCookies()
2 participants