Skip to content

Commit 26c7856

Browse files
committed
[REL] v2.4.1
# v2.4.1 - [FIX] app: make subroots more robust - [IMP] devtools: show objects class name and add special extension cases - [IMP] devtools: allow expansion of empty class - [IMP] Bump support for Node 20+
1 parent b8d09e5 commit 26c7856

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

docs/owl.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,12 @@ function collectionsProxyHandler(target, callback, targetRawType) {
22702270
}
22712271

22722272
let currentNode = null;
2273+
function saveCurrent() {
2274+
let n = currentNode;
2275+
return () => {
2276+
currentNode = n;
2277+
};
2278+
}
22732279
function getCurrent() {
22742280
if (!currentNode) {
22752281
throw new OwlError("No active component (a hook function should only be called in 'setup')");
@@ -5557,7 +5563,7 @@ function compile(template, options = {}) {
55575563
}
55585564

55595565
// do not modify manually. This file is generated by the release script.
5560-
const version = "2.4.0";
5566+
const version = "2.4.1";
55615567

55625568
// -----------------------------------------------------------------------------
55635569
// Scheduler
@@ -5568,6 +5574,7 @@ class Scheduler {
55685574
this.frame = 0;
55695575
this.delayedRenders = [];
55705576
this.cancelledNodes = new Set();
5577+
this.processing = false;
55715578
this.requestAnimationFrame = Scheduler.requestAnimationFrame;
55725579
}
55735580
addFiber(fiber) {
@@ -5598,6 +5605,10 @@ class Scheduler {
55985605
}
55995606
}
56005607
processTasks() {
5608+
if (this.processing) {
5609+
return;
5610+
}
5611+
this.processing = true;
56015612
this.frame = 0;
56025613
for (let node of this.cancelledNodes) {
56035614
node._destroy();
@@ -5611,6 +5622,7 @@ class Scheduler {
56115622
this.tasks.delete(task);
56125623
}
56135624
}
5625+
this.processing = false;
56145626
}
56155627
processFiber(fiber) {
56165628
if (fiber.root !== fiber) {
@@ -5686,7 +5698,9 @@ class App extends TemplateSet {
56865698
if (config.env) {
56875699
this.env = config.env;
56885700
}
5701+
const restore = saveCurrent();
56895702
const node = this.makeNode(Root, props);
5703+
restore();
56905704
if (config.env) {
56915705
this.env = env;
56925706
}
@@ -6018,6 +6032,6 @@ TemplateSet.prototype._compileTemplate = function _compileTemplate(name, templat
60186032
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 };
60196033

60206034

6021-
__info__.date = '2024-09-30T08:49:29.420Z';
6022-
__info__.hash = 'eb2b32a';
6035+
__info__.date = '2024-10-31T09:42:30.824Z';
6036+
__info__.hash = 'b8d09e5';
60236037
__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.4.0",
3+
"version": "2.4.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.4.0";
2+
export const version = "2.4.1";

tools/release.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ async function startRelease() {
140140
}
141141

142142
// ---------------------------------------------------------------------------
143-
144143
log(`Step ${step++}/${STEPS}: Creating the release...`);
145144
const relaseResult = await execCommand(`gh release create v${next} dist/*.js dist/*.zip ${draft} -F ${file}`);
146145
if (relaseResult !== 0) {

0 commit comments

Comments
 (0)