diff --git a/packages/netlify-cms-widget-file/package.json b/packages/netlify-cms-widget-file/package.json index 40ea6508..dcbf2721 100644 --- a/packages/netlify-cms-widget-file/package.json +++ b/packages/netlify-cms-widget-file/package.json @@ -23,7 +23,7 @@ "build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward" }, "dependencies": { - "array-move": "3.0.1", + "array-move": "4.0.0", "common-tags": "^1.8.0", "react-sortable-hoc": "^2.0.0" }, diff --git a/packages/netlify-cms-widget-file/src/withFileControl.js b/packages/netlify-cms-widget-file/src/withFileControl.js index 62eb3b34..941b9c59 100644 --- a/packages/netlify-cms-widget-file/src/withFileControl.js +++ b/packages/netlify-cms-widget-file/src/withFileControl.js @@ -10,7 +10,7 @@ import { oneLine } from 'common-tags'; import { lengths, components, buttons, borders, effects, shadows } from 'netlify-cms-ui-default'; import { basename } from 'netlify-cms-lib-util'; import { SortableContainer, SortableElement } from 'react-sortable-hoc'; -import arrayMove from 'array-move'; +import { arrayMoveImmutable as arrayMove } from 'array-move'; const MAX_DISPLAY_LENGTH = 50; diff --git a/yarn.lock b/yarn.lock index c1465a7f..8fcc0549 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4530,10 +4530,10 @@ array-includes@^3.0.3, array-includes@^3.1.2, array-includes@^3.1.3: get-intrinsic "^1.1.1" is-string "^1.0.5" -array-move@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/array-move/-/array-move-3.0.1.tgz#179645cc0987b65953a4fc06b6df9045e4ba9618" - integrity sha512-H3Of6NIn2nNU1gsVDqDnYKY/LCdWvCMMOWifNGhKcVQgiZ6nOek39aESOvro6zmueP07exSl93YLvkN4fZOkSg== +array-move@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/array-move/-/array-move-4.0.0.tgz#2c3730f056cc926f62a59769a5a8cda2fb6d8c55" + integrity sha512-+RY54S8OuVvg94THpneQvFRmqWdAHeqtMzgMW6JNurHxe8rsS07cHQdfGkXnTUXiBcyZ0j3SiDIxxj0RPiqCkQ== array-union@^1.0.1: version "1.0.2"