@neo4j-cypher/react-codemirror 2.0.0-next.3 → 2.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/CypherEditor.tsx +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @neo4j-cypher/react-codemirror
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8de605b: Improved history prop change detection
|
|
8
|
+
- Updated dependencies [17909e3]
|
|
9
|
+
- @neo4j-cypher/language-support@2.0.0-next.2
|
|
10
|
+
|
|
3
11
|
## 2.0.0-next.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1414,7 +1414,8 @@ var CypherEditor = class extends import_react.Component {
|
|
|
1414
1414
|
)
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
|
-
|
|
1417
|
+
const didChangeHistoryEstimate = prevProps.history?.length !== this.props.history?.length || prevProps.history?.[0] !== this.props.history?.[0];
|
|
1418
|
+
if (didChangeHistoryEstimate) {
|
|
1418
1419
|
this.editorView.current.dispatch({
|
|
1419
1420
|
effects: replaceHistory.of(this.props.history ?? [])
|
|
1420
1421
|
});
|