Skip to content

v3.0.0-rc.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@openui5bot openui5bot released this 23 Dec 09:48
· 370 commits to main since this release

πŸš€ This is the first release candidate of @ui5/builder version 3

Breaking Changes

  • Transform to native ESM (#790) a439aa9
  • generateJsDoc: Remove internal 'buildContext' parameter 4ec80c8
  • Removal of manifestBundler and generateManifestBundle (#838) 07a5be2
  • JSDoc: Fail build when jsdoc command failed (#845) c2916b4
  • Remove build execution (#740) af2e956
  • Enable modern preload bundles without dependencies (#739) 97cfa6c
  • Require Node.js >= 16.18.0 / npm >= 8 dbf6c06
  • generateResourcesJson: Make 'dependencies' parameter mandatory 268dd16
  • moduleBundler: Always default to optimize: true (#685) de5837c

BREAKING CHANGE

This package has been transformed to native ESM. Therefore it no longer provides a CommonJS export.
If your project uses CommonJS, it needs to be converted to ESM or use a dynamic import.

For more information see also:

The jsdocGenerator processor and the corresponding generateJsdoc task will now throw an error when JSDoc reports an error (exit code != 0). This will also fail the build when running ui5 build jsdoc.

The manifestBundler processor and generateManifestBundle task has been removed because it is no longer required for the HTML5 repository in Cloud Foundry.

  • builder.js has been removed. Use ui5-project builder instead
  • Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
  • TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
  • TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
    and will cause an exception to be thrown

For library projects, the task "generateComponentPreload" is now
executed after tasks "generateLibraryManifest" and
"generateManifestBundle" instead of before them.

Support for older Node.js and npm releases has been dropped.
Only Node.js v16.18.0 and npm v8 or higher are supported.

The following tasks have been removed:

  • createDebugFiles
  • uglify

The following processors have been removed:

  • debugFileCreator
  • resourceCopier
  • uglifier

As a replacement, the new 'minify' task and 'minifier' processor can be
used.

Note: The minify task is executed earlier, before the bundling
process takes place. Existing 'beforeTask' and 'afterTask' configuration of
custom tasks might need to be adapted to cater for this change.

Features

  • Support ES2022 language features (#848) f9b8457
  • jsdoc: Support destructuring of enums for defaultValue (#775) 523f365
  • builder: Improve support for ES6+ syntax (#774) 90385fe
  • jsdoc: Improve support for ES6+ syntax (#785) 187a6a3
  • generateThemeDesignerResources task: Create css_variables.less (#730) 34e69be
  • builder: Add cssVariables option (#728) 30d58e1
  • Generate source maps for bundles (#695) 8a20c42
  • replaceVersion/Copyright: Also process test-resources (#693) a0d4bc2
  • Support ES2022 language features e749b6a
  • Add minify task and processor (#666) a3af604

Bug Fixes

  • package.json: Downgrade es5-ext dependency 2b71707
  • minify: Change default to not omit source map resources 6d75a49
  • Avoid redundant bundle creation (#741) 13c8405
  • JSModuleAnalyzer: Fix detection of bundle name (#705) aaeafd4
  • generateResourcesJson: Add raw-module info for debug bundles (#736) 3b918e8
  • LibraryBuilder: Align task order of "generateComponentPreload" aea061d
  • LocatorResourcePool: Wait for resources in prepare step (#719) 1b7f93f
  • XMLTemplateAnalyzer: Analyze core:require of FragmentDefinition af075ed
  • Bundler: Ensure reproducibility for bundles with multiple parts (#689) 6f4588b
  • generateResourcesJson: Don't list resources omitted from build result 9608c51
  • generateResourcesJson: Analyze debug bundles (#669) f27513a
  • Bundler: Sort raw modules by default 0e11b69

Dependency Updates

  • Bump less-openui5 from 0.11.4 to 0.11.5 bf46354
  • Bump less-openui5 from 0.11.3 to 0.11.4 b7a507f
  • Bump less-openui5 from 0.11.2 to 0.11.3 28e684b
  • Bump escope from 3.6.0 to 4.0.0 e25af0d

All changes

v2.11.9...v3.0.0-rc.0