@callstack/brownfield-navigation 3.8.0 → 3.9.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,21 @@
1
1
  # @callstack/brownfield-navigation
2
2
 
3
+ ## 3.9.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`80e6364`](https://github.com/callstack/react-native-brownfield/commit/80e6364d405d216b3e84a6297dfe346d2f01444b)]:
8
+ - @callstack/brownfield-cli@3.9.0
9
+
10
+ ## 3.8.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#336](https://github.com/callstack/react-native-brownfield/pull/336) [`35b6f0a`](https://github.com/callstack/react-native-brownfield/commit/35b6f0aebd51a86165fe8af1890ccc3bd5189aaa) Thanks [@hurali97](https://github.com/hurali97)! - fix: allow unregistering the navigation delegate
15
+
16
+ - Updated dependencies [[`e78084d`](https://github.com/callstack/react-native-brownfield/commit/e78084d227a49d39d726b8c778bd56045634678d)]:
17
+ - @callstack/brownfield-cli@3.8.1
18
+
3
19
  ## 3.8.0
4
20
 
5
21
  ### Minor Changes
@@ -7,6 +7,10 @@ object BrownfieldNavigationManager {
7
7
  this.navigationDelegate = navigationDelegate
8
8
  }
9
9
 
10
+ fun clearDelegate() {
11
+ navigationDelegate = null
12
+ }
13
+
10
14
  fun getDelegate(): BrownfieldNavigationDelegate {
11
15
  return navigationDelegate
12
16
  ?: throw IllegalStateException("BrownfieldNavigation delegate is not set.")
@@ -11,6 +11,10 @@ public class BrownfieldNavigationManager: NSObject {
11
11
  public func setDelegate(navigationDelegate: BrownfieldNavigationDelegate) {
12
12
  self.navigationDelegate = navigationDelegate
13
13
  }
14
+
15
+ public func clearDelegate() {
16
+ navigationDelegate = nil
17
+ }
14
18
 
15
19
  @objc public func getDelegate() -> BrownfieldNavigationDelegate {
16
20
  guard let delegate = navigationDelegate else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/brownfield-navigation",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "license": "MIT",
5
5
  "author": "Hur Ali",
6
6
  "description": "Brownfield navigation helpers for React Native",
@@ -56,7 +56,7 @@
56
56
  "access": "public"
57
57
  },
58
58
  "dependencies": {
59
- "@callstack/brownfield-cli": "^3.8.0"
59
+ "@callstack/brownfield-cli": "^3.9.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": "*",