Repository navigation
⬆️ chore(deps): upgrade to ink 8 - #3
Merged
Merged
Conversation
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.
What changed
ink7.1.0 → 8.0.0,react19.2.7 → 19.3.1,@types/react19.2.17 → 19.3.0 (exact pins kept).ink-spinner5.0.0 is already the latest and acceptsink >=4.NODE_ENVat runtime and the shipped CLI loadedreact.development.js.src/index.tsxis now a small bin entry that setsprocess.env.NODE_ENV ??= "production"and thenawait import("./cli.js"); the former entry moved tosrc/cli.tsx. An explicitNODE_ENVis still honoured, andnpm run dev(tsx src/cli.tsx) stays in development mode. Thebinpath (dist/index.js) does not change.Breaking changes met (Ink 8 release notes)
<Box minWidth/maxWidth>numbers only, streams typed as generic Node streams (stdout.columnsgone from the types),useInputdropping unrecognised control sequences: none of these are used here (grep forminWidth|maxWidth|columns|useStdout|useStdin|useStderrfinds nothing).Evidence (local, Node 22.23.5)
npm run typecheck,npm run lint,npx prettier --check .,npm test(12/12),npm run build: all pass.node dist/index.js --helprenders;node dist/index.js addin a pty renders the Ink spinner, then the expected "only runs on macOS" error in this Linux container.NODE_DEBUG=moduleonbt-switch add: before,react/cjs/react.development.jsandreact-reconciler.development.jswere loaded; nowreact.production.jsandreact-reconciler.production.js. WithNODE_ENV=developmentthe development builds load as before.Decision needed
package.jsondeclaresengines.node >=20and CI tests Node 20 and 22, but Ink requires Node>=22(Ink 7.1.0 already did; Ink 8 keeps it). I did not raise the minimum. Raisingengines.nodeto>=22and dropping 20 from the CI matrix would make the declared support honest.Report
blueutil(cannot run here).engines.nodeto>=22and drop Node 20 from CI?Generated by Claude Code