Skip to content

Latest commit

 

History

History
899 lines (660 loc) · 50.7 KB

CHANGELOG.md

File metadata and controls

899 lines (660 loc) · 50.7 KB

Changelog

All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.

A list of unreleased changes can be found here.

[v3.0.5] - 2023-06-02

Bug Fixes

  • bundle/Builder: Remove sourceMappingURL from modules embedded as string a2f410c

Dependency Updates

  • Bump xml2js from 0.5.0 to 0.6.0 9679830

[v3.0.4] - 2023-05-23

Bug Fixes

  • lbt/Resolver: ensure stable module order in generated bundleInfo 482b8a0

[v3.0.3] - 2023-04-21

Dependency Updates

[v3.0.2] - 2023-04-12

Dependency Updates

  • Bump xml2js from 0.4.23 to 0.5.0 5269fc2

[v3.0.1] - 2023-02-16

[v3.0.0] - 2023-02-09

Breaking Changes

  • Transform to ES Modules (#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
  • libraryLessGenerator: Throw error when import can't be inlined d2be9bb

BREAKING CHANGE

This package has been transformed to ES Modules. 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
  • Bump rimraf from 3.0.2 to 4.1.1 (#873) ddb9660
  • Bump jsdoc from 3.6.11 to 4.0.0 (#821) 6d05117

[v2.11.9] - 2022-11-30

Bug Fixes

  • transformApiJson: Fix regression in UI5 Tooling scenario 819c808

Dependency Updates

  • Bump less-openui5 from 0.11.2 to 0.11.3 1bbe5f5

[v2.11.8] - 2022-10-28

Bug Fixes

  • ComponentAnalyzer: Fix detection of rootView acb3d9f
  • XMLTemplateAnalyzer: Fix detection of nested views 1cbfd82

[v2.11.7] - 2022-10-20

Dependency Updates

  • Bump escope from 3.6.0 to 4.0.0 852b37f

Reverts

  • [FIX] package.json: Downgrade es5-ext dependency (#798)

[v2.11.6] - 2022-10-12

Bug Fixes

  • package.json: Downgrade es5-ext dependency (#798) 0e18008

[v2.11.5] - 2022-05-04

[v2.11.4] - 2022-02-21

Bug Fixes

  • generateFlexChangesBundle: Fix minUI5Version check for UI5 v1.100.0+ (#706) fb1217a

[v2.11.3] - 2021-12-14

Bug Fixes

  • Enable buildThemes for libraries without .library 7b941a7

[v2.11.2] - 2021-11-17

Bug Fixes

  • Builder: Emit warning on bundleInfo name without extension ed0da12
  • manifestCreator: Trim whitespace/new-lines for sap.app/title 019cfd7

[v2.11.1] - 2021-10-19

Bug Fixes

  • Minification excludes for application projects 7f6fd68

[v2.11.0] - 2021-10-19

Bug Fixes

  • manifestCreator: supportedThemes should only list relevant themes 01f3859

Features

[v2.10.0] - 2021-10-05

Features

  • Introduce build task replaceBuildtime 2ad0960

[v2.9.5] - 2021-08-25

Bug Fixes

  • AbstractBuilder: Multiple custom task executions did not run (#636) c05587a
  • Builder: Handle files without extension (#637) 07aaa24

[v2.9.4] - 2021-07-23

Bug Fixes

  • XMLTemplateAnalyzer: Include document name for XML parsing errors 3c88ca4

[v2.9.3] - 2021-07-01

Bug Fixes

  • LibraryFormatter: Fix handling of paths containing special characters 2093562

[v2.9.2] - 2021-06-17

Bug Fixes

  • Switch from esprima to espree (#615) c3d50e3
  • lbt/resources/ResourceCollector: Ensure proper matching of indicator files (#614) 2d3a1d8

[v2.9.1] - 2021-06-08

Bug Fixes

  • JSDoc: Use namespace to derive uilib name for jsdoc generator 2077130
  • JSDoc: add project name to JSDoc configuration and api.json (#609) 419ce38
  • lib/processors/debugFileCreator: Add -dbg suffix only to files (#611) 9da2f7b

Dependency Updates

  • Bump cheerio from 0.22.0 to 1.0.0-rc.9 8bdb146

[v2.9.0] - 2021-06-01

Features

  • Support writing 'bundles' config as part of a bundle (#396) b5f372a

[v2.8.4] - 2021-05-17

Bug Fixes

  • XMLTemplateAnalyzer: Properly detect conditional dependencies 0f56490
  • lbt/bundle/Builder: Preserve comments in bundles 8dfa919

[v2.8.3] - 2021-04-19

Bug Fixes

  • Emit warning when including/excluding unknown tasks 854f456

[v2.8.2] - 2021-03-11

Bug Fixes

  • LibraryFormatter: Do not throw for missing .library in legacy OpenUI5 theme libraries f7e22ba

Dependency Updates

  • Bump less-openui5 from 0.10.0 to 0.11.0 (#594) f3d174b

[v2.8.1] - 2021-03-04

Bug Fixes

  • generateResourcesJson: Include dependencies of XML resources 0fc364d
  • manifestCreator: 'embeds' should list all components (#575) 11f823a
  • moduleBundler: Apply defaultFileTypes (#580) 42f6474
  • resourceListCreator: Include dependencies of subModules (#588) fe61d6e
  • versionInfoGenerator: fix hasOwnPreload flag (#591) 73a0f8b

[v2.8.0] - 2021-02-09

Features

  • Add Library/Component preload exclude configuration (#573) f1644a4

[v2.7.2] - 2021-01-29

Dependency Updates

  • Bump less-openui5 from 0.9.0 to 0.10.0 4674fef

[v2.7.1] - 2021-01-28

Bug Fixes

  • JSDoc: adapt sdkTransformer to change in transformApiJson.js (#574) 655f731
  • versionInfoGenerator: manifest without embeds #486 (#576) 4d86226

[v2.7.0] - 2021-01-26

Features

  • Versioninfo enrich with manifest infos (#554) 7603ece
  • Align JSDoc template & plugin with OpenUI5 1.87.0 (#572) 0cb02ac

[v2.6.1] - 2021-01-21

Bug Fixes

  • Theme Build: Only process themes within library namespace (#570) 8cecc01
  • processors/libraryLessGenerator: Don't throw in case of import errors 0e25b59

[v2.6.0] - 2021-01-14

Features

  • Add 'generateThemeDesignerResources' task 03241c0
  • Add 'libraryLessGenerator' processor (#560) a7e1e5c
  • manifestBundler: Add support for sap.app/i18n/enhanceWith (#564) 1b7a277
  • manifestCreator: enrich manifest with supportedLocales in i18n (for libraries) (#547) 8102034

[v2.5.1] - 2020-12-18

Bug Fixes

  • Windows: Correctly handle project paths containing non-ASCII characters b229bf3

[v2.5.0] - 2020-12-15

Bug Fixes

  • manifestCreator: Add component path to error logs 049b9ee

Features

  • ApplicationFormatter: Implement manifest.appdescr_variant fallback (#545) 6d44481

[v2.4.5] - 2020-11-30

Bug Fixes

  • generateResourcesJson: Make resources.json generation deterministic 41d3335
  • manifestCreator: Only list components with corresponding 'embeddedBy' (#555) 89872d7

[v2.4.4] - 2020-11-25

Bug Fixes

  • JSModuleAnalyzer: Properly handle jQuery.sap.registerPreloadedModules calls 9433f6a

[v2.4.3] - 2020-11-06

[v2.4.2] - 2020-11-04

Reverts

  • [FEATURE] Switch XML minifier from pretty-data to minify-xml

[v2.4.1] - 2020-11-03

Dependency Updates

  • Bump minify-xml from 2.1.2 to 2.1.3 839d12b

[v2.4.0] - 2020-11-03

Features

  • Tag bundles and ignore them in uglify task (#535) b487366
  • Switch XML minifier from pretty-data to minify-xml be29520

[v2.3.0] - 2020-10-22

Features

  • Create designtime and support bundles for libraries (#529) 2a51943

Performance Improvements

[v2.2.1] - 2020-10-06

Bug Fixes

  • Bundler: Improve error log messages (#466) 6bb6235
  • tasks/generateResourcesJson: Handling for sap.ui.integration 1191b3d

Dependency Updates

[v2.2.0] - 2020-09-02

Bug Fixes

  • SapUiDefine call should not fail when there's no factory function (#491) 25c6a3c

Features

[v2.1.0] - 2020-08-11

Features

  • Implement TaskUtil class a7074ae
  • generateFlexChangesBundle: Hide bundle input from build result 001183a

[v2.0.7] - 2020-08-10

Bug Fixes

  • generateLibraryPreload: Ignore missing modules (#481) 97b339f

Dependency Updates

[v2.0.6] - 2020-07-21

Bug Fixes

  • SmartTemplateAnalyzer: Do not throw in case missing dependency is expected (#479) b2150c3

[v2.0.5] - 2020-07-14

Bug Fixes

  • Node.js API: TypeScript type definition support (#475) 7858810
  • XMLTemplateAnalyzer: Handle empty XML view/fragment (#471) 7488d5f

[v2.0.4] - 2020-06-15

Bug Fixes

  • ComponentAnalyzer: Properly handle sap.ui5/routing (#463) 717f2ec

[v2.0.3] - 2020-05-19

Bug Fixes

  • Align JSDoc template and scripts with OpenUI5 1.79 (#460) c868fa0
  • manifestBundler: Add support for i18n object configuration (#458) 85c4e19

[v2.0.2] - 2020-05-14

[v2.0.1] - 2020-04-30

Bug Fixes

  • Namespaces in API Reference (JSDoc) b2a9a10

[v2.0.0] - 2020-03-31

Breaking Changes

  • Make namespace mandatory for application and library projects (#430) ee96c00
  • Require Node.js >= 10 5451765
  • LibraryFormatter: Ignore manifest.json of nested apps 846e929

Dependency Updates

Features

  • buildThemes: Add filtering for available themes (#419) 848c503

BREAKING CHANGE

If a library contains both, a manifest.json and .library file, they must either be located in the same directory or the manifest.json is ignored. In cases where the manifest.json is located on a higher level or different directory on the same level than a .library file, an exception is thrown.

UI5 Project must be able to determine the project's namespace, otherwise an error is thrown.

Support for older Node.js releases has been dropped. Only Node.js v10 or higher is supported.

[v1.10.1] - 2020-02-24

Bug Fixes

  • ApplicationBuilder: Fix pattern to glob for .library files 032d9a9

[v1.10.0] - 2020-02-10

Bug Fixes

  • Ensure proper handling of multi-byte characters in streams (#411) e906ec0
  • Bundling: Dynamic preload calls should not emit warnings 4d22b37

Features

  • Add experimental CSS variables and skeleton build (#393) df8c39b

[v1.9.0] - 2020-01-13

Bug Fixes

  • Use 'defaultFileTypes' from bundle configuration (#385) c21e13e
  • Detect dynamic dependencies also when newer APIs are used (#391) ed1cc9d

Features

  • Add new theme-library type (#285) a59287b
  • AbstractBuilder: Allow adding custom tasks for types that have no standard tasks 654450d

[v1.8.0] - 2019-12-16

Features

  • Add included/excludedDependencies parameter (#380) d6ac24a

[v1.7.1] - 2019-11-18

Dependency Updates

  • Bump less-openui5 from 0.7.0 to 0.8.0 11101d4

[v1.7.0] - 2019-11-07

Bug Fixes

  • JSDoc: Use the rel="noopener" attribute for external links. (#361) c702104

Dependency Updates

  • Bump less-openui5 from 0.6.0 to 0.7.0 fdb0241

Features

  • buildThemes: Add "compress" option (#363) 3a0cf6a
  • flexChangesBundler: Add flexibility-bundle.json (#353) cecc97d

[v1.6.1] - 2019-10-24

Bug Fixes

  • jsdoc: Adopt version range to micro releases (#357) 619b959

[v1.6.0] - 2019-10-24

Bug Fixes

Features

  • Simple Build Extensibility: Pass project namespace to custom tasks 1a167c5

[v1.5.3] - 2019-10-11

Bug Fixes

  • Bundling: merge dependency analysis results with raw module infos (#340) af4318a

[v1.5.2] - 2019-10-09

Bug Fixes

  • Improve recognition of main module in case of bundles (#341) 7a560b4
  • Align set of known file types with runtime (#337) 8b372f1
  • manifestCreator: Only consider component files called Component.js (#273) 82fe267

[v1.5.1] - 2019-09-04

Bug Fixes

  • XMLTemplateAnalyzer: Throws on tags without attributes (#322) b7f3795

[v1.5.0] - 2019-09-02

Features

  • XMLTemplateAnalyzer: Support core:require (#304) b01fd85

[v1.4.2] - 2019-08-28

Bug Fixes

  • Add 'sap.ui.fl' dependency to manifest.json (#318) a8edff4

[v1.4.1] - 2019-08-14

Bug Fixes

  • Adapt to recent extension of estraverse's set of node types (#310) 9db14e6

Features

  • Switch to Terser for JavaScript minification fccb514
  • Theme Build: Add compress option to minify output (#295) eea10ba
  • clean build folder: Allows developers to clean build folder before start building a project 04eb695

[v1.4.0] - 2019-07-29

Bug Fixes

  • versionInfo: Use correct buildTimestamp format 6d87b3e

Features

[v1.3.3] - 2019-07-01

Bug Fixes

  • Use consistent RegExp to detect copyright comments (#275) bd7aa40

Dependency Updates

  • Bump globby from 9.2.0 to 10.0.0 1ea4a11

[v1.3.2] - 2019-06-24

Bug Fixes

  • generateManifestBundle: Only glob files from project namespace fc7f659

[v1.3.1] - 2019-06-14

Bug Fixes

  • Detect library namespace automatically (#255) 604d4d3

[v1.3.0] - 2019-06-03

Features

[v1.2.3] - 2019-05-15

Bug Fixes

  • JSDoc: Implement own tmp dir lifecycle 3f85abf

[v1.2.2] - 2019-05-08

Bug Fixes

  • package.json: Fix JSDoc version to 3.5.5 873469d

[v1.2.1] - 2019-05-07

Bug Fixes

  • SmartTemplateAnalyzer: Detect dependencies from "pages" object 2d400c2

[v1.2.0] - 2019-04-25

Features

  • Add option to use hash signatures in cachebuster info file a4e8338

[v1.1.1] - 2019-04-24

Bug Fixes

  • ApplicationFormatter: detect the namespace for Maven placeholders (#243) 49ecb07

[v1.1.0] - 2019-04-12

Features

  • Build the manifest-bundle.zip for applications and libraries f53aeea
  • Generate the AppCacheBuster index file for apps dd653c8

[v1.0.5] - 2019-04-03

Bug Fixes

  • Generate sap-ui-custom-dbg.js for self-contained build (#234) d769d98
  • Add bundling sap-ui-core-noJQuery.js and sap-ui-core-noJQuery-dbg.js (#235) e7a7a63

[v1.0.4] - 2019-03-27

Dependency Updates

[v1.0.3] - 2019-03-21

Dependency Updates

Features

[v1.0.2] - 2019-02-28

Bug Fixes

  • Warning log of duplicate module declaration 9a790a3
  • Bundler: Create sap-ui-core-dbg.js (#176) feb95e4
  • ComponentAnalyzer: Detect model types from dataSource efc5cef

[v1.0.1] - 2019-02-01

Dependency Updates

[v1.0.0] - 2019-02-01

Dependency Updates

Features

  • Add transformation of apps index.html in self-contained build (#137) 6549b8a

BREAKING CHANGE

When running a self-contained build on an application project, the index.html will be transformed by adopting the UI5 bootstrap script tag to load the custom bundle file instead.

[v0.2.9] - 2019-01-03

Bug Fixes

  • ComponentAnalyzer: Fully handle sap.ui5/routing (#124) c59b5b1
  • XMLTemplateAnalyzer: Ignore properties with data binding 0d5cf50

[v0.2.8] - 2018-12-19

Bug Fixes

[v0.2.7] - 2018-12-19

Bug Fixes

  • ComponentAnalyzer: Handle sap.ui5/rootView with type string 469e558
  • generateLibraryPreload: Fix sap-ui-core.js bootstrap 7a266fd

[v0.2.6] - 2018-12-06

[v0.2.5] - 2018-11-16

Features

  • Builder: Add handling for custom task configurations 9b4ae00

[v0.2.4] - 2018-10-29

Features

[v0.2.3] - 2018-10-09

Bug Fixes

  • Replace copyright and version strings in *.json and .library files f305429
  • generateLibraryPreload: Add new sap.ui.core library namespaces ea901a7

[v0.2.2] - 2018-10-05

Bug Fixes

  • processors/versionInfoGenerator: Remove "gav" property 2bf41e1

Features

  • BundleBuilder: support modules using ES6 with usePredefineCalls (#67) d1a4f1f

[v0.2.1] - 2018-07-17

Bug Fixes

  • generateLibraryManifest: i18n/css handling 4e52a96

[v0.2.0] - 2018-07-11

Bug Fixes

  • Close gaps in routing support of ComponentAnalyzer (#46) 4697531

[v0.1.1] - 2018-07-02

Bug Fixes

  • iterate over routes using a for loop if it is an object (#31) e9823f6

[v0.1.0] - 2018-06-26

Bug Fixes

  • Bundles should be built one after another 164ba32
  • reduce build time at the price of a slightly increased code size (#37) 1fb8d00
  • Use the target bundle format to decide decoration (#24) 83703bc

[v0.0.2] - 2018-06-21

Bug Fixes

  • Builders: Do not bundle debug files 19800a1

v0.0.1 - 2018-06-06

Bug Fixes

  • Restore default component preload a09bec2

Features