Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove package:js dependency in build_web_compilers #3994

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented May 4, 2025

package:js has been deprecated in favor of the new dart:js_interop library (and package:web). This migrates a package:js import in build_web_compilers used in a helper program to implement StackTrace.toString for DDC apps.

I've replaced the package:js import with the new interop library, removed the dependency and ran dart run build_runner build in the build_web_compilers directory.

Copy link

github-actions bot commented May 5, 2025

PR Health

Changelog Entry
Package Changed Files
package:build build/lib/src/analyzer/resolver.dart
build/lib/src/builder/build_step.dart
package:build_modules build_modules/pubspec.yaml
package:build_resolvers build_resolvers/lib/src/resolver.dart
package:build_runner_core build_runner_core/lib/src/generate/build_step_impl.dart

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@simolus3
Copy link
Contributor Author

simolus3 commented May 5, 2025

I'll try to unpin the analyzer dependency in build_modules, IIRC json_serializable has been patched to work with that version. That should fix the drift community tests.

Copy link

github-actions bot commented May 5, 2025

Package publishing

Package Version Status Publish tag (post-merge)
package:build 2.4.3-wip WIP (no publish necessary)
package:build_config 1.1.3-wip WIP (no publish necessary)
package:build_daemon 4.0.5-wip WIP (no publish necessary)
package:build_modules 5.0.13 already published at pub.dev
package:build_resolvers 2.4.5-wip WIP (no publish necessary)
package:build_runner 2.4.16-wip WIP (no publish necessary)
package:build_runner_core 9.0.0-wip WIP (no publish necessary)
package:build_test 3.0.0-wip WIP (no publish necessary)
package:build_web_compilers 4.1.5 ready to publish build_web_compilers-v4.1.5
package:scratch_space 1.0.3-wip WIP (no publish necessary)

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

@kevmoo kevmoo requested a review from davidmorgan May 5, 2025 16:50
@davidmorgan
Copy link
Contributor

@simolus3 the "community" tests are still failing but I think that's unrelated to this PR? If so I can approve+merge this.

There have been a lot of changes to build_test, I am anyway expecting that while generators will keep working with the next release there is some work needed to get e2e tests working again. (bulid_test will have a breaking release).

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.

2 participants