+
Skip to content

fix(wasm): serialize map as a plain object #6781

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

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

siketyan
Copy link
Member

@siketyan siketyan commented Jul 8, 2025

Summary

Fixed that the generated TypeScript type declares as { [K in FeatureKind]?: SupportKind } but the actual value was Map<FeatureKind, SupportKind>. I enabled the serialize_maps_as_objects option in the serde_wasm_bindgen serializer.

Test Plan

Manually tested with the playground

@siketyan siketyan requested review from a team July 8, 2025 13:37
@siketyan siketyan self-assigned this Jul 8, 2025
Copy link

changeset-bot bot commented Jul 8, 2025

🦋 Changeset detected

Latest commit: afc2a69

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

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

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

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.

Thank you!

@siketyan siketyan merged commit 9bbd34f into biomejs:main Jul 8, 2025
11 checks passed
@github-actions github-actions bot mentioned this pull request Jul 8, 2025
josh- pushed a commit to josh-/biome that referenced this pull request Jul 9, 2025
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载