Skip to content

Commit 8761436

Browse files
committed
publish: v2.0.4
1 parent c76f521 commit 8761436

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 2.0.4
2+
3+
`2022-03-17`
4+
5+
- 🐞 Fix the problem that the merge mode failed to be used. [#14](https://github.com/RennCheung/codemirror-editor-vue3/issues/14)
6+
- 🌟 Add ts type: get the type of component through ref [CmComponentRef](https://github.com/RennCheung/codemirror-editor-vue3/blob/main/packages/index.ts#L16).
7+
8+
---
9+
10+
- 🐞 修复 merge 模式报错无法使用问题 [#14](https://github.com/RennCheung/codemirror-editor-vue3/issues/14)
11+
- 🌟 增加 ts 类型:通过 ref 获取组件的类型[CmComponentRef](https://github.com/RennCheung/codemirror-editor-vue3/blob/main/packages/index.ts#L16)
12+
113
## 2.0.3
214

315
`2022-03-15`

docs/views/demo/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
<script setup lang="ts">
1515
import { ref, onMounted } from "vue";
16+
import { Editor } from "codemirror";
1617
import Codemirror from "../../../packages/index";
1718
1819
// language
@@ -30,7 +31,7 @@ for (; i < 9; i++) {
3031
}
3132
`);
3233
33-
const onChange = (val, cm) => {
34+
const onChange = (val: string, cm: Editor) => {
3435
console.log(val);
3536
};
3637

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codemirror-editor-vue3",
33
"description": "CodeMirror component for Vue3",
4-
"version": "2.0.4-beta",
4+
"version": "2.0.4",
55
"license": "MIT",
66
"files": [
77
"dist/codemirror-editor-vue3.es.js",
@@ -52,8 +52,8 @@
5252
"dev": "vite",
5353
"build": "vite build",
5454
"build:types": "tsc --emitDeclarationOnly vite build",
55-
"publish": "git push && git push --tags && npm publish && npm run deploy-docs",
56-
"publish-beta": "npm publish --tag=beta",
55+
"publish": "vite build && git push && git push --tags && npm publish && npm run deploy-docs",
56+
"publish-beta": "vite build && npm publish --tag=beta",
5757
"docs-dev": "vitepress dev docs --open",
5858
"docs-build": "vitepress build docs",
5959
"docs-serve": "vitepress serve docs",

0 commit comments

Comments
 (0)