Virtual whiteboard for sketching hand-drawn like diagrams
fix: Use Array.from when spreading over set so that typescript transpiles correctly in the umd build (#3165)
Aakansha Doshi3d1cbf444dfb
diff --git a/src/element/binding.ts b/src/element/binding.tsindex deb1cc0e7a..65888102fd 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.mdindex 2c09945775..dd073044f0 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 PRPlease 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 APIdiff --git a/src/packages/excalidraw/package.json b/src/packages/excalidraw/package.jsonindex cf29bed0cb..6ca24bb713 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/*"