diff --git a/.changeset/clever-islands-dig.md b/.changeset/clever-islands-dig.md deleted file mode 100644 index 0848b80544..0000000000 --- a/.changeset/clever-islands-dig.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@react-spring/shared': patch -'@react-spring/animated': patch -'@react-spring/core': patch -'@react-spring/mock-raf': patch -'@react-spring/parallax': patch -'@react-spring/rafz': patch -'@react-spring/types': patch -'@react-spring/three': patch -'@react-spring/web': patch ---- - -improve performance of string interpolation when used with large ammounts of data diff --git a/.changeset/fix-pick-animated-from-keys.md b/.changeset/fix-pick-animated-from-keys.md deleted file mode 100644 index a6ac7978fd..0000000000 --- a/.changeset/fix-pick-animated-from-keys.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@react-spring/core': patch ---- - -fix(core): infer all animated keys when a partial `from` is provided - -`PickAnimated` returned only the `from` shape whenever a `from` prop was present, dropping forward props, `to` keys, and the other transition phases. `useSpring({ width: 100, height: 100, from: { width: 0 } })` typed its result as `{ width }`, so `styles.height` was a compile error even though `height` animates at runtime. It now merges `from` with the `to`, forward, and transition-phase values. diff --git a/.changeset/fix-springvalue-onchange-result.md b/.changeset/fix-springvalue-onchange-result.md deleted file mode 100644 index 067f18d8f1..0000000000 --- a/.changeset/fix-springvalue-onchange-result.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@react-spring/core': patch ---- - -fix(core): pass an AnimationResult to SpringValue `onChange` - -The `SpringValue`-level `onChange` was called with the raw value instead of an `AnimationResult`, so `result.value` was `undefined` mid-animation even though the type advertises it as the value. `onChange` now receives `{ value, finished: false, cancelled: false }`, matching `onStart`/`onRest` and the `Controller`-level `onChange`. The internal `change` event the animated tree subscribes to still emits the raw value. diff --git a/.changeset/non-extensible-component-cache.md b/.changeset/non-extensible-component-cache.md deleted file mode 100644 index f8da5f6816..0000000000 --- a/.changeset/non-extensible-component-cache.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@react-spring/animated': patch ---- - -Fix `cannot add a new property` crash when wrapping non-extensible React Native host components. - -`createHost` cached animated wrappers by writing directly to the component object via `Component[Symbol.for('AnimatedComponent')] = ...`. On Hermes (React Native), host components like `View`, `Text`, and `Image` become non-extensible after their first JSX render, causing a `TypeError` in strict mode. - -The fix attempts the direct write first (fast path, no change for extensible components) and falls back to a module-level `WeakMap` when the write is rejected. diff --git a/packages/animated/package.json b/packages/animated/package.json index 948418a3ae..1e8189c6d8 100644 --- a/packages/animated/package.json +++ b/packages/animated/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/animated", - "version": "10.1.1", + "version": "10.1.2", "description": "Animated component props for React", "module": "./dist/react-spring_animated.legacy-esm.js", "main": "./dist/cjs/index.js", diff --git a/packages/core/package.json b/packages/core/package.json index 59f63d44d9..c69f6f5425 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/core", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_core.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_core.modern.d.mts", diff --git a/packages/mock-raf/package.json b/packages/mock-raf/package.json index 4c9d065fdf..155f4b16a9 100644 --- a/packages/mock-raf/package.json +++ b/packages/mock-raf/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/mock-raf", - "version": "10.1.1", + "version": "10.1.2", "private": true, "description": "Vendored copy of mock-raf for react-spring tests", "license": "MIT", diff --git a/packages/parallax/package.json b/packages/parallax/package.json index 1cd4c0b308..f59684b763 100644 --- a/packages/parallax/package.json +++ b/packages/parallax/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/parallax", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_parallax.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_parallax.modern.d.mts", diff --git a/packages/rafz/package.json b/packages/rafz/package.json index 2fa38ae9dc..8d296def72 100644 --- a/packages/rafz/package.json +++ b/packages/rafz/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/rafz", - "version": "10.1.1", + "version": "10.1.2", "description": "react-spring's fork of rafz one frameloop to rule them all", "module": "./dist/react-spring_rafz.legacy-esm.js", "main": "./dist/cjs/index.js", diff --git a/packages/shared/package.json b/packages/shared/package.json index 240de587e2..4242249e13 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/shared", - "version": "10.1.1", + "version": "10.1.2", "description": "Globals and shared modules", "module": "./dist/react-spring_shared.legacy-esm.js", "main": "./dist/cjs/index.js", diff --git a/packages/types/package.json b/packages/types/package.json index 194be2a6eb..2640cad1e0 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/types", - "version": "10.1.1", + "version": "10.1.2", "description": "Internal package with TypeScript stuff", "module": "./dist/react-spring_types.legacy-esm.js", "main": "./dist/cjs/index.js", diff --git a/targets/konva/package.json b/targets/konva/package.json index 89a28d98fc..733a16c97a 100644 --- a/targets/konva/package.json +++ b/targets/konva/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/konva", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_konva.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_konva.modern.d.mts", diff --git a/targets/native/package.json b/targets/native/package.json index 4e899f6c19..9de7a93a88 100644 --- a/targets/native/package.json +++ b/targets/native/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/native", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_native.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_native.modern.d.mts", diff --git a/targets/three/package.json b/targets/three/package.json index 534d8b769e..cefb7163b0 100644 --- a/targets/three/package.json +++ b/targets/three/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/three", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_three.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_three.modern.d.mts", diff --git a/targets/web/package.json b/targets/web/package.json index 42935585bc..977ac1b612 100644 --- a/targets/web/package.json +++ b/targets/web/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/web", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_web.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_web.modern.d.mts", diff --git a/targets/zdog/package.json b/targets/zdog/package.json index e5df939efa..f87fd47c44 100644 --- a/targets/zdog/package.json +++ b/targets/zdog/package.json @@ -1,6 +1,6 @@ { "name": "@react-spring/zdog", - "version": "10.1.1", + "version": "10.1.2", "module": "./dist/react-spring_zdog.legacy-esm.js", "main": "./dist/cjs/index.js", "types": "./dist/react-spring_zdog.modern.d.mts",