cht-conf 4.9.0 → 5.0.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 +17 -0
- package/package.json +7 -7
- package/src/fn/convert-app-forms.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# [5.0.0](https://github.com/medic/cht-conf/compare/v4.10.0...v5.0.0) (2025-06-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* feat([#712](https://github.com/medic/cht-conf/issues/712))!: update targeted NodeJS versions ([#713](https://github.com/medic/cht-conf/issues/713)) ([40575ec](https://github.com/medic/cht-conf/commit/40575ece74da38a583238ed54a4b13cd892a14a4))
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* remove support for NodeJS 18
|
|
10
|
+
|
|
11
|
+
# [4.10.0](https://github.com/medic/cht-conf/compare/v4.9.0...v4.10.0) (2025-06-16)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **#704:** add user-contact-summary instance to app form xml ([#705](https://github.com/medic/cht-conf/issues/705)) ([9013250](https://github.com/medic/cht-conf/commit/9013250dca39bcf23f985f6902cadc4e64ca5646)), closes [#704](https://github.com/medic/cht-conf/issues/704) [#704](https://github.com/medic/cht-conf/issues/704)
|
|
17
|
+
|
|
1
18
|
# [4.9.0](https://github.com/medic/cht-conf/compare/v4.8.1...v4.9.0) (2025-06-02)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cht-conf",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Configure CHT deployments",
|
|
5
5
|
"main": "./src/lib/main.js",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=20.0.0"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"clean": "rm -rf ./build/",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"mkdirp": "^3.0.1",
|
|
55
55
|
"open": "^8.4.2",
|
|
56
56
|
"pluralize": "^8.0.0",
|
|
57
|
-
"pouchdb-adapter-http": "^
|
|
58
|
-
"pouchdb-core": "^
|
|
59
|
-
"pouchdb-find": "^
|
|
60
|
-
"pouchdb-mapreduce": "^
|
|
57
|
+
"pouchdb-adapter-http": "^9.0.0",
|
|
58
|
+
"pouchdb-core": "^9.0.0",
|
|
59
|
+
"pouchdb-find": "^9.0.0",
|
|
60
|
+
"pouchdb-mapreduce": "^9.0.0",
|
|
61
61
|
"pouchdb-session-authentication": "^1.4.0",
|
|
62
62
|
"properties": "^1.2.1",
|
|
63
63
|
"queue-promise": "^2.2.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"husky": "^9.1.7",
|
|
92
92
|
"mocha": "^11.1.0",
|
|
93
93
|
"nyc": "^17.1.0",
|
|
94
|
-
"pouchdb-adapter-memory": "^
|
|
94
|
+
"pouchdb-adapter-memory": "^9.0.0",
|
|
95
95
|
"rewire": "^7.0.0",
|
|
96
96
|
"semantic-release": "^24.2.4",
|
|
97
97
|
"sinon": "^19.0.2"
|
|
@@ -3,10 +3,11 @@ const environment = require('../lib/environment');
|
|
|
3
3
|
const { APP_FORMS_PATH } = require('../lib/project-paths');
|
|
4
4
|
|
|
5
5
|
const convertAppForms = (forms) => {
|
|
6
|
+
const contactSummaryXML = `\n <instance id="contact-summary"/>\n <instance id="user-contact-summary"/>`;
|
|
6
7
|
return convertForms(environment.pathToProject, 'app', {
|
|
7
8
|
enketo: true,
|
|
8
9
|
forms: forms,
|
|
9
|
-
transformer: xml => xml.replace('</instance>',
|
|
10
|
+
transformer: xml => xml.replace('</instance>', `</instance>${contactSummaryXML}`),
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
|