@hestia-earth/glossary 0.4.0 → 0.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
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.4.1](https://gitlab.com/hestia-earth/hestia-glossary/compare/v0.4.0...v0.4.1) (2022-06-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * **characterisedIndicator:** add `defaultModelId` ([94d384a](https://gitlab.com/hestia-earth/hestia-glossary/commit/94d384a4772c0e1f72a16307a2abd2c4c2ded820))
11
+ * **operation:** add 'top dressing, machine unspecified` ([4050b49](https://gitlab.com/hestia-earth/hestia-glossary/commit/4050b49cc7adb9cecc556548e3cc63aa47facf5f))
12
+ * **pesticideAI:** add `vegetable oil, unspecified (pesticide AI)` ([f03575a](https://gitlab.com/hestia-earth/hestia-glossary/commit/f03575a23547ad7c6aff27c241b0d87bbae32cbc))
13
+ * **pesticideAI:** add main urease inhibitors ([7b50c6b](https://gitlab.com/hestia-earth/hestia-glossary/commit/7b50c6b66f83378d8362e5507e446b1bb5fdfb0a)), closes [#395](https://gitlab.com/hestia-earth/hestia-glossary/issues/395)
14
+ * **property:** add `starch content` ([fba832b](https://gitlab.com/hestia-earth/hestia-glossary/commit/fba832babcd1b0532ee06d656886955c828c6fb5))
15
+ * **soilType:** add principal qualifiers and re-work glossary ([15d44f2](https://gitlab.com/hestia-earth/hestia-glossary/commit/15d44f2259362a0f730b0cfebe940b6ff8e334f1)), closes [#56](https://gitlab.com/hestia-earth/hestia-glossary/issues/56)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * remove duplicated columns from excreta lookup table ([7bf5686](https://gitlab.com/hestia-earth/hestia-glossary/commit/7bf5686f86d4f69d2e9f7fde2dac0071f1b1bca3)), closes [#367](https://gitlab.com/hestia-earth/hestia-glossary/issues/367)
21
+
5
22
  ## [0.4.0](https://gitlab.com/hestia-earth/hestia-glossary/compare/v0.3.2...v0.4.0) (2022-06-07)
6
23
 
7
24
 
package/index.js CHANGED
@@ -41,10 +41,19 @@ const idToIso31662 = (id = '') => loadResourceKey('id-to-iso3166-2.json', id.toU
41
41
  */
42
42
  const getArrayTreatment = (id) => loadResource('arrayTreatment.json')[id] || 'sum';
43
43
 
44
+ /**
45
+ * Returns the `@id` of the default model that should be used for display of this Term.
46
+ *
47
+ * @param {string} id The Hestia term [id](https://hestia.earth/schema/Term#id).
48
+ * @returns {string} The `@id` of the model if set.
49
+ */
50
+ const getDefaultModeId = (id) => loadResource('defaultModelId.json')[id];
51
+
44
52
  module.exports = {
45
53
  loadResourceKey,
46
54
  iso31662ToName,
47
55
  iso31662ToId,
48
56
  idToIso31662,
49
- getArrayTreatment
57
+ getArrayTreatment,
58
+ getDefaultModeId
50
59
  };
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@hestia-earth/glossary",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Hestia Earth Glossary library",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "generate:all": "npm run generate:mappings && npm run generate:impact-assessment && npm run generate:arrayTreatment",
8
+ "generate:all": "npm run generate:mappings && npm run generate:impact-assessment && npm run generate:arrayTreatment && npm run generate:defaultModelId",
9
9
  "generate:mappings": "node gadm/mappings.js",
10
10
  "generate:impact-assessment": "node scripts/generate-impact-assessment-data.js",
11
11
  "generate:arrayTreatment": "node scripts/generate-arrayTreatment-data.js",
12
+ "generate:defaultModelId": "node scripts/generate-defaultModelId-data.js",
12
13
  "release": "standard-version -a",
13
14
  "postrelease": "git push origin master --follow-tags"
14
15
  },
@@ -0,0 +1,25 @@
1
+ {
2
+ "gwp20": "",
3
+ "gwp100": "ipcc2013IncludingFeedbacks",
4
+ "ozoneDepletionPotential": "",
5
+ "humanDamageOzoneFormation": "",
6
+ "ecosystemDamageOzoneFormation": "",
7
+ "terrestrialAcidificationPotentialExcludingFate": "cml2001NonBaseline",
8
+ "terrestrialAcidificationPotential": "",
9
+ "eutrophicationPotentialExcludingFate": "cml2001NonBaseline",
10
+ "freshwaterEutrophicationPotential": "",
11
+ "marineEutrophicationPotential": "",
12
+ "scarcityWeightedWaterUse": "aware",
13
+ "biodiversityLossTotalLandUseEffects": "chaudharyBrooks2018",
14
+ "biodiversityLossLandOccupation": "chaudharyBrooks2018",
15
+ "biodiversityLossLandTransformation": "chaudharyBrooks2018",
16
+ "freshwaterEcotoxicityPotentialPaf": "usetoxV2",
17
+ "freshwaterAquaticEcotoxicityPotential14Dcbeq": "",
18
+ "marineAquaticEcotoxicityPotential14Dcbeq": "",
19
+ "terrestrialEcotoxicityPotential14Dcbeq": "",
20
+ "freshwaterDepletion": "",
21
+ "humanCarcinogenicToxicity": "",
22
+ "humanNonCarcinogenicToxicity": "",
23
+ "agriculturalLandOccupationPotential": "",
24
+ "fineParticulateMatterFormation": ""
25
+ }