Skip to:
Content

BuddyPress.org

Ticket #9253: node22-issues.patch

File node22-issues.patch, 2.9 KB (added by SirLouen, 8 months ago)

Patch to edit Node20+ references

  • docs/contributor/code/README.md

    diff --git docs/contributor/code/README.md docs/contributor/code/README.md
    index 09412ef27..084ab0ca5 100644
    If you prefer Git and you’ve chosen a different text editor than Visual Studio 
    2929
    3030You probably won’t need all the tools listed below when you start contributing to BuddyPress. You can choose only to install NodeJS and install the other tools once you need them.
    3131
    32 - [NodeJS latest LTS version](https://nodejs.org/en/) ([download links](https://nodejs.org/en/download/)). **Required**.
     32- [ONLY SUPPORTED Node.js 20 LTS or 21 versions](https://nodejs.org/en/) ([download links](https://nodejs.org/en/download/)). **Required**.
    3333- [GruntJS](https://gruntjs.com/) ([Installation procedure for the CLI](https://gruntjs.com/getting-started#installing-the-cli)) *[1]*.
    3434- [Composer](https://getcomposer.org/) ([Installation procedure](https://getcomposer.org/download/)) *[2]*. Once installed we advise you to make it globally available under the command name `composer`.
    3535- [WP CLI](https://wp-cli.org/) ([Installation procedure](https://wp-cli.org/#installing)) *[3]*. Once installed we advise you to make it globally available under the command name `wp`.
    If you move to the `~/Plugins/buddypress` directory once the download has finish 
    8383
    8484## Install our default local development environment
    8585
    86 The BuddyPress development version you just downloaded contains the [@wordpress/env](https://developer.wordpress.org/block-editor/packages/packages-env/) package to generate a local environment using [NodeJS (latest LTS version)](https://nodejs.org/en/) and [Docker](https://www.docker.com/). To install Docker, please follow the instructions listed below according to your operating system:
     86The BuddyPress development version you just downloaded contains the [@wordpress/env](https://developer.wordpress.org/block-editor/packages/packages-env/) package to generate a local environment using [Node.js (ONLY 20 LTS or 21 versions)](https://nodejs.org/en/) and [Docker](https://www.docker.com/). To install Docker, please follow the instructions listed below according to your operating system:
    8787
    8888- [Windows 10 Pro](https://docs.docker.com/docker-for-windows/install/),
    8989- [all other versions of Windows](https://docs.docker.com/toolbox/toolbox_install_windows/),
  • npm-shrinkwrap.json

    diff --git npm-shrinkwrap.json npm-shrinkwrap.json
    index b1cf03f42..ac9533936 100644
     
    4141                                "stylelint": "~13.13.1"
    4242                        },
    4343                        "engines": {
    44                                 "node": ">=20.10.0",
     44                                "node": ">=20.0.0 <22.0.0",
    4545                                "npm": ">=10.2.3"
    4646                        }
    4747                },
  • package.json

    diff --git package.json package.json
    index 69ab248cb..db4918546 100644
     
    3737                "stylelint": "~13.13.1"
    3838        },
    3939        "engines": {
    40                 "node": ">=20.10.0",
     40                "node": ">=20.0.0 <22.0.0",
    4141                "npm": ">=10.2.3"
    4242        },
    4343        "scripts": {