react-native-reanimated 2.14.3 → 2.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -155,7 +155,7 @@ function styleUpdater(viewDescriptors, updater, state, maybeViewRef, animationsA
155
155
  requestFrame(frame);
156
156
  }
157
157
  }
158
- state.last = Object.assign(oldValues, newValues);
158
+ state.last = Object.assign({}, oldValues, newValues);
159
159
  const style = getStyleWithoutAnimations(state.last);
160
160
  if (style) {
161
161
  updateProps(viewDescriptors, style, maybeViewRef);
@@ -165,7 +165,7 @@ function styleUpdater(viewDescriptors, updater, state, maybeViewRef, animationsA
165
165
  state.isAnimationCancelled = true;
166
166
  state.animations = [];
167
167
  const diff = styleDiff(oldValues, newValues);
168
- state.last = Object.assign(oldValues, diff);
168
+ state.last = Object.assign({}, oldValues, diff);
169
169
  if (diff) {
170
170
  updateProps(viewDescriptors, newValues, maybeViewRef);
171
171
  }
@@ -240,7 +240,7 @@ function jestStyleUpdater(viewDescriptors, updater, state, maybeViewRef, animati
240
240
  }
241
241
  // calculate diff
242
242
  const diff = styleDiff(oldValues, newValues);
243
- state.last = Object.assign(oldValues, diff);
243
+ state.last = Object.assign({}, oldValues, diff);
244
244
  if (Object.keys(diff).length !== 0) {
245
245
  updatePropsJestWrapper(viewDescriptors, diff, maybeViewRef, animatedStyle, adapters);
246
246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-reanimated",
3
- "version": "2.14.3",
3
+ "version": "2.14.4",
4
4
  "description": "More powerful alternative to Animated library for React Native.",
5
5
  "scripts": {
6
6
  "test": "yarn run format:js && yarn run lint:js && yarn run test:unit",
@@ -253,7 +253,7 @@ function styleUpdater(
253
253
  requestFrame(frame);
254
254
  }
255
255
  }
256
- state.last = Object.assign(oldValues, newValues);
256
+ state.last = Object.assign({}, oldValues, newValues);
257
257
  const style = getStyleWithoutAnimations(state.last);
258
258
  if (style) {
259
259
  updateProps(viewDescriptors, style, maybeViewRef);
@@ -263,7 +263,7 @@ function styleUpdater(
263
263
  state.animations = [];
264
264
 
265
265
  const diff = styleDiff(oldValues, newValues);
266
- state.last = Object.assign(oldValues, diff);
266
+ state.last = Object.assign({}, oldValues, diff);
267
267
  if (diff) {
268
268
  updateProps(viewDescriptors, newValues, maybeViewRef);
269
269
  }
@@ -361,7 +361,7 @@ function jestStyleUpdater(
361
361
 
362
362
  // calculate diff
363
363
  const diff = styleDiff(oldValues, newValues);
364
- state.last = Object.assign(oldValues, diff);
364
+ state.last = Object.assign({}, oldValues, diff);
365
365
 
366
366
  if (Object.keys(diff).length !== 0) {
367
367
  updatePropsJestWrapper(