@ui5/builder 3.0.0-beta.3 → 3.0.0-beta.4

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,10 +2,17 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.3...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.4...HEAD).
6
+
7
+ <a name="v3.0.0-beta.4"></a>
8
+ ## [v3.0.0-beta.4] - 2022-12-01
9
+ ### Dependency Updates
10
+ - Bump less-openui5 from 0.11.3 to 0.11.4 [`b7a507f`](https://github.com/SAP/ui5-builder/commit/b7a507fbc34076f5bf95f92f058fd2c58d79a455)
11
+ - Bump less-openui5 from 0.11.2 to 0.11.3 [`28e684b`](https://github.com/SAP/ui5-builder/commit/28e684b85e7eb621f210041702e2a316d1d0eb62)
12
+
6
13
 
7
14
  <a name="v3.0.0-beta.3"></a>
8
- ## [v3.0.0-beta.3] - 2022-11-29
15
+ ## [v3.0.0-beta.3] - 2022-11-30
9
16
  ### Features
10
17
  - **jsdoc:** Support destructuring of enums for defaultValue ([#775](https://github.com/SAP/ui5-builder/issues/775)) [`523f365`](https://github.com/SAP/ui5-builder/commit/523f365cb917997c5031d245309c21e9e4b3e311)
11
18
 
@@ -809,6 +816,7 @@ to load the custom bundle file instead.
809
816
  - Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
810
817
 
811
818
 
819
+ [v3.0.0-beta.4]: https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.3...v3.0.0-beta.4
812
820
  [v3.0.0-beta.3]: https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.2...v3.0.0-beta.3
813
821
  [v3.0.0-beta.2]: https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.1...v3.0.0-beta.2
814
822
  [v3.0.0-beta.1]: https://github.com/SAP/ui5-builder/compare/v3.0.0-alpha.12...v3.0.0-beta.1
@@ -91,18 +91,22 @@ export default async function({workspace, dependencies, taskUtil, options}) {
91
91
  `unable to generate complete bundles for such projects.`);
92
92
  }
93
93
 
94
- let combo = new ReaderCollectionPrioritized({
94
+ const combo = new ReaderCollectionPrioritized({
95
95
  name: `generateStandaloneAppBundle - prioritize workspace over dependencies: ${projectName}`,
96
96
  readers: [workspace, dependencies]
97
97
  });
98
98
 
99
+ let resourceReader = combo;
99
100
  if (taskUtil) {
100
101
  // Omit -dbg files
101
- combo = await combo.filter(function(resource) {
102
- return !taskUtil.getTag(resource, taskUtil.STANDARD_TAGS.IsDebugVariant);
102
+ resourceReader = await taskUtil.resourceFactory.createFilterReader({
103
+ reader: combo,
104
+ callback: function(resource) {
105
+ return !taskUtil.getTag(resource, taskUtil.STANDARD_TAGS.IsDebugVariant);
106
+ }
103
107
  });
104
108
  }
105
- const resources = await combo.byGlob("/resources/**/*.{js,json,xml,html,properties,library,js.map}");
109
+ const resources = await resourceReader.byGlob("/resources/**/*.{js,json,xml,html,properties,library,js.map}");
106
110
 
107
111
  const isEvo = resources.find((resource) => {
108
112
  return resource.getPath() === "/resources/ui5loader.js";
@@ -117,13 +121,16 @@ export default async function({workspace, dependencies, taskUtil, options}) {
117
121
  let unoptimizedModuleNameMapping;
118
122
  let unoptimizedResources = resources;
119
123
  if (taskUtil) {
120
- unoptimizedResources = await (await new ReaderCollectionPrioritized({
121
- name: `generateStandaloneAppBundle - prioritize workspace over dependencies: ${projectName}`,
122
- readers: [workspace, dependencies]
123
- }).filter(function(resource) {
124
- // Remove any non-debug variants
125
- return !taskUtil.getTag(resource, taskUtil.STANDARD_TAGS.HasDebugVariant);
126
- })).byGlob("/resources/**/*.{js,json,xml,html,properties,library,js.map}");
124
+ const unoptimizedResourceReader = await taskUtil.resourceFactory.createFilterReader({
125
+ reader: combo,
126
+ callback: function(resource) {
127
+ // Remove any non-debug variants
128
+ return !taskUtil.getTag(resource, taskUtil.STANDARD_TAGS.HasDebugVariant);
129
+ }
130
+ });
131
+
132
+ unoptimizedResources = await unoptimizedResourceReader
133
+ .byGlob("/resources/**/*.{js,json,xml,html,properties,library,js.map}");
127
134
 
128
135
  unoptimizedModuleNameMapping = createModuleNameMapping({
129
136
  resources: unoptimizedResources,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/builder",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "UI5 Tooling - Builder",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -119,7 +119,7 @@
119
119
  },
120
120
  "dependencies": {
121
121
  "@jridgewell/sourcemap-codec": "^1.4.14",
122
- "@ui5/fs": "^3.0.0-beta.3",
122
+ "@ui5/fs": "^3.0.0-beta.4",
123
123
  "@ui5/logger": "^3.0.1-beta.1",
124
124
  "cheerio": "1.0.0-rc.12",
125
125
  "escape-unicode": "^0.2.0",
@@ -127,7 +127,7 @@
127
127
  "espree": "^9.4.1",
128
128
  "graceful-fs": "^4.2.10",
129
129
  "jsdoc": "^3.6.11",
130
- "less-openui5": "^0.11.2",
130
+ "less-openui5": "^0.11.4",
131
131
  "make-dir": "^3.1.0",
132
132
  "pretty-data": "^0.40.0",
133
133
  "replacestream": "^4.0.3",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  "devDependencies": {
140
140
  "@istanbuljs/esm-loader-hook": "^0.2.0",
141
- "@ui5/project": "^3.0.0-beta.3",
141
+ "@ui5/project": "^3.0.0-beta.4",
142
142
  "ava": "^5.1.0",
143
143
  "chai": "^4.3.7",
144
144
  "chai-fs": "^2.0.0",