cht-conf 4.8.1 → 4.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,3 +1,10 @@
1
+ # [4.9.0](https://github.com/medic/cht-conf/compare/v4.8.1...v4.9.0) (2025-06-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * **#692:** update the priority function to accept additional parameters ([#699](https://github.com/medic/cht-conf/issues/699)) ([ad28242](https://github.com/medic/cht-conf/commit/ad28242603d5d2d89bb48324e93e60b55052ce3d)), closes [#692](https://github.com/medic/cht-conf/issues/692) [#692](https://github.com/medic/cht-conf/issues/692)
7
+
1
8
  ## [4.8.1](https://github.com/medic/cht-conf/compare/v4.8.0...v4.8.1) (2025-05-07)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "4.8.1",
3
+ "version": "4.9.0",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -93,7 +93,7 @@
93
93
  "nyc": "^17.1.0",
94
94
  "pouchdb-adapter-memory": "^7.2.2",
95
95
  "rewire": "^7.0.0",
96
- "semantic-release": "^22.0.0",
96
+ "semantic-release": "^24.2.4",
97
97
  "sinon": "^19.0.2"
98
98
  }
99
99
  }
@@ -136,7 +136,7 @@ function emitTasks(taskDefinition, Utils, Task, emit, c, r) {
136
136
 
137
137
  priority = taskDefinition.priority;
138
138
  if (typeof priority === 'function') {
139
- priority = priority(c, r);
139
+ priority = priority(c, r, event, dueDate, scheduledTaskIdx);
140
140
  }
141
141
 
142
142
  if (priority) {