cht-conf 6.3.0 → 6.4.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
@@ -1,3 +1,17 @@
1
+ ## [6.4.1](https://github.com/medic/cht-conf/compare/v6.4.0...v6.4.1) (2026-05-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **#769:** consider local-ip hosts as local ([#806](https://github.com/medic/cht-conf/issues/806)) ([79c0020](https://github.com/medic/cht-conf/commit/79c0020c885f416fb305ed53ab320c1f909b8095)), closes [#769](https://github.com/medic/cht-conf/issues/769) [#769](https://github.com/medic/cht-conf/issues/769)
7
+
8
+ # [6.4.0](https://github.com/medic/cht-conf/compare/v6.3.0...v6.4.0) (2026-05-08)
9
+
10
+
11
+ ### Features
12
+
13
+ * **#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)
14
+
1
15
  # [6.3.0](https://github.com/medic/cht-conf/compare/v6.2.0...v6.3.0) (2026-04-27)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "6.3.0",
3
+ "version": "6.4.1",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -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
- getNodes(xmlDoc, `${XPATH_MODEL}/itext/translation//value[text()="NO_LABEL" or text()="DELETE_THIS_LINE"]`)
21
- .forEach(removeNode);
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
  };
@@ -26,7 +26,10 @@ const getEnvironmentKey = () => {
26
26
 
27
27
  const getHashFileName = () => {
28
28
  const parsed = new url.URL(environment.apiUrl);
29
- if (parsed.hostname === 'localhost') {
29
+ if (
30
+ parsed.hostname === 'localhost' ||
31
+ parsed.hostname.endsWith('.local-ip.medicmobile.org')
32
+ ) {
30
33
  return 'local.json';
31
34
  }
32
35
  return 'remote.json';