Repository navigation
Description
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Follows #37066 (fixes #37015). Maintainer ruling on 2026-11-25: merge #37066 as it is, and handle library upgrades on a separate card. This is that card.
Background
#37066 adds a packageExtensions block to pnpm-workspace.yaml. It declares @types/react as a peer for 31 libraries whose .d.ts files import react without declaring it. Each entry becomes a no-op once the library declares the peer itself. Then the entry can be deleted.
Measured on npm, 2026-11-25 ~02:35Z (seat 3)
Of the 31, 7 declare @types/react as a peer in their latest release:
| Library | Locked | Upgrade to | Kind |
|---|---|---|---|
lucide-react |
1.43.0 | ≥1.50.0 (latest 1.79.0) | minor |
react-router |
7.18.5 | latest 7.x (declares @types/react >=18) |
minor |
recharts |
3.10.1 | 3.11.x | minor |
react-hook-form |
7.85.0 | 7.92.x | minor |
@reduxjs/toolkit |
2.12.0 | 2.15.x | minor |
react-resizable-panels |
4.12.2 | 4.24.x | minor |
react-i18next |
17.0.11 | ≥18.0.1 | major; 18.x requires i18next >=27, and the repo has 26.4.0, so this is two majors together |
(i18next is not one of the 31; it moves only because react-i18next 18 requires it. The exact first version that adds the peer was checked for react-i18next and lucide-react only, on #37066 comment 7148839083. For the others, the locked version was checked to lack it and the latest to have it.)
The other 24 never declare it, not even at their latest release, so their packageExtensions entries stay. That includes cmdk and input-otp, which are on the console build path.
Scope
- Upgrade the minor-version libraries, and delete each one's
packageExtensionsline once the lockfile shows the library declaring the peer itself. react-i18next17 → 18 together withi18next26 → 27. This touches runtime translation (@object-ui/i18nand its consumers), so read both changelogs and check the console in a browser. Splitting it into its own PR is fine, but the card's total size still counts toward the Tier H line.- Keep fix(build): declare @types/react for the React libraries whose typings import it #37066's guard test green:
ui/packages/i18n/src/__tests__/react-typings-own-resolution-37015.test.ts.
Acceptance
- Each deleted entry's library resolves
@types/reactfrom its own store directory on a--config.hoist=falseinstall (the guard test or the fix(build): declare @types/react for the React libraries whose typings import it #37066 two-minute check). - The console build passes on both the hoisting install and the no-hoist install.
- The lockfile still holds exactly one
@types/reactand one@types/react-dom.
Blocked by: #37066 (must merge first).
Related: #37015, #37068 (long-term guard), #36777 (Mac acceptance).
Generated by Claude Code
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-25T02:42Z (repo:objectstack#3's request 7151012253)
Blocked-by: #37066
packageExtensionsentries. The maintainer's split ruling (2026-11-25, recorded on fix(build): declare @types/react for the React libraries whose typings import it #37066) made it its own card.Task. Addedpriority:p3andpm:blocked.domain:uiandarea:buildwere already present.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T03:38Z
pm:blocked→pm:queue. Its blocker PR fix(build): declare @types/react for the React libraries whose typings import it #37066 merged, and console build on macOS: @object-ui/i18n fails TS2339 at packNamespace.ts:302 (I18nContext read as {}) #37015 is closed.