Repository navigation
chore(deps): update dependencies - #1360
Merged
Merged
Conversation
Agent skills are installed from skills-lock.json, while the installed copies in .agents and .claude stay out of git, as in the other Trigen repositories. AGENTS.md describes what matters in this repository; CLAUDE.md points to it.
pnpm 12 reads build script approvals from allowBuilds instead of onlyBuiltDependencies.
Every job takes Node.js from .tool-versions and pnpm 12, actions are pinned to release commits, which renovate keeps current, and the token of a run only reads unless a job needs more. Tests run as separate types, lint and unit jobs; checks add package.json linting; commitlint runs from the repository; the release job is ready for npm trusted publishing.
The big-lib preset runs the bundle in headless Chrome, which no longer works; the small-lib preset measures what a consumer ships, for the whole package and for single components, with limits pinned on a 50 B step.
The description ends with a period and the homepage, now the documentation website, follows the license.
The react-chartjs-2 tag on Stack Overflow gets no new questions since 2025. The bug report now points to the StackBlitz sandbox.
Vite builds the same ESM and CommonJS entries that rollup with swc did, unminified and for modern targets, so the pure annotations reach the bundlers of consumers. Declarations are emitted from tsconfig.build.json, and the scripts follow the Trigen baseline.
Specs live beside the code they test, and tsd type tests become @ts-expect-error cases in them, checked by tsc and by Vitest typecheck.
Addons that moved into the core are dropped, the config is ESM TypeScript, and the scripts are named as in the other Trigen repositories: storybook and storybook:build. chartjs-plugin-zoom 3 ships ESM types that the stories need.
Stories are type-checked with the rest of the code now, so a change of the component types that breaks a usage shows up in test:types.
Claude Code reads AGENTS.md by itself.
The sandboxes were a separate pnpm workspace with their own lockfile, so they got another copy of Chart.js and ran on the package from npm. In the root workspace they share one install and run on the sources of the package; StackBlitz still installs each one with its own package.json from npm.
The sandboxes resolve the package to its sources through the workspace now.
ESLint with the standard config and Prettier are replaced by oxlint with @trigen/oxlint-config: base, module, React, type-checked TypeScript, test and Storybook configs, with type-aware rules and type checking on. oxlint --fix also formats, so Prettier is gone. Sample data in sandboxes and stories may use plain numbers and log to the console.
MutableRefObject is deprecated in React 19 types. RefObject<T | null> accepts the same refs: useRef(null) results with any @types/react version from the peer range.
The code follows the Trigen style now. Besides formatting: props of elements are ordered, helpers that capture nothing move to the module scope, and stories import types first.
Everything moves to its latest major: TypeScript 7, Vite 8 (lib options under rolldownOptions), Vitest 5, React 19.3, Chart.js 4.6, commitlint 21, size-limit 14 and others. faker 5 is unmaintained: stories and sandboxes use @faker-js/faker. Sandboxes drop TypeScript, which none of their scripts runs. size-limit 14 measures with another bundler and minifier: the same build of the package weighs about 115 B more by it (a Vite 7 build measures 979 B, the Vite 8 one 973 B), so the limits are pinned again.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1360 +/- ##
=======================================
Coverage 93.97% 93.97%
=======================================
Files 3 3
Lines 83 83
Branches 20 20
=======================================
Hits 78 78
Misses 3 3
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Stories import the sandboxes, which import react-chartjs-2 by name: without an install of the sandboxes, as in CI, tsc maps the name to the sources.
The sandboxes resolve the package to its sources through the workspace now.
This was referenced Nov 30, 2026
# Conflicts: # src/typedCharts.spec.tsx
With empty datasets Chart.js never looks up the controller, so the tests passed even without the controller registration. Each test now checks one behavior.
# Conflicts: # src/typedCharts.spec.tsx
dangreen
marked this pull request as ready for review
November 30, 2026 15:52
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 7 of the tooling stack. Based on master (#1354–#1359 are merged).
What
Every dependency moves to its latest version:
@vitejs/plugin-react@types/node@faker-js/fakerin stories and the 13 sandboxes that use it; the 4 that never did (pie, doughnut, polar area, radar) drop the dependency (faker.number.int,faker.color.rgb,faker.helpers.arrayElement); faker 5 is unmaintained. This supersedes renovate's fix(deps): replace dependency faker with @faker-js/faker - autoclosed #1348.typescript: none of their scripts runs it (Vite builds TSX itself), and StackBlitz brings its own language service.build.rolldownOptions(withtopLevelVar: false, as in the references, andstrict: true: rolldown adds"use strict"to CommonJS only when the sources have it, and the CommonJS build was always strict).peerDependenciesof the package are unchanged.Size limits
size-limit 14 bundles and minifies with another toolchain, so the same code measures more. To be sure the code did not grow, a Vite 7 build of the same sources was measured with size-limit 14: 979 B, against 973 B for the Vite 8 build. Limits are pinned again on the 50 B step: all publics 1 kB (973 B),
Chart600 B (582 B),Line650 B (636 B), event helper 100 B (99 B).Checked locally
pnpm test(oxlint with type checking on TS 7, 50 unit tests, Vitest typecheck,tsc --noEmit),pnpm build,pnpm test:size.require('./dist/index.cjs')andimport('./dist/index.js')in Node 26 export the same 12 names.pnpm prepublishOnly: the cleanedpackage/package.jsonhas the samemain,module,exportsandtypesas the current release.pnpm storybook:build; all 21 stories render a painted chart in headless Chrome with no console errors.pnpm sandboxes:build(17/17),pnpm peers check(no issues).Merging
GitHub could not rebase this branch after #1359 was squash-merged, so master is merged into it instead (the trees were identical, so the merge changes nothing). Its commit list therefore also shows the commits of the merged PRs. When squash-merging, keep only this PR's own commits in the message:
chore(deps): update dependenciesandchore(deps): drop faker from sandboxes that do not use it.Stack
🤖 Generated with Claude Code