Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## 9.5.1 ((6/25/2026, 02:10 PM PST))

This is an artificial version bump with no new change.

## 9.5.0 ((6/25/2026, 07:24 AM PST))

This is an artificial version bump with no new change.
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-common",
"version": "9.5.0",
"version": "9.5.1",
"description": "Coinbase Design System - Common",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/mcp-server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## 9.5.1 ((6/25/2026, 02:10 PM PST))

This is an artificial version bump with no new change.

## 9.5.0 ((6/25/2026, 07:24 AM PST))

This is an artificial version bump with no new change.
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-mcp-server",
"version": "9.5.0",
"version": "9.5.1",
"description": "Coinbase Design System - MCP Server",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/mobile/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## 9.5.1 (6/25/2026 PST)

#### 🐞 Fixes

- Perf: avoid JS-thread reads of `toPositions.value` in the chart `Gradient` effect — Reanimated 4 routes shared-value `.value` reads through synchronous runOnUISync (~29ms each, ~1.6s / 28% of CPU on chart-heavy mobile screens); mirror the last-written array in a useRef instead. [[#774](https://github.com/coinbase/cds/pull/774)]

## 9.5.0 (6/25/2026 PST)

#### 🚀 Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-mobile",
"version": "9.5.0",
"version": "9.5.1",
"description": "Coinbase Design System - Mobile",
"repository": {
"type": "git",
Expand Down
18 changes: 16 additions & 2 deletions packages/mobile/src/visualizations/chart/gradient/Gradient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ export const Gradient = memo<GradientProps>(

const hasRendered = useRef(false);

// Mirror the array we last wrote into `toPositions` / `fromPositions` so
// the effect below never has to read `toPositions.value` from the JS
// thread. In Reanimated 4 each JS-side read of `sharedValue.value` is a
// synchronous `runOnUISync` round-trip (~29ms per call in production
// Android traces, ~1.6s / 28% of CPU on chart-heavy screens). This
// component is the sole writer of `toPositions.value` -- every effect
// run writes `[...targetPositions]` -- so a JS-side ref is always in
// sync with the UI runtime and lets us compare lengths and copy the
// previous array without going over the bridge.
const lastWrittenPositionsRef = useRef(targetPositions);

useEffect(() => {
if (!shouldRender) {
hasRendered.current = false;
Expand All @@ -131,6 +142,7 @@ export const Gradient = memo<GradientProps>(
fromPositions.value = [...targetPositions];
toPositions.value = [...targetPositions];
positionsProgress.value = 1;
lastWrittenPositionsRef.current = targetPositions;
return;
}

Expand All @@ -139,10 +151,11 @@ export const Gradient = memo<GradientProps>(
endX.value = buildTransition(targetEnd.x, transition);
endY.value = buildTransition(targetEnd.y, transition);

const canAnimatePositions = toPositions.value.length === targetPositions.length;
const previousPositions = lastWrittenPositionsRef.current;
const canAnimatePositions = previousPositions.length === targetPositions.length;
if (canAnimatePositions) {
currentColors.value = targetColors;
fromPositions.value = [...toPositions.value];
fromPositions.value = [...previousPositions];
toPositions.value = [...targetPositions];
positionsProgress.value = 0;
positionsProgress.value = buildTransition(1, transition);
Expand All @@ -152,6 +165,7 @@ export const Gradient = memo<GradientProps>(
toPositions.value = [...targetPositions];
positionsProgress.value = 1;
}
lastWrittenPositionsRef.current = targetPositions;
}, [
transition,
targetStart.x,
Expand Down
4 changes: 4 additions & 0 deletions packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## 9.5.1 ((6/25/2026, 02:10 PM PST))

This is an artificial version bump with no new change.

## 9.5.0 (6/25/2026 PST)

#### 🚀 Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-web",
"version": "9.5.0",
"version": "9.5.1",
"description": "Coinbase Design System - Web",
"repository": {
"type": "git",
Expand Down
Loading