Skip to content

ci: add Cap 9 deprecated-API guard - #7

Closed
riderx wants to merge 2 commits into
mainfrom
cursor/cap9-deprecated-ci-guard-4642
Closed

riderx wants to merge 2 commits into
mainfrom
cursor/cap9-deprecated-ci-guard-4642

Conversation

@riderx

@riderx riderx commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the Cap-go reference Cap 9 deprecated native API CI guard (scripts/check-cap9-deprecated.mjs), matching the pattern from capacitor-admob#47.

Changes

  • scripts/check-cap9-deprecated.mjs — scans android/ios native sources (and packages/* when present) for Cap 9 removed APIs; strips comments; supports --dir; skips Cordova SPM product lines in Package.swift; allows Cap 9 replacements (Bridge.saveCall, Bridge.getSavedCall, Bridge.releaseCall, savedCall(withID:)); exits 0 when package.json has no capacitor.android / capacitor.ios (hook-only packages like this repo).
  • package.json — check:cap9-deprecated script.
  • .github/workflows/test.yml — runs the check after bun i in the web job.

Local verify

bun run check:cap9-deprecated
bun run verify
Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Review in cubic

cursoragent and others added 2 commits September 14, 2026 15:42
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: f64bf1ef-f5eb-46bd-adb0-7e0b01a19c4e


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Beta npm build

Maintainers can publish this PR to npm for fast testing.

Comment /publish-beta after the PR checks are green.

The workflow will:

  • publish a prerelease package on the beta tag
  • add a pinned pr-7 dist-tag for this exact PR build
  • update this comment with the install command

Security note: beta publish is only enabled for branches inside this repository.

@TorichanCapgo
TorichanCapgo marked this pull request as ready for review September 15, 2026 08:18
@riderx

riderx commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

Superseded by #8 (Cap 9 deprecated-API guard).

@riderx riderx closed this Sep 16, 2026
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