From 3d1cbf444dfb5990b71f4a8695cbdc77cd6d8a99 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 3 Mar 2021 19:27:15 +0530 Subject: [PATCH] fix: Use Array.from when spreading over set so that typescript transpiles correctly in the umd build (#3165) * fix: Use Array.from when spreading over set so that typescript transpiles correctly in the umd build * patch version * fix * update changelog * tweak --- src/element/binding.ts | 6 +++--- src/packages/excalidraw/CHANGELOG.md | 21 +++++++++++++++++++++ src/packages/excalidraw/package.json | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/element/binding.ts b/src/element/binding.ts index deb1cc0e..65888102 100644 --- a/src/element/binding.ts +++ b/src/element/binding.ts @@ -182,9 +182,9 @@ const bindLinearElement = ( } as PointBinding, }); mutateElement(hoveredElement, { - boundElementIds: [ - ...new Set([...(hoveredElement.boundElementIds ?? []), linearElement.id]), - ], + boundElementIds: Array.from( + new Set([...(hoveredElement.boundElementIds ?? []), linearElement.id]), + ), }); }; diff --git a/src/packages/excalidraw/CHANGELOG.md b/src/packages/excalidraw/CHANGELOG.md index 2c099457..dd073044 100644 --- a/src/packages/excalidraw/CHANGELOG.md +++ b/src/packages/excalidraw/CHANGELOG.md @@ -12,6 +12,27 @@ The change should be grouped under one of the below section and must contain PR Please add the latest change on the top under the correct section. --> +## 0.4.1 + +## Excalidraw API + +### Fixes + +- Use `Array.from` when spreading over set so that typescript transpiles correctly in the umd build[#3165](https://github.com/excalidraw/excalidraw/pull/3165). + +## Excalidraw Library + +### Features + +- Add export info on copy PNG to clipboard toast message [#3159](https://github.com/excalidraw/excalidraw/pull/3159). +- Use the latest version of Virgil [#3124](https://github.com/excalidraw/excalidraw/pull/3124). +- Support exporting with dark mode [#3046](https://github.com/excalidraw/excalidraw/pull/3046). + +### Fixes + +- Cursor being leaked outside of canvas [#3161](https://github.com/excalidraw/excalidraw/pull/3161). +- Hide scrollbars in zenMode [#3144](https://github.com/excalidraw/excalidraw/pull/3144). + ## 0.4.0 ## Excalidraw API diff --git a/src/packages/excalidraw/package.json b/src/packages/excalidraw/package.json index cf29bed0..6ca24bb7 100644 --- a/src/packages/excalidraw/package.json +++ b/src/packages/excalidraw/package.json @@ -1,6 +1,6 @@ { "name": "@excalidraw/excalidraw", - "version": "0.4.0", + "version": "0.4.1", "main": "dist/excalidraw.min.js", "files": [ "dist/*"