Skip to content

tech-debt: migrate ccapture.js 1.1.0 -> 2.0.0 #139

Description

@petercorke

Dependabot proposed bumping ccapture.js from 1.1.0 to 2.0.0 in src/swift/public/package.json (#127), but 2.0.0 is a breaking rewrite:

  • Build output moved from build/CCapture.all.min.js/CCapture.min.js to build/ccapture.umd.js/ccapture.umd.min.js (build-vendor.cjs needs updating to copy the new filenames).
  • The package is now ESM-first with a different module/API surface (see its src/index.js, .d.ts files) rather than the old global-script UMD bundle -- worth checking whether/how the app's own CCapture usage (screen/video capture, if any lands via feat(ui): save a screenshot with the 's' hotkey #133's screenshot work or similar) needs to change to match.

#127 was merged into main despite its own CI failing on this exact break, and reverted in #138. This issue tracks doing the real migration properly later, rather than as a side effect of an unrelated PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtKnown technical debt / deferred cleanup, not a live bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions