@ui5/task-adaptation 1.6.4-rc.1 → 1.6.4-rc.2
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,7 +2,10 @@
|
|
|
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-task-adaptation/compare/v1.6.4-rc.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task-adaptation/compare/v1.6.4-rc.2...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v1.6.4-rc.2"></a>
|
|
8
|
+
## [v1.6.4-rc.2] - 2026-04-06
|
|
6
9
|
|
|
7
10
|
<a name="v1.6.4-rc.1"></a>
|
|
8
11
|
## [v1.6.4-rc.1] - 2026-04-06
|
|
@@ -176,6 +179,7 @@ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task
|
|
|
176
179
|
<a name="v1.0.0"></a>
|
|
177
180
|
## v1.0.0 - 2020-12-09
|
|
178
181
|
|
|
182
|
+
[v1.6.4-rc.2]: https://github.com/SAP/ui5-task-adaptation/compare/v1.6.4-rc.1...v1.6.4-rc.2
|
|
179
183
|
[v1.6.4-rc.1]: https://github.com/SAP/ui5-task-adaptation/compare/v1.6.3...v1.6.4-rc.1
|
|
180
184
|
[v1.6.3]: https://github.com/SAP/ui5-task-adaptation/compare/v1.6.2...v1.6.3
|
|
181
185
|
[v1.6.2]: https://github.com/SAP/ui5-task-adaptation/compare/v1.6.1...v1.6.2
|
|
@@ -26,16 +26,19 @@ export default class I18nPropertiesMergeCommand extends MergeCommand {
|
|
|
26
26
|
if (i18nPathWithExtension) {
|
|
27
27
|
// build regex to match specific + language related files
|
|
28
28
|
const i18nPath = trimExtension(i18nPathWithExtension);
|
|
29
|
-
const
|
|
29
|
+
const regexSource = "^" + escapeRegex(i18nPath) + TRANSLATION_REGEX_PATTERN;
|
|
30
30
|
if (change.changeType.includes("addNewModelEnhanceWith")) {
|
|
31
|
-
copyPaths.add(
|
|
31
|
+
copyPaths.add(regexSource);
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
|
-
mergePaths.add(
|
|
34
|
+
mergePaths.add(regexSource);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
return {
|
|
38
|
+
return {
|
|
39
|
+
mergePaths: Array.from(mergePaths, source => new RegExp(source)),
|
|
40
|
+
copyPaths: Array.from(copyPaths, source => new RegExp(source))
|
|
41
|
+
};
|
|
39
42
|
}
|
|
40
43
|
async execute(files, filename, appVariantContent) {
|
|
41
44
|
// merge/copy logic
|
|
@@ -7,8 +7,8 @@ export default class LocalRepository implements IRepository {
|
|
|
7
7
|
constructor(configuration: IConfiguration);
|
|
8
8
|
downloadAnnotationFile(_uri: string): Promise<Map<string, string>>;
|
|
9
9
|
getAppVariantIdHierarchy(appId: string): Promise<IAppVariantIdHierarchyItem[]>;
|
|
10
|
-
fetch(appId: string,
|
|
11
|
-
fetchReuseLib(libName: string,
|
|
10
|
+
fetch(appId: string, cachebusterToken: string): Promise<Map<string, string>>;
|
|
11
|
+
fetchReuseLib(libName: string, cachebusterToken: string, _lib: IReuseLibInfo): Promise<Map<string, string>>;
|
|
12
12
|
private collectAppVariantIdHierarchyItems;
|
|
13
13
|
private getExistingManifestPath;
|
|
14
14
|
private readFilesInBaseAppDir;
|
|
@@ -17,22 +17,27 @@ export default class LocalRepository {
|
|
|
17
17
|
await this.collectAppVariantIdHierarchyItems(appId, items);
|
|
18
18
|
return items;
|
|
19
19
|
}
|
|
20
|
-
fetch(appId,
|
|
21
|
-
return this.readFilesInBaseAppDir(appId);
|
|
20
|
+
fetch(appId, cachebusterToken) {
|
|
21
|
+
return this.readFilesInBaseAppDir(appId, cachebusterToken);
|
|
22
22
|
}
|
|
23
|
-
fetchReuseLib(libName,
|
|
24
|
-
return this.readFilesInBaseAppDir(libName);
|
|
23
|
+
fetchReuseLib(libName, cachebusterToken, _lib) {
|
|
24
|
+
return this.readFilesInBaseAppDir(libName, cachebusterToken);
|
|
25
25
|
}
|
|
26
26
|
async collectAppVariantIdHierarchyItems(appId, items) {
|
|
27
|
+
const appDir = this.getLocalFilesDirectory(appId);
|
|
28
|
+
const filenames = [
|
|
29
|
+
["manifest.json"],
|
|
30
|
+
["manifest.appdescr_variant"],
|
|
31
|
+
["webapp", "manifest.json"],
|
|
32
|
+
["webapp", "manifest.appdescr_variant"],
|
|
33
|
+
];
|
|
34
|
+
const filepaths = filenames.map((filename) => path.join(appDir, ...filename));
|
|
35
|
+
const existingManifestPath = await this.getExistingManifestPath(filepaths);
|
|
27
36
|
items.push({
|
|
28
37
|
appVariantId: appId,
|
|
29
38
|
repoName: appId,
|
|
30
|
-
cachebusterToken:
|
|
39
|
+
cachebusterToken: path.dirname(existingManifestPath)
|
|
31
40
|
});
|
|
32
|
-
const appDir = this.getLocalFilesDirectory(appId);
|
|
33
|
-
const filenames = ["manifest.json", "manifest.appdescr_variant"];
|
|
34
|
-
const filepaths = filenames.map((filename) => path.join(appDir, filename));
|
|
35
|
-
const existingManifestPath = await this.getExistingManifestPath(filepaths);
|
|
36
41
|
if (existingManifestPath.endsWith("manifest.appdescr_variant")) {
|
|
37
42
|
const manifestContent = await fs.readFile(existingManifestPath, "utf-8");
|
|
38
43
|
const manifest = JSON.parse(manifestContent);
|
|
@@ -47,10 +52,9 @@ export default class LocalRepository {
|
|
|
47
52
|
}
|
|
48
53
|
throw new Error(`None of the paths exist: '${filePaths.join("', '")}'.`);
|
|
49
54
|
}
|
|
50
|
-
readFilesInBaseAppDir(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return FsUtil.readFilesRecursively(appDir);
|
|
55
|
+
readFilesInBaseAppDir(_appId, cachebusterToken) {
|
|
56
|
+
log.verbose(`Fetching base app files from local directory: ${cachebusterToken}`);
|
|
57
|
+
return FsUtil.readFilesRecursively(cachebusterToken);
|
|
54
58
|
}
|
|
55
59
|
getLocalFilesDirectory(appId) {
|
|
56
60
|
const baseDir = this.configuration.adpDir
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/task-adaptation",
|
|
3
|
-
"version": "1.6.4-rc.
|
|
3
|
+
"version": "1.6.4-rc.2",
|
|
4
4
|
"description": "Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|