Skip to content

Commit

Permalink
publish: v2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rennzhang committed Mar 17, 2022
1 parent c76f521 commit 8761436
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 2.0.4

`2022-03-17`

- 🐞 Fix the problem that the merge mode failed to be used. [#14](https://github.com/RennCheung/codemirror-editor-vue3/issues/14)
- 🌟 Add ts type: get the type of component through ref [CmComponentRef](https://github.com/RennCheung/codemirror-editor-vue3/blob/main/packages/index.ts#L16).

---

- 🐞 修复 merge 模式报错无法使用问题 [#14](https://github.com/RennCheung/codemirror-editor-vue3/issues/14)
- 🌟 增加 ts 类型:通过 ref 获取组件的类型[CmComponentRef](https://github.com/RennCheung/codemirror-editor-vue3/blob/main/packages/index.ts#L16)

## 2.0.3

`2022-03-15`
Expand Down
3 changes: 2 additions & 1 deletion docs/views/demo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

<script setup lang="ts">
import { ref, onMounted } from "vue";
import { Editor } from "codemirror";
import Codemirror from "../../../packages/index";
// language
Expand All @@ -30,7 +31,7 @@ for (; i < 9; i++) {
}
`);
const onChange = (val, cm) => {
const onChange = (val: string, cm: Editor) => {
console.log(val);
};
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "codemirror-editor-vue3",
"description": "CodeMirror component for Vue3",
"version": "2.0.4-beta",
"version": "2.0.4",
"license": "MIT",
"files": [
"dist/codemirror-editor-vue3.es.js",
Expand Down Expand Up @@ -52,8 +52,8 @@
"dev": "vite",
"build": "vite build",
"build:types": "tsc --emitDeclarationOnly vite build",
"publish": "git push && git push --tags && npm publish && npm run deploy-docs",
"publish-beta": "npm publish --tag=beta",
"publish": "vite build && git push && git push --tags && npm publish && npm run deploy-docs",
"publish-beta": "vite build && npm publish --tag=beta",
"docs-dev": "vitepress dev docs --open",
"docs-build": "vitepress build docs",
"docs-serve": "vitepress serve docs",
Expand Down

0 comments on commit 8761436

Please sign in to comment.