Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

2.1.0

Latest
Compare
Choose a tag to compare
@Tiagoperes Tiagoperes released this 25 Nov 13:27
· 4 commits to main since this release
355d5b2

All Platforms

  • Multi-instances support: Beagle, before version 2.1, relied on singletons and, for this reason, could not be instantiated multiple times. This problem has been solved and although Beagle can still work like before (no breaking changes), it can also work in a way where multiple instances are allowed (useful for multi-module applications).
  • The ListView and GridView now create the implicit context “index” that tells the position of the current item in the list. To change the name of the implicit context, the property “indexName” has been added.
  • When an item of the ListView or GridView is altered from within the List or Grid, this change will now propagate to every other component that depends on the same data source.
  • The operations eq, gt, lt, gte, lte, sum, subtract, multiply and divide now have implicit type coercion, i.e. they can operate with different data types. Examples: eq('18', 18) returns true, even if the type is different; sum(10, 20.2) returns 30.2, even though the arguments types differ.
  • New operations: int, double and string. They all accept a single argument and converts the type of the data.

iOS

  • Fixes problem where a space could make an operation unreadable inside an expression.
  • The Image Provider now supports multi-module applications.
  • The BeagleScreenViewController was made public.

WEB

  • Fixes the image mode of the Image Component on React.