Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
Fix for #24
  • Loading branch information
logue committed Jun 10, 2024
1 parent 31d6312 commit 0cf8680
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 249 deletions.
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "vue-codemirror6",
"version": "1.3.1",
"version": "1.3.2",
"license": "MIT",
"description": "CodeMirror6 Component for vue2 and vue3.",
"keywords": [
Expand Down Expand Up @@ -83,42 +83,42 @@
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/lang-vue": "0.1.2",
"@eslint/js": "^9.3.0",
"@eslint/js": "^9.4.0",
"@tsconfig/node-lts": "^20.1.3",
"@types/node": "^20.12.12",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@vitejs/plugin-vue": "^5.0.4",
"@types/node": "^20.14.2",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/compiler-sfc": "^3.4.27",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/tsconfig": "^0.5.1",
"@vueuse/core": "^10.9.0",
"@vueuse/core": "^10.10.0",
"bootstrap": "^5.3.3",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-linter-browserify": "^9.3.0",
"eslint-linter-browserify": "^9.4.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-plugin-vue": "^9.26.0",
"eslint-plugin-vuejs-accessibility": "^2.3.0",
"eslint-plugin-yaml": "^0.5.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"lint-staged": "^15.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"prettier": "^3.3.1",
"rimraf": "^5.0.7",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.2",
"sass": "^1.77.4",
"typescript": "^5.4.5",
"typescript-eslint": "^7.9.0",
"vite": "^5.2.11",
"typescript-eslint": "^7.12.0",
"vite": "^5.2.13",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-checker": "^0.6.4",
"vite-plugin-dts": "^3.9.1",
"vue": "^3.4.27",
"vue-eslint-parser": "^9.4.2",
"vue-eslint-parser": "^9.4.3",
"vue-markdown-wasm": "^0.4.0",
"vue-tsc": "^2.0.19"
"vue-tsc": "^2.0.21"
},
"husky": {
"hooks": {
Expand Down
6 changes: 4 additions & 2 deletions src/components/CodeMirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,13 @@ export default defineComponent({
// @see https://codemirror.net/examples/config/
const language = new Compartment();
const tabSize = new Compartment();

if (props.basic && props.minimal) {
throw '[Vue CodeMirror] Both basic and minimal cannot be specified.';
}
// TODO: Ignore previous prop was not changed.
return [
// Toggle basic setup
props.basic ? basicSetup : undefined,
props.basic && !props.minimal ? basicSetup : undefined,
// Toggle minimal setup
props.minimal && !props.basic ? minimalSetup : undefined,
// ViewUpdate event listener
Expand Down
Loading

0 comments on commit 0cf8680

Please sign in to comment.