From 4dc40109ac4451b8dc2bafd0b52433a96d3b49e9 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 21 Jun 2024 11:48:38 -0400 Subject: [PATCH 1/3] chore(ci): update node to 20 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 69eb9def..b3c9edf7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: - name: Setup | Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - name: Setup | Dependencies run: npm i -g pnpm && pnpm i --frozen-lockfile - name: Build From ff0afedc076a0b1ca7649d5db751964ddac43027 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:50:30 +0000 Subject: [PATCH 2/3] chore(deps-dev): bump ws from 7.5.9 to 7.5.10 Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28d13bbc..ad7d7a3d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3615,7 +3615,7 @@ packages: whatwg-encoding: 1.0.5 whatwg-mimetype: 2.3.0 whatwg-url: 8.7.0 - ws: 7.5.9 + ws: 7.5.10 xml-name-validator: 3.0.0 transitivePeerDependencies: - bufferutil @@ -5471,8 +5471,8 @@ packages: typedarray-to-buffer: 3.1.5 dev: true - /ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} + /ws@7.5.10: + resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} engines: {node: '>=8.3.0'} peerDependencies: bufferutil: ^4.0.1 From 4af5f44792503d37ac6f39aeb48a558e6a2caa93 Mon Sep 17 00:00:00 2001 From: Ava Johnson Date: Mon, 24 Jun 2024 01:19:41 -0700 Subject: [PATCH 3/3] fix: copy entries props before sorting --- src/custom-components/ReorderableList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom-components/ReorderableList.tsx b/src/custom-components/ReorderableList.tsx index ec6723d7..d50d0291 100644 --- a/src/custom-components/ReorderableList.tsx +++ b/src/custom-components/ReorderableList.tsx @@ -35,12 +35,12 @@ export type ReorderableListProps = { export function ReorderableList(props: ReorderableListProps) { if (props.animate === undefined) props.animate = true; const [entryList, setEntryList] = useState[]>( - props.entries.sort((a: ReorderableEntry, b: ReorderableEntry) => a.position - b.position), + [...props.entries].sort((a: ReorderableEntry, b: ReorderableEntry) => a.position - b.position), ); const [reorderEnabled, setReorderEnabled] = useState(false); useEffect(() => { - setEntryList(props.entries.sort((a: ReorderableEntry, b: ReorderableEntry) => a.position - b.position)); + setEntryList([...props.entries].sort((a: ReorderableEntry, b: ReorderableEntry) => a.position - b.position)); }, [props.entries]); function toggleReorderEnabled(): void {