All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
7.7.0 (2024-09-16)
7.6.2 (2024-09-14)
7.6.1 (2024-09-13)
- support wrapped controller extension assignments (dfa51b6)
7.6.0 (2024-07-22)
7.5.0 (2024-07-12)
7.4.2 (2024-06-25)
7.4.1 (2024-06-02)
7.4.0 (2024-05-31)
- remove empty export declaration added by TypeScript (3cb14cf), closes /github.com/babel/babel/blob/main/packages/babel-plugin-transform-typescript/src/index.ts#L399
7.3.1 (2024-05-12)
- remove file extensions from imports to avoid redundant extensions (#125) (e86d6f6)
- support index modules for dependencies (#123) (f510380)
7.3.0 (2024-01-18)
7.2.6 (2023-11-23)
7.2.5 (2023-08-28)
7.2.4 (2023-07-20)
7.2.3 (2023-07-18)
7.2.2 (2023-07-18)
7.2.1 (2023-06-13)
- add support for import.meta.url|resolve (#106) (afb1e6d), closes #103
- support for anonymous classes (#105) (64773d1), closes #104
7.2.0 (2023-05-30)
7.1.5 (2023-05-30)
- 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)
7.1.3 (2023-04-11)
7.1.2 (2023-04-11)
7.1.1 (2023-03-27)
7.1.0 (2023-03-13)
- 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)
- #82 - Add "overrides" to static props which go into the
extend(...)
settings object
- #80 / #81 - Make noWrapBeforeImport work also with no deconstructors
7.0.5 (2021-07-21)
- #38 / #55 - Fixes sourceRoot resolution
7.0.4 (2021-07-03)
- #52 / #53 - Fixes unknown ExportNamedDeclaration caused by babel 7.14.4
7.0.3 (2019-12-03)
- #26 -
export type
being transpiled, but should be removed - #27 - super.X.apply not transpiling correctly
7.0.2 (2019-08-27)
- Moving prettier to devDeps and upgrade devDeps
7.0.1 (2019-05-31)
- #24 Use
var
instead ofconst
for__exports
since no other transforms are applied after wrapping.
7.0.0 (2019-03-20)
- #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
- Added option
autoConvertControllerClass
to disable new*.controller.js
behaviour (enabled by default)
- #16
modulesMap
option - #15/#17 Deferred module wrapping to support imports and helpers added by other plugins
- #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)
- #21 Computed class props moved correctly.
7.0.0-rc.9 (2019-03-01)
- #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)
- #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)
- #18 Better recursive detection of 'this' used on class properties
7.0.0-rc.6 (2019-02-13)
- #15/#17 Deferred module wrapping to support imports and helpers added by other plugins
7.0.0-rc.5 (2019-02-08)
- #16
modulesMap
option
7.0.0-rc.4 (2019-02-07)
- Handle @ sign in import names when creating local variable name
7.0.0-rc.3 (2019-02-06)
- Existing controller constructors are no longer moved to onInit when
moveControllerPropsToOnInit
is set. New propertymoveControllerConstructorToOnInit
to get back old behaviour.
7.0.0-rc.2 (2019-01-17)
- 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)
- 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
- Added option
autoConvertControllerClass
to disable new*.controller.js
behaviour (enabled by default)
7.0.0-alpha1 (2018-08-17)
- Requires babel 7
6.18.1 (2018-02-06)
- 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)
- 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)
- Fix Issue #4: Export named from, having paths with dash cause invalid syntax.
6.17.1 (2018-02-06)
- Fix Issue #4: Import paths with dash cause invalid syntax.
6.17.0 (2017-12-29)
- Named exports can now be collapsed onto an anonymous default export by using a temporary variable for it.
- 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)
- Fix Issue #1: Moved logic from
Program.exit
toProgram
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)
- Merge all imports from the same source into a single require and deconstruct from it.
6.15.3 (2017-12-21)
- 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)
- Fixing 6.15.1
6.15.1 (2017-12-20)
- 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)
- New option and feature
addControllerStaticPropsToExtend
.
6.14.1 (2017-12-13)
- Fix the dynamic import helper by setting __esModule flag.
6.14.0 (2017-12-08)
- Controller onInit logic is now off by default and uses flag moveControllerPropsToOnInit
- noWrapBeforeImport functionality (using flag to opt-in)
6.13.0 (2017-11-24)
- Dynamic import()
6.12.0 (2017-11-14)
- Update the no-wrap logic to just use whether there is an import or export
6.11.0 (2017-11-10)
- Controller conversion enhancements to move property initialization to onInit rather than the constructor.
6.10.1 (2017-11-09)
- Fix support for assigning named exports to default export when it is a function.
6.10.0 (2017-11-09)
- Support metadata and renderer static props assigned outside the class (
Class.renderer = {}
)
- Removed support for defining renderer and metadata variables in JSDoc