Skip to content

Update: npm dependencies to latest compatible versions#610

Open
sagarjadhav wants to merge 2 commits intomainfrom
feature/udpate-npm-dependencies
Open

Update: npm dependencies to latest compatible versions#610
sagarjadhav wants to merge 2 commits intomainfrom
feature/udpate-npm-dependencies

Conversation

@sagarjadhav
Copy link
Contributor

@sagarjadhav sagarjadhav commented Feb 27, 2026

Description

This PR updates and aligns project dependencies to maintain compatibility with the current development ecosystem and ensure overall build stability.

No functional or UI changes are introduced.


Technical Details

Updated Runtime Dependency

  • @wordpress/interactivity: 6.39.0 → 6.40.0

Updated WordPress Tooling (devDependencies)

  • @wordpress/babel-preset-default: 8.39.0 → 8.40.0
  • @wordpress/browserslist-config: 6.39.0 → 6.40.0
  • @wordpress/env: 10.39.0 → 11.0.0
  • @wordpress/eslint-plugin: 24.1.0 → 24.2.0
  • @wordpress/jest-preset-default: 12.39.0 → 12.40.0
  • @wordpress/scripts: 31.4.0 → 31.5.0

Updated Tooling / Linting Stack

  • eslint: 9.39.2 → 10.0.2
  • eslint-plugin-jest: 29.12.1 → 29.15.0

Notes

  • All @wordpress/* packages were upgraded together to maintain version alignment.
  • @wordpress/env was upgraded to a new major version (11.0.0) and validated locally.
  • ESLint major upgrade (v10) was verified against the current @wordpress/scripts setup.
  • webpack-dev-server override (^5.2.1) remains unchanged.
  • --experimental-modules flag remains in use and was validated during build.

Validation Performed

  • Clean install with regenerated lockfile
  • npm run build:dev
  • npm run build:prod
  • npm run lint:all
  • npm run test:js
  • PHP tests via wp-env
  • Manual verification of editor and frontend rendering
  • Console checked for runtime warnings/errors

No regressions observed.


Checklist

  • Updated @wordpress/interactivity
  • Updated all @wordpress/* devDependencies in sync
  • Upgraded @wordpress/env to v11
  • Upgraded ESLint to v10
  • Validated development build
  • Validated production build
  • Verified lint passes
  • Verified JS tests
  • Verified PHP tests
  • Confirmed editor and frontend stability
  • Regenerated package-lock.json

Screenshots

Not applicable — no UI or functional changes.


Fixes/Covers issue

Fixes #609

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on maintaining the project's health by updating its npm dependencies. By bringing various @wordpress packages and development tools like eslint up to their latest compatible versions, the project can leverage recent improvements, bug fixes, and security enhancements, ensuring a more stable and modern development environment.

Highlights

  • Dependency Updates: Upgraded several @wordpress packages, eslint, and eslint-plugin-jest to their latest compatible versions.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • package.json
    • Updated @wordpress/interactivity to 6.40.0.
    • Updated @wordpress/babel-preset-default to 8.40.0.
    • Updated @wordpress/browserslist-config to 6.40.0.
    • Updated @wordpress/env to 11.0.0.
    • Updated @wordpress/eslint-plugin to 24.2.0.
    • Updated @wordpress/jest-preset-default to 12.40.0.
    • Updated @wordpress/scripts to 31.5.0.
    • Updated eslint to 10.0.2.
    • Updated eslint-plugin-jest to 29.15.0.
Activity
  • The pull request was opened by sagarjadhav.
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates npm dependencies, including major version bumps for @wordpress/env and eslint. Major version updates can introduce breaking changes. The associated risks and lack of information about compatibility testing are highlighted in the review comments. It is crucial to ensure these updates do not disrupt the development workflow or CI pipeline.

package.json Outdated
"@wordpress/scripts": "31.4.0",
"@wordpress/babel-preset-default": "8.40.0",
"@wordpress/browserslist-config": "6.40.0",
"@wordpress/env": "11.0.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The major version update of @wordpress/env from v10 to v11 introduces a high risk of breaking the local development environment due to potential breaking changes. To ensure a smooth transition, it's important to also include any necessary configuration updates and summarize the impact and testing in the PR description.

package.json Outdated
"cross-env": "10.1.0",
"css-minimizer-webpack-plugin": "7.0.4",
"eslint": "9.39.2",
"eslint": "10.0.2",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating eslint across a major version (v9 to v10) can introduce breaking changes and new rules. This can affect the CI/CD pipeline and developer workflow. To mitigate this risk, please include any necessary updates to the ESLint configuration and provide context on the changes in the PR description.

@sagarjadhav sagarjadhav self-assigned this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chore: audit and update npm dependencies to latest compatible versions

1 participant