@ui5/task-adaptation 1.5.2 → 1.6.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.
Files changed (45) hide show
  1. package/.hyperspace/pull_request_bot.json +19 -0
  2. package/CHANGELOG.md +11 -6
  3. package/dist/appVariantManager.js +1 -1
  4. package/dist/baseAppManager.js +3 -3
  5. package/dist/buildStrategy.d.ts +0 -3
  6. package/dist/buildStrategy.js +0 -7
  7. package/dist/bundle.d.ts +4 -3
  8. package/dist/bundle.js +3650 -3595
  9. package/dist/cache/cacheHolder.d.ts +1 -1
  10. package/dist/cache/cacheHolder.js +8 -6
  11. package/dist/index.js +5 -1
  12. package/dist/model/authenticationError.d.ts +3 -0
  13. package/dist/model/authenticationError.js +8 -0
  14. package/dist/model/types.d.ts +12 -0
  15. package/dist/previewManager.d.ts +13 -0
  16. package/dist/previewManager.js +142 -0
  17. package/dist/processors/abapProcessor.d.ts +1 -0
  18. package/dist/processors/abapProcessor.js +3 -0
  19. package/dist/processors/cfProcessor.d.ts +2 -1
  20. package/dist/processors/cfProcessor.js +11 -1
  21. package/dist/processors/processor.d.ts +2 -1
  22. package/dist/repositories/html5RepoManager.d.ts +3 -2
  23. package/dist/repositories/html5RepoManager.js +18 -5
  24. package/dist/util/cfUtil.d.ts +8 -1
  25. package/dist/util/cfUtil.js +16 -8
  26. package/dist/util/movingHandler/changeFileMoveHandler.d.ts +8 -0
  27. package/dist/util/movingHandler/changeFileMoveHandler.js +77 -0
  28. package/dist/util/resourceUtil.d.ts +11 -3
  29. package/dist/util/resourceUtil.js +83 -18
  30. package/eslint.config.js +4 -3
  31. package/package.json +19 -20
  32. package/rollup/amdToEsm.ts +22 -0
  33. package/rollup/bundle.d.ts +25 -0
  34. package/rollup/bundleDefinition.js +19 -0
  35. package/rollup/bundler.ts +35 -0
  36. package/rollup/overrides/sap/base/config.js +59 -0
  37. package/rollup/overrides/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +68 -0
  38. package/rollup/overrides/sap/ui/performance/Measurement.js +4 -0
  39. package/rollup/project/package.json +4 -0
  40. package/rollup/project/ui5.yaml +13 -0
  41. package/rollup/project/webapp/manifest.json +5 -0
  42. package/rollup/rollup.ts +133 -0
  43. package/rollup/ui5Resolve.ts +145 -0
  44. package/scripts/publish.ts +256 -0
  45. package/scripts/test-integration-prep.sh +4 -0
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://devops-insights-pr-bot.cfapps.eu10-004.hana.ondemand.com/schema/pull_request_bot.json",
3
+ "features": {
4
+ "control_panel": false,
5
+ "summarize": {
6
+ "auto_generate_summary": true,
7
+ "auto_insert_summary": true,
8
+ "auto_run_on_draft_pr": true,
9
+ "use_custom_summarize_prompt": false,
10
+ "use_custom_summarize_output_template": false,
11
+ "use_tabular_summarize_output_template": false
12
+ },
13
+ "review": {
14
+ "auto_generate_review": true,
15
+ "auto_run_on_draft_pr": true,
16
+ "use_custom_review_focus": false
17
+ }
18
+ }
19
+ }
package/CHANGELOG.md CHANGED
@@ -2,13 +2,16 @@
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.5.2...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task-adaptation/compare/v1.6.0...HEAD).
6
6
 
7
- <a name="v1.5.2"></a>
8
- ## [v1.5.2] - 2025-08-25
9
- ### Bug Fixes
10
- - Removed moved changes [`babdc1b`](https://github.com/SAP/ui5-task-adaptation/commit/babdc1bce8e407b2638e014cfaa4e6547bba10ac)
7
+ <a name="v1.6.0"></a>
8
+ ## [v1.6.0] - 2026-02-02
9
+
10
+ <a name="v1.5.2-rc.1"></a>
11
+ ## [v1.5.2-rc.1] - 2025-08-22
11
12
 
13
+ <a name="v1.5.2-rc.0"></a>
14
+ ## [v1.5.2-rc.0] - 2025-08-19
12
15
 
13
16
  <a name="v1.5.1"></a>
14
17
  ## [v1.5.1] - 2025-08-06
@@ -125,7 +128,9 @@ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task
125
128
  <a name="v1.0.0"></a>
126
129
  ## v1.0.0 - 2020-12-09
127
130
 
128
- [v1.5.2]: https://github.com/SAP/ui5-task-adaptation/compare/v1.5.1...v1.5.2
131
+ [v1.6.0]: https://github.com/SAP/ui5-task-adaptation/compare/v1.5.2-rc.1...v1.6.0
132
+ [v1.5.2-rc.1]: https://github.com/SAP/ui5-task-adaptation/compare/v1.5.2-rc.0...v1.5.2-rc.1
133
+ [v1.5.2-rc.0]: https://github.com/SAP/ui5-task-adaptation/compare/v1.5.1...v1.5.2-rc.0
129
134
  [v1.5.1]: https://github.com/SAP/ui5-task-adaptation/compare/v1.4.3...v1.5.1
130
135
  [v1.4.3]: https://github.com/SAP/ui5-task-adaptation/compare/v1.4.2...v1.4.3
131
136
  [v1.4.2]: https://github.com/SAP/ui5-task-adaptation/compare/v1.4.0...v1.4.2
@@ -2,7 +2,7 @@ import { dotToUnderscore, isManifestChange } from "./util/commonUtil.js";
2
2
  import FilesUtil from "./util/filesUtil.js";
3
3
  import ResourceUtil from "./util/resourceUtil.js";
4
4
  import { posix as path } from "path";
5
- import { moveFile, moveFiles } from "./util/movingHandler/fileMoveHandler.js";
5
+ import { moveFile, moveFiles } from "./util/movingHandler/changeFileMoveHandler.js";
6
6
  const CHANGES_EXT = ".change";
7
7
  export default class AppVariant {
8
8
  files;
@@ -1,4 +1,4 @@
1
- import { AppDescriptorChange, Applier, RegistrationBuild } from "../dist/bundle.js";
1
+ import { AppDescriptorChange, RawApplier, RegistrationBuild } from "../dist/bundle.js";
2
2
  import { trimExtension } from "./util/commonUtil.js";
3
3
  import BuildStrategy from "./buildStrategy.js";
4
4
  import { getLogger } from "@ui5/logger";
@@ -128,8 +128,8 @@ export default class BaseApp {
128
128
  this.adjustAddNewModelEnhanceWith(change, i18nBundleName);
129
129
  }
130
130
  if (changesContent.length > 0) {
131
- const strategy = new BuildStrategy(RegistrationBuild);
132
- await Applier.applyChanges(baseAppManifest, changesContent, strategy);
131
+ const changeHandlers = await Promise.all(changesContent.map(change => RegistrationBuild[change.getChangeType()]()));
132
+ await RawApplier.applyChanges(changeHandlers, baseAppManifest, changesContent, new BuildStrategy());
133
133
  }
134
134
  }
135
135
  fillAppVariantIdHierarchy(processor, id, version, baseAppManifest) {
@@ -1,7 +1,4 @@
1
1
  export default class BuildStrategy {
2
- private registrationBuild;
3
- constructor(registrationBuild: any);
4
- registry(): Promise<any>;
5
2
  handleError(error: any): void;
6
3
  processTexts(manifest: any): any;
7
4
  }
@@ -1,11 +1,4 @@
1
1
  export default class BuildStrategy {
2
- registrationBuild;
3
- constructor(registrationBuild) {
4
- this.registrationBuild = registrationBuild;
5
- }
6
- registry() {
7
- return Promise.resolve(this.registrationBuild);
8
- }
9
2
  handleError(error) {
10
3
  throw error;
11
4
  }
package/dist/bundle.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- export declare const RegistrationBuild: () => void;
1
+ export declare const RegistrationBuild: any;
2
2
 
3
- export declare class Applier {
4
- static applyChanges(manifest: any, changes: AppDescriptorChange[], strategy: any): Promise<void>;
3
+ export declare class RawApplier {
4
+ static applyChanges(changeHandlers: any[], manifest: any, changes: AppDescriptorChange[], strategy: any): Promise<void>;
5
5
  }
6
6
 
7
7
  export declare class AppDescriptorChange {
8
8
  constructor(change: any);
9
9
  getLayer(): string;
10
+ getChangeType(): string;
10
11
  }
11
12
 
12
13
  export declare class V2MetadataConverter {