@devries-cameron20 / t3code Mirror · read-only / commits / f596689035
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 08:30 UTC

chore(deps): bump @legendapp/list to 3.7.3 and drop its patch (#38220)

Jay Meistrich committed Nov 17, 2026 at 09:52 UTC f596689035f8f75c6f2c93fb6aca18541d0de7f9
3 files changed +11 -224
patches/@legendapp__list@3.7.2.patch deleted
-210
@@ -1,210 +0,0 @@
1 -diff --git a/react-native.js b/react-native.js
2 -index 4af685dfb961eb0c8a4bf1ae9132c9304cf4fa4d..a50466b8fc8509db2d097b85a09d2109a20530cb 100644
3 ---- a/react-native.js
4 -+++ b/react-native.js
5 -@@ -1795,7 +1795,35 @@ function resolvePendingNativeMVCPAdjust(ctx, newScroll) {
6 - }
7 - return false;
8 - }
9 -+// T3 patch: while following the end, a size-only change keeps the end in the same pass that
10 -+// repositions the items. Native end following otherwise runs a frame later, after MVCP has
11 -+// anchored the top row, so the feed visibly jumps twice.
12 -+function shouldHoldEndOnSizeChange(ctx, dataChanged) {
13 -+ const state = ctx.state;
14 -+ return !dataChanged && !!state.props.maintainScrollAtEnd && !!state.didFinishInitialScroll && !state.endFollowInterrupted && !state.visibleContentAnchor && state.scrollingTo === void 0 && !state.isDragging && state.userScrollContentSize === void 0 && !!peek$(ctx, "isFollowingEnd");
15 -+}
16 - function prepareMVCP(ctx, dataChanged, adjustmentSource) {
17 -+ const restore = prepareDefaultMVCP(ctx, dataChanged, adjustmentSource);
18 -+ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
19 -+ return restore;
20 -+ }
21 -+ return () => {
22 -+ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
23 -+ restore == null ? void 0 : restore();
24 -+ return;
25 -+ }
26 -+ // Content that shrinks under an offset past its new end pulls the native offset back by itself.
27 -+ const endOffset = getScrollRangeEnd(ctx);
28 -+ if (ctx.state.scroll > endOffset) {
29 -+ ctx.state.scroll = endOffset;
30 -+ }
31 -+ const positionDiff = endOffset - ctx.state.scroll;
32 -+ if (Math.abs(positionDiff) > MVCP_POSITION_EPSILON) {
33 -+ requestAdjust(ctx, positionDiff, adjustmentSource);
34 -+ }
35 -+ };
36 -+}
37 -+function prepareDefaultMVCP(ctx, dataChanged, adjustmentSource) {
38 - var _a3, _b, _c;
39 - const state = ctx.state;
40 - const { idsInView, positions, props } = state;
41 -@@ -5422,6 +5450,11 @@ function updateItemSizesBatch(ctx, measurements) {
42 - const result = {};
43 - const previousTotalSize = state.totalSize;
44 - for (const measurement of measurements) {
45 -+ // T3 patch: Fabric's measure() reports NaN for a container with no layout yet. A NaN size makes
46 -+ // totalSize NaN, and since NaN !== NaN, useArr$ returns a new snapshot on every read until React
47 -+ // throws "Maximum update depth exceeded". The container's onLayout reports its real size later.
48 -+ const measuredSize = state.props.horizontal ? measurement.size.width : measurement.size.height;
49 -+ if (!Number.isFinite(measuredSize)) continue;
50 - const ownsMeasuredItem = measurement.containerId === void 0 || isContainerItemCurrent(ctx, measurement.containerId, measurement.itemKey);
51 - if (ownsMeasuredItem) {
52 - const index = state.indexByKey.get(measurement.itemKey);
53 -diff --git a/react-native.mjs b/react-native.mjs
54 -index 9ebfddc183a9b202d35c990a387c9b628feeb185..489050190144997ac72de8f4f7c6219479216dba 100644
55 ---- a/react-native.mjs
56 -+++ b/react-native.mjs
57 -@@ -1774,7 +1774,35 @@ function resolvePendingNativeMVCPAdjust(ctx, newScroll) {
58 - }
59 - return false;
60 - }
61 -+// T3 patch: while following the end, a size-only change keeps the end in the same pass that
62 -+// repositions the items. Native end following otherwise runs a frame later, after MVCP has
63 -+// anchored the top row, so the feed visibly jumps twice.
64 -+function shouldHoldEndOnSizeChange(ctx, dataChanged) {
65 -+ const state = ctx.state;
66 -+ return !dataChanged && !!state.props.maintainScrollAtEnd && !!state.didFinishInitialScroll && !state.endFollowInterrupted && !state.visibleContentAnchor && state.scrollingTo === void 0 && !state.isDragging && state.userScrollContentSize === void 0 && !!peek$(ctx, "isFollowingEnd");
67 -+}
68 - function prepareMVCP(ctx, dataChanged, adjustmentSource) {
69 -+ const restore = prepareDefaultMVCP(ctx, dataChanged, adjustmentSource);
70 -+ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
71 -+ return restore;
72 -+ }
73 -+ return () => {
74 -+ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
75 -+ restore == null ? void 0 : restore();
76 -+ return;
77 -+ }
78 -+ // Content that shrinks under an offset past its new end pulls the native offset back by itself.
79 -+ const endOffset = getScrollRangeEnd(ctx);
80 -+ if (ctx.state.scroll > endOffset) {
81 -+ ctx.state.scroll = endOffset;
82 -+ }
83 -+ const positionDiff = endOffset - ctx.state.scroll;
84 -+ if (Math.abs(positionDiff) > MVCP_POSITION_EPSILON) {
85 -+ requestAdjust(ctx, positionDiff, adjustmentSource);
86 -+ }
87 -+ };
88 -+}
89 -+function prepareDefaultMVCP(ctx, dataChanged, adjustmentSource) {
90 - var _a3, _b, _c;
91 - const state = ctx.state;
92 - const { idsInView, positions, props } = state;
93 -@@ -5401,6 +5429,11 @@ function updateItemSizesBatch(ctx, measurements) {
94 - const result = {};
95 - const previousTotalSize = state.totalSize;
96 - for (const measurement of measurements) {
97 -+ // T3 patch: Fabric's measure() reports NaN for a container with no layout yet. A NaN size makes
98 -+ // totalSize NaN, and since NaN !== NaN, useArr$ returns a new snapshot on every read until React
99 -+ // throws "Maximum update depth exceeded". The container's onLayout reports its real size later.
100 -+ const measuredSize = state.props.horizontal ? measurement.size.width : measurement.size.height;
101 -+ if (!Number.isFinite(measuredSize)) continue;
102 - const ownsMeasuredItem = measurement.containerId === void 0 || isContainerItemCurrent(ctx, measurement.containerId, measurement.itemKey);
103 - if (ownsMeasuredItem) {
104 - const index = state.indexByKey.get(measurement.itemKey);
105 -diff --git a/react.js b/react.js
106 -index 515545471e08426fc90856256db9491db0ca4b92..b741735df1fbc0c954ed48f15590abce727d5336 100644
107 ---- a/react.js
108 -+++ b/react.js
109 -@@ -5635,6 +5635,19 @@ function updateOneItemSize(ctx, itemKey, sizeObj, resolvedMeasurementItem, notif
110 - }
111 -
112 - // src/core/measureContainersInLayoutEffect.ts
113 -+// T3 patch: measure rows by their layout box, as ResizeObserver does. getBoundingClientRect
114 -+// includes ancestor transforms, so rows that mount while a dialog scales in measure short and
115 -+// stay packed too tightly until they re-render.
116 -+function measureContainerLayoutSize(element) {
117 -+ const rect = element.getBoundingClientRect();
118 -+ if (Math.abs(rect.width - element.offsetWidth) < 1 && Math.abs(rect.height - element.offsetHeight) < 1) {
119 -+ return { height: rect.height, width: rect.width };
120 -+ }
121 -+ const style = getComputedStyle(element);
122 -+ const height = Number.parseFloat(style.height);
123 -+ const width = Number.parseFloat(style.width);
124 -+ return Number.isFinite(height) && Number.isFinite(width) ? { height, width } : { height: rect.height, width: rect.width };
125 -+}
126 - function measureContainersInLayoutEffect(ctx, targetContainerIds = null) {
127 - var _a3, _b, _c;
128 - const dataChangeEpoch = ctx.state.dataChangeEpoch;
129 -@@ -5646,13 +5659,13 @@ function measureContainersInLayoutEffect(ctx, targetContainerIds = null) {
130 - const element = viewRef == null ? void 0 : viewRef.current;
131 - if (itemKey !== void 0 && element && isContainerItemCurrent(ctx, containerId, itemKey)) {
132 - const generation = (_b = ctx.state.containerItemGenerations[containerId]) != null ? _b : 0;
133 -- const rect = element.getBoundingClientRect();
134 -- setContainerLayoutBaseline(element, rect);
135 -+ const size = measureContainerLayoutSize(element);
136 -+ setContainerLayoutBaseline(element, size);
137 - measurements.push({
138 - containerId,
139 - generation,
140 - itemKey,
141 -- size: { height: rect.height, width: rect.width }
142 -+ size
143 - });
144 - }
145 - }
146 -@@ -6296,9 +6309,8 @@ function processContainerLayout({ containerId, ctx, rectangle, ref, state }) {
147 - var _a4;
148 - if (state.itemKey === currentItemKey) {
149 - const element = ref.current;
150 -- const rect = (_a4 = element == null ? void 0 : element.getBoundingClientRect) == null ? void 0 : _a4.call(element);
151 -- if (rect) {
152 -- layout = { height: rect.height, width: rect.width };
153 -+ if (element) {
154 -+ layout = measureContainerLayoutSize(element);
155 - }
156 - applyLayout();
157 - }
158 -diff --git a/react.mjs b/react.mjs
159 -index ce08abe7ee62e8940f9c6ff169829244bd6bb736..fce79caef8387e517cbab8051b213cb57b1df590 100644
160 ---- a/react.mjs
161 -+++ b/react.mjs
162 -@@ -5614,6 +5614,19 @@ function updateOneItemSize(ctx, itemKey, sizeObj, resolvedMeasurementItem, notif
163 - }
164 -
165 - // src/core/measureContainersInLayoutEffect.ts
166 -+// T3 patch: measure rows by their layout box, as ResizeObserver does. getBoundingClientRect
167 -+// includes ancestor transforms, so rows that mount while a dialog scales in measure short and
168 -+// stay packed too tightly until they re-render.
169 -+function measureContainerLayoutSize(element) {
170 -+ const rect = element.getBoundingClientRect();
171 -+ if (Math.abs(rect.width - element.offsetWidth) < 1 && Math.abs(rect.height - element.offsetHeight) < 1) {
172 -+ return { height: rect.height, width: rect.width };
173 -+ }
174 -+ const style = getComputedStyle(element);
175 -+ const height = Number.parseFloat(style.height);
176 -+ const width = Number.parseFloat(style.width);
177 -+ return Number.isFinite(height) && Number.isFinite(width) ? { height, width } : { height: rect.height, width: rect.width };
178 -+}
179 - function measureContainersInLayoutEffect(ctx, targetContainerIds = null) {
180 - var _a3, _b, _c;
181 - const dataChangeEpoch = ctx.state.dataChangeEpoch;
182 -@@ -5625,13 +5638,13 @@ function measureContainersInLayoutEffect(ctx, targetContainerIds = null) {
183 - const element = viewRef == null ? void 0 : viewRef.current;
184 - if (itemKey !== void 0 && element && isContainerItemCurrent(ctx, containerId, itemKey)) {
185 - const generation = (_b = ctx.state.containerItemGenerations[containerId]) != null ? _b : 0;
186 -- const rect = element.getBoundingClientRect();
187 -- setContainerLayoutBaseline(element, rect);
188 -+ const size = measureContainerLayoutSize(element);
189 -+ setContainerLayoutBaseline(element, size);
190 - measurements.push({
191 - containerId,
192 - generation,
193 - itemKey,
194 -- size: { height: rect.height, width: rect.width }
195 -+ size
196 - });
197 - }
198 - }
199 -@@ -6275,9 +6288,8 @@ function processContainerLayout({ containerId, ctx, rectangle, ref, state }) {
200 - var _a4;
201 - if (state.itemKey === currentItemKey) {
202 - const element = ref.current;
203 -- const rect = (_a4 = element == null ? void 0 : element.getBoundingClientRect) == null ? void 0 : _a4.call(element);
204 -- if (rect) {
205 -- layout = { height: rect.height, width: rect.width };
206 -+ if (element) {
207 -+ layout = measureContainerLayoutSize(element);
208 - }
209 - applyLayout();
210 - }
pnpm-lock.yaml
+8 -9
@@ -284,7 +284,7 @@ overrides:
284 expo-sharing: 58.0.22
285 expo-widgets: 58.0.27
286 '@ff-labs/fff-node': 0.11.0
287 - '@legendapp/list': 3.7.2
287 + '@legendapp/list': 3.7.3
288 '@pierre/diffs': 1.7.0-beta.4
289 '@react-native-ai/apple': 0.12.0
290 '@react-native-menu/menu': 2.0.0
@@ -370,7 +370,6 @@ patchedDependencies:
370 '@effect/vitest@4.1.2': 299510b71c36537a832a67e9d160a5f112a5f326a29e95c41cb45fc8234e47c7
371 '@expo/ui@58.0.27': 9f2547678939f4ec78fe45163b6455aad63d3c80353d7e0cc783f6a61a7ccc2f
372 '@ff-labs/fff-node@0.11.0': 93f62a76399b435a76588b2bef237db0a1e85880c1ac0d0759c416e9cc579252
373 - '@legendapp/list@3.7.2': fc8470158c72676c35f43a0a84f90e53105c3eedd930e242534a37ff4159a3ef
373 '@muse-code/sdk@1.4.6': 7b495b607fc5d76b444c7c4d58821e839726a30e6f3c53564f0d59f2d5b42101
374 '@pierre/diffs@1.7.0-beta.4': b24b206d14c79de95be10322b96490b82e41cc13c8a02c7378aaf8e03623431b
375 '@react-native-ai/apple@0.12.0': 2d09870c2848d185cb05b53ed823a46e12dba519324d8dd8e584e28731990f9d
@@ -566,8 +565,8 @@ importers:
565 specifier: 4.2.13
566 version: 4.2.13
567 '@legendapp/list':
569 - specifier: 3.7.2
570 - version: 3.7.2(patch_hash=fc8470158c72676c35f43a0a84f90e53105c3eedd930e242534a37ff4159a3ef)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
568 + specifier: 3.7.3
569 + version: 3.7.3(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
570 '@material/material-color-utilities':
571 specifier: 0.3.0
572 version: 0.3.0
@@ -1090,8 +1089,8 @@ importers:
1089 specifier: ^5.3.0
1090 version: 5.3.0
1091 '@legendapp/list':
1093 - specifier: 3.7.2
1094 - version: 3.7.2(patch_hash=fc8470158c72676c35f43a0a84f90e53105c3eedd930e242534a37ff4159a3ef)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
1092 + specifier: 3.7.3
1093 + version: 3.7.3(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
1094 '@noble/hashes':
1095 specifier: 'catalog:'
1096 version: 1.8.0
@@ -4952,8 +4951,8 @@ packages:
4951 cpu: [x64]
4952 os: [win32]
4953
4955 - '@legendapp/list@3.7.2':
4956 - resolution: {integrity: sha512-StFy5qjOHHuxHKjenwLq500S/z+zuF43hj8iqXhX9EMtzeOagPfsnMRWphvBG4CYBvMTX6VzgLjN5BzzwY1jDA==}
4954 + '@legendapp/list@3.7.3':
4955 + resolution: {integrity: sha512-trGu1i4xo1+r6gG6GI3qrrZAfYHbB25uVj32/KnxhaQ7/eW4AqzhM5cW21Oye4dpg+180Ts1aejRuI8z6Xc4eg==}
4956 peerDependencies:
4957 react: '*'
4958 react-dom: '*'
@@ -15598,7 +15597,7 @@ snapshots:
15597 '@koromix/koffi-win32-x64@3.3.6':
15598 optional: true
15599
15601 - '@legendapp/list@3.7.2(patch_hash=fc8470158c72676c35f43a0a84f90e53105c3eedd930e242534a37ff4159a3ef)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)':
15600 + '@legendapp/list@3.7.3(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)':
15601 dependencies:
15602 react: 19.3.0
15603 use-sync-external-store: 1.7.0(react@19.3.0)
pnpm-workspace.yaml
+3 -5
@@ -54,7 +54,7 @@ catalog:
54 "@effect/sql-sqlite-do": 4.1.2
55 "@effect/vitest": 4.1.2
56 "@electron-webauthn/macos": 1.3.1
57 - "@legendapp/list": 3.7.2
57 + "@legendapp/list": 3.7.3
58 "@noble/curves": 1.9.1
59 "@noble/hashes": 1.8.0
60 "@pierre/diffs": 1.7.0-beta.4
@@ -115,7 +115,7 @@ overrides:
115 expo-sharing: 58.0.22
116 expo-widgets: 58.0.27
117 "@ff-labs/fff-node": 0.11.0
118 - "@legendapp/list": 3.7.2
118 + "@legendapp/list": 3.7.3
119 "@pierre/diffs": 1.7.0-beta.4
120 "@react-native-ai/apple": 0.12.0
121 "@react-native-menu/menu": 2.0.0
@@ -282,8 +282,6 @@ patchedDependencies:
282 alchemy@2.0.0-beta.85: patches/alchemy@2.0.0-beta.85.patch
283 # Android: a marker orient other than "auto" or a number (auto-start-reverse) no longer throws.
284 react-native-svg@15.16.1: patches/react-native-svg@15.16.1.patch
285 - # iOS: a feed following its end keeps the end through a size-only reflow in one pass.
286 - "@legendapp/list@3.7.2": patches/@legendapp__list@3.7.2.patch
285 # Android: double-tap zoom no longer cancels itself, and taps near a link open it.
286 react-native-pdf-jsi@6.1.0: patches/react-native-pdf-jsi@6.1.0.patch
287
@@ -319,7 +317,7 @@ publicHoistPattern:
317 - "@cursor/sdk-*"
318
319 minimumReleaseAgeExclude:
322 - - "@legendapp/list@3.7.2"
320 + - "@legendapp/list@3.7.3"
321 - "@effect/tsgo-darwin-arm64@0.67.1"
322 - "@effect/tsgo-darwin-x64@0.67.1"
323 - "@effect/tsgo-linux-arm64@0.67.1"