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

Update Deno data for api.Window #26265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Deno data for api.Window #26265

wants to merge 1 commit into from

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Mar 20, 2025

Summary

Update Deno data for api.Window.

Test results and supporting details

Mostly sets version: false.

Notable changes:

  • beforeunload_event was added in v1.27 (denoland/deno@06ccb6d)
  • blur was not available in v1.24 (see here, verified by running typeof self.blur, which gives undefined)
  • closed is available since v1.0 (see here)
  • error_event was added in v1.21 (denoland/deno@4d18f55)
  • location is actually available without runtime flag, but it does reflect the value of it.
  • self is available since v1.0 (see here)
  • window is available since v1.0 (see here)

Verified by running Object.getOwnPropertyNames(self).filter(a => a[0] === a[0].toLowerCase()).sort() in Deno 2.2.4, which seems to reflect https://github.com/denoland/deno/blob/60b502db80ea4524c8a5e316177f32329dc15a33/cli/tsc/dts/lib.deno.window.d.ts#L18-L72.

Grouped diff:

image

Related issues

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed labels Mar 20, 2025
@caugner caugner requested a review from queengooborg March 20, 2025 16:48
@caugner
Copy link
Contributor Author

caugner commented Mar 20, 2025

@bartlomieju @lucacasonato Could you please take a look if these changes make sense to you? 🙏

@caugner caugner requested a review from Elchi3 March 25, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant