mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] Bump support for Node 20+
This commit bump the support for Node 20+.
This commit is contained in:
committed by
Géry Debongnie
parent
20c6cacb4e
commit
3e11fe6b12
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [20.x, 22.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.18.3"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:bundle": "rollup -c --failAfterWarnings",
|
"build:bundle": "rollup -c --failAfterWarnings",
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ describe("basic validation", () => {
|
|||||||
test("compilation error", () => {
|
test("compilation error", () => {
|
||||||
const template = `<div t-att-class="a b">test</div>`;
|
const template = `<div t-att-class="a b">test</div>`;
|
||||||
expect(() => renderToString(template))
|
expect(() => renderToString(template))
|
||||||
.toThrow(`Failed to compile anonymous template: Unexpected identifier
|
.toThrow(`Failed to compile anonymous template: Unexpected identifier 'ctx'
|
||||||
|
|
||||||
generated code:
|
generated code:
|
||||||
function(app, bdom, helpers) {
|
function(app, bdom, helpers) {
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ describe("basics", () => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
error = e as Error;
|
error = e as Error;
|
||||||
}
|
}
|
||||||
const expectedErrorMessage = `Failed to compile anonymous template: Unexpected identifier
|
const expectedErrorMessage = `Failed to compile anonymous template: Unexpected identifier 'ctx'
|
||||||
|
|
||||||
generated code:
|
generated code:
|
||||||
function(app, bdom, helpers) {
|
function(app, bdom, helpers) {
|
||||||
@@ -182,7 +182,7 @@ function(app, bdom, helpers) {
|
|||||||
static components = { Child };
|
static components = { Child };
|
||||||
static template = xml`<Child/>`;
|
static template = xml`<Child/>`;
|
||||||
}
|
}
|
||||||
const expectedErrorMessage = `Failed to compile anonymous template: Unexpected identifier
|
const expectedErrorMessage = `Failed to compile anonymous template: Unexpected identifier 'ctx'
|
||||||
|
|
||||||
generated code:
|
generated code:
|
||||||
function(app, bdom, helpers) {
|
function(app, bdom, helpers) {
|
||||||
|
|||||||
Reference in New Issue
Block a user