Skip to content

Commit

Permalink
Packages: Update the minimum required Node.js version to 14 for tools (
Browse files Browse the repository at this point in the history
…#43141)

* Packages: Update the minimum required Node.js version to 14

* Stop running GitHub workflows on Node 12

* Apply feedback from code review
  • Loading branch information
gziolo authored Aug 12, 2022
1 parent f636f9f commit c9a8a4d
Show file tree
Hide file tree
Showing 60 changed files with 133 additions and 62 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/create-block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
matrix:
node: [14]
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- node: 12
os: ubuntu-latest

steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['12', '14']
node: ['14']

steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/babel-plugin-import-jsx-pragma/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 3.0.0 (2021-01-21)

### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-import-jsx-pragma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Install the module to your project using [npm](https://www.npmjs.com/).
npm install @wordpress/babel-plugin-import-jsx-pragma
```

**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-import-jsx-pragma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"files": [
"index.js"
Expand Down
4 changes: 4 additions & 0 deletions packages/babel-plugin-makepot/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 4.0.0 (2021-01-21)

### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-makepot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Install the module:
npm install @wordpress/babel-plugin-makepot --save-dev
```

**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.

## Contributing to this package

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-makepot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"files": [
"index.js"
Expand Down
4 changes: 4 additions & 0 deletions packages/babel-preset-default/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 6.4.0 (2021-11-15)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Install the module
npm install @wordpress/babel-preset-default --save-dev
```

**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.

### Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"files": [
"build",
Expand Down
4 changes: 4 additions & 0 deletions packages/browserslist-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 4.0.0 (2021-05-14)

### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browserslist-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Install the module
$ npm install browserslist @wordpress/browserslist-config --save-dev
```

**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/browserslist-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"files": [
"index.js"
Expand Down
4 changes: 4 additions & 0 deletions packages/create-block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 and minimum npm version to 6.14.4 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 3.6.0 (2022-07-13)

### Enhancement
Expand Down
2 changes: 1 addition & 1 deletion packages/create-block/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ cd todo-list
$ npm start
```

_(requires `node` version `12.0.0` or above, and `npm` version `6.9.0` or above)_
_(requires `node` version `14.0.0` or above, and `npm` version `6.14.4` or above)_

It creates a WordPress plugin that you need to [install manually](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation).

Expand Down
4 changes: 2 additions & 2 deletions packages/create-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12",
"npm": ">=6.9"
"node": ">=14",
"npm": ">=6.14.4"
},
"files": [
"lib"
Expand Down
4 changes: 4 additions & 0 deletions packages/dependency-extraction-webpack-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 3.7.0 (2022-07-13)

### New Features
Expand Down
2 changes: 1 addition & 1 deletion packages/dependency-extraction-webpack-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Install the module
npm install @wordpress/dependency-extraction-webpack-plugin --save-dev
```

**Note**: This package requires Node.js 12.0.0 or later. It also requires webpack 4.8.3 and newer. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It also requires webpack 4.8.3 and newer. It is not compatible with older versions.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/dependency-extraction-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"files": [
"lib",
Expand Down
4 changes: 4 additions & 0 deletions packages/e2e-test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 7.2.0 (2022-04-08)

### Enhancement
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-test-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

End-To-End (E2E) test utils for WordPress.

_It works properly with the minimum version of Gutenberg `9.2.0` or the minimum version of WordPress `5.6.0`._
_It works properly with the minimum version of Gutenberg `13.8.0` or the minimum version of WordPress `6.0.0`._

**Note that there's currently an ongoing [project](https://github.com/WordPress/gutenberg/issues/38851) to migrate E2E tests to Playwright instead. This package is deprecated and will only accept bug fixes until fully migrated.**

Expand All @@ -14,7 +14,7 @@ Install the module
npm install @wordpress/e2e-test-utils --save-dev
```

**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.

## API

Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"files": [
"build",
Expand Down
6 changes: 5 additions & 1 deletion packages/e2e-tests/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

## Unreleased

### Breaking Change

- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).

## 4.0.0 (2022-04-08)

### Breaking Changes

- There's currently an ongoing [project](https://github.com/WordPress/gutenberg/issues/38851) to migrate E2E tests to Playwright instead. This package is deprecated and will only accept bug fixes until fully migrated.
- There's currently an ongoing [project](https://github.com/WordPress/gutenberg/issues/38851) to migrate E2E tests to Playwright instead. This package is deprecated and will only accept bug fixes until fully migrated.

## 3.0.0 (2022-01-27)

Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Debugging in a Chrome browser can be replaced with `vscode`'s debugger by adding

This will run jest, targetting the spec file currently open in the editor. `vscode`'s debugger can now be used to add breakpoints and inspect tests as you would in Chrome DevTools.

**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.

## Contributing to this package

Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=12"
"node": ">=14"
},
"dependencies": {
"@wordpress/e2e-test-utils": "file:../e2e-test-utils",
Expand Down
Loading

0 comments on commit c9a8a4d

Please sign in to comment.