You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,28 @@
1
1
## CHANGELOG
2
2
3
+
### v6.0.0 (2022-06-13)
4
+
5
+
**Breaking changes**
6
+
7
+
1. The package no longer depends on the codemirror package and now requires you to install the codemirror dependency manually.
8
+
9
+
e.g. `npm install codemirror vue-codemirror`
10
+
11
+
2. The package no longer exports the original codemirror package. If you need import interface from codemirror, you now need to make codemirror explicitly dependent in your `package.json`.
Copy file name to clipboardExpand all lines: README.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
13
13
[CodeMirror(6)](https://codemirror.net) component for Vue(3).
14
14
15
-
**vue-codemirror** v5 has been released. This is a new version based on [CodeMirror@6](https://codemirror.net) and is available to Vue3 only. Since CodeMirror@6 is developed with native ES Modules, the new version will no longer support direct browser references to UMD modules. In short, the new version is ⚠️ **completely NOT compatible** with previous versions. If you wish to continue using Vue2 or a lower version of CodeMirror, please refer to the legacy versions below.
15
+
**vue-codemirror** v5/v6 has been released. This is a new version based on [CodeMirror@6](https://codemirror.net) and is available to Vue3 only. Since CodeMirror@6 is developed with native ES Modules, the new version will no longer support direct browser references to UMD modules. In short, the new version is ⚠️ **completely NOT compatible** with previous versions. If you wish to continue using Vue2 or a lower version of CodeMirror, please refer to the legacy versions below.
16
16
17
17
This [**example site**](https://github.surmon.me/vue-codemirror) contains most of what you want.
18
18
@@ -44,11 +44,11 @@ This [**example site**](https://github.surmon.me/vue-codemirror) contains most o
44
44
#### Install
45
45
46
46
```bash
47
-
yarn add vue-codemirror
47
+
yarn add codemirror vue-codemirror
48
48
```
49
49
50
50
```bash
51
-
npm install vue-codemirror --save
51
+
npm install codemirror vue-codemirror --save
52
52
```
53
53
54
54
#### Depending on your actual needs, you may need to install more CodeMirror packages
The [basic-setup](https://codemirror.net/docs/ref/#basic-setup) extension is integrated by default in the vue-codemirror configuration, and is intended as a handy helper to quickly set up CodeMirror without having to install and import a lot of standalone packages. If you want to override the default behavior of the config, just pass the empty array when installing the component globally.
173
+
The [basic-setup](https://codemirror.net/docs/ref/#basic-setup) extension is integrated by default in the vue-codemirror configuration and is intended as a handy helper to quickly set up CodeMirror without having to install and import a lot of standalone packages. If you want to override the default behavior of the config, just pass the empty array when installing the component globally.
0 commit comments