瀏覽代碼

build: Enable jsx transform in webpack and release @excalidraw/excalidraw@0.10.0 🎉 (#4049)

* fix: Enable jsx transform in webpack

* update changelog

* fix

* typo fix in script

* docs: release @excalidraw/excalidraw@0.9.1  🎉

* fix changelog

* release 0.10.0

* Update src/packages/excalidraw/CHANGELOG.md
vanilla_orig
Aakansha Doshi 4 年之前
父節點
當前提交
39d45afc06
沒有連結到貢獻者的電子郵件帳戶。

+ 1
- 1
scripts/release.js 查看文件

@@ -21,7 +21,7 @@ const release = async (nextVersion) => {
21 21
     updatePackageVersion(nextVersion);
22 22
     await exec(`git add -u`);
23 23
     await exec(
24
-      `git commit -m "docs: release excalidraw@excalidraw@${nextVersion}  🎉"`,
24
+      `git commit -m "docs: release @excalidraw/excalidraw@${nextVersion}  🎉"`,
25 25
     );
26 26
     /* eslint-disable no-console */
27 27
     console.log("Done!");

+ 47
- 9
src/packages/excalidraw/CHANGELOG.md 查看文件

@@ -11,28 +11,66 @@ The change should be grouped under one of the below section and must contain PR
11 11
 Please add the latest change on the top under the correct section.
12 12
 -->
13 13
 
14
-## Unreleased
14
+## 0.10.0 (2021-10-13)
15 15
 
16
-## Excalidraw Library
16
+## Excalidraw API
17 17
 
18 18
 ### Fixes
19 19
 
20
-- Prevent gradual misalignment of the canvas due to floating point rounding errors [#3833](https://github.com/excalidraw/excalidraw/pull/3833).
20
+- [`onPaste`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onPaste) prop should return false to prevent the native excalidraw paste action [#3974](https://github.com/excalidraw/excalidraw/pull/3974).
21 21
 
22
-## Excalidraw API
23
-
24
-### Fixes
22
+  #### BREAKING CHANGE
25 23
 
26
-- [`onPaste`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onPaste) prop should return false to prevent the native excalidraw paste action.
24
+  - Earlier the paste action was prevented when the prop [`onPaste`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onPaste) returned true, but now it should return false to prevent the paste action. This was done to make it semantically more correct and intuitive.
27 25
 
28
-#### BREAKING CHANGE
26
+### Build
29 27
 
30
-- Earlier the paste action was prevented when the prop [`onPaste`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onPaste) returned true, but now it should return false to prevent the paste action. This was done to make it semantically more correct and intuitive.
28
+- Enable jsx transform in webpack [#4049](https://github.com/excalidraw/excalidraw/pull/4049)
31 29
 
32 30
 ### Docs
33 31
 
34 32
 - Correct exportToBackend in README to onExportToBackend [#3952](https://github.com/excalidraw/excalidraw/pull/3952)
35 33
 
34
+## Excalidraw Library
35
+
36
+**_This section lists the updates made to the excalidraw library and will not affect the integration._**
37
+
38
+### Features
39
+
40
+- Improve freedraw shape [#3984](https://github.com/excalidraw/excalidraw/pull/3984)
41
+
42
+- Make color ARIA labels better [#3871](https://github.com/excalidraw/excalidraw/pull/3871)
43
+
44
+- Add origin trial tokens [#3853](https://github.com/excalidraw/excalidraw/pull/3853)
45
+
46
+- Re-order zoom buttons [#3837](https://github.com/excalidraw/excalidraw/pull/3837)
47
+
48
+- Add undo/redo buttons & tweak footer [#3832](https://github.com/excalidraw/excalidraw/pull/3832)
49
+
50
+- Resave to png/svg with metadata if you loaded your scene from a png/svg file [#3645](https://github.com/excalidraw/excalidraw/pull/3645)
51
+
52
+### Fixes
53
+
54
+- Abstract and fix legacy fs [#4032](https://github.com/excalidraw/excalidraw/pull/4032)
55
+
56
+- Context menu positioning [#4025](https://github.com/excalidraw/excalidraw/pull/4025)
57
+
58
+- Added alert for bad encryption key [#3998](https://github.com/excalidraw/excalidraw/pull/3998)
59
+
60
+- OnPaste should return false to prevent paste action [#3974](https://github.com/excalidraw/excalidraw/pull/3974)
61
+
62
+- Help-icon now visible on Safari [#3939](https://github.com/excalidraw/excalidraw/pull/3939)
63
+
64
+- Permanent zoom mode [#3931](https://github.com/excalidraw/excalidraw/pull/3931)
65
+
66
+- Undo/redo buttons gap in Safari [#3836](https://github.com/excalidraw/excalidraw/pull/3836)
67
+
68
+- Prevent gradual canvas misalignment [#3833](https://github.com/excalidraw/excalidraw/pull/3833)
69
+
70
+- Color picker shortcuts not working when elements selected [#3817](https://github.com/excalidraw/excalidraw/pull/3817)
71
+
72
+---
73
+
36 74
 ## 0.9.0 (2021-07-10)
37 75
 
38 76
 ## Excalidraw API

+ 1
- 1
src/packages/excalidraw/README.md 查看文件

@@ -604,7 +604,7 @@ This callback is triggered if passed when something is pasted into the scene. Yo
604 604
 
605 605
 This callback must return a `boolean` value or a [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise) which resolves to a boolean value.
606 606
 
607
-In case you want to prevent the excalidraw paste action you must return `true`, it will stop the native excalidraw clipboard management flow (nothing will be pasted into the scene).
607
+In case you want to prevent the excalidraw paste action you must return `false`, it will stop the native excalidraw clipboard management flow (nothing will be pasted into the scene).
608 608
 
609 609
 ### Does it support collaboration ?
610 610
 

+ 1
- 1
src/packages/excalidraw/package.json 查看文件

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "@excalidraw/excalidraw",
3
-  "version": "0.9.0",
3
+  "version": "0.10.0",
4 4
   "main": "main.js",
5 5
   "types": "types/packages/excalidraw/index.d.ts",
6 6
   "files": [

+ 1
- 1
src/packages/excalidraw/webpack.prod.config.js 查看文件

@@ -57,7 +57,7 @@ module.exports = {
57 57
             options: {
58 58
               presets: [
59 59
                 "@babel/preset-env",
60
-                "@babel/preset-react",
60
+                ["@babel/preset-react", { runtime: "automatic" }],
61 61
                 "@babel/preset-typescript",
62 62
               ],
63 63
               plugins: [

Loading…
取消
儲存