From c35a8ffa01cf8c922f8252e9fcfcae8932dd08a9 Mon Sep 17 00:00:00 2001 From: Dan McGrath Date: Thu, 19 Dec 2024 10:46:27 -0500 Subject: [PATCH 1/6] chore: update github actions --- .github/workflows/ci.yml | 27 +++++---------------------- .github/workflows/release.yml | 4 ++-- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2506471..9a93b39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,42 +10,25 @@ on: jobs: build: - runs-on: ${{ matrix.os }} strategy: matrix: # TODO(68): Add `windows-latest` and support. os: [ubuntu-latest] - node-version: [14.x, 16.x, 18.x] + node-version: [18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - # Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux. - - name: Get Yarn cache directory - if: runner.os != 'Windows' - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Use Yarn cache - if: runner.os != 'Windows' - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - yarn-${{ runner.os }}-${{ matrix.node-version }}- - yarn-${{ runner.os }}- + cache: "yarn" - name: Use node_modules cache id: node-modules-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27e2461..191a863 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,8 @@ jobs: packages: write pull-requests: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 From 408f7d909bd413b63a29ab42a168caa4e6269765 Mon Sep 17 00:00:00 2001 From: Dan McGrath Date: Fri, 10 Jan 2025 10:49:51 -0500 Subject: [PATCH 2/6] chore: update README --- README.md | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7c58da2..3734587 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,27 @@ -[![Webpack Stats Plugin — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/webpack-stats-plugin/master/webpack-stats-plugin-Hero.png)](https://formidable.com/open-source/) - -[![npm version][npm_img]][npm_site] -[![Actions Status][actions_img]][actions_site] -[![MIT license][lic_img]][lic_site] -[![Maintenance Status][maintenance_image]](#maintenance-status) + + Victory — Formidable, We build the modern web + + +
+
+ +

+ + weekly downloads + + + current version + + + build status + + + Maintenance Status + + + license + +

This plugin will ingest the webpack [stats](https://webpack.js.org/configuration/stats/#stats) object, process / transform the object and write out to a file for further consumption. @@ -199,7 +217,7 @@ In earlier webpack, the plugin uses the much later [`emit`](https://webpack.js.o ## Maintenance Status -**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome. +**Active:** NearForm is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome. [npm_img]: https://badge.fury.io/js/webpack-stats-plugin.svg [npm_site]: http://badge.fury.io/js/webpack-stats-plugin From 1def34db9c69dcca65e55c7d157ae7129691466e Mon Sep 17 00:00:00 2001 From: Dan McGrath Date: Fri, 10 Jan 2025 10:54:44 -0500 Subject: [PATCH 3/6] ci: remove matrix and run on node 18 exclusively --- .github/workflows/ci.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a93b39..cf4e523 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,20 +10,14 @@ on: jobs: build: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - # TODO(68): Add `windows-latest` and support. - os: [ubuntu-latest] - node-version: [18.x] + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 18 cache: "yarn" - name: Use node_modules cache @@ -31,9 +25,8 @@ jobs: uses: actions/cache@v4 with: path: node_modules - key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} + key: node-modules-${{ runner.os }}-${{ hashFiles('./yarn.lock') }} restore-keys: | - node-modules-${{ runner.os }}-${{ matrix.node-version }}- node-modules-${{ runner.os }}- - name: Project installation @@ -47,7 +40,3 @@ jobs: - name: Checks run: yarn run check - env: - # Webpack fails due to crypto enforcements in Node 17+ - # See, e.g., https://github.com/webpack/webpack/issues/14532 - NODE_OPTIONS: ${{ matrix.node-version == '18.x' && '--openssl-legacy-provider' || '' }} From 42baa1eea2bc74dec01bef878e9566c7804d84f8 Mon Sep 17 00:00:00 2001 From: Dan McGrath Date: Fri, 10 Jan 2025 11:09:32 -0500 Subject: [PATCH 4/6] fix: add back --openssl-legacy-provider node flag --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf4e523..cbc3141 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,7 @@ jobs: - name: Checks run: yarn run check + env: + # Webpack fails due to crypto enforcements in Node 17+ + # See, e.g., https://github.com/webpack/webpack/issues/14532 + NODE_OPTIONS: "--openssl-legacy-provider" From 45ac32b879d7e115ef7f0940cb3c64da56826b24 Mon Sep 17 00:00:00 2001 From: Dan McGrath Date: Fri, 10 Jan 2025 11:25:48 -0500 Subject: [PATCH 5/6] chore: clean up badges in README --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3734587..978446e 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ build status - Maintenance Status + Maintenance Status - license + license

@@ -218,11 +218,3 @@ In earlier webpack, the plugin uses the much later [`emit`](https://webpack.js.o ## Maintenance Status **Active:** NearForm is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome. - -[npm_img]: https://badge.fury.io/js/webpack-stats-plugin.svg -[npm_site]: http://badge.fury.io/js/webpack-stats-plugin -[actions_img]: https://github.com/FormidableLabs/webpack-stats-plugin/workflows/CI/badge.svg -[actions_site]: https://github.com/FormidableLabs/webpack-stats-plugin/actions -[lic_img]: https://img.shields.io/npm/l/webpack-stats-plugin.svg?color=brightgreen&style=flat -[lic_site]: https://github.com/FormidableLabs/webpack-stats-plugin/blob/main/LICENSE.txt -[maintenance_image]: https://img.shields.io/badge/maintenance-active-green.svg?color=brightgreen&style=flat From 984fe5391d65036675b2fbdca21451bd14426027 Mon Sep 17 00:00:00 2001 From: Dan McGrath Date: Fri, 10 Jan 2025 11:27:28 -0500 Subject: [PATCH 6/6] chore: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 978446e..86d0a6f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ - Victory — Formidable, We build the modern web + Webpack Stats Plugin