+
Skip to content

feat(wasm): expose new functions #6896

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 6 commits into
base: next
Choose a base branch
from
Open

Conversation

ematipico
Copy link
Member

Summary

This PR exposes new functions to the WASM distribution. It also creates new functions that allow to update and pull the module graph.

The new functions will be very useful for the playground, because at the moment project rules don't work. With the new functions, we will be able to that (for the most part). We still need some functions for storing the manifests.

Test Plan

Added new tests for the new functions. The CI should stay green

Docs

Copy link

changeset-bot bot commented Jul 15, 2025

🦋 Changeset detected

Latest commit: 3f9ae0c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@biomejs/biome Minor
@biomejs/cli-win32-x64 Minor
@biomejs/cli-win32-arm64 Minor
@biomejs/cli-darwin-x64 Minor
@biomejs/cli-darwin-arm64 Minor
@biomejs/cli-linux-x64 Minor
@biomejs/cli-linux-arm64 Minor
@biomejs/cli-linux-x64-musl Minor
@biomejs/cli-linux-arm64-musl Minor
@biomejs/wasm-web Minor
@biomejs/wasm-bundler Minor
@biomejs/wasm-nodejs Minor
@biomejs/backend-jsonrpc Patch
@biomejs/js-api Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ematipico ematipico force-pushed the feat/wasm-expose-methods branch from 4ca1db7 to ca5ecc0 Compare July 15, 2025 13:14
@github-actions github-actions bot added the A-Project Area: project label Jul 15, 2025
Copy link
Contributor

@arendjr arendjr left a comment

Choose a reason for hiding this comment

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

Nice!

@ematipico ematipico changed the base branch from main to next July 16, 2025 14:13
@github-actions github-actions bot added A-CLI Area: CLI A-Linter Area: linter A-Parser Area: parser A-Formatter Area: formatter A-Tooling Area: internal tools A-LSP Area: language server protocol L-JavaScript Language: JavaScript and super languages L-CSS Language: CSS L-JSON Language: JSON and super languages A-Diagnostic Area: diagnostocis L-HTML Language: HTML A-Type-Inference Area: type inference labels Jul 16, 2025
@ematipico ematipico force-pushed the feat/wasm-expose-methods branch from 84b149f to 303ecce Compare July 16, 2025 14:18
@github-actions github-actions bot removed A-Linter Area: linter A-Parser Area: parser A-Formatter Area: formatter A-Tooling Area: internal tools A-LSP Area: language server protocol L-CSS Language: CSS A-Diagnostic Area: diagnostocis L-HTML Language: HTML labels Jul 16, 2025
@github-actions github-actions bot removed the A-Type-Inference Area: type inference label Jul 16, 2025
Copy link

codspeed-hq bot commented Jul 16, 2025

CodSpeed Performance Report

Merging #6896 will degrade performances by 61.19%

Comparing feat/wasm-expose-methods (3f9ae0c) with next (275cc8b)

🎉 Hooray! codspeed-rust just leveled up to 3.0.3!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

⚡ 1 improvements
❌ 3 regressions
✅ 110 untouched benchmarks
🆕 1 new benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
js_analyzer[index_3894593175024091846.js] 49.4 ms 53.1 ms -6.97%
js_analyzer[parser_13571644119461115204.ts] 79.4 ms 85.6 ms -7.26%
🆕 module_graph[@next/font/google/index.d.ts] N/A 290.7 ms N/A
deserialize_from_json_str[package.json] 1,038.3 µs 930.8 µs +11.55%
deserialize_from_json_str[tsconfig.json] 218 µs 561.8 µs -61.19%

@ematipico ematipico requested review from siketyan and arendjr July 16, 2025 14:39
@github-actions github-actions bot added the A-LSP Area: language server protocol label Jul 16, 2025
@@ -537,7 +537,7 @@ impl TraversalContext for TraversalOptions<'_, '_> {
// Note that `symlink/subdir` is not an existing file.
let can_handle = !self
.workspace
.is_path_ignored(IsPathIgnoredParams {
.is_path_ignored(PathIsIgnoredParams {
Copy link
Member Author

Choose a reason for hiding this comment

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

I had to rename this type because the initial I was in conflict with the WASM types, which all start with I

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-LSP Area: language server protocol A-Project Area: project L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载