Skip to content

Commit 1de388f

Browse files
committed
Add CHANGELOG.md.
Fixed eslintrc.yml env.
1 parent 9b5a572 commit 1de388f

File tree

6 files changed

+293
-82
lines changed

6 files changed

+293
-82
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
root: true
22
env:
33
browser: true
4-
es2021: true
4+
es6: true
55
extends:
66
- eslint:recommended
77
- google

CHANGELOG.md

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
### Changelog
2+
3+
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4+
5+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6+
7+
#### [1.0.3](https://github.com/logue/vue-codemirror6/compare/1.0.2...1.0.3)
8+
9+
> 12 October 2022
10+
11+
- Update dependencies. [`7f096da`](https://github.com/logue/vue-codemirror6/commit/7f096da24bfc50c9f2932cac6ad023d3982281bf)
12+
- Update demo code. [`ac33441`](https://github.com/logue/vue-codemirror6/commit/ac33441c2886664c11a91b5b838db74220f0b565)
13+
- Fixed vite.config.docs.ts. [`b13628a`](https://github.com/logue/vue-codemirror6/commit/b13628aeaa29df6c525b899776ae7706cdf800bc)
14+
15+
#### [1.0.2](https://github.com/logue/vue-codemirror6/compare/1.0.1...1.0.2)
16+
17+
> 15 September 2022
18+
19+
- Enabled to specify HTML tags used in components. [`9b9eecd`](https://github.com/logue/vue-codemirror6/commit/9b9eecdb4da434295bf176c4c17d832871aba927)
20+
21+
#### [1.0.1](https://github.com/logue/vue-codemirror6/compare/1.0.0...1.0.1)
22+
23+
> 8 September 2022
24+
25+
- Update dependencies. [`f3631d0`](https://github.com/logue/vue-codemirror6/commit/f3631d0c3c00a07ba8e69916116db1d611397fb9)
26+
- Disable drop console. [`e27b9ef`](https://github.com/logue/vue-codemirror6/commit/e27b9efea75180b3c6031c8e3a06c2bd5cee228b)
27+
28+
### [1.0.0](https://github.com/logue/vue-codemirror6/compare/0.6.8...1.0.0)
29+
30+
> 20 August 2022
31+
32+
- Fixed editable and readonly toggle. [`97ac1bf`](https://github.com/logue/vue-codemirror6/commit/97ac1bf8b24775daefb58af91c318771ea355c8d)
33+
- 1.0 [`4493c74`](https://github.com/logue/vue-codemirror6/commit/4493c744d38002fbca943f43b14985a3ae2c592c)
34+
35+
#### [0.6.8](https://github.com/logue/vue-codemirror6/compare/0.6.5...0.6.8)
36+
37+
> 1 August 2022
38+
39+
- Unify props monitoring process. [`15b8a17`](https://github.com/logue/vue-codemirror6/commit/15b8a171cec652a03800fc9b53c9f3c5b78f74bf)
40+
- Fixed an error around linter. [`b2fe3db`](https://github.com/logue/vue-codemirror6/commit/b2fe3dba9f6edd3167edeeff08f34139e444ecd7)
41+
- Fixed dispatch may be executed multiple times when the value of prop is changed. [`2e19316`](https://github.com/logue/vue-codemirror6/commit/2e193168876e7e0da06695e68176433fd328c0b7)
42+
43+
#### [0.6.5](https://github.com/logue/vue-codemirror6/compare/0.6.4...0.6.5)
44+
45+
> 4 July 2022
46+
47+
- Remove banner from source code. [`043e0ed`](https://github.com/logue/vue-codemirror6/commit/043e0ed0769c0b3bf52777e0d64199e713377418)
48+
- Delete unnecessary cursor movement processing and assignment processing. [`c89fd00`](https://github.com/logue/vue-codemirror6/commit/c89fd0020e241dca2d8292511a2b55ffbece5a82)
49+
50+
#### [0.6.4](https://github.com/logue/vue-codemirror6/compare/0.6.0...0.6.4)
51+
52+
> 28 June 2022
53+
54+
- Fixed a bug that the cursor may move to a strange place when inputting. [`9977976`](https://github.com/logue/vue-codemirror6/commit/9977976678fda8a268a5c998f6bb95bdf0b86a1e)
55+
- Changed the logic when assigning text values to CodeMirror. [`313e701`](https://github.com/logue/vue-codemirror6/commit/313e70196573f9365519a7558cbc0f05c193a000)
56+
- Fixed the problem that the definition file was omitted because the binary output by analyze was given to npm. [`503a52e`](https://github.com/logue/vue-codemirror6/commit/503a52ef7c5077241b72909ee27afb262b52312e)
57+
58+
#### [0.6.0](https://github.com/logue/vue-codemirror6/compare/0.5.5...0.6.0)
59+
60+
> 9 June 2022
61+
62+
- Added minimal prop. [`d454d25`](https://github.com/logue/vue-codemirror6/commit/d454d257c1fd04b765f5fdb555b240395fe030b5)
63+
- Migrate to CodeMirror 6.0.0. [`50cb696`](https://github.com/logue/vue-codemirror6/commit/50cb696dcc3af61d77a7e74ef37041d20bfb71fc)
64+
- Add methods jsdoc and manual. [`44975eb`](https://github.com/logue/vue-codemirror6/commit/44975ebedf76d1179ab2c1835e9f16b8e583a64a)
65+
66+
#### [0.5.5](https://github.com/logue/vue-codemirror6/compare/0.5.4...0.5.5)
67+
68+
> 8 June 2022
69+
70+
- Urgent release. [`7db9007`](https://github.com/logue/vue-codemirror6/commit/7db9007886b5daeea94f7986d256291911b7a55c)
71+
72+
#### [0.5.4](https://github.com/logue/vue-codemirror6/compare/0.5.3...0.5.4)
73+
74+
> 31 May 2022
75+
76+
- Fixed a bug that the cursor goes to a strange place when inputting. [`81af5b2`](https://github.com/logue/vue-codemirror6/commit/81af5b2e950cd972bfe540621fb75a6a8e18d544)
77+
78+
#### [0.5.3](https://github.com/logue/vue-codemirror6/compare/0.5.2...0.5.3)
79+
80+
> 31 May 2022
81+
82+
- Fixed an issue where parent-to-child binding did not work properly. [`d355f2c`](https://github.com/logue/vue-codemirror6/commit/d355f2c7de4437360fdbf021029506d6cce4adba)
83+
- Changed the implementation to call the extension directly with a function. [`98d338f`](https://github.com/logue/vue-codemirror6/commit/98d338f05a48922529f15f9d706f9614447ff1cb)
84+
- The initial value of linter is set to simple undefined. [`6cec8b0`](https://github.com/logue/vue-codemirror6/commit/6cec8b000ce18a44a4077c375285a45df2993931)
85+
86+
#### [0.5.2](https://github.com/logue/vue-codemirror6/compare/0.5.1...0.5.2)
87+
88+
> 30 May 2022
89+
90+
- Simplify extension processing. [`cd875ff`](https://github.com/logue/vue-codemirror6/commit/cd875ffdeffa072c6abb5b4e3964298bd490b582)
91+
- Since lintGutter is displayed even for components for which linter is not specified, lintGutter is made an option. [`ab16cbb`](https://github.com/logue/vue-codemirror6/commit/ab16cbb1472a5b29c572279a303a4baa593f4eb3)
92+
- Fixed innerText is undefined error. [`6466784`](https://github.com/logue/vue-codemirror6/commit/64667849779d0511a472cf8d116ecef8e51f1db8)
93+
94+
#### [0.5.1](https://github.com/logue/vue-codemirror6/compare/0.5.0...0.5.1)
95+
96+
> 28 May 2022
97+
98+
- Fixed linter bug. [`03013b4`](https://github.com/logue/vue-codemirror6/commit/03013b44ce89ba455acafaceac68b2084fe364cf)
99+
100+
#### [0.5.0](https://github.com/logue/vue-codemirror6/compare/0.3.7...0.5.0)
101+
102+
> 27 May 2022
103+
104+
- The output program is compatible with both Vue2 and Vue3.☺ [`7571423`](https://github.com/logue/vue-codemirror6/commit/7571423b0b4f6150300b184b3fc765cb3bf2e21b)
105+
106+
#### [0.3.7](https://github.com/logue/vue-codemirror6/compare/0.3.6...0.3.7)
107+
108+
> 26 May 2022
109+
110+
- Change the formatting settings. [`42188a5`](https://github.com/logue/vue-codemirror6/commit/42188a5de4ddf1163789cdc2fbd255ed19487fad)
111+
- Update documents. [`5a78106`](https://github.com/logue/vue-codemirror6/commit/5a7810681c786020afdac8f5d8da8d15f8ad802c)
112+
- Update docs. [`15d7f8e`](https://github.com/logue/vue-codemirror6/commit/15d7f8e7e1edda995420485160cb9cfd4980fe74)
113+
114+
#### [0.3.6](https://github.com/logue/vue-codemirror6/compare/0.3.2...0.3.6)
115+
116+
> 19 May 2022
117+
118+
- Rename serve.vue to DemoPage.vue. [`3ba582b`](https://github.com/logue/vue-codemirror6/commit/3ba582b6fa24259b49d1f123b79db185ab7e077a)
119+
- Fixed an issue where CodeMirror may not work properly during initial display. [`8092b64`](https://github.com/logue/vue-codemirror6/commit/8092b64039e9a3340624ca4e347151609c933a12)
120+
- Add basic and tab props. [`54eace6`](https://github.com/logue/vue-codemirror6/commit/54eace641678967163fdf93d051181f701167e0e)
121+
122+
#### [0.3.2](https://github.com/logue/vue-codemirror6/compare/0.3.0...0.3.2)
123+
124+
> 6 April 2022
125+
126+
- When building with vue3, it doesn't work with vue2, so build with vue2. [`87be702`](https://github.com/logue/vue-codemirror6/commit/87be702b278df9cf0f5b26bb8307f7a6d592fd73)
127+
- Rewrite the wrapper part. [`1e77661`](https://github.com/logue/vue-codemirror6/commit/1e776619bb5f711a789bbe758d10142725de39aa)
128+
- Update sample. [`f7ed0a5`](https://github.com/logue/vue-codemirror6/commit/f7ed0a507175b6c0d79cf6be55fbd317c5c999b6)
129+
130+
#### [0.3.0](https://github.com/logue/vue-codemirror6/compare/0.1.7...0.3.0)
131+
132+
> 29 March 2022
133+
134+
#### [0.1.7](https://github.com/logue/vue-codemirror6/compare/0.1.6...0.1.7)
135+
136+
> 26 May 2022
137+
138+
- Change Lint settings. [`89558c1`](https://github.com/logue/vue-codemirror6/commit/89558c1ad3a11bc5bd4ee55a11d6bd58022c99eb)
139+
140+
#### [0.1.6](https://github.com/logue/vue-codemirror6/compare/0.1.2...0.1.6)
141+
142+
> 19 May 2022
143+
144+
- Follow changes in the master branch [`d7a9e3f`](https://github.com/logue/vue-codemirror6/commit/d7a9e3f9cfd7580bb78c29f96e1f2c84d77d5801)
145+
- Follow Vue3 version. [`1867c6c`](https://github.com/logue/vue-codemirror6/commit/1867c6c18fdc10f331e1dace37c5773242069150)
146+
- Since past values may be included, nextTick processing was added to onMouted. [`dac2bdd`](https://github.com/logue/vue-codemirror6/commit/dac2bdd1ea935141ed25b93c9882f6ecc871099e)
147+
148+
#### [0.1.2](https://github.com/logue/vue-codemirror6/compare/0.1.0...0.1.2)
149+
150+
> 6 April 2022
151+
152+
- Squashed commit of the following: [`db4abdd`](https://github.com/logue/vue-codemirror6/commit/db4abdddda262a7fa4f69f028b423d13442cec68)
153+
- When building with vue3, it doesn't work with vue2, so build with vue2. [`87be702`](https://github.com/logue/vue-codemirror6/commit/87be702b278df9cf0f5b26bb8307f7a6d592fd73)
154+
- Rewrite the wrapper part. [`1e77661`](https://github.com/logue/vue-codemirror6/commit/1e776619bb5f711a789bbe758d10142725de39aa)
155+
156+
#### [0.1.0](https://github.com/logue/vue-codemirror6/compare/0.0.6...0.1.0)
157+
158+
> 18 March 2022
159+
160+
- Update Samples. (run `yarn run dev`) [`f658c65`](https://github.com/logue/vue-codemirror6/commit/f658c654f2910a133914f2fa0fdc8206dadb7232)
161+
- Fixed IME probrem. [`7a42e63`](https://github.com/logue/vue-codemirror6/commit/7a42e63f75748039ebb082732fe46cd7967f32d7)
162+
163+
#### [0.0.6](https://github.com/logue/vue-codemirror6/compare/0.0.5...0.0.6)
164+
165+
> 17 March 2022
166+
167+
- Fixed d.ts file destination. [`2cd9cdf`](https://github.com/logue/vue-codemirror6/commit/2cd9cdf3f0658d62ae434600e4e8cda14c407a47)
168+
169+
#### [0.0.5](https://github.com/logue/vue-codemirror6/compare/0.0.4...0.0.5)
170+
171+
> 17 March 2022
172+
173+
- Fixed a bug that the cursor position may be at the top when entering a key. [`e7f5407`](https://github.com/logue/vue-codemirror6/commit/e7f5407c76185cc805c10fc0366c5e6dff5f44f6)
174+
175+
#### [0.0.4](https://github.com/logue/vue-codemirror6/compare/0.0.2...0.0.4)
176+
177+
> 16 February 2022
178+
179+
- Update demo code. [`599fa5f`](https://github.com/logue/vue-codemirror6/commit/599fa5f4d87cc7783c98f56a9436a314b368fb64)
180+
- Removed code that depends on other libraries from the output code. [`7d9e383`](https://github.com/logue/vue-codemirror6/commit/7d9e383c17f31ed8721f94711e7cd1dc595f9e07)
181+
- Add demo code. [`3e06ef7`](https://github.com/logue/vue-codemirror6/commit/3e06ef70f5ed30fce5a6cb72add2b41fea2745fe)
182+
183+
#### [0.0.2](https://github.com/logue/vue-codemirror6/compare/0.0.1...0.0.2)
184+
185+
> 14 February 2022
186+
187+
- Update package.json. Fixed typing settings. [`12ead23`](https://github.com/logue/vue-codemirror6/commit/12ead23c53c0a5ebc5a68c3bee7b192b587efafc)
188+
189+
#### 0.0.1
190+
191+
> 10 February 2022
192+
193+
- Initial commit. [`b410884`](https://github.com/logue/vue-codemirror6/commit/b41088482f82615e9380e6231a59a39387d172a2)

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
A component for using [CodeMirror6](https://codemirror.net/6/) with Vue. This component works in both Vue2 and Vue3.
1111

12+
- [CHANGELOG](./CHANGELOG.md)
13+
1214
## Usage
1315

1416
```sh
@@ -34,12 +36,12 @@ This component can handle bidirectional binding by `v-model` like a general Vue
3436
| tab | boolean | Enables tab indentation. |
3537
| theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
3638
| readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
37-
| editable | boolean | When this is set to false, it is similar to `readonly`, except that the cursor is not displayed like the normal pre tag. |
39+
| disabled | boolean | When this is set to true, it is similar to `readonly`, except that the cursor is not displayed like the normal pre tag. |
3840
| lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages> |
3941
| phrases | Record&lt;string, string&gt; | Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/> |
4042
| extensions | Extension[] | Includes enhancements to extend CodeMirror. |
4143
| linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
42-
| lintGutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
44+
| gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
4345
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
4446

4547
⚠ Notice: `lang` and `linter` can also be set together in `extensions`. These are separated for compatibility with previous versions of CodeMirror settings and for typing props.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
}
4545
},
4646
"files": [
47+
"CHANGELOG.md",
4748
"/dist",
4849
"./src/components/CodeMirror.ts"
4950
],
@@ -82,12 +83,12 @@
8283
}
8384
},
8485
"devDependencies": {
85-
"@codemirror/lang-javascript": "^6.1.0",
86-
"@codemirror/lang-markdown": "^6.0.2",
86+
"@codemirror/lang-javascript": "^6.1.1",
87+
"@codemirror/lang-markdown": "^6.0.3",
8788
"@types/lodash": "^4.14.186",
88-
"@types/node": "^18.11.4",
89-
"@typescript-eslint/eslint-plugin": "^5.40.1",
90-
"@typescript-eslint/parser": "^5.40.1",
89+
"@types/node": "^18.11.5",
90+
"@typescript-eslint/eslint-plugin": "^5.41.0",
91+
"@typescript-eslint/parser": "^5.41.0",
9192
"@vitejs/plugin-vue": "^3.1.2",
9293
"@vue/eslint-config-prettier": "^7.0.0",
9394
"@vue/tsconfig": "^0.1.3",
@@ -100,7 +101,7 @@
100101
"eslint-linter-browserify": "^8.26.0",
101102
"eslint-plugin-html": "^7.1.0",
102103
"eslint-plugin-import": "^2.26.0",
103-
"eslint-plugin-jsdoc": "^39.3.23",
104+
"eslint-plugin-jsdoc": "^39.3.24",
104105
"eslint-plugin-tsdoc": "^0.2.17",
105106
"eslint-plugin-vue": "^9.6.0",
106107
"eslint-plugin-vuejs-accessibility": "^1.2.0",

vite.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { defineConfig, type UserConfig } from 'vite';
2-
import { fileURLToPath } from 'url';
32
import { visualizer } from 'rollup-plugin-visualizer';
43
import banner from 'vite-plugin-banner';
54
import checker from 'vite-plugin-checker';
6-
import fs from 'node:fs';
75
import Vue from '@vitejs/plugin-vue';
86

7+
import { fileURLToPath, URL } from 'node:url';
8+
import fs from 'node:fs';
9+
910
const pkg = require('./package.json');
1011

1112
// https://vitejs.dev/config/

0 commit comments

Comments
 (0)