- feat: use vue's built-in
CSSProperties
instead ofcsstype
- feat: add
phrases
prop #166
- fix: use the correct global component name #161
- feat: add
autoDestroy
prop for #156. - feat: refactoring component.
- chore: upgrade deps and upgrade vite to v3.
Breaking changes
- The package no longer depends on the codemirror package and now requires you to install the codemirror dependency manually.
e.g. npm install codemirror vue-codemirror
- 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
.
e.g.
"dependencies": {
"@codemirror/state": "6.x"
}
import { EditorView } from 'codemirror'
import { EditorState } from '@codemirror/state'
- Upgrade codemirror dependencies to 6.x
- The package no longer exports
@codemirror/view
@codemirror/state
@codemirror/basic-setup
. - Change the package from
@codemirror/example-setup
to justcodemirror
.
- Use the correct version dependencies for the
@codemirror/*
package.
- Upgrade to Vue@3
- Upgrade to CodeMirror@v6
- add textarea name prop with #82
Enable switching from/to DiffView based on 'merge' prop status(merge pr 65).
optimize events and refresh function.
add props placeholder
- add
scroll
event
- the components
options
attr is not required
- fix import es module bug
- add test script
- assign options to ssr.js
- add global default events
- update the options assign logic
- add global default options
- update
editor
tocodemirror
- add browser support
- add test scripts
- update babel and webpack configs