@dazn/kopytko-framework 1.0.4 → 1.1.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,3 +1,24 @@
|
|
|
1
|
+
# [1.1.0](https://github.com/getndazn/kopytko-framework/compare/v1.0.6...v1.1.0) (2022-05-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* added enqueueUpdate function to reduce number of rerenders ([#28](https://github.com/getndazn/kopytko-framework/issues/28)) ([4c80273](https://github.com/getndazn/kopytko-framework/commit/4c80273af7c20ded4bc41cdb94647142b209695f))
|
|
7
|
+
|
|
8
|
+
## [1.0.6](https://github.com/getndazn/kopytko-framework/compare/v1.0.5...v1.0.6) (2022-05-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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))
|
|
14
|
+
|
|
15
|
+
## [1.0.5](https://github.com/getndazn/kopytko-framework/compare/v1.0.4...v1.0.5) (2022-05-19)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* expose response headers in HttpResponse ([#26](https://github.com/getndazn/kopytko-framework/issues/26)) ([5517ff2](https://github.com/getndazn/kopytko-framework/commit/5517ff2eaff9d11a8d81ada9ea390288eb049d15))
|
|
21
|
+
|
|
1
22
|
## [1.0.4](https://github.com/getndazn/kopytko-framework/compare/v1.0.3...v1.0.4) (2022-04-11)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -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,
|
|
@@ -10,8 +10,10 @@ function KopytkoUpdater(baseStateUpdatedCallback as Function)
|
|
|
10
10
|
|
|
11
11
|
' State update callbacks are asynchronous to prevent multiple unnecessary rerenders
|
|
12
12
|
' when setState is called more than once in a function
|
|
13
|
-
prototype.enqueueStateUpdate = sub (partialState as Object, callback = Invalid as Dynamic)
|
|
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())
|