@ui5/task-adaptation 1.6.8 → 1.7.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.
- package/.github/workflows/codeql.yml +35 -0
- package/.github/workflows/release-please.yml +53 -0
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +41 -39
- package/dist/adapters/abapAdapter.d.ts +3 -3
- package/dist/adapters/abapAdapter.js +19 -8
- package/dist/adapters/adapter.d.ts +3 -2
- package/dist/adapters/adapter.js +9 -3
- package/dist/adapters/cfAdapter.d.ts +2 -2
- package/dist/adapters/cfAdapter.js +12 -12
- package/dist/adapters/commands/command.js +0 -27
- package/dist/adapters/commands/downloadAnnotationsCommand.d.ts +3 -4
- package/dist/adapters/commands/downloadAnnotationsCommand.js +4 -4
- package/dist/adapters/commands/fetchPreviewResourcesCommand.js +1 -1
- package/dist/adapters/commands/omitDeletedResourcesCommand.d.ts +1 -1
- package/dist/adapters/commands/renameFilesCommand.d.ts +0 -22
- package/dist/adapters/commands/renameFilesCommand.js +2 -114
- package/dist/adapters/commands/renameManifestCommand.js +2 -2
- package/dist/adapters/previewAdapter.d.ts +2 -2
- package/dist/adapters/previewAdapter.js +4 -4
- package/dist/annotations/abapAnnotationManager.js +1 -3
- package/dist/annotations/dataSource/dataSource.d.ts +6 -5
- package/dist/annotations/dataSource/dataSource.js +36 -12
- package/dist/annotations/dataSource/dataSourceManager.d.ts +2 -2
- package/dist/annotations/dataSource/dataSourceManager.js +2 -2
- package/dist/annotations/dataSource/dataSourceOData.d.ts +2 -2
- package/dist/annotations/transformers/transformer.d.ts +2 -2
- package/dist/annotations/transformers/traverseReferences.d.ts +1 -1
- package/dist/annotations/transformers/traverseReferences.js +2 -2
- package/dist/appVariant.d.ts +5 -6
- package/dist/appVariant.js +9 -16
- package/dist/baseApp.d.ts +1 -0
- package/dist/baseApp.js +10 -0
- package/dist/bundle.js +39 -27
- package/dist/cache/cacheHolder.d.ts +6 -12
- package/dist/cache/cacheHolder.js +27 -39
- package/dist/cache/cachedResource.d.ts +2 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.js +47 -40
- package/dist/landscapeConfiguration.d.ts +4 -4
- package/dist/landscapeConfiguration.js +48 -44
- package/dist/model/configuration.d.ts +0 -1
- package/dist/model/types.d.ts +0 -3
- package/dist/repositories/abapRepository.d.ts +1 -1
- package/dist/repositories/abapRepository.js +3 -3
- package/dist/repositories/cacheRepository.d.ts +4 -5
- package/dist/repositories/cacheRepository.js +10 -18
- package/dist/repositories/html5Repository.d.ts +1 -1
- package/dist/repositories/html5Repository.js +2 -2
- package/dist/repositories/localRepository.d.ts +1 -1
- package/dist/repositories/localRepository.js +2 -2
- package/dist/repositories/repository.d.ts +1 -1
- package/dist/util/commonUtil.d.ts +1 -9
- package/dist/util/commonUtil.js +27 -29
- package/dist/util/fsUtil.js +1 -2
- package/dist/util/movingHandler/changeFileMoveHandler.d.ts +1 -0
- package/dist/util/movingHandler/changeFileMoveHandler.js +11 -3
- package/dist/util/referencesBuilder.d.ts +15 -0
- package/dist/util/referencesBuilder.js +35 -0
- package/dist/util/renaming/fileRenamer.d.ts +23 -0
- package/dist/util/renaming/fileRenamer.js +120 -0
- package/dist/util/{renamingHandlers → renaming/handlers}/jsonRenamingHandler.d.ts +0 -2
- package/dist/util/{renamingHandlers → renaming/handlers}/jsonRenamingHandler.js +0 -6
- package/dist/util/{renamingUtil.d.ts → renaming/referenceRenaming.d.ts} +4 -4
- package/dist/util/{renamingUtil.js → renaming/referenceRenaming.js} +8 -8
- package/package.json +4 -3
- package/release-please-config.json +66 -0
- package/dist/annotations/serviceRequestor.d.ts +0 -9
- package/dist/annotations/serviceRequestor.js +0 -62
- /package/dist/util/{renamingHandlers → renaming/handlers}/manifestRenamingHandler.d.ts +0 -0
- /package/dist/util/{renamingHandlers → renaming/handlers}/manifestRenamingHandler.js +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packages": {
|
|
3
|
+
".": {
|
|
4
|
+
"pull-request-header": ":tractor: New release prepared",
|
|
5
|
+
"pull-request-title-pattern": "release: v${version}",
|
|
6
|
+
"include-component-in-tag": false,
|
|
7
|
+
"changelog-sections": [
|
|
8
|
+
{
|
|
9
|
+
"type": "feat",
|
|
10
|
+
"section": "Features"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "fix",
|
|
14
|
+
"section": "Bug Fixes"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "perf",
|
|
18
|
+
"section": "Performance Improvements"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "deps",
|
|
22
|
+
"section": "Dependencies"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "revert",
|
|
26
|
+
"section": "Reverts"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "docs",
|
|
30
|
+
"section": "Documentation",
|
|
31
|
+
"hidden": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "style",
|
|
35
|
+
"section": "Styles",
|
|
36
|
+
"hidden": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "refactor",
|
|
40
|
+
"section": "Code Refactoring",
|
|
41
|
+
"hidden": true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "test",
|
|
45
|
+
"section": "Tests",
|
|
46
|
+
"hidden": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "build",
|
|
50
|
+
"section": "Automation",
|
|
51
|
+
"hidden": true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "ci",
|
|
55
|
+
"section": "Continuous Integration",
|
|
56
|
+
"hidden": true
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "release",
|
|
60
|
+
"section": "Release",
|
|
61
|
+
"hidden": true
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IConfiguration } from "../model/types.js";
|
|
2
|
-
import Language from "../model/language.js";
|
|
3
|
-
import IRepository from "../repositories/repository.js";
|
|
4
|
-
export default class ServiceRequestor {
|
|
5
|
-
private repository;
|
|
6
|
-
private configuration;
|
|
7
|
-
constructor(configuration: IConfiguration, repository: IRepository);
|
|
8
|
-
downloadAnnotation(uri: string, name: string, language: Language): Promise<string>;
|
|
9
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import ServerError from "../model/serverError.js";
|
|
8
|
-
import { getLogger } from "@ui5/logger";
|
|
9
|
-
import { writeTempAnnotations } from "../util/commonUtil.js";
|
|
10
|
-
const log = getLogger("@ui5/task-adaptation::ServiceRequestor");
|
|
11
|
-
function retryOnError(maxRetries) {
|
|
12
|
-
return (_target, _propertyKey, descriptor) => {
|
|
13
|
-
const originalMethod = descriptor.value;
|
|
14
|
-
descriptor.value = async function (...args) {
|
|
15
|
-
let retries = 0;
|
|
16
|
-
while (true) {
|
|
17
|
-
try {
|
|
18
|
-
return await originalMethod.apply(this, args);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
if (error instanceof ServerError) {
|
|
22
|
-
if (retries === maxRetries) {
|
|
23
|
-
throw new Error(`Error occurred: ${error.message}. Please try again if this is a temporary issue. If not, please create a ticket on CA-UI5-ABA-AIDX`);
|
|
24
|
-
}
|
|
25
|
-
retries++;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
const message = error?.response?.data ?? error.message;
|
|
29
|
-
throw new Error(`Failed to fetch annotation by '${args[0]}': ${message}`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
return descriptor;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export default class ServiceRequestor {
|
|
38
|
-
repository;
|
|
39
|
-
configuration;
|
|
40
|
-
constructor(configuration, repository) {
|
|
41
|
-
this.repository = repository;
|
|
42
|
-
this.configuration = configuration;
|
|
43
|
-
}
|
|
44
|
-
//@ts-ignore tsx (esbuild) is not yet implemented the new decorators, but
|
|
45
|
-
//old decorators are already subject of compiler error, but it works. So we
|
|
46
|
-
//wait till esbuild implement it correctly.
|
|
47
|
-
async downloadAnnotation(uri, name, language) {
|
|
48
|
-
uri += `?sap-language=${language.sap}`;
|
|
49
|
-
log.verbose(`Getting annotation '${name}' ${language} by '${uri}'`);
|
|
50
|
-
let files = await this.repository.downloadAnnotationFile(uri);
|
|
51
|
-
if (!files || files.size === 0) {
|
|
52
|
-
throw new Error(`No files were fetched for '${name}' by '${uri}'`);
|
|
53
|
-
}
|
|
54
|
-
const xml = [...files][0][1];
|
|
55
|
-
writeTempAnnotations(this.configuration, name, language, xml);
|
|
56
|
-
return xml;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
__decorate([
|
|
60
|
-
retryOnError(1)
|
|
61
|
-
], ServiceRequestor.prototype, "downloadAnnotation", null);
|
|
62
|
-
//# sourceMappingURL=serviceRequestor.js.map
|
|
File without changes
|
|
File without changes
|