@we-debug/miniprogram 0.35.0 → 0.36.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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.36.0](https://github.com/dlhandsome/we-debug/compare/v0.35.0...v0.36.0) (2024-11-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * 添加规则时更新视图 ([f303b29](https://github.com/dlhandsome/we-debug/commit/f303b29a877cb20e6dae21cb3c055b9da560d2a6))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.35.0](https://github.com/dlhandsome/we-debug/compare/v0.34.1...v0.35.0) (2024-11-13)
7
18
 
8
19
 
@@ -111,6 +111,14 @@ Component({
111
111
  });
112
112
  // 设置当前分组 key 缓存
113
113
  currentGroupCache.set(group);
114
+ },
115
+ addListeners() {
116
+ store.event.on('rule:update', this.setRules.bind(this));
117
+ store.event.on('badge:update', this.setBadges.bind(this));
118
+ },
119
+ removeListeners() {
120
+ store.event.off('rule:update', this.setRules.bind(this));
121
+ store.event.off('badge:update', this.setBadges.bind(this));
114
122
  }
115
123
  },
116
124
  lifetimes: {
@@ -118,6 +126,10 @@ Component({
118
126
  this.setSys();
119
127
  this.setRules();
120
128
  this.setBadges();
129
+ this.addListeners();
130
+ },
131
+ detached() {
132
+ this.removeListeners();
121
133
  }
122
134
  }
123
135
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/miniprogram",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "we-debug miniprogram component",
5
5
  "author": {
6
6
  "name": "dlhandsome"
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@we-debug/core": "0.35.0"
29
+ "@we-debug/core": "0.36.0"
30
30
  },
31
31
  "readme": "ERROR: No README data found!",
32
32
  "_id": "@we-debug/core@0.3.5",
33
33
  "_commitid": "6c3f04b",
34
- "gitHead": "96d3e626e4999925356e542098ee60ccf4d41721"
34
+ "gitHead": "d259a05defcc5411fe82fa5d5894978e9b0a05da"
35
35
  }