Skip to content

Latest commit

 

History

History
539 lines (221 loc) · 22 KB

CHANGELOG.md

File metadata and controls

539 lines (221 loc) · 22 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

7.7.0 (2024-09-16)

Features

  • update dependencies / add peer dependency to @babel/core (#135) (d155e48), closes #133

7.6.2 (2024-09-14)

Bug Fixes

  • move qunit config autostart out of require/define (#134) (9643cd0)

7.6.1 (2024-09-13)

Bug Fixes

  • support wrapped controller extension assignments (dfa51b6)

7.6.0 (2024-07-22)

Features

  • support sap.ui.require for @sapUiRequire annotated modules (#131) (23c4ac6)

7.5.0 (2024-07-12)

Features

  • support ControllerExtensions extended with .override(...) (#128) (f744d9d)

7.4.2 (2024-06-25)

Bug Fixes

  • remove mandatory ESM file extensions from sap.ui.define imports (#129) (571dfa1)

7.4.1 (2024-06-02)

Bug Fixes

  • ensure to remove file ext .js only from module path (#127) (c6afb92)

7.4.0 (2024-05-31)

Bug Fixes

Features

  • imports added by other plugins are also included in the sap.ui.define calls (#126) (895fe62)

7.3.1 (2024-05-12)

Bug Fixes

  • remove file extensions from imports to avoid redundant extensions (#125) (e86d6f6)
  • support index modules for dependencies (#123) (f510380)

7.3.0 (2024-01-18)

Bug Fixes

  • sanitize variable names for re-exports (#122) (f475dbc)

Features

  • support using predefined controller extensions (#120) (d7cb66c)

7.2.6 (2023-11-23)

Bug Fixes

7.2.5 (2023-08-28)

Bug Fixes

  • by default add "use strict" directive to sap.ui.define (#115) (7d55cc6), closes #113

7.2.4 (2023-07-20)

Bug Fixes

7.2.3 (2023-07-18)

Bug Fixes

  • copyright comment must be appended as leading comment to file (#108) (8194671)

7.2.2 (2023-07-18)

Bug Fixes

  • ensure copyright to be kept after typescript processing (#107) (da9aa69)

7.2.1 (2023-06-13)

Bug Fixes

7.2.0 (2023-05-30)

Features

  • split class conversion to enable other Babel plugin conversion (#100) (4ba096b), closes #23 #25

7.1.5 (2023-05-30)

Bug Fixes

  • enable support for TS param props (#99) (2119b41), closes #65
  • ensure copyright comments to be leading comments (#97) (39ab194)
  • sap.ui.define without callback function (#98) (c1cd6a8), closes #50

7.1.4 (2023-04-11)

Bug Fixes

  • properly handle dynamic import of non-existing modules (#94) (c443b36)

7.1.3 (2023-04-11)

Bug Fixes

  • dynamic import must not handle __esModule flagged modules (#93) (b269985)

7.1.2 (2023-04-11)

Bug Fixes

  • dynamic imports of empty modules must not fail (#92) (a1de75d)

7.1.1 (2023-03-27)

Bug Fixes

  • catch err for dynamic import to sap.ui.require (#91) (9c7d26e)

7.1.0 (2023-03-13)

Features

  • backward compatibility for overrides (overridesToOverride option) (dac96e6)

The major version will be kept the same as babel's (currently 7.x.x).

7.0.6 (2023-02-21)

Features

  • #82 - Add "overrides" to static props which go into the extend(...) settings object

Fixes

  • #80 / #81 - Make noWrapBeforeImport work also with no deconstructors

7.0.5 (2021-07-21)

Fixes

  • #38 / #55 - Fixes sourceRoot resolution

7.0.4 (2021-07-03)

Fixes

  • #52 / #53 - Fixes unknown ExportNamedDeclaration caused by babel 7.14.4

7.0.3 (2019-12-03)

Fixes

  • #26 - export type being transpiled, but should be removed
  • #27 - super.X.apply not transpiling correctly

7.0.2 (2019-08-27)

Fixes

  • Moving prettier to devDeps and upgrade devDeps

7.0.1 (2019-05-31)

Fixes

  • #24 Use var instead of const for __exports since no other transforms are applied after wrapping.

7.0.0 (2019-03-20)

Breaking

  • #16 Move all instance class props to constructor or onInit by default. Added option onlyMoveClassPropsUsingThis for old behaviour.
  • Default behaviour is now similar to previous onlyConvertNamedClass=true, but also with logic to convert *.controller.js classes automatically.
    • Added option autoConvertAllExtendClasses to restore version 6 behaviour.
  • Added option autoConvertControllerClass to disable new *.controller.js behaviour (enabled by default)

Enhancements

  • #16 modulesMap option
  • #15/#17 Deferred module wrapping to support imports and helpers added by other plugins

Fixes

  • #18 Better recursive detection of 'this' used on class properties
  • #21 Computed class props moved correctly.
  • #20 (Typescript) declare the __exports variable for anonymous exports at time of declaration rather than at end of program, so that Typescript plugin can strip types on it.
  • Handle @ sign in import names when creating local variable name

7.0.0-rc.10 (2019-03-04)

Fixes

  • #21 Computed class props moved correctly.

7.0.0-rc.9 (2019-03-01)

Fixes

  • #20 (Typescript) declare the __exports variable for anonymous exports at time of declaration rather than at end of program, so that Typescript plugin can strip types on it.

7.0.0-rc.8 (2019-02-28)

Breaking

  • #16 Move all instance class props to constructor or onInit by default. Added option onlyMoveClassPropsUsingThis for old behaviour.

7.0.0-rc.7 (2019-02-13)

Fixes

  • #18 Better recursive detection of 'this' used on class properties

7.0.0-rc.6 (2019-02-13)

Enhancements

  • #15/#17 Deferred module wrapping to support imports and helpers added by other plugins

7.0.0-rc.5 (2019-02-08)

Enhancements

  • #16 modulesMap option

7.0.0-rc.4 (2019-02-07)

Fixes

  • Handle @ sign in import names when creating local variable name

7.0.0-rc.3 (2019-02-06)

Breaking

  • Existing controller constructors are no longer moved to onInit when moveControllerPropsToOnInit is set. New property moveControllerConstructorToOnInit to get back old behaviour.

7.0.0-rc.2 (2019-01-17)

Fixes

  • Re-add @namespace support
  • Convert classes when @controller annotation found

7.0.0-alpha4 (2018-10-12)

  • Internal updates

7.0.0-alpha3 (2018-10-11)

  • Internal updates, and removed peerDependency

7.0.0-alpha2 (2018-10-08)

Breaking

  • Default behaviour is now similar to previous onlyConvertNamedClass=true, but also with logic to convert *.controller.js classes automatically.
    • Added option autoConvertAllExtendClasses to restore version 6 behaviour.

Behaviour Change

  • Added option autoConvertControllerClass to disable new *.controller.js behaviour (enabled by default)

7.0.0-alpha1 (2018-08-17)

Behaviour Change

  • Requires babel 7

6.18.1 (2018-02-06)

Bug Fixes

  • Fix Issue #3: Class method conversion can cause conflicts and stack overflow.
  • Fix Issue #5: Class prop injected into the controller should go between the super call and other statements.
  • Fix Issue #6: Class props using 'this' should be injected into constructor or onInit.

6.18.0 (2018-02-06)

Behaviour Change

  • The import default interop function will now return the object itself if there is no 'default' property on it, even if __esModule is true. Note that interop is still only called when the import code imports default.

6.17.2 (2018-02-06)

Bug Fixes

  • Fix Issue #4: Export named from, having paths with dash cause invalid syntax.

6.17.1 (2018-02-06)

Bug Fixes

  • Fix Issue #4: Import paths with dash cause invalid syntax.

6.17.0 (2017-12-29)

Features

  • Named exports can now be collapsed onto an anonymous default export by using a temporary variable for it.

Bug Fixes

  • Fix Issue #2: super calls are now transformed using the correct AST (t.thisExpression() vs t.identifier('this')) so they are transformed correctly by arrow function transform.

6.16.1 (2017-12-28)

Bug Fixes

  • Fix Issue #1: Moved logic from Program.exit to Program so it runs before other plugins added by babel-preset-env such as class properties and class transform.
  • Removed t.isImport() since it only exists if the dynamic import plugin was used too.

6.16.0 (2017-12-28)

Features

  • Merge all imports from the same source into a single require and deconstruct from it.

6.15.3 (2017-12-21)

Bug Fixes

  • When using noWrapBeforeImport, the interop variables and helpers are now added inside sap.ui.define.
  • When using noWrapBeforeImport, if any code is added outside sap.ui.define, 'use strict'; is added.

6.15.2 (2017-12-21)

Bug Fixes

  • Fixing 6.15.1

6.15.1 (2017-12-20)

Bug Fixes

  • Using __exports instead of exports in case "use strict"; doesn't get added so exports won't be defined globally.

6.15.0 (2017-12-20)

Features

  • New option and feature addControllerStaticPropsToExtend.

6.14.1 (2017-12-13)

Bug Fixes

  • Fix the dynamic import helper by setting __esModule flag.

6.14.0 (2017-12-08)

Potential Breaking

  • Controller onInit logic is now off by default and uses flag moveControllerPropsToOnInit

Features

  • noWrapBeforeImport functionality (using flag to opt-in)

6.13.0 (2017-11-24)

Features

  • Dynamic import()

6.12.0 (2017-11-14)

Potential Breaking

  • Update the no-wrap logic to just use whether there is an import or export

6.11.0 (2017-11-10)

Features

  • Controller conversion enhancements to move property initialization to onInit rather than the constructor.

6.10.1 (2017-11-09)

Bug Fixes

  • Fix support for assigning named exports to default export when it is a function.

6.10.0 (2017-11-09)

Features

  • Support metadata and renderer static props assigned outside the class (Class.renderer = {})

Breaking

  • Removed support for defining renderer and metadata variables in JSDoc