From a4ed6fa5bd60d0e5b68da9aa1f3e894135e1ac4d Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Fri, 16 Jan 2026 00:14:54 -0800 Subject: [PATCH 1/7] ci: Publish to npm registry alongside GH packages registry --- .github/workflows/publish.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e623306..9c51982 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,7 @@ on: permissions: contents: read packages: write + id-token: write jobs: publish: @@ -38,3 +39,14 @@ jobs: run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Prepare Node.js environment for npm registry + uses: actions/setup-node@v6 + with: + node-version-file: .node-version + registry-url: https://registry.npmjs.org/ + + - name: Publish package to npm registry + run: npm publish --access public --provenance + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 41e3dd9d824feaab9dac1ac7eb4af9b1b0ebd069 Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Fri, 16 Jan 2026 16:31:45 -0800 Subject: [PATCH 2/7] Remove usage of NPM_TOKEN --- .github/workflows/publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9c51982..5a8d2ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,5 +48,3 @@ jobs: - name: Publish package to npm registry run: npm publish --access public --provenance - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 1269b7f7150505c428685cee362922e5e0283551 Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Fri, 16 Jan 2026 17:36:27 -0800 Subject: [PATCH 3/7] Remove unreleased section from changelog --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4e9c77..c153bc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,3 @@ This file documents all notable changes, following the [Keep a Changelog](https: ### Features * Port React Compiler tracker from todoist-web ([#6](https://github.com/Doist/react-compiler-tracker/issues/6)) ([8e8ec3b](https://github.com/Doist/react-compiler-tracker/commit/8e8ec3be05a9738aca7215d98f9d2e83ef59378c)) - -## [Unreleased] - -- From 3fef892504e1310fc4e9356b85bb3754d3252e33 Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Fri, 16 Jan 2026 17:41:29 -0800 Subject: [PATCH 4/7] feat(ci): Support Node.js 22 and 24 LTS versions Update engines field to explicitly target LTS versions only: - ^22.22.0: Node 22 LTS (current Active LTS) - >=24.13.0: Node 24 LTS and future versions This excludes Node 23 (non-LTS "Current" release). Co-Authored-By: Claude Opus 4.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 874699d..08bf020 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "homepage": "https://github.com/Doist/react-compiler-tracker#readme", "engines": { - "node": ">=22" + "node": "^22.22.0 || >=24.13.0" }, "files": [ "dist", From 2805e8b1540875dad98e287306b2c8e9575f6b6c Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Fri, 16 Jan 2026 17:42:09 -0800 Subject: [PATCH 5/7] chore: Include CHANGELOG.md in published package Add CHANGELOG.md to the files array so users can see the version history when they install the package. Co-Authored-By: Claude Opus 4.5 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 08bf020..b5c0ce6 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "files": [ "dist", "README.md", - "LICENSE" + "LICENSE", + "CHANGELOG.md" ], "lint-staged": { "*.{js,ts,mjs,mts,json,md}": "biome check --write --no-errors-on-unmatched" From 88687f064693ca9af11e0cea751f8d819d364287 Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Fri, 16 Jan 2026 17:42:30 -0800 Subject: [PATCH 6/7] docs: Add badges and simplify README introduction - Add npm version, license, and Node.js version badges - Rewrite opening paragraphs for clarity and conciseness Co-Authored-By: Claude Opus 4.5 --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a10cc22..9fbd3bb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ # React Compiler Tracker -While it's safe to opt out of using memoization hooks such as `useCallback` and `useMemo` in code optimized by the [React Compiler](https://react.dev/learn/react-compiler), it is easy to introduce violations that cause the compiler to bail out, leading to performance issues when values are not memoized. +[![npm version](https://img.shields.io/npm/v/@doist/react-compiler-tracker)](https://www.npmjs.com/package/@doist/react-compiler-tracker) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Node.js](https://img.shields.io/node/v/@doist/react-compiler-tracker)](https://nodejs.org/) -Designed to run as a part of Git hooks and CI, this tool helps prevent this and progressively adopt the React Compiler by tracking and warning against newly introduced compilation errors. It maintains a `.react-compiler-tracker.json` record file to track known compiler errors per file. +The [React Compiler](https://react.dev/learn/react-compiler) automatically memoizes your components, eliminating the need for `useCallback` and `useMemo`. However, certain code patterns cause the compiler to bail out. When this happens, your components lose automatic optimization, potentially causing performance regressions. + +Designed for Git hooks and CI, this tool tracks compiler errors in a `.react-compiler-tracker.json` file and prevents regressions by warning when new violations are introduced. ## Prerequisites From 88d89333360349d0c3a55bc2a2bbc1e30bec06d2 Mon Sep 17 00:00:00 2001 From: Frankie Yan Date: Sat, 17 Jan 2026 18:16:36 -0800 Subject: [PATCH 7/7] docs: Add attribution to esplint and react-compiler-marker Co-Authored-By: Claude Opus 4.5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fbd3bb..1b4eb72 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The [React Compiler](https://react.dev/learn/react-compiler) automatically memoizes your components, eliminating the need for `useCallback` and `useMemo`. However, certain code patterns cause the compiler to bail out. When this happens, your components lose automatic optimization, potentially causing performance regressions. -Designed for Git hooks and CI, this tool tracks compiler errors in a `.react-compiler-tracker.json` file and prevents regressions by warning when new violations are introduced. +Inspired by [esplint](https://github.com/hjylewis/esplint) and [react-compiler-marker](https://github.com/blazejkustra/react-compiler-marker), this tool tracks compiler errors in a `.react-compiler-tracker.json` file and integrates with Git hooks and CI to prevent new violations from being introduced. ## Prerequisites