@dazn/kopytko-framework 1.0.3 → 1.0.6

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,3 +1,24 @@
1
+ ## [1.0.6](https://github.com/getndazn/kopytko-framework/compare/v1.0.5...v1.0.6) (2022-05-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * not calling state update callbacks if kopytko is not mounted ([#27](https://github.com/getndazn/kopytko-framework/issues/27)) ([27d5618](https://github.com/getndazn/kopytko-framework/commit/27d5618909e7fd266db71e88acfa63071b037921))
7
+
8
+ ## [1.0.5](https://github.com/getndazn/kopytko-framework/compare/v1.0.4...v1.0.5) (2022-05-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * expose response headers in HttpResponse ([#26](https://github.com/getndazn/kopytko-framework/issues/26)) ([5517ff2](https://github.com/getndazn/kopytko-framework/commit/5517ff2eaff9d11a8d81ada9ea390288eb049d15))
14
+
15
+ ## [1.0.4](https://github.com/getndazn/kopytko-framework/compare/v1.0.3...v1.0.4) (2022-04-11)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * active route should skip is omitted in history ([#24](https://github.com/getndazn/kopytko-framework/issues/24)) ([970ff96](https://github.com/getndazn/kopytko-framework/commit/970ff9662376a909f1018b452a04b4cf5378a446))
21
+
1
22
  ## [1.0.3](https://github.com/getndazn/kopytko-framework/compare/v1.0.2...v1.0.3) (2022-03-04)
2
23
 
3
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazn/kopytko-framework",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "A modern Roku's Brightscript framework",
5
5
  "keywords": [
6
6
  "brightscript",
@@ -67,6 +67,7 @@ function HttpResponse(response as Object) as Object
67
67
  responseNode = CreateObject("roSGNode", "Node")
68
68
  responseNode.id = m._id
69
69
  responseNode.addFields({
70
+ headers: m._headers,
70
71
  httpStatusCode: m._httpStatusCode,
71
72
  isSuccess: m._isSuccess,
72
73
  rawData: m._data,
@@ -12,6 +12,8 @@ function KopytkoUpdater(baseStateUpdatedCallback as Function)
12
12
  ' when setState is called more than once in a function
13
13
  prototype.enqueueStateUpdate = sub (partialState as Object, callback = Invalid as Dynamic)
14
14
  m._appendPartialState(partialState)
15
+ if (NOT m._isMounted()) then return
16
+
15
17
  if (callback <> Invalid) then m._stateUpdatedCallbacks.push(callback)
16
18
 
17
19
  if (NOT m._isUpdating())
@@ -56,7 +56,7 @@ sub resetHistory(rootPath = "" as String)
56
56
  end sub
57
57
 
58
58
  sub _updateHistory()
59
- if (m.top.url = "")
59
+ if (m.top.url = "" OR m.top.activatedRoute.shouldSkip)
60
60
  return
61
61
  end if
62
62