Repository navigation
⬆️ chore(deps): upgrade to ink 8 - #2
Merged
Merged
Conversation
Bump ink 7.1.1 -> 8.0.0, react 19.2.8 -> 19.3.1, @types/react 19.2.18 -> 19.3.0 and @kud/ink-ui 0.32.0 -> 0.44.1. Ink 8 requires node >=22, so align engines and the tsup target.
tsup leaves react and ink external, so React chose its development build at runtime. The bin entry now sets NODE_ENV to production when unset, then imports the app. An existing NODE_ENV is honoured, and npm run dev defaults to development.
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.1 → 8.0.0,react19.2.8 → 19.3.1,@types/react19.2.18 → 19.3.0,@kud/ink-ui0.32.0 → 0.44.1 (exact pins kept).engines.node>=20→>=22and tsuptargetnode20→node22: Ink 8 declaresnode >=22(as Ink 7.1.1 already did, so the old>=20was already inaccurate).react/inkexternal, so a bundledefinecannot reach them and the shipped CLI was loadingreact.development.js.src/cli.tsxbecamesrc/main.tsx; the new bin entrysrc/cli.tssetsprocess.env.NODE_ENV ??= "production"and thenawait import("./main.js"). An existingNODE_ENVis honoured, andnpm run devdefaults todevelopment.Breaking changes met (Ink 8.0.0 release notes)
<Box minWidth/maxWidth>numbers only → not used insrc/.stdin/stdout/stderrtyped as generic streams (nostdout.columns) → not used; the list already usesuseWindowSize().useInputdrops unrecognised control sequences → the app only binds plain keys (↵,x,r,a, arrows); unaffected.@kud/ink-ui0.44.1 typechecks against the components used (Page,StatusMessage,useAppKeys,useListCursor,SelectableRow,SkeletonRows,colors).Evidence
npm run typecheckclean;npm test9 files, 60 tests passed;npm run buildemitsdist/cli.js(110 B) +dist/main-*.js.node dist/cli.js --helpand--versionprint;node dist/cli.js --mockandnpm run dev -- --mockrender the full page in a pseudo-terminal.Module._loadprobe ondist/cli.js --mock: withNODE_ENVunset it loadsreact.production.jsandreact-reconciler.production.js; withNODE_ENV=developmentit loads both.development.jsbuilds. Before this change the unset case loadedreact.development.js.a99421e988833de1bae49dd9b580422d95615160.Decision needed
engines.nodeis raised from>=20to>=22, because Ink 8 (and Ink 7.1.1 before it) requires Node 22. Reverting it would advertise a Node version the dependencies do not support.Report
ba80e745e55c7d32a71d4f99d9067416aa2506b3.workflow_dispatchrelease (release runs onv*tags): release pending (tag needed).engines.node >=22raise is acceptable.