Skip to content

Commit

Permalink
[IMP] tooling: makes 16.11 the minimum required Node.js version
Browse files Browse the repository at this point in the history
Starting with Odoo 16.1, the ECMAScript version supported by Odoo has
been bumped to ES2022, but support for all ES2022 features has only been
achieved with Node.js 16.11*, making it the minimum required version to
run Odoo.

This commit updates the package.json to make this requirement explicit,
preventing from using the tooling with an outdated version of Node.js,
which would otherwise result in an unclear syntax error.

*: From all the features added in ES2022, support for static
initialization blocks is the latest to have been added, in Node.js
16.11, according to MDN's compatibility data.

closes odoo#163881

X-original-commit: d4b90e8
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
  • Loading branch information
oomsveta committed Apr 30, 2024
1 parent 407b335 commit 8441240
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/web/tooling/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
"*.js": [
"eslint --fix"
]
},
"engines": {
"node": ">= 16.11.0"
}
}

0 comments on commit 8441240

Please sign in to comment.