Skip to content

feat: upgrade cad-viewer to v1.6.0 with opt-in LibreDWG - #2

Merged
mlightcad merged 1 commit into
mainfrom
feat/upgrade-1.6.0-libredwg
Aug 16, 2026
Merged

mlightcad merged 1 commit into
mainfrom
feat/upgrade-1.6.0-libredwg

Conversation

@mlightcad

Copy link
Copy Markdown
Owner

Summary

  • Upgrade @mlightcad/cad-viewer (and related packages) from 1.5.11 to 1.6.0, and add @mlightcad/libredwg-converter for optional GPL DWG parsing.
  • Register AcDbLibreDwgConverter in src/registerLibreDwg.ts before MlCadViewer mounts, matching the 1.6.0 host opt-in model.
  • Copy libredwg-parser-worker.js and libredwg-web.wasm from the converter package (worker + wasm must sit together) instead of the old cad-simple-viewer worker glob.

Test plan

  • pnpm install then pnpm dev; open a DXF file (should still work without extra setup)
  • Open a DWG file and confirm it parses via the LibreDWG worker
  • pnpm build and confirm dist/assets contains mtext-renderer-worker.js, libredwg-parser-worker.js, libredwg-web.wasm, and viewer-runtime.iife.js
  • Confirm the README registration + asset-copy steps match the Vite config

DWG parsing is no longer bundled in cad-viewer; register libredwg-converter before the viewer opens drawings.
@netlify

netlify Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for mlightcad ready!

Name Link
🔨 Latest commit 26f737b
🔍 Latest deploy log https://app.netlify.com/projects/mlightcad/deploys/6a8188d955210500088048e8
😎 Deploy Preview https://deploy-preview-2--mlightcad.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@mlightcad
mlightcad merged commit aae761d into main Aug 16, 2026
6 checks passed
@mlightcad
mlightcad deleted the feat/upgrade-1.6.0-libredwg branch August 16, 2026 10:31
@mlightcad mlightcad self-assigned this Aug 16, 2026
@mlightcad mlightcad added the enhancement New feature or request label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant