Releases: odoo/owl
Releases · odoo/owl
v0.19.0
v0.19.0
This release has pretty big changes in the way the store and connected components
works.
Changes
- QWeb: support XML documents (already parsed) as argument to the
addTemplates
method (in
addition to strings) - ConnectedComponent: separate
props
intoprops
andstoreProps
- ConnectedComponent: add
dispatch
method - Component: simplify
render
method signature (and rendering process) - Store: merge
actions
andmutations
- router: add documentation
- playground: add window management system example
- Component: improve mount/remount behaviour, add
renderBeforeRemount
argument
tomount
v0.18.0
v0.18.0
Big release, with a lot of internal refactorings, and the first release of a Router.
Changes
- owl: move exported value around:
Observer
andEventBus
are now inowl.core
,Store
andConnectedComponent
are now inowl.store
- qweb fix: allow
t-if
witht-call
- component fix: properly handle
defaultProps
in connected components - qweb: add
forceUpdate
method - component fix: solve tricky concurrency issue
- observer: complete rewrite using
Proxy
- observer: remove
set
anddelete
methods - component imp: allow multiple calls to
mount
andunmount
- owl router: add a first full implementation of a client router
v0.17.0
v0.17.0
- qweb: better error messages for bad xml templates
- qweb: add
renderToString
method - component: various prop validation improvements
- component: lots of fixes with bad slots interactions
- component: add
catchError
hook - component: allow top level widget definition
- store: remove
connect
function - store: add
ConnectedComponent
class - playground: improve examples
- playground: improve error display
v0.16.0
v0.16.0
For this release, the most visible improvement is definitely the possibility of defining components in a template with their name (instead of the t-widget
directive):
<div>
<SomeComponent />
</div>
Component
- allow component name in template (instead/in addition of
t-widget
) - rename
t-widget
intot-component
- fix: scoping issue with
t-on
,t-component
andt-foreach
- allow multiple roots in slots
- fix: ignore slot if no definition is given
- ref: prefix all private methods with
__
- fix: default slot now works with text nodes
- fix: many issues with
t-component
, and inner/outerclass
,t-att-class
QWeb
- make
QWeb
an event bus - add option to allow duplicate definition of templates
- fix: small issues with
t-debug
directive - fix: add missing not equals operator
- fix: properly handle extra spaces in
class
attributes
Store
- imp: connected component reuse base component name
- fix: issues with connected parent/child components
- imp: allow extra arguments in
dispatch
andcommit
Tools
- fix: playground: update sample code to use new
t-foreach
syntax - fix: various issues with tab handling
- imp: playground now logs intercepted errors in console
v0.15.0
v0.15.0
Component
- imp: add
t-asyncroot
directive - imp: add
t-model
directive - imp: crashes if no template can be found
- imp: add support for default slot
Tools
- playground fix: do not remove empty tabs
- benchmarks: make react app look like the others
- playground: improve code samples
Store
- imp: memoize getters
v0.14.0
v0.14.0
Component
- add
t-slot
directive
QWeb
- fix: keep ref of unmounted (kept alive) widget
- remove support for
x_parity
int-foreach
- remove support for
#{.}
string interpolation - remove support for integer
t-value
int-foreach
- implement a new expression evaluator (much more powerful)
- fix: better support for templates with only a root string
- fix issue with duplicated nodes in transitions
Observer
- add
set
anddelete
static methods
Store
- allow connecting to multiple stores
- improve
connect
API
Utils
- fix:
whenReady
now works for all possible document states whenReady
now returns aPromise
Tools
- rename
extras
intotools
- rework benchmark application
v0.13.0
v0.13.0
QWeb
- fix: issue with
t-attf-
and string interpolation - log invalid code generated by template
- reorganize the documentation
Component
- remove
t-props
, defineprops
as attributes oft-widget
- revamp event management: use DOM events in component
- add better docstring
- fix: reuse existing widget if possible, in some cases
Observer
- fix: allow reobserving values twice
Extras
- update server to python3, make it work on windows
- improve extras application landing page
- add url in log when starting server
- playground: properly resize editors when resizing panels
v0.12.0
v0.12.0
Owl
- move metadata into
__info__
(date, version, hash, ...) - add a mode key (for
dev
orprod
- small local optimizations
QWeb
- add modifiers for events with
t-on
. For ex,t-on-click.stop=...
- add global component registry
- breaking change:
t-ref
uses now string interpolation
Component
- allow
t-transition
on components - add
props
validation system - add
defaultProps
system t-widget
uses now string interpolation
Utils
- remove
patch
/unpatch
Misc
- playground: remove benchmarks app
- playground: improve code samples
v0.11.0
v0.11.0
QWeb
- add
t-mounted
directive - make
t-widget
work witht-elif
- add default template (empty div)
- rename
loadTemplates
intoaddTemplates
- fix: scoping issue with list of widgets
- support
#{}
syntax as well as{{}}
Component
- deduce template name from component name (if not explicitely set)
- remove support for
inlineTemplate
- better error if Owl cannot find a widget class
- massive simplification of generated code by
t-widget
- remove
isStarted
metadata
Utils
- remove
memoize
,parseXML
functions - remove
patch
/unpatch
Observer
- fix: newly observed object/arrays have higher rev number
Misc
- add
extras:watch
task - playground: keep separate session for each tab
- playground: debounce some handlers
v0.10.0
Improvements
- playground: display async error in right pane
- store: add support for
getters
- component: add support for css/style
- playground: improve examples
Fixes
- qweb: make
t-transition
code more robust - component: capture
ref
key in closure - component: call
patch
betweenwillPatch
andpatched
- store: properly call
patch
on connected components - store: correct update order for child/parents
- component: fix issue with crash caused by async rendering
- component: prevent rendering if not mounted
Doc
- update qweb doc
- add Semantics section in component doc
- add documentation in all headers
- add store basic documentation