Repository navigation
Closed
Labels
roadmapIssue contains a roadmapIssue contains a roadmap
Description
UI5 Tooling 3.0
UI5 Tooling 3.0 is the official, feature complete successor of grunt-openui5. This allows us to deprecate grunt-openui5.
🔮 Update: Since October 2022, UI5 Tooling 3.0 development is done in the main branches in the UI5 Tooling repositories. The UI5 Tooling 2.0 sources can be found in the v2 branches in the UI5 Tooling repositories.
Pre-releases are available via npm and tagged as next. For example: npm install @ui5/cli@next. See also: https://sap.github.io/ui5-tooling/v3/updates/migrate-v3/
Breaking changes
- Drop support for Node.js Version < 16
- Do not support Node 14, due to lack of features and upcoming end-of-life in April 2023
- Do not support Node 15 as it is already EOL
- Support Node 16.18.0, the latest maintenance release for 16.x as of October 2022
- Do not support Node 17 as it is already EOL
- Support Node 18.0.0 and all later versions
- Upgrade npm lockfiles to version 2
- Require projects to use
specVersion2.0 or later- This would allow us to fully rely on the schema validation and to remove additional validation code from various places
- This also eases the implementation of RFC 0009
- We attempt to upgrade old specVersions automatically. If a specVersion below 2.0 (i.e. 1.1, 1.0, 0.1) project passes the validation for specVersion 2, it is used as-is.
- Implement [RFC] 0009 UI5 Project Refactoring ([RFC] 0009 UI5 Project Refactoring #501)
- Depending on how far we get it, this might incompatibly change the signatures of many UI5 Tooling modules
- Deprecate, remove or noop the manifestBundler task (see [BREAKING] Removal of manifestBundler and generateManifestBundle SAP/ui5-builder#838)
- ui5-builder: jsdoc exit code 1 should fail the build (see [INTERNAL] JSDoc: Add check for copyright notice SAP/ui5-builder#617 (review), [BREAKING] JSDoc: Fail build when jsdoc command failed SAP/ui5-builder#845)
- ui5-fs: Clone resource on read ([BREAKING] Clone resources when writing in and reading from the Memory SAP/ui5-fs#448)
- ui5-fs: Clone resource on write ([BREAKING] Clone resources when writing in and reading from the Memory SAP/ui5-fs#448)
- ui5-server: Remove "/proxy" endpoint ([BREAKING] Remove "/proxy" endpoint SAP/ui5-server#550)
Features
- Source Maps for bundles (ui5 cli does not create source maps #472)
Maybe already in a 2.x release, depending on compatibility of the changes
-
Option to only build certain dependencies (Option to only build certain dependencies #494)(Already released with v2.12.0) - Allow theme build and version info generation for libraries without
.libraryfile ([INTERNAL] Enable buildThemes for libraries without .library SAP/ui5-builder#676) (Already releases with v2.14.2) - [RFC] 0006 Local Dependency Resolution ([RFC] 0006 Local Dependency Resolution #157) ([FEATURE] Add 'UI5 Workspace' Support SAP/ui5-project#494)
- Upgrade Espree to support ES2021 syntax features (see [FIX] Switch from esprima to espree SAP/ui5-builder#615 / [FEATURE] Support ES2021 language features SAP/ui5-builder#692, meanwhile even [FEATURE] Support ES2022 language features SAP/ui5-builder#848)
- Support for flat (i.e. no namespace directory structure) library projects (Add support for "flat" library projects #505)
Specification Version 3.0
- SpecVersion Upgrade: [FEATURE] specVersion 3.0 SAP/ui5-project#522
Features
- Enhance custom task helper
taskUtilas well as middleware helpermiddlewareUtil:- Allow access to Projects and Project Graph API from RFC 0009
- Via Projects, access to metadata (like the project version) as well as root resources (like
package.json) would be possible while still using the ui5-fs abstraction layer (Access package.json in custom task #360)
- Via Projects, access to metadata (like the project version) as well as root resources (like
- Pass a ui5-logger
loginstance with the name of the extension for its use - Allow resource creation via
createResource()or similar - Concept work done with: [RFC] 0012 UI5 Tooling Extension API v3 #664
- Implementation done with: [FEATURE] TaskUtil: Enhance interface provided to custom tasks defining specVersion 3.0 and later SAP/ui5-project#514 and [FEATURE] MiddlewareUtil: Add getProject/getDependencies/resourceFactory API to interface SAP/ui5-server#547
- Allow access to Projects and Project Graph API from RFC 0009
- bundleOptions changes (Update docs & breaking changes for specVersion: 3.0 #707). See https://sap.github.io/ui5-tooling/pages/Configuration/#properties
- New option 'sourceMap', defaults to
true(see [FEATURE] Generate source maps for bundles SAP/ui5-builder#695) - Default of option 'optimize' changed to
true(API change is done via [BREAKING] moduleBundler: Always default tooptimize: trueSAP/ui5-builder#685)
- New option 'sourceMap', defaults to
Reacted by Pascal Wasem, Marius Obert, Boghyon Hoffmann, Benjamin K., Mike B. and Marco Beier
Reacted by Benjamin Reim, Boghyon Hoffmann and Marco Beier
Metadata
Metadata
Assignees
Labels
roadmapIssue contains a roadmapIssue contains a roadmap
Activity
[-][DRAFT][ROADMAP] Specification Version 3.0 // UI5 Tooling 3.0[/-][+][ROADMAP] Specification Version 3.0 // UI5 Tooling 3.0[/+]pubmikeb commentedon Dec 1, 2022
Regarding:
As of now, Node.js 18.12.1 is the current LTS, while Node.js 16.x is relatively old version with end of life already in September 2023, and in coming April there will be already Node.js 20.x.
Perhaps, does it's worth dropping support of Node.js version < 18 with the upcoming major release of UI5 Tooling 3.0?
Less legacy, less constraints, easier to maintain.
RandomByte commentedon Dec 2, 2022
Thank you for your input Mike! That part of the roadmap was slightly outdated, so I updated it with our latest decisions:
We think this could be a good balance. While Node 16 will be EOL in September 2023, Node 18 was only released earlier this year and might not have the same adoption yet. By requiring a recent patch-level for Node 16 though, we have an almost identical set of features available: https://node.green/
Nevertheless, more time has past now. So we'll pick up your input and discuss it in the team 👍 Thanks!
pubmikeb commentedon Dec 2, 2022
@RandomByte, thanks a lot for the detailed explanation, Merlin!
Just as an additional input for the upcoming discussion:
RandomByte commentedon Dec 22, 2022
We are currently in the process of publishing a first Release Candidate for UI5 Tooling v3.
As of the latest discussions, we stick to a minimum Node.js requirement of version 16.18.0, which contains the necessary support for chaining loaders (https://nodejs.org/api/esm.html#loaders), which is required by our test setup.
Unfortunately, SAP Business Application Studio currently uses Node v16.16.0. This means that the latest UI5 Tooling v3 pre-releases can not be used in this environment. We are already in contact with the responsible team and hope to resolve this before the final release of UI5 Tooling v3. Based on the outcome of that discussion, we might even lift the final Node.js version requirement.
flovogt commentedon Feb 10, 2023
Implemented with https://github.com/SAP/ui5-cli/releases/tag/v3.0.0
[ui5-project][INTERNAL] Enforce prefix for dependency updates (#506)
[ui5-cli][INTERNAL] Update build command description for flag experim…