{"id":16683654,"url":"https://github.com/yamachu/jsdom-with-window-prefix","last_synced_at":"2026-07-12T00:32:18.234Z","repository":{"id":203727057,"uuid":"710279788","full_name":"yamachu/jsdom-with-window-prefix","owner":"yamachu","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-26T11:38:24.000Z","size":56,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T15:45:03.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yamachu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-26T11:34:35.000Z","updated_at":"2023-10-26T11:35:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e69bb16-07e5-4312-98b2-d1c48b2fe1fb","html_url":"https://github.com/yamachu/jsdom-with-window-prefix","commit_stats":null,"previous_names":["yamachu/jsdom-with-window-prefix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yamachu/jsdom-with-window-prefix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamachu%2Fjsdom-with-window-prefix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamachu%2Fjsdom-with-window-prefix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamachu%2Fjsdom-with-window-prefix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamachu%2Fjsdom-with-window-prefix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yamachu","download_url":"https://codeload.github.com/yamachu/jsdom-with-window-prefix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamachu%2Fjsdom-with-window-prefix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35378722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T14:25:40.775Z","updated_at":"2026-07-12T00:32:18.212Z","avatar_url":"https://github.com/yamachu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# global-jsdom + CustomEvent + Node 20 が落ちる再現\n\n## 対策\n\n### 対策1\n\nsee: https://github.com/yamachu/jsdom-with-window-prefix/pull/1\n\nvitest を使っているのであれば、global-jsdom を使わないで、\n\n```ts\n// @vitest-environment jsdom\n```\n\nみたいに [vitest-environment](https://vitest.dev/config/#environment) に乗っかる\n\n### 対策2\n\nsee: https://github.com/yamachu/jsdom-with-window-prefix/pull/2\n\nglobal-jsdom を使うなら、ブラウザに実装されている API では `window.` を付けて、jsdom から渡っている API を使用しているという様に明示する\n\n```diff\n- new CustomEvent('foo')\n+ new window.CustomEvent('foo')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamachu%2Fjsdom-with-window-prefix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyamachu%2Fjsdom-with-window-prefix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamachu%2Fjsdom-with-window-prefix/lists"}