vue-codemirror6 1.1.23 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -4
- package/dist/index.es.js +6 -4
- package/dist/index.iife.js +6 -4
- package/dist/index.umd.js +6 -4
- package/package.json +9 -9
- package/src/components/CodeMirror.ts +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [1.1.
|
|
7
|
+
#### [1.1.24](https://github.com/logue/vue-codemirror6/compare/1.1.16...1.1.24)
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- Fixed
|
|
9
|
+
- Reduce unnecessary updates [`#22`](https://github.com/logue/vue-codemirror6/pull/22)
|
|
10
|
+
- fix: coalescing-operator [`#20`](https://github.com/logue/vue-codemirror6/pull/20)
|
|
11
|
+
- Fixed merged code formatting. [`823bef0`](https://github.com/logue/vue-codemirror6/commit/823bef056c9137e0d959bb45d77378226a3df083)
|
|
12
|
+
- Update dependencies. [`f896b82`](https://github.com/logue/vue-codemirror6/commit/f896b82667a705b059540fef03c3db240d7be485)
|
|
13
|
+
- Update dependencies. [`e124cad`](https://github.com/logue/vue-codemirror6/commit/e124cad05d665c1149948e546fde17e0d28a3676)
|
|
12
14
|
|
|
13
15
|
#### [1.1.16](https://github.com/logue/vue-codemirror6/compare/1.1.13...1.1.16)
|
|
14
16
|
|
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.1.
|
|
8
|
+
* @version 1.1.24
|
|
9
9
|
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -366,7 +366,9 @@ var CodeMirror = defineComponent({
|
|
|
366
366
|
watch(
|
|
367
367
|
() => props.modelValue,
|
|
368
368
|
async (value) => {
|
|
369
|
-
if (view.value.composing
|
|
369
|
+
if (view.value.composing || // IME fix
|
|
370
|
+
view.value.state.doc.toJSON().join(props.lineSeparator ?? "\n") === value) {
|
|
371
|
+
length.value = view.value.state.doc.length;
|
|
370
372
|
return;
|
|
371
373
|
}
|
|
372
374
|
view.value.dispatch({
|
|
@@ -523,8 +525,8 @@ var CodeMirror = defineComponent({
|
|
|
523
525
|
});
|
|
524
526
|
|
|
525
527
|
const meta = {
|
|
526
|
-
version: "1.1.
|
|
527
|
-
date: "2023-
|
|
528
|
+
version: "1.1.24",
|
|
529
|
+
date: "2023-08-01T23:21:42.844Z"
|
|
528
530
|
};
|
|
529
531
|
var meta$1 = meta;
|
|
530
532
|
|
package/dist/index.iife.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.1.
|
|
8
|
+
* @version 1.1.24
|
|
9
9
|
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -362,7 +362,9 @@ var CodeMirror = (function (exports, vueDemi, codemirror, view, state, lint, com
|
|
|
362
362
|
vueDemi.watch(
|
|
363
363
|
() => props.modelValue,
|
|
364
364
|
async (value) => {
|
|
365
|
-
if (view$1.value.composing
|
|
365
|
+
if (view$1.value.composing || // IME fix
|
|
366
|
+
view$1.value.state.doc.toJSON().join(props.lineSeparator ?? "\n") === value) {
|
|
367
|
+
length.value = view$1.value.state.doc.length;
|
|
366
368
|
return;
|
|
367
369
|
}
|
|
368
370
|
view$1.value.dispatch({
|
|
@@ -519,8 +521,8 @@ var CodeMirror = (function (exports, vueDemi, codemirror, view, state, lint, com
|
|
|
519
521
|
});
|
|
520
522
|
|
|
521
523
|
const meta = {
|
|
522
|
-
version: "1.1.
|
|
523
|
-
date: "2023-
|
|
524
|
+
version: "1.1.24",
|
|
525
|
+
date: "2023-08-01T23:21:42.844Z"
|
|
524
526
|
};
|
|
525
527
|
var meta$1 = meta;
|
|
526
528
|
|
package/dist/index.umd.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.1.
|
|
8
|
+
* @version 1.1.24
|
|
9
9
|
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -365,7 +365,9 @@
|
|
|
365
365
|
vueDemi.watch(
|
|
366
366
|
() => props.modelValue,
|
|
367
367
|
async (value) => {
|
|
368
|
-
if (view$1.value.composing
|
|
368
|
+
if (view$1.value.composing || // IME fix
|
|
369
|
+
view$1.value.state.doc.toJSON().join(props.lineSeparator ?? "\n") === value) {
|
|
370
|
+
length.value = view$1.value.state.doc.length;
|
|
369
371
|
return;
|
|
370
372
|
}
|
|
371
373
|
view$1.value.dispatch({
|
|
@@ -522,8 +524,8 @@
|
|
|
522
524
|
});
|
|
523
525
|
|
|
524
526
|
const meta = {
|
|
525
|
-
version: "1.1.
|
|
526
|
-
date: "2023-
|
|
527
|
+
version: "1.1.24",
|
|
528
|
+
date: "2023-08-01T23:21:42.844Z"
|
|
527
529
|
};
|
|
528
530
|
var meta$1 = meta;
|
|
529
531
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vue-codemirror6",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.24",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "CodeMirror6 Component for vue2 and vue3.",
|
|
7
7
|
"keywords": [
|
|
@@ -86,20 +86,20 @@
|
|
|
86
86
|
"@tsconfig/node-lts": "^18.12.3",
|
|
87
87
|
"@types/node": "^20.4.5",
|
|
88
88
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
89
|
-
"@typescript-eslint/parser": "^6.2.
|
|
89
|
+
"@typescript-eslint/parser": "^6.2.1",
|
|
90
90
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
91
91
|
"@vue/compiler-sfc": "^3.3.4",
|
|
92
92
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
93
93
|
"@vue/tsconfig": "^0.4.0",
|
|
94
|
-
"@vueuse/core": "^10.
|
|
94
|
+
"@vueuse/core": "^10.3.0",
|
|
95
95
|
"bootstrap": "^5.3.1",
|
|
96
|
-
"eslint": "^8.
|
|
96
|
+
"eslint": "^8.46.0",
|
|
97
97
|
"eslint-config-standard-with-typescript": "latest",
|
|
98
98
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
99
99
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
100
|
-
"eslint-linter-browserify": "^8.
|
|
100
|
+
"eslint-linter-browserify": "^8.46.0",
|
|
101
101
|
"eslint-plugin-html": "^7.1.0",
|
|
102
|
-
"eslint-plugin-import": "^2.
|
|
102
|
+
"eslint-plugin-import": "^2.28.0",
|
|
103
103
|
"eslint-plugin-n": "^16.0.1",
|
|
104
104
|
"eslint-plugin-promise": "^6.1.1",
|
|
105
105
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
@@ -112,12 +112,12 @@
|
|
|
112
112
|
"prettier": "^3.0.0",
|
|
113
113
|
"rimraf": "^5.0.1",
|
|
114
114
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
115
|
-
"sass": "^1.64.
|
|
115
|
+
"sass": "^1.64.2",
|
|
116
116
|
"typescript": "^5.1.6",
|
|
117
|
-
"vite": "^4.4.
|
|
117
|
+
"vite": "^4.4.8",
|
|
118
118
|
"vite-plugin-banner": "^0.7.0",
|
|
119
119
|
"vite-plugin-checker": "^0.6.1",
|
|
120
|
-
"vite-plugin-dts": "^3.
|
|
120
|
+
"vite-plugin-dts": "^3.4.0",
|
|
121
121
|
"vue": "^3.3.4",
|
|
122
122
|
"vue-eslint-parser": "^9.3.1",
|
|
123
123
|
"vue-markdown-wasm": "^0.3.9",
|
|
@@ -433,8 +433,14 @@ export default defineComponent({
|
|
|
433
433
|
watch(
|
|
434
434
|
() => props.modelValue,
|
|
435
435
|
async value => {
|
|
436
|
-
if (
|
|
437
|
-
// IME fix
|
|
436
|
+
if (
|
|
437
|
+
view.value.composing || // IME fix
|
|
438
|
+
view.value.state.doc.toJSON().join(props.lineSeparator ?? '\n') ===
|
|
439
|
+
value // don't need to update
|
|
440
|
+
) {
|
|
441
|
+
// Update count
|
|
442
|
+
length.value = view.value.state.doc.length;
|
|
443
|
+
// Do not commit CodeMirror's store.
|
|
438
444
|
return;
|
|
439
445
|
}
|
|
440
446
|
|