feat: add branch support, sync resolution, and dynamic cache TTL

- Add branch detection in parseRemoteIOR for GitHub and Gitea
- Support fetching from branches in addition to tags
- Implement synchronous remote resolution using sync-fetch
- Add dynamic cache TTL based on version type (beta/rc/branch/stable)
- Export sync functions for Metro bundler usage
- Fix remote component resolution in Metro (no more sync errors)
This commit is contained in:
Chris Daßler
2025-09-29 12:32:41 +02:00
parent bb44c5c17c
commit 6e775258d1
3 changed files with 248 additions and 30 deletions

View File

@@ -56,7 +56,8 @@
"author": "Metatrom",
"license": "MIT",
"dependencies": {
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"sync-fetch": "^0.5.2"
},
"peerDependencies": {
"@react-native/metro-config": ">=0.80.0"