@eui/tools 6.16.36 → 6.17.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.
@@ -1 +1 @@
1
- 6.16.36
1
+ 6.17.0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.17.0 (2024-07-18)
2
+
3
+ ##### New Features
4
+
5
+ * **remotes:**
6
+ * 2 points: - make the concatenation of remote files completely "files existance" driven (this way it better support esbuild output); - as a secondary improvement, the webcomponent shim is removed (all major browsers support webcomponents). [MWP-11061](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11061) ([fa6424ca](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/fa6424cabe67caa1426afff18dec94d9e6b8dc3a))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.16.36 (2024-07-18)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.16.36",
3
+ "version": "6.17.0",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -25,7 +25,6 @@
25
25
  "vendor": true
26
26
  },
27
27
  "scripts": [
28
- "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
29
28
  ],
30
29
  "assets": [
31
30
  "src/assets",
@@ -25,7 +25,6 @@
25
25
  "vendor": true
26
26
  },
27
27
  "scripts": [
28
- "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
29
28
  ],
30
29
  "assets": [
31
30
  "src/assets",
@@ -11,16 +11,17 @@ const tools = require('../tools');
11
11
  module.exports.concatFiles = (pkg, workingPath, euiVersionNumber = 10) => {
12
12
  return Promise.resolve()
13
13
  .then(() => {
14
- tools.logInfo('Concatening JS files to main.js');
14
+ tools.logInfo('Concatenating JS files into main.js');
15
15
 
16
16
  tools.move(path.join(workingPath, 'main.js'), path.join(workingPath, 'main-old.js'));
17
17
 
18
18
  const files = [
19
- ...(euiVersionNumber >= 15 ? ['runtime.js'] : []),
20
- 'polyfills.js',
21
- 'scripts.js',
19
+ // covers both webpack and esbuild
20
+ ...(tools.isFileExists(path.join(workingPath, 'runtime.js')) ? ['runtime.js'] : []),
21
+ ...(tools.isFileExists(path.join(workingPath, 'polyfills.js')) ? ['polyfills.js'] : []),
22
+ ...(tools.isFileExists(path.join(workingPath, 'scripts.js')) ? ['scripts.js'] : []),
22
23
  ...(tools.isFileExists(path.join(workingPath, 'vendor.js')) ? ['vendor.js'] : []),
23
- 'main-old.js'
24
+ 'main-old.js',
24
25
  ].map(f => path.join(workingPath, f));
25
26
 
26
27
  const outFilePath = path.join(workingPath, 'main.js');