@capgo/capacitor-patch 8.1.0 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +13 -6
  2. package/package.json +1 -1
  3. package/patches/catalog.json +657 -9
  4. package/patches/upstream-pr-6991-android-native-bridge.patch +15 -0
  5. package/patches/upstream-pr-6991-ios-native-bridge.patch +15 -0
  6. package/patches/upstream-pr-7301-core.patch +38 -0
  7. package/patches/upstream-pr-7419-ios.patch +13 -0
  8. package/patches/upstream-pr-7420-ios.patch +13 -0
  9. package/patches/upstream-pr-7446-android.patch +14 -0
  10. package/patches/upstream-pr-7490-android.patch +13 -0
  11. package/patches/upstream-pr-7490-ios.patch +13 -0
  12. package/patches/upstream-pr-7535-android.patch +13 -0
  13. package/patches/upstream-pr-7599-ios.patch +86 -0
  14. package/patches/upstream-pr-7732-android-native-bridge.patch +12 -0
  15. package/patches/upstream-pr-7732-ios-native-bridge.patch +12 -0
  16. package/patches/upstream-pr-7781-android.patch +24 -0
  17. package/patches/upstream-pr-7803-android.patch +13 -0
  18. package/patches/upstream-pr-7831-ios.patch +13 -0
  19. package/patches/upstream-pr-7987-android.patch +42 -0
  20. package/patches/upstream-pr-8087-android.patch +64 -0
  21. package/patches/upstream-pr-8188-cli.patch +18 -0
  22. package/patches/upstream-pr-8190-android.patch +13 -0
  23. package/patches/upstream-pr-8249-ios.patch +32 -0
  24. package/patches/upstream-pr-8252-cli.patch +31 -0
  25. package/patches/upstream-pr-8271-core.patch +30 -0
  26. package/patches/upstream-pr-8275-android.patch +158 -0
  27. package/patches/upstream-pr-8304-ios.patch +36 -0
  28. package/patches/upstream-pr-8418-android.patch +82 -0
  29. package/patches/upstream-pr-8424-android.patch +55 -0
  30. package/patches/upstream-pr-8429-android.patch +19 -0
  31. package/patches/upstream-pr-8454-android.patch +207 -0
  32. package/patches/upstream-pr-8458-cli.patch +14 -0
  33. package/scripts/capacitor-patch/runner.mjs +38 -4
  34. package/patches/capacitor-cli-spm-ios-minor-platform.patch +0 -40
package/README.md CHANGED
@@ -33,9 +33,13 @@ npm install @capgo/capacitor-patch
33
33
  npx cap sync
34
34
  ```
35
35
 
36
- ## Enable Recommended Patches
36
+ ## Enable Patches
37
37
 
38
- `@capgo/capacitor-patch` is a no-op by default. Enable Capgo-recommended patches in your Capacitor config:
38
+ `@capgo/capacitor-patch` is a no-op by default. List the bundled fixes, then opt in to the patch IDs your app needs:
39
+
40
+ ```bash
41
+ npx capgo-capacitor-patch list --all
42
+ ```
39
43
 
40
44
  ```ts
41
45
  import type { CapacitorConfig } from '@capacitor/cli';
@@ -46,7 +50,8 @@ const config: CapacitorConfig = {
46
50
  webDir: 'dist',
47
51
  plugins: {
48
52
  CapacitorPatch: {
49
- recommended: true,
53
+ patches: ['upstream-pr-8418-android'],
54
+ strict: true,
50
55
  },
51
56
  },
52
57
  };
@@ -62,6 +67,8 @@ npx cap sync
62
67
 
63
68
  Package patches run before `sync` and `update`. Native project patches run after `sync` and `update`.
64
69
 
70
+ `recommended: true` is also supported for fixes Capgo marks as recommended in the catalog.
71
+
65
72
  ## Configuration
66
73
 
67
74
  ```ts
@@ -132,9 +139,9 @@ For generated native project files, use `"phase": "native"` and `"target": { "ty
132
139
 
133
140
  ### Built-in patches
134
141
 
135
- | ID | Source | Target | Description |
136
- | -------------------------------------- | ------------------------------------------------------------------ | ------------------- | --------------------------------------------------------------------------------------------------- |
137
- | `capacitor-cli-spm-ios-minor-platform` | [Capacitor+ #38](https://github.com/Cap-go/capacitor-plus/pull/38) | `@capacitor/cli` v8 | Keeps iOS SPM `Package.swift` generation from truncating deployment targets such as `15.5` to `15`. |
142
+ The bundled catalog tracks external fix PRs mirrored by Capacitor+ auto-sync branches named `sync/upstream-pr-*`. These entries are explicit opt-in patches by default, so apps can choose the fixes they need without receiving every pending upstream change automatically.
143
+
144
+ Run `capgo-capacitor-patch list --all` to see the shipped catalog. Each entry includes the original upstream Capacitor PR URL, the Capacitor+ sync branch, target package, supported version range, and patch file.
138
145
 
139
146
  ## Compatibility
140
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-patch",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "description": "Capacitor plugin for applying vetted Capgo patches during cap sync and cap update.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",