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
This commit is contained in:
Aakansha Doshi 2021-03-03 19:27:15 +05:30 committed by GitHub
parent c77c9ce65a
commit 3d1cbf444d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 4 deletions

View File

@ -182,9 +182,9 @@ const bindLinearElement = (
} as PointBinding, } as PointBinding,
}); });
mutateElement(hoveredElement, { mutateElement(hoveredElement, {
boundElementIds: [ boundElementIds: Array.from(
...new Set([...(hoveredElement.boundElementIds ?? []), linearElement.id]), new Set([...(hoveredElement.boundElementIds ?? []), linearElement.id]),
], ),
}); });
}; };

View File

@ -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. 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 ## 0.4.0
## Excalidraw API ## Excalidraw API

View File

@ -1,6 +1,6 @@
{ {
"name": "@excalidraw/excalidraw", "name": "@excalidraw/excalidraw",
"version": "0.4.0", "version": "0.4.1",
"main": "dist/excalidraw.min.js", "main": "dist/excalidraw.min.js",
"files": [ "files": [
"dist/*" "dist/*"