Repository navigation
Bump Node.js to 22.23.4 in 4.10.6 - #9674
Merged
Merged
Conversation
Align with the Node.js version used by wazuh-dashboard 4.14.11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> (cherry picked from commit 736fffc)
…s 22 eslint-plugin-filenames-simple 0.8.0 declares engines.node "^14.17.0 || ^16.0.0 || ^18.0.0", so yarn install fails on Node.js 22.23.4. 0.9.0 declares ">=14.17.0" and is the version 5.0.0 uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> (cherry picked from commit 3c8d888)
4 of 7 tasks
Member
Author
|
Package builds launched with
Both builds download and bundle Inputs: |
Member
Author
6 tasks done
6 tasks done
Ripdiegozz
approved these changes
Nov 24, 2026
Ripdiegozz
left a comment
Contributor
There was a problem hiding this comment.
Approve: the plugins install on Node.js 22.23.4, and the package built with this branch upgrades fine from 4.10.5. Checks in wazuh/wazuh-dashboard#1776 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
























Description
Backport of #9592 to 4.10.6. Aligns the plugins with the Node.js 22.23.4 bump of wazuh-dashboard 4.10.6.
.nvmrc:18.19.0→22.23.4.eslint-plugin-filenames-simplefrom^0.8.0to^0.9.0inplugins/main,plugins/wazuh-coreandplugins/wazuh-check-updates(yarn.lockof each plugin updated). Version 0.8.0 declares anenginesrange that excludes Node.js 22, soyarnfails to install the dependencies.CHANGELOG.md: entry under 4.10.6.Differences with #9592:
Fix changelogcommit of Bump Node.js to 22.23.4 in 4.14.11 #9592 is not included: it only fixed 4.14.x headings.lodash@>=4.18.1key that Bump Node.js to 22.23.4 in 4.14.11 #9592 added toplugins/main/yarn.lockis not included. It came from alodashresolution that exists in 4.14.11 but not in 4.10.6.No runtime code changes.
Companion PR: wazuh/wazuh-dashboard#1776.
Issues Resolved
Related to wazuh/wazuh-dashboard#1757
Evidence
Node.js 22.23.4, wazuh-dashboard on the companion branch
fix/1757-node-22.23.4.yarn install --frozen-lockfilewith Node.js 22.23.4 finishes without the engines error:yarn test:jest:plugins/wazuh-coreplugins/wazuh-check-updatesplugins/mainNone of the failures come from this change:
DateFormatter(server/lib/generate-alerts/helpers/date-formatter.test.js). They depend on the local timezone (run on UTC-3). WithTZ=UTCthey pass:Tests: 59 passed, 59 total.Cannot find module '@hapi/hoek/assert' from '../../node_modules/@hapi/validate/lib/index.js'. Same error with Node.js 18.19.0. It comes from the@hapi/inert7.1.2 bump in the platform (wazuh/wazuh-dashboard#12967), which added the@hapi/hoekmapping only to the platform Jest config.Packages
Packages from https://github.com/wazuh/wazuh-dashboard/actions/runs/44369361923 (RPM) and https://github.com/wazuh/wazuh-dashboard/actions/runs/44369354715 (DEB), tested in x86_64 containers with systemd (AlmaLinux 9 for the RPM, Ubuntu 22.04 for the DEB) on top of a Wazuh 4.10.5 all-in-one installed with
wazuh-install.sh -a.wazuh-dashboard-4.10.6-0.x86_64wazuh-dashboard 4.10.6-0 amd64dnf localinstall/apt-get install)/usr/share/wazuh-dashboard/node/bin/node --versionv18.19.0→v22.23.4v18.19.0→v22.23.4--max-semi-space-size=64opensearch_dashboards.yml,opensearch_dashboards.keystore,wazuh.ymlunchanged (md5)opensearch.username,opensearch.password)/api/request→GET /agents)dateFormat:dow,timepicker:timeDefaults)/api/statusoverallEvery app was loaded with headless Chrome (49 pages): all the Wazuh apps (Overview, Configuration Assessment, Malware Detection, FIM, Threat Hunting, Vulnerability Detection, MITRE ATT&CK, PCI DSS, GDPR, HIPAA, NIST 800-53, TSC, Docker, AWS, Google Cloud, GitHub, Office 365, Endpoints, Groups, Rules, Decoders, CDB lists, Status, Cluster, Statistics, Logs, Settings, Dev Tools, Ruleset Test, Security, Sample Data, Reporting, Server APIs, App Settings, About) and the platform ones (Discover, Dashboards and the dashboard created on 4.10.5, Visualize, Console, Index patterns, Saved objects, Advanced settings, Security users and roles, Alerting, Notifications, Reporting, Index Management). The check looks for danger toasts and callouts, error prompts, "app not found", uncaught JS exceptions and HTTP 5xx responses.
TypeError: Cannot read properties of undefined (reading 'id') at WzMenu.loadIndexPatternsListonce on the RPM and once on the DEB. The page rendered normally. It did not happen again in 8 more loads, including first loads after a restart on both 4.10.5 and 4.10.6. This frontend code is the same as in 4.10.5 (list[0].idwhen the index pattern list comes back empty), so it looks like an existing race on the first load and not a Node.js regression.Test
nvm usein the repository (Node.js 22.23.4) and install the dependencies ofplugins/main,plugins/wazuh-coreandplugins/wazuh-check-updateswithyarn. The install must finish without theeslint-plugin-filenames-simpleengines error.yarn test:jestin each plugin, withTZ=UTC.Check List
yarn test:jest(failures listed above happen without this change too)🤖 Generated with Claude Code