@callstack/react-native-brownfield 2.1.0 → 2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @callstack/react-native-brownfield
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#212](https://github.com/callstack/react-native-brownfield/pull/212) [`4728945`](https://github.com/callstack/react-native-brownfield/commit/47289457b9bdbe50cf3c65a78c7f1d9d555dca9c) Thanks [@gronxb](https://github.com/gronxb)! - feat(ios): add bundleURL provider for dynamic bundle loading
8
+
9
+ ### Patch Changes
10
+
11
+ - [#216](https://github.com/callstack/react-native-brownfield/pull/216) [`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d) Thanks [@thymikee](https://github.com/thymikee)! - chore: remove release-it
12
+
13
+ - Updated dependencies [[`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d)]:
14
+ - @callstack/brownfield-cli@1.0.4
15
+
16
+ ## 2.1.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`2347775`](https://github.com/callstack/react-native-brownfield/commit/23477753b16ee189b82c1aee3eac98a56c79f52a)]:
21
+ - @callstack/brownfield-cli@1.0.3
22
+
3
23
  ## 2.1.0
4
24
 
5
25
  ### Minor Changes
package/README.md CHANGED
@@ -46,19 +46,6 @@ React Native Brownfield is an open source project and will always remain free to
46
46
 
47
47
  Like the project? ⚛️ [Join the team](https://callstack.com/careers/?utm_campaign=Senior_RN&utm_source=github&utm_medium=readme) who does amazing stuff for clients and drives React Native Open Source! 🔥
48
48
 
49
- ## Contributors
50
-
51
- Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
52
-
53
- <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
54
- <!-- prettier-ignore -->
55
- | [<img src="https://avatars0.githubusercontent.com/u/7837457?s=460&v=4" width="100px;" alt="Michał Chudziak"/><br /><sub><b>Michał Chudziak</b></sub>](https://twitter.com/michalchudziak)<br />[💻](https://github.com/callstack/react-native-brownfield/commits?author=michalchudziak "Code") [📖](https://github.com/callstack/react-native-brownfield/commits?author=michalchudziak "Documentation") [🤔](#ideas-michalchudziak "Ideas, Planning, & Feedback") | [<img src="https://avatars1.githubusercontent.com/u/16336501?s=400&v=4" width="100px;" alt="Piotr Drapich"/><br /><sub><b>Piotr Drapich</b></sub>](https://twitter.com/dratwas)<br />[💻](https://github.com/callstack/react-native-brownfield/commits?author=dratwas "Code") [🤔](#ideas-dratwas "Ideas, Planning, & Feedback") |
56
- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
57
-
58
- <!-- ALL-CONTRIBUTORS-LIST:END -->
59
-
60
- This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
61
-
62
49
  <!-- badges -->
63
50
 
64
51
  [build-badge]: https://img.shields.io/circleci/build/github/callstack/react-native-brownfield/master.svg?style=flat-square
@@ -72,9 +59,8 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
72
59
  [prs-welcome]: http://makeapullrequest.com
73
60
  [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
74
61
  [coc]: https://github.com/callstack/react-native-brownfield/blob/master/CODE_OF_CONDUCT.md
75
- [all-contributors-badge]: https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square
76
- [chat-badge]: https://img.shields.io/discord/613446453762719798.svg?style=flat-square&colorB=758ED3
77
- [chat]: https://discord.gg/2SR9Mua
62
+ [chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=flat-square&colorB=758ED3
63
+ [chat]: https://discord.gg/FdWTckBk
78
64
  [tweet-badge]: https://img.shields.io/badge/tweet-%23reactnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
79
65
  [tweet]: https://twitter.com/intent/tweet?text=Check%20out%20react-native-brownfield!%20https://github.com/callstack/react-native-brownfield%20%F0%9F%91%8D
80
66
  [callstack-badge]: https://callstack.com/images/callstack-badge.svg
@@ -7,6 +7,7 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
7
7
  var entryFile = "index"
8
8
  var bundlePath = "main.jsbundle"
9
9
  var bundle = Bundle.main
10
+ var bundleURLOverride: (() -> URL?)? = nil
10
11
  // MARK: - RCTReactNativeFactoryDelegate Methods
11
12
 
12
13
  override func sourceURL(for bridge: RCTBridge) -> URL? {
@@ -14,6 +15,10 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
14
15
  }
15
16
 
16
17
  public override func bundleURL() -> URL? {
18
+ if let bundleURLProvider = bundleURLOverride {
19
+ return bundleURLProvider()
20
+ }
21
+
17
22
  #if DEBUG
18
23
  return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: entryFile)
19
24
  #else
@@ -64,6 +69,17 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
64
69
  delegate.bundle = bundle
65
70
  }
66
71
  }
72
+ /**
73
+ * Dynamic bundle URL provider called on every bundle load.
74
+ * When set, this overrides the default bundleURL() behavior in the delegate.
75
+ * Returns a URL to load a custom bundle, or nil to use default behavior.
76
+ * Default value: nil
77
+ */
78
+ @objc public var bundleURLOverride: (() -> URL?)? = nil {
79
+ didSet {
80
+ delegate.bundleURLOverride = bundleURLOverride
81
+ }
82
+ }
67
83
  /**
68
84
  * React Native factory instance created when starting React Native.
69
85
  * Default value: nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/react-native-brownfield",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "license": "MIT",
5
5
  "author": "Michal Chudziak <mike.chudziak@callstack.com>",
6
6
  "bin": {
@@ -73,7 +73,7 @@
73
73
  "react-native": "*"
74
74
  },
75
75
  "dependencies": {
76
- "@callstack/brownfield-cli": "^1.0.2"
76
+ "@callstack/brownfield-cli": "^1.0.4"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@babel/core": "^7.25.2",