Skip to content

Commit ac9ccb8

Browse files
committed
[REL] v2.6.1
# v2.6.1 - [FIX] code generator: prevent AST change - [IMP] runtime: simplify info message when running in dev mode
1 parent 2b5cea9 commit ac9ccb8

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

docs/owl.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4801,16 +4801,15 @@ class CodeGenerator {
48014801
isMultiple = isMultiple || this.slotNames.has(ast.name);
48024802
this.slotNames.add(ast.name);
48034803
}
4804-
const dynProps = ast.attrs ? ast.attrs["t-props"] : null;
4805-
if (ast.attrs) {
4806-
delete ast.attrs["t-props"];
4807-
}
4804+
const attrs = { ...ast.attrs };
4805+
const dynProps = attrs["t-props"];
4806+
delete attrs["t-props"];
48084807
let key = this.target.loopLevel ? `key${this.target.loopLevel}` : "key";
48094808
if (isMultiple) {
48104809
key = this.generateComponentKey(key);
48114810
}
48124811
const props = ast.attrs
4813-
? this.formatPropObject(ast.attrs, ast.attrsTranslationCtx, ctx.translationCtx)
4812+
? this.formatPropObject(attrs, ast.attrsTranslationCtx, ctx.translationCtx)
48144813
: [];
48154814
const scope = this.getPropString(props, dynProps);
48164815
if (ast.defaultContent) {
@@ -5705,7 +5704,7 @@ function compile(template, options = {
57055704
}
57065705

57075706
// do not modify manually. This file is generated by the release script.
5708-
const version = "2.6.0";
5707+
const version = "2.6.1";
57095708

57105709
// -----------------------------------------------------------------------------
57115710
// Scheduler
@@ -5800,13 +5799,6 @@ class Scheduler {
58005799
Scheduler.requestAnimationFrame = window.requestAnimationFrame.bind(window);
58015800

58025801
let hasBeenLogged = false;
5803-
const DEV_MSG = () => {
5804-
const hash = window.owl ? window.owl.__info__.hash : "master";
5805-
return `Owl is running in 'dev' mode.
5806-
5807-
This is not suitable for production use.
5808-
See https://github.com/odoo/owl/blob/${hash}/doc/reference/app.md#configuration for more information.`;
5809-
};
58105802
const apps = new Set();
58115803
window.__OWL_DEVTOOLS__ || (window.__OWL_DEVTOOLS__ = { apps, Fiber, RootFiber, toRaw, reactive });
58125804
class App extends TemplateSet {
@@ -5823,7 +5815,7 @@ class App extends TemplateSet {
58235815
}
58245816
this.warnIfNoStaticProps = config.warnIfNoStaticProps || false;
58255817
if (this.dev && !config.test && !hasBeenLogged) {
5826-
console.info(DEV_MSG());
5818+
console.info(`Owl is running in 'dev' mode.`);
58275819
hasBeenLogged = true;
58285820
}
58295821
const env = config.env || {};
@@ -6183,6 +6175,6 @@ TemplateSet.prototype._compileTemplate = function _compileTemplate(name, templat
61836175
export { App, Component, EventBus, OwlError, __info__, batched, 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 };
61846176

61856177

6186-
__info__.date = '2025-01-15T10:40:24.184Z';
6187-
__info__.hash = 'a9be149';
6178+
__info__.date = '2025-03-05T08:37:58.580Z';
6179+
__info__.hash = '2b5cea9';
61886180
__info__.url = 'https://github.com/odoo/owl';

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@odoo/owl",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "Odoo Web Library (OWL)",
55
"main": "dist/owl.cjs.js",
66
"module": "dist/owl.es.js",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// do not modify manually. This file is generated by the release script.
2-
export const version = "2.6.0";
2+
export const version = "2.6.1";

0 commit comments

Comments
 (0)