Skip to content

Commit 9da3dfb

Browse files
authored
Merge pull request samwarnick#50 from NomarCub/cm-migration
CM migration
2 parents 201b5f5 + 33aea61 commit 9da3dfb

File tree

6 files changed

+15
-30
lines changed

6 files changed

+15
-30
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
# [1.12.1]
9+
10+
### Fixed
11+
12+
- Migrated to CodeMirror 6.0 required in Obsidian v0.15.
13+
814
# [1.12.0]
915

1016
### Added

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "simple-embeds",
33
"name": "Simple Embeds",
4-
"version": "1.12.0",
5-
"minAppVersion": "0.13.8",
4+
"version": "1.12.1",
5+
"minAppVersion": "0.15.0",
66
"description": "Replaces links, like Twitter and YouTube, with embeds when previewing a file.",
77
"author": "Sam Warnick",
88
"authorUrl": "https://github.com/samwarnick",

package.json

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-embeds",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"description": "Searches for Twitter and YouTube links and replaces them with embeds when previewed.",
55
"main": "main.js",
66
"scripts": {
@@ -12,24 +12,15 @@
1212
"author": "",
1313
"license": "MIT",
1414
"devDependencies": {
15-
"@codemirror/commands": "^0.19.0",
16-
"@codemirror/fold": "0.19.0",
17-
"@codemirror/history": "^0.19.0",
18-
"@codemirror/language": "^0.19.0",
19-
"@codemirror/matchbrackets": "^0.19.0",
20-
"@codemirror/panel": "^0.19.0",
21-
"@codemirror/rangeset": "^0.19.0",
22-
"@codemirror/search": "^0.19.0",
23-
"@codemirror/state": "^0.19.0",
24-
"@codemirror/stream-parser": "https://github.com/lishid/stream-parser",
25-
"@codemirror/view": "^0.19.0",
15+
"@codemirror/state": "^6.0.0",
16+
"@codemirror/view": "^6.0.0",
2617
"@rollup/plugin-commonjs": "^18.0.0",
2718
"@rollup/plugin-node-resolve": "^11.2.1",
2819
"@rollup/plugin-typescript": "^8.2.1",
2920
"@types/jest": "^27.0.2",
3021
"@types/node": "^14.14.37",
3122
"jest": "^27.3.1",
32-
"obsidian": "^0.13.0",
23+
"obsidian": "^0.15.0",
3324
"rollup": "^2.32.1",
3425
"rollup-plugin-import-css": "^3.0.3",
3526
"ts-jest": "^27.0.7",

rollup.config.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,16 @@ export default {
2424
external: [
2525
"obsidian",
2626
"electron",
27-
"codemirror",
2827
"@codemirror/autocomplete",
29-
"@codemirror/closebrackets",
3028
"@codemirror/collab",
3129
"@codemirror/commands",
32-
"@codemirror/comment",
33-
"@codemirror/fold",
34-
"@codemirror/gutter",
35-
"@codemirror/highlight",
36-
"@codemirror/history",
3730
"@codemirror/language",
3831
"@codemirror/lint",
39-
"@codemirror/matchbrackets",
40-
"@codemirror/panel",
41-
"@codemirror/rangeset",
42-
"@codemirror/rectangular-selection",
4332
"@codemirror/search",
4433
"@codemirror/state",
45-
"@codemirror/stream-parser",
46-
"@codemirror/text",
47-
"@codemirror/tooltip",
4834
"@codemirror/view",
4935
"@lezer/common",
36+
"@lezer/highlight",
5037
"@lezer/lr",
5138
...builtins,
5239
],

versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"1.12.1": "0.15.0",
23
"1.10.0": "0.13.8",
34
"1.0.0": "0.12.0"
45
}

view-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RangeSetBuilder } from "@codemirror/rangeset";
1+
import { RangeSetBuilder } from "@codemirror/state";
22
import {
33
Decoration,
44
DecorationSet,

0 commit comments

Comments
 (0)