@eeacms/volto-datahub 1.0.31 → 1.0.32

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
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [1.0.32](https://github.com/eea/volto-datahub/compare/1.0.31...1.0.32) - 11 October 2023
8
+
9
+ #### :house: Internal changes
10
+
11
+ - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`5ae8426`](https://github.com/eea/volto-datahub/commit/5ae8426dc5cb4786aa1fb52b0b4e416ba47dcacf)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Fix hostname generation for RSS links [Tiberiu Ichim - [`7fc7896`](https://github.com/eea/volto-datahub/commit/7fc78961917f91cdefa022d0938a2f0fe410377a)]
16
+ - Fix hostname generation for RSS links [Tiberiu Ichim - [`5fc2df3`](https://github.com/eea/volto-datahub/commit/5fc2df3e1871575bb8453959973a3fc9d8297664)]
7
17
  ### [1.0.31](https://github.com/eea/volto-datahub/compare/1.0.30...1.0.31) - 29 September 2023
8
18
 
9
19
  #### :house: Documentation changes
@@ -39,7 +49,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
39
49
  - Fix content type for rss feed [Tiberiu Ichim - [`65b73a7`](https://github.com/eea/volto-datahub/commit/65b73a79d73e626f652716305e80d9a2b017c85c)]
40
50
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`ead1c04`](https://github.com/eea/volto-datahub/commit/ead1c042d1358b385c19ec66ec84d7c736574b1d)]
41
51
  - Added 'DOI' links to datahub [Zoltan Szabo - [`b33a657`](https://github.com/eea/volto-datahub/commit/b33a657096eaec4caa641379e69e941a3b2c1583)]
42
- - test: Fix eslint and yarn i18n [Alin Voinea - [`39a4a69`](https://github.com/eea/volto-datahub/commit/39a4a695733514890075886753b9d7b91d853646)]
43
52
  - i18n: Add en [Alin Voinea - [`cdb303f`](https://github.com/eea/volto-datahub/commit/cdb303f2ac5e1f9eb22eda46bb58087c62af6ba5)]
44
53
  ### [1.0.27](https://github.com/eea/volto-datahub/compare/1.0.26...1.0.27) - 25 August 2023
45
54
 
@@ -87,7 +96,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
87
96
 
88
97
  #### :house: Internal changes
89
98
 
90
- - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`e5933ce`](https://github.com/eea/volto-datahub/commit/e5933ce8879d98aabe0bab56980dbd50ce856a36)]
91
99
 
92
100
  #### :hammer_and_wrench: Others
93
101
 
@@ -142,7 +150,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
142
150
  - added utils.js [Zoltan Szabo - [`fdb33c3`](https://github.com/eea/volto-datahub/commit/fdb33c37e1af2fe071dbe8f4f5dcd2b82932edc8)]
143
151
  - Show 'Obsolete' info in the metadata section in the banner [Zoltan Szabo - [`fddfd2a`](https://github.com/eea/volto-datahub/commit/fddfd2aea63d1a1d1567c163ab29dd7119781117)]
144
152
  - Show 'More information' section only if it's not empty [Zoltan Szabo - [`612f035`](https://github.com/eea/volto-datahub/commit/612f03509c6adf143631ae6dee5ca2bd48a501c3)]
145
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b9100f6`](https://github.com/eea/volto-datahub/commit/b9100f6b2b2e9e9a26b9c11708c8fda94137cecc)]
146
153
  ### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
147
154
 
148
155
  ### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
@@ -235,11 +242,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
235
242
  #### :hammer_and_wrench: Others
236
243
 
237
244
  - Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
238
- - Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
239
245
  - Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
240
246
  - Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
241
247
  - Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
242
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
243
248
  ## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
244
249
 
245
250
  #### :nail_care: Enhancements
@@ -264,7 +269,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
264
269
  #### :hammer_and_wrench: Others
265
270
 
266
271
  - fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
267
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
268
272
  ### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
269
273
 
270
274
  #### :hammer_and_wrench: Others
@@ -353,7 +357,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
353
357
  #### :hammer_and_wrench: Others
354
358
 
355
359
  - Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
356
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
357
360
  ### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
358
361
 
359
362
  ### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
package/RELEASE.md CHANGED
@@ -20,9 +20,9 @@ You need to first install the [release-it](https://github.com/release-it/release
20
20
  ```
21
21
  npm install -g release-it
22
22
  ```
23
-
23
+
24
24
  Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
25
-
25
+
26
26
  Release-it is a tool that automates 4 important steps in the release process:
27
27
 
28
28
  1. Version increase in `package.json` ( increased from the current version in `package.json`)
@@ -30,45 +30,45 @@ Release-it is a tool that automates 4 important steps in the release process:
30
30
  3. GitHub release on the commit with the changelog and package.json modification on the develop branch
31
31
  4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
32
32
 
33
- To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
33
+ To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
34
34
 
35
35
  ```
36
36
  export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
37
37
  ```
38
-
38
+
39
39
  To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
40
-
40
+
41
41
  ```
42
42
  echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
43
43
  ```
44
44
 
45
45
  #### Using release-it tool
46
-
46
+
47
47
  There are 3 yarn scripts that can be run to do the release
48
48
 
49
49
  ##### yarn release-beta
50
50
 
51
- Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
51
+ Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
52
52
 
53
53
  ```
54
- ? Select increment (next version):
55
- ❯ prepatch (0.1.1-beta.0)
56
- preminor (0.2.0-beta.0)
57
- premajor (1.0.0-beta.0)
58
- Other, please specify...
54
+ ? Select increment (next version):
55
+ ❯ prepatch (0.1.1-beta.0)
56
+ preminor (0.2.0-beta.0)
57
+ premajor (1.0.0-beta.0)
58
+ Other, please specify...
59
59
  ```
60
60
 
61
61
  ##### yarn release-major-beta
62
62
 
63
63
  Same as `yarn release-beta`, but with premajor version pre-selected.
64
-
64
+
65
65
  ##### yarn release
66
66
 
67
67
  Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
68
68
 
69
69
  #### Important notes
70
70
 
71
- > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
71
+ > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
72
72
 
73
73
  > Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-datahub",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "@eeacms/volto-datahub: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -12,6 +12,8 @@ import {
12
12
  redirectRouteId,
13
13
  } from '@eeacms/volto-datahub/constants';
14
14
 
15
+ const EEA_DATAHUB = `https://eea.europa.eu/en/datahub`;
16
+
15
17
  const getUrlES = (appName) => {
16
18
  return (
17
19
  process.env[`RAZZLE_PROXY_ES_DSN_${appName}`] ||
@@ -43,7 +45,7 @@ function handleSearchRequest(body, params) {
43
45
 
44
46
  function generateSitemap(appConfig) {
45
47
  const toPublicURL = (id) => {
46
- return `https://eea.europa.eu/en/datahub/${viewRouteId}/${id}`;
48
+ return `${EEA_DATAHUB}/${viewRouteId}/${id}`;
47
49
  };
48
50
 
49
51
  return new Promise((resolve, reject) => {
@@ -134,9 +136,9 @@ function generateRSS({ appConfig, feedUrl, toPublicURL }) {
134
136
  const feed = new Feed({
135
137
  title: 'EEA Datahub',
136
138
  description: 'Latest changes in EEA Datahub',
137
- id: 'https://eea.europa.eu/en/datahub',
139
+ id: EEA_DATAHUB,
138
140
  generator: 'EEA Website',
139
- link: 'https://eea.europa.eu/en/datahub',
141
+ link: EEA_DATAHUB,
140
142
  feedLinks: {
141
143
  rss: feedUrl,
142
144
  },
@@ -199,10 +201,9 @@ function generateItemRSS({ appConfig, feedUrl, toPublicURL, params }) {
199
201
  function make_rssMiddleware(config, generator) {
200
202
  function rssMiddleware(req, res, next) {
201
203
  const appConfig = registry.searchui['datahub'];
202
- const feedUrl = `${config.settings.apiPath}${req.path}`;
204
+ const feedUrl = `${EEA_DATAHUB}${req.path}`;
203
205
 
204
- const toPublicURL = (id) =>
205
- `${config.settings.apiPath}/en/datahub/${viewRouteId}/${id}`;
206
+ const toPublicURL = (id) => `${EEA_DATAHUB}/${viewRouteId}/${id}`;
206
207
 
207
208
  generator({ appConfig, feedUrl, toPublicURL, params: req.params })
208
209
  .then((body) => {