From 63128b7d299297ab01c894eab0712496165f01f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 24 Apr 2023 16:29:43 +0200 Subject: [PATCH] [REL] v2.1.2 # v2.1.2 - [FIX] t-out: does not crash when outputting null - [FIX] playground: fix name of playground component - [FIX] playground: use ES owl version instead of iife - [IMP] playground: give a name so it is more explicit in devtools - [REF] github page: move page to docs folder on master branch - [IMP/FIX] playground: fix and improve various things --- docs/owl.js | 6 +++--- package-lock.json | 2 +- package.json | 2 +- src/version.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/owl.js b/docs/owl.js index a82601dc..689b6f05 100644 --- a/docs/owl.js +++ b/docs/owl.js @@ -3017,7 +3017,7 @@ class LazyValue { * Safely outputs `value` as a block depending on the nature of `value` */ function safeOutput(value, defaultValue) { - if (value === undefined) { + if (value === undefined || value === null) { return defaultValue ? toggler("default", defaultValue) : toggler("undefined", text("")); } let safeKey; @@ -5920,6 +5920,6 @@ TemplateSet.prototype._compileTemplate = function _compileTemplate(name, templat export { App, Component, EventBus, OwlError, __info__, blockDom, loadFile, markRaw, markup, mount, onError, onMounted, onPatched, onRendered, onWillDestroy, onWillPatch, onWillRender, onWillStart, onWillUnmount, onWillUpdateProps, reactive, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, validate, validateType, whenReady, xml }; -__info__.date = '2023-04-24T13:41:41.071Z'; -__info__.hash = '53ce7ed'; +__info__.date = '2023-04-24T14:29:32.376Z'; +__info__.hash = 'f9d810a'; __info__.url = 'https://github.com/odoo/owl'; diff --git a/package-lock.json b/package-lock.json index b418c429..f688b873 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@odoo/owl", - "version": "2.1.1", + "version": "2.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 34e4fb14..6c7cd582 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@odoo/owl", - "version": "2.1.1", + "version": "2.1.2", "description": "Odoo Web Library (OWL)", "main": "dist/owl.cjs.js", "module": "dist/owl.es.js", diff --git a/src/version.ts b/src/version.ts index f1ce7a63..53dcdd4b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ // do not modify manually. This file is generated by the release script. -export const version = "2.1.1"; +export const version = "2.1.2";