Repository navigation
Bump the axios resolution of the wazuh plugin to 1.18.1 and Node.js to 22.23.4 - #9666
Conversation
Align the pinned axios version with the Wazuh dashboard platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Match the Node.js version of the Wazuh dashboard 5.0.0 platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
|
|
|
|
|
Approve: the Tested Requirements
Follow-up (not blocking)
Before / after
Checks
|
rodrigofez
left a comment
There was a problem hiding this comment.
Approve: the wazuh plugin's axios pin matches the platform's 1.18.1, and requests and errors still work. Details: #9666 (comment)
Checks runTested |
Ripdiegozz
left a comment
There was a problem hiding this comment.
Approve: the wazuh plugin pins axios 1.18.1, its browser bundle embeds it, and Dev Tools requests and errors work from the UI. Details: #9666 (comment)









Description
Companion to wazuh/wazuh-dashboard#1771, which bumps
axiosto1.18.1in the Wazuh dashboard5.0.0platform. Thewazuhplugin (plugins/main) pinsaxiosto1.15.2throughresolutions, which forces the version used by its own dependency tree (swagger-client→@swagger-api/apidom-reference, which already requestsaxios@^1.16.0) and by the browser bundle that compiles thepublic/imports. This PR aligns that pin with the platform.Related to wazuh/wazuh-dashboard#1770
Proposed Changes
axiosresolution inplugins/main/package.jsonfrom1.15.2to1.18.1, the version shipped by the platform, OpenSearch Dashboards 3.8.0+ and the4.14.xline.plugins/main/yarn.lock:axios1.18.1, with its newfollow-redirects@^1.16.0(pinned to1.16.0, matching the platform, instead of the newest1.16.3released this month) andhttps-proxy-agent@^5.0.1(already present at5.0.1) requirements.axiosAPIs used by the plugin (axios(config),axios.CancelToken.source(),axios.isAxiosError(),AxiosError/AxiosResponsetypes) are unchanged in1.18.1.wazuh-coreandwazuh-check-updatesdon't declareaxios; they resolve it from the platform, so they're covered by Bump axios to 1.18.1 wazuh-dashboard#1771.22.22.0to22.23.4in.nvmrc, matching the Wazuh dashboard5.0.0platform (Upgrade Node.js to 22.23.4 wazuh-dashboard#1755). The linter workflows read it throughnode-version-file, and the docs that mention it (CLAUDE.md,plugins/wazuh-ai-assistant/README.md) are updated. Thedocker/osd-devenvironment already derivesNODE_VERSIONfrom the platform base's.nvmrc.axiosonly feeds the build-time dependency tree (swagger-clientis a dev dependency) and is not installed in the production plugin package, and the bundled Node.js runtime change is already recorded in the platform changelog.Results and Evidence
Resolved lockfile entries in
plugins/main/yarn.lock:Lockfile is consistent:
axiosAPIs used by the plugin are available in the installed version:Before this change the compiled browser bundle (
target/public/wazuh.plugin.js) embedsVERSION = "1.15.2", taken from this pinned copy.Artifacts Affected
wazuhplugin browser bundle (theaxioscopy compiled from thepublic/imports).Configuration Changes
None.
Documentation Updates
None.
Tests Introduced
None. Dependency bump with no source changes; the existing unit tests mock
axios.Review Checklist
no-changelog)request-handler.js) and error handling work in the dev environment🤖 Generated with Claude Code