pawajs 1.5.0 → 1.5.1

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
@@ -17,4 +17,5 @@ CHANGELOG.md
17
17
  + version 1.4.30 - removed console warn from useContext
18
18
  + version 1.4.31- 1.4.32 - tried updating key to add element when server key is different
19
19
  + version 1.4.33 - added registerComponent.lazy
20
- + version 1.4.33 -1.4.42 fixing lazy registration component
20
+ + version 1.4.33 -1.4.42 fixing lazy registration component
21
+ + version 1.5.1 stable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawajs",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type":"module",
5
5
  "description": "pawajs library (reactive web runtime) for easily building web ui, enhancing html element, micro frontend etc ",
6
6
  "main": "index.js",
package/pawaElement.js CHANGED
@@ -213,7 +213,7 @@ export class PawaElement {
213
213
  }
214
214
  async unMount(){
215
215
  if (this._component) {
216
- this?._componentTerminate()
216
+ this?._componentTerminate?.()
217
217
  } else {
218
218
  this._unMountFunctions.forEach(func => {
219
219
  func()
@@ -477,7 +477,7 @@ export class PawaComment {
477
477
  remove(){
478
478
  const comment=this._el
479
479
  if (comment._controlComponent) {
480
-
480
+ comment._componentElement?._beforeUnMount?.()
481
481
  comment?._componentElement?._unMountFunctions.forEach(unMount =>{
482
482
  unMount()
483
483
  })