chore: sync upstream PR #8473 - fix(runtime): plugin proxy must not be unintentionally Thenable - #88
Conversation
…-preferred conflicts)
|
Git applied the upstream-preferred strategy to resolve this sync. Please review the branch carefully before merging. |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
Comment |
Beta npm buildMaintainers can publish one Capacitor Plus workspace package from this PR to npm for fast testing. Comment Examples: /publish-beta core
/publish-beta cli
/publish-beta @capacitor-plus/coreIf exactly one workspace package changed, Packages:
The workflow will:
Security note: beta publish is only enabled for branches inside this repository. |
The sync branch had pulled in a large slice of upstream history with an upstream-preferred conflict resolution, which also reverted the fork's package metadata. Reset the tree to the plus tip and re-apply only this PR's own upstream commits. Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
…onic-team#8472. (cherry picked from commit c2e4246)
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
There was a problem hiding this comment.
1 issue found across 2 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="core/src/runtime.ts">
<violation number="1" location="core/src/runtime.ts:177">
P2: When a plugin defines a method named `catch` or `finally`, the proxy now returns `undefined` instead of the method wrapper, so the method is inaccessible for both JS and native implementations. Promise assimilation only reads `then`; keep only the `then` case so arbitrary plugin method names remain supported.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| case 'then': | ||
| case 'catch': | ||
| case 'finally': |
There was a problem hiding this comment.
P2: When a plugin defines a method named catch or finally, the proxy now returns undefined instead of the method wrapper, so the method is inaccessible for both JS and native implementations. Promise assimilation only reads then; keep only the then case so arbitrary plugin method names remain supported.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At core/src/runtime.ts, line 177:
<comment>When a plugin defines a method named `catch` or `finally`, the proxy now returns `undefined` instead of the method wrapper, so the method is inaccessible for both JS and native implementations. Promise assimilation only reads `then`; keep only the `then` case so arbitrary plugin method names remain supported.</comment>
<file context>
@@ -173,6 +173,11 @@ export const createCapacitor = (win: WindowCapacitor): CapacitorInstance => {
case 'removeListener':
return removeListener;
+ // Promise-machinery short-circuit. See #8472 for failure modes.
+ case 'then':
+ case 'catch':
+ case 'finally':
</file context>
| case 'then': | |
| case 'catch': | |
| case 'finally': | |
| case 'then': |


Merge Conflict Review Required
The sync of upstream PR ionic-team#8473 from @playopsstudio encountered merge conflicts.
Original PR: ionic-team#8473
What happened
Synced from upstream by Capacitor+ Bot