Skip to content

Conversation

japgolly
Copy link
Contributor

@japgolly japgolly commented Sep 23, 2025

Fixes #57

@japgolly japgolly changed the title Add jsdom 27.0.0 to the CI Support jsdom 27.0.0 Sep 23, 2025
@japgolly japgolly changed the title Support jsdom 27.0.0 Support jsdom 27 Sep 23, 2025
@japgolly japgolly force-pushed the topic/jsdom27 branch 4 times, most recently from b2a7b37 to 3969316 Compare September 25, 2025 02:00
@sjrd
Copy link
Member

sjrd commented Sep 25, 2025

Rebasing on main should fix the CI issues.

Please swap the order of the two commits. Otherwise the commit that adds jsdom 27 to the CI is a commit for which CI is broken.

@japgolly
Copy link
Contributor Author

Thanks; done! PR is green now.

@sjrd sjrd merged commit 40f3530 into scala-js:main Sep 26, 2025
12 checks passed
xerial added a commit to wvlet/wvlet that referenced this pull request Sep 29, 2025
jsdom 27.0.0 introduced a breaking change where sendTo() was renamed to
forwardTo() in VirtualConsole. This breaks scala-js-env-jsdom-nodejs 1.1.0
which still uses the old sendTo() API, causing TypeError during Scala.js
test execution.

The fix has been merged in scala-js/scala-js-env-jsdom-nodejs#58 but not
yet released. Rollback jsdom to 26.1.0 until a new version of
scala-js-env-jsdom-nodejs is released with jsdom 27 support.

Fixes #1316

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
xerial added a commit to wvlet/wvlet that referenced this pull request Sep 29, 2025
## Summary

- Rollback jsdom from 27.0.0 to 26.1.0 to fix Scala.js test failures
- jsdom 27.0.0 introduced breaking API change (sendTo() → forwardTo())
- scala-js-env-jsdom-nodejs 1.1.0 still uses old sendTo() API
- Fix has been merged upstream but not yet released

## Problem

PR #1316 upgraded jsdom from 26.1.0 to 27.0.0, which introduced a
breaking change:
- `VirtualConsole.sendTo()` was renamed to `forwardTo()`
- This causes `TypeError: (intermediate value).sendTo is not a function`
during Scala.js test execution
- The error occurs because scala-js-env-jsdom-nodejs 1.1.0 (last
released May 2020) still uses the old API

## Solution

Rollback jsdom to 26.1.0 until scala-js-env-jsdom-nodejs releases a new
version with jsdom 27 support.

The fix has been merged in
scala-js/scala-js-env-jsdom-nodejs#58 but not
yet released.

## Test plan

- [x] Run Scala.js tests locally: `./sbt "langJS/test"` - all 486 tests
pass
- [ ] CI Scala.js tests should pass

## Related Issues

Fixes #1316

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <[email protected]>
@carlosedp
Copy link

Hi guys, any news when a version with this PR will be released?

carlosedp added a commit to carlosedp/zio-scalajs-stack that referenced this pull request Oct 7, 2025
Downgrade jsdom dependency from version 27.0.0 to 26.1.0.

This has to be kept until the lib is released with the scala-js/scala-js-env-jsdom-nodejs#58 PR.
@sjrd
Copy link
Member

sjrd commented Oct 9, 2025

Released as part of v1.1.1.

@carlosedp
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support jsdom 27.0.0+

3 participants