fix: bump @ioai/wasm-zstd to 1.1.2 and document Next.js integration#8
Merged
Merged
Conversation
Based on release/1.3.4 (no main plot/chart changes). - Upgrade @ioai/wasm-zstd to ^1.1.2 (static glue import; fixes Turbopack "Failed to resolve module specifier './wasm-zstd-*.js'" in inline workers) - Regenerate package-lock.json from registry.npmjs.org - Add Next.js (App Router / Turbopack) section and troubleshooting to EMBEDDING.md / EMBEDDING.zh.md Bump to 1.3.5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Release v1.3.5 on top of
release/1.3.4(nomainplot/chart changes).@ioai/wasm-zstdfrom^1.1.1to^1.1.2and regeneratepackage-lock.json(resolved fromregistry.npmjs.org).@ioai/wasm-zstd@1.1.2statically imports the Emscripten glue instead of a runtimeimport("./wasm-zstd.js"), so inline workers bundled asblob:URLs (e.g. Next.js Turbopack) no longer throw:Failed to resolve module specifier './wasm-zstd-*.js'.EMBEDDING.md/EMBEDDING.zh.md.Out of scope for this PR: db3 remote-URL worker changes, architecture/db3 doc updates, and any Plot panel work on
main.Motivation / related issue
@ioai/rosview@1.3.4+@ioai/wasm-zstd@1.1.1breaks in Next.js Turbopack (and similar bundlers) when workers run fromblob:URLs. 1.3.3 worked because it did not use WASM zstd with a relative dynamic import.maincurrently includes chart/Plot changes that are not ready to ship; this branch is based onrelease/1.3.4so only the wasm-zstd fix and docs ship.limx-agent,embodiflow, etc.) need@ioai/rosview@1.3.5with@ioai/wasm-zstd@1.1.2for Turbopack/Next.js.Type of change
Checklist
npm run lintpasses with no errorsnpm testpasses (unit tests)npm run buildandnpm run build:libsucceed@ioai/wasm-zstd@1.1.2. Manual verify: Next.js + Turbopack, load zstd-compressed MCAP.EMBEDDING.md/EMBEDDING.zh.mdupdated.API compatibility
No changes to exported symbols in
src/entrypoints/index.ts.@ioai/wasm-zstd@^1.1.2(published separately).Filefor remote use (unchanged from 1.3.4).N/A
Screenshots / recordings
N/A (dependency + documentation only; no UI changes in this branch).
Test plan
npm run lint && npm test && npm run build:libtranspilePackages: ['@ioai/rosview']and clientdynamic(..., { ssr: false })— confirm nowasm-zstd-*.jsmodule resolution errorurlor localFileand confirm playback works