- 2492fab: Smaller style changes in files because of update of prettier/eslint build dependency.
-
8908212: Removed config from constructor of
AbstractAnalytic
-
What?
- Removed
defaultDependencies
from plugin. - Removed config from constructor of
AbstractAnalytic
- Properties
_loaded
,_scriptLoader
,_dispatcher
and method_afterLoadCallback
are now protected. (#loaded
,#scriptLoader
,#dispatcher
,#afterLoadCallback
)- New method
_isLoaded
.
- New method
- Removed
-
Why?
defaultDependencies
was weird pattern, and we want to get rid of it- To be able to use spread operator for dependencies in constructor of classes which extends
AbstractAnalytic
. Until now, we had to repeat all arguments fromAbstractAnalytic
constructor if we wanted to accessconfig
parameter, which is very common use-case. Also, now we can work with types in TypeScript more easily. - To clear the interface of
AbstractAnalytic
.
-
How?
-
Replace use of
defaultDependencies
byAbstractAnalytic.$dependencies
-
Classes, which extends
AbstractAnalytic
needs to save given config argument on their own. But you can use rest operator now.Therefore, this: ```javascript class MyClass extends AbstractAnalytic { // Even here we were forced to copy dependencies from AbstractAnalytic to specify settings (last value in the array) static get $dependencies() { return [ NonAbstractAnalyticParam, ScriptLoaderPlugin, '$Window', '$Dispatcher', '$Settings.plugin.analytic.myClass', ]; } constructor(nonAbstractAnalyticParam, scriptLoader, window, dispatcher, config) { super(scriptLoader, window, dispatcher, config); this._nonAbstractAnalyticParam = nonAbstractAnalyticParam; this._id = config.id; // due to this line we were forced to copy all arguments of AbstractAnalytic // ... } } ``` ...can be rewritten to this: ```javascript class MyClass extends AbstractAnalytic { // now we can define only added dependencies and use spread for the rest static get $dependencies() { return [ NonAbstractAnalyticParam, '$Settings.plugin.analytic.myClass', ...AbstractAnalytic.$dependencies ]; } constructor(nonAbstractAnalyticParam, config, ...rest) { super(...rest); this._nonAbstractAnalyticParam = nonAbstractAnalyticParam; this._config = config; this._id = config.id; // ... } } ```
- Replace use of
_scriptLoader
,_dispatcher
and_afterLoadCallback
to#scriptLoader
,#dispatcher
and#afterLoadCallback
. Check if script is loaded by calling new method_isLoaded()
.
- Replace use of
-
-
- 8f5d01a: Fixed build issues with client server config
- e2eeb2b: Turbo, eslint update, types exports, new tsconfig
- 6d92917: Code refactorings, moved type extensions to separate file to cleanup main.ts
- Updated dependencies [535f56e]
- Updated dependencies [6d92917]
- @ima/[email protected]
- 038a8ea: Typescriptization (from .js to .ts)
- 110c2af: Removed invalid RC version ranges in package.json files
- de5b640: Added plugin settings exports
- 2e61a48: Built using new version of @ima/plugin-cli, js sources now include source maps
- d08218b: Added type declarations generated from JSdoc
- e75b1da: Added dispatcher types
- 6d47aaa: Side effects notation from package.json
- 5717869: Added $dependencies typing comments for TS apps
- de5b640: Added plugin settings exports
- 5717869: Added $dependencies typing comments for TS apps
- e75b1da: Added dispatcher types
- 6d47aaa: Side effects notation from package.json
- d08218b: Added type declarations generated from JSdoc
- 2e61a48: Built using new version of @ima/plugin-cli, js sources now include source maps
- Updated dependencies [2e61a48]
- @ima/[email protected]
- dd4dd52: Updated to latest @ima/plugin-cli - the final bundle now contains new styles folder containing all less/css files and they are no longer bundled into esm bundle
- fb1a51e: Migrated packages to pure esm modules
- 5149e99: Added additional CJS builds to npm dist directory
- 1256647: Add support for IMA 18, Node 18 and npm 8
- 0b81d28: npmignore revert logic, add missing npmignore apply pluginLoader update ima peer deps refactor plugin register functions, remove exports for ima17
- 431ad38: Fixed node config packages
- 1c61a6d: Automatic JSX runtime, deps update
- f7fe41d: Updated to latest version of plugin-cli
- 15e981a: Updated plugin-cli to latest version
- df68488: All plugin maintenance relase
- 113952b: Preventive update after master merge
- 9bf6acf: @ima/plugin-cli version bump
- 1a6651d: Migrated to react-page-renderer
- Updated dependencies [431ad38]
- Updated dependencies [fb1a51e]
- Updated dependencies [1c61a6d]
- Updated dependencies [5149e99]
- Updated dependencies [f7fe41d]
- Updated dependencies [15e981a]
- Updated dependencies [df68488]
- Updated dependencies [1256647]
- Updated dependencies [113952b]
- Updated dependencies [9bf6acf]
- Updated dependencies [1a6651d]
- Updated dependencies [0b81d28]
- @ima/[email protected]
- df68488: All plugin maintenance relase
- 113952b: Preventive update after master merge
- 1c61a6d: Automatic JSX runtime, deps update
- 9bf6acf: @ima/plugin-cli version bump
- 15e981a: Updated plugin-cli to latest version
- 1a6651d: Migrated to react-page-renderer
- 431ad38: Fixed node config packages
- f7fe41d: Updated to latest version of plugin-cli
- 5149e99: Added additional CJS builds to npm dist directory
- Updated dependencies [5149e99]
- @ima/[email protected]
- fb1a51e: Migrated packages to pure esm modules
- Updated dependencies [fb1a51e]
- @ima/[email protected]
- 0b81d28: npmignore revert logic, add missing npmignore apply pluginLoader update ima peer deps refactor plugin register functions, remove exports for ima17
- Updated dependencies [0b81d28]
- @ima/[email protected]
- 1256647: Add support for IMA 18, Node 18 and npm 8
- Updated dependencies [1256647]
- @ima/[email protected]
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
4.1.2 (2022-01-11)
Note: Version bump only for package @ima/plugin-analytic
4.1.1 (2022-01-10)
Note: Version bump only for package @ima/plugin-analytic
4.1.0 (2021-12-13)
4.0.2 (2021-08-26)
Note: Version bump only for package @ima/plugin-analytic
4.0.1 (2020-06-22)
Note: Version bump only for package @ima/plugin-analytic
4.0.0 (2020-06-08)
- 🎸 Unified build and release process via rollup and lerna (df277ce)
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- BREAKING CHANGE! IMA.js v16 and lower is no longer supported, you need to upgrade to IMA.js v17+