Browse Source

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 years ago
parent
commit
39d45afc06
No account linked to committer's email address

+ 1
- 1
scripts/release.js View File

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

+ 47
- 9
src/packages/excalidraw/CHANGELOG.md View File

11
 Please add the latest change on the top under the correct section.
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
 ### Fixes
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
 ### Docs
30
 ### Docs
33
 
31
 
34
 - Correct exportToBackend in README to onExportToBackend [#3952](https://github.com/excalidraw/excalidraw/pull/3952)
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
 ## 0.9.0 (2021-07-10)
74
 ## 0.9.0 (2021-07-10)
37
 
75
 
38
 ## Excalidraw API
76
 ## Excalidraw API

+ 1
- 1
src/packages/excalidraw/README.md View File

604
 
604
 
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.
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
 ### Does it support collaboration ?
609
 ### Does it support collaboration ?
610
 
610
 

+ 1
- 1
src/packages/excalidraw/package.json View File

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

+ 1
- 1
src/packages/excalidraw/webpack.prod.config.js View File

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

Loading…
Cancel
Save