From e372093485266d9ef566030fd4386d516e6d876c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Damkj=C3=A6r?= Date: Wed, 25 Oct 2023 16:19:58 +0200 Subject: [PATCH] Fix incorrect exports (#130) * remove uiw * changeset --- .changeset/brown-ravens-obey.md | 6 ++ .changeset/pre.json | 2 +- package-lock.json | 71 ------------------- .../react-codemirror-playground/CHANGELOG.md | 8 +++ .../react-codemirror-playground/package.json | 5 +- packages/react-codemirror/CHANGELOG.md | 6 ++ packages/react-codemirror/package.json | 2 +- packages/react-codemirror/src/index.ts | 1 - 8 files changed, 24 insertions(+), 77 deletions(-) create mode 100644 .changeset/brown-ravens-obey.md diff --git a/.changeset/brown-ravens-obey.md b/.changeset/brown-ravens-obey.md new file mode 100644 index 000000000..2bd757148 --- /dev/null +++ b/.changeset/brown-ravens-obey.md @@ -0,0 +1,6 @@ +--- +'@neo4j-cypher/react-codemirror-playground': patch +'@neo4j-cypher/react-codemirror': patch +--- + +Fix incorrect exports diff --git a/.changeset/pre.json b/.changeset/pre.json index ed431e077..c57ba0f93 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -11,5 +11,5 @@ "antlr4": "4.13.1", "antlr4-c3": "3.0.1" }, - "changesets": ["fuzzy-rice-train"] + "changesets": ["brown-ravens-obey", "fuzzy-rice-train"] } diff --git a/package-lock.json b/package-lock.json index 6aa816d02..b99264c16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2203,17 +2203,6 @@ "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.3.1.tgz", "integrity": "sha512-88e4HhMtKJyw6fKprGaN/yZfiaoGYOi2nM45YCUC6R/kex9sxFWBDGatS1vk4lMgnWmdIIB9tk8Gj1LmL8YfvA==" }, - "node_modules/@codemirror/theme-one-dark": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@codemirror/theme-one-dark/-/theme-one-dark-6.1.2.tgz", - "integrity": "sha512-F+sH0X16j/qFLMAfbciKTxVOwkdAS336b7AXTKOZhy8BR3eH/RelsnLgLFINrpST63mmN2OuwUt0W2ndUgYwUA==", - "dependencies": { - "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.0.0", - "@lezer/highlight": "^1.0.0" - } - }, "node_modules/@codemirror/view": { "version": "6.21.3", "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.21.3.tgz", @@ -5215,51 +5204,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@uiw/codemirror-extensions-basic-setup": { - "version": "4.21.20", - "resolved": "https://registry.npmjs.org/@uiw/codemirror-extensions-basic-setup/-/codemirror-extensions-basic-setup-4.21.20.tgz", - "integrity": "sha512-Wyi9q4uw0xGYd/tJ6bULG7tkCLqcUsQT0AQBfCDtnkV3LdiLU0LceTrzJoHJyIKSHsKDJxFQxa1qg3QLt4gIUA==", - "dependencies": { - "@codemirror/autocomplete": "^6.0.0", - "@codemirror/commands": "^6.0.0", - "@codemirror/language": "^6.0.0", - "@codemirror/lint": "^6.0.0", - "@codemirror/search": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.0.0" - }, - "peerDependencies": { - "@codemirror/autocomplete": ">=6.0.0", - "@codemirror/commands": ">=6.0.0", - "@codemirror/language": ">=6.0.0", - "@codemirror/lint": ">=6.0.0", - "@codemirror/search": ">=6.0.0", - "@codemirror/state": ">=6.0.0", - "@codemirror/view": ">=6.0.0" - } - }, - "node_modules/@uiw/react-codemirror": { - "version": "4.21.20", - "resolved": "https://registry.npmjs.org/@uiw/react-codemirror/-/react-codemirror-4.21.20.tgz", - "integrity": "sha512-PdyewPvNXnvT3JHj888yjpbWsAGw5qlxW6w1sMdsqJ0R6vPV++ob1iZXCGrM1FVpbqPK0DNfpXvjzp2gIr3lYw==", - "dependencies": { - "@babel/runtime": "^7.18.6", - "@codemirror/commands": "^6.1.0", - "@codemirror/state": "^6.1.1", - "@codemirror/theme-one-dark": "^6.0.0", - "@uiw/codemirror-extensions-basic-setup": "4.21.20", - "codemirror": "^6.0.0" - }, - "peerDependencies": { - "@babel/runtime": ">=7.11.0", - "@codemirror/state": ">=6.0.0", - "@codemirror/theme-one-dark": ">=6.0.0", - "@codemirror/view": ">=6.0.0", - "codemirror": ">=6.0.0", - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, "node_modules/@vscode/test-electron": { "version": "2.3.5", "resolved": "https://registry.npmjs.org/@vscode/test-electron/-/test-electron-2.3.5.tgz", @@ -7129,20 +7073,6 @@ "node": ">= 0.12.0" } }, - "node_modules/codemirror": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.1.tgz", - "integrity": "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==", - "dependencies": { - "@codemirror/autocomplete": "^6.0.0", - "@codemirror/commands": "^6.0.0", - "@codemirror/language": "^6.0.0", - "@codemirror/lint": "^6.0.0", - "@codemirror/search": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.0.0" - } - }, "node_modules/collect-v8-coverage": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", @@ -18473,7 +18403,6 @@ "@lezer/highlight": "^1.1.3", "@neo4j-cypher/language-support": "2.0.0-next.0", "@neo4j-cypher/react-codemirror": "2.0.0-next.0", - "@uiw/react-codemirror": "^4.19.9", "react": "^18.2.0", "react-d3-tree": "^3.6.1", "react-dom": "^18.2.0", diff --git a/packages/react-codemirror-playground/CHANGELOG.md b/packages/react-codemirror-playground/CHANGELOG.md index a6987f249..a24f92fa5 100644 --- a/packages/react-codemirror-playground/CHANGELOG.md +++ b/packages/react-codemirror-playground/CHANGELOG.md @@ -1,5 +1,13 @@ # @neo4j-cypher/react-codemirror-playground +## 2.0.0-next.1 + +### Patch Changes + +- Fix incorrect exports +- Updated dependencies + - @neo4j-cypher/react-codemirror@2.0.0-next.1 + ## 2.0.0-next.0 ### Major Changes diff --git a/packages/react-codemirror-playground/package.json b/packages/react-codemirror-playground/package.json index 445269686..b6174d2a7 100644 --- a/packages/react-codemirror-playground/package.json +++ b/packages/react-codemirror-playground/package.json @@ -1,7 +1,7 @@ { "name": "@neo4j-cypher/react-codemirror-playground", "private": true, - "version": "2.0.0-next.0", + "version": "2.0.0-next.1", "type": "module", "scripts": { "dev": "vite --open", @@ -21,13 +21,12 @@ }, "dependencies": { "@neo4j-cypher/language-support": "2.0.0-next.0", - "@neo4j-cypher/react-codemirror": "2.0.0-next.0", + "@neo4j-cypher/react-codemirror": "2.0.0-next.1", "@codemirror/autocomplete": "^6.5.1", "@codemirror/commands": "^6.2.2", "@codemirror/language": "^6.6.0", "@lezer/common": "^1.0.2", "@lezer/highlight": "^1.1.3", - "@uiw/react-codemirror": "^4.19.9", "react": "^18.2.0", "react-dom": "^18.2.0", "vite-plugin-node-stdlib-browser": "^0.2.1", diff --git a/packages/react-codemirror/CHANGELOG.md b/packages/react-codemirror/CHANGELOG.md index 739c9cfe1..ab619fc5a 100644 --- a/packages/react-codemirror/CHANGELOG.md +++ b/packages/react-codemirror/CHANGELOG.md @@ -1,5 +1,11 @@ # @neo4j-cypher/react-codemirror +## 2.0.0-next.1 + +### Patch Changes + +- Fix incorrect exports + ## 2.0.0-next.0 ### Major Changes diff --git a/packages/react-codemirror/package.json b/packages/react-codemirror/package.json index 9322cf0be..5ab2def34 100644 --- a/packages/react-codemirror/package.json +++ b/packages/react-codemirror/package.json @@ -17,7 +17,7 @@ "codemirror", "codemirror 6" ], - "version": "2.0.0-next.0", + "version": "2.0.0-next.1", "main": "./dist/cjs/index.cjs", "module": "./dist/esm/index.mjs", "types": "./dist/types/index.d.ts", diff --git a/packages/react-codemirror/src/index.ts b/packages/react-codemirror/src/index.ts index 8419ea701..8effa9ebf 100644 --- a/packages/react-codemirror/src/index.ts +++ b/packages/react-codemirror/src/index.ts @@ -1,5 +1,4 @@ export { CypherParser, parse } from '@neo4j-cypher/language-support'; -export * as ReactCodemirror from '@uiw/react-codemirror'; export { CypherEditor } from './CypherEditor'; export { cypher } from './lang-cypher/lang-cypher'; export { darkThemeConstants, lightThemeConstants } from './themes';