This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Release v1.2.0
- Added JS docs to APIs so the documentation can be viewed directly from the IDE.
- Added support for lifecycles. Components can have their payload altered before getting rendered and the modification can be done at a specific time:
beforeStart
,beforeViewSnapshot
,afterViewSnaphot
orbeforeRender
. - Middlewares are now deprecated. Lifecycles should be instead.
- Added the
ViewContentManager
, which facilitates complex rendering behaviors for your component. - Enhanced the
BeagleView
and made it accessible by your app. - The
BeagleView
now has the methodgetRenderer()
, which can be used to better control how your components behave in regards to the Beagle renderization process. - Unresolved expressions now resolve to
null
instead of being left untouched. When inside a string, the expression resolves to an empty string. - Fixes a bug where the context priority inside an action would be calculated wrong.
- Added support for IE 9.
- Fixed a bug where options to the cache strategy would be ignored.
- Fixed a bug where
null
values would crash the parsing of expressions. - Created many utilities to help reading and manipulating the Beagle Tree structure, they are exported as
Tree
and include functions likefindById
,findByType
andforEach
. - Added the operation
union
for arrays. - Renamed the operation
includes
tocontains
- Added a feature called
implicit contexts
. This can be used to expose data contexts without messing with the contexts explicitly declared by the original JSON. It was necessary for the implementation of the new list view (coming in a future version). - Added an application level logger so we don’t have to rely on
console.log
. The logger is exported aslogger
and can be customized. - Actions can now be declared anywhere in the payload. Before, they would work only if declared at the root of a component.
- The
BeagleView
can now be destroyed to avoid memory leaks. - Fixes a bug where, when working with the global context, an exception would be raised when a component controlled by the global context was destroyed.
All new APIs and features are documented at https://docs.usebeagle.io/resources/customization/beagle-para-web/web-advanced-topics