cht-conf 6.3.0 → 6.4.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
|
+
# [6.4.0](https://github.com/medic/cht-conf/compare/v6.3.0...v6.4.0) (2026-05-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **#771:** deprecate NO_LABEL usage in forms ([#813](https://github.com/medic/cht-conf/issues/813)) ([197202a](https://github.com/medic/cht-conf/commit/197202a11d0bb6003606efa1b5cf6b79e56bc44c)), closes [#771](https://github.com/medic/cht-conf/issues/771)
|
|
7
|
+
|
|
1
8
|
# [6.3.0](https://github.com/medic/cht-conf/compare/v6.2.0...v6.3.0) (2026-04-27)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const { getNodes, removeNode, XPATH_MODEL, XPATH_BODY } = require('../forms-utils');
|
|
2
|
+
const log = require('../log');
|
|
2
3
|
|
|
3
4
|
module.exports = {
|
|
4
5
|
/**
|
|
@@ -17,7 +18,17 @@ module.exports = {
|
|
|
17
18
|
noLabelItextNodes.forEach(removeNode);
|
|
18
19
|
|
|
19
20
|
// Remove any additional NO_LABEL values from translation nodes that have other (multimedia) values
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
const noLabelValueNodes = getNodes(
|
|
22
|
+
xmlDoc,
|
|
23
|
+
`${XPATH_MODEL}/itext/translation//value[text()="NO_LABEL" or text()="DELETE_THIS_LINE"]`
|
|
24
|
+
);
|
|
25
|
+
noLabelValueNodes.forEach(removeNode);
|
|
26
|
+
|
|
27
|
+
if (noLabelItextNodes.length > 0 || noLabelValueNodes.length > 0) {
|
|
28
|
+
log.warn(
|
|
29
|
+
'The "NO_LABEL/DELETE_THIS_LINE" value is deprecated and will be removed in a future version of cht-conf. ' +
|
|
30
|
+
'For groups, a label is not required. If the field should not be visible, use the "hidden" or "calculate" type.'
|
|
31
|
+
);
|
|
32
|
+
}
|
|
22
33
|
}
|
|
23
34
|
};
|