惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
腾讯CDC
J
Java Code Geeks
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
雷峰网
雷峰网
B
Blog RSS Feed
博客园_首页
量子位
F
Fortinet All Blogs
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog

Obsidian Blog

Obsidian Sync audits by Cure53 and Trail of Bits The future of Obsidian plugins Obsidian October 2025 Less is safer: how Obsidian reduces the risk of supply chain attacks Obsidian is now free for work 2024 Gems of the year winners 2024 Gems of the year nominations Second audit of Obsidian apps completed by Cure53 Obsidian Softwear: new Fractal t-shirts and hoodies Save the web Obsidian October 2024 Obsidian Sync now starts at $4 per month with the new Standard plan Announcing JSON Canvas: an open file format for infinite canvas data 2023 Gems of the year winners New security page and independent audit completed by Cure53 2023 Gems of the year nominations New Obsidian Sync plans: bigger, better, faster, smoother Goodbye legacy editor Obsidian Importer now converts Apple Notes to portable, durable files Obsidian October 2023 Free your notes How to verify Obsidian Sync's end-to-end encryption The new Obsidian icon New developer documentation site Obsidian Publish now offers more for less: a lower price, with new features, improved SEO and accessibility 2022 Gems of the year winners I’m joining Obsidian full-time as CEO New Code of Conduct for our community 2022 Gems of the year nominations Obsidian October 2022 winners
Plugin developers: CodeMirror 6 migration guide for v6.0
licat · 2022-06-14 · via Obsidian Blog

CodeMirror 6.0 is finally stable. That means Obsidian will be migrating from CM6 v0.19 to v6.0 soon.

In this post I will attempt to summarize everything you need to know about this upcoming migration with breaking changes.

When you upgrade your plugin to target CM6 v6.0, there is a possibility that it no longer works with older versions of Obsidian using CM6 v0.19. If this is the case, you should update your plugin’s manifest.json to indicate that your minAppVersion is 0.15.0, and also add the appropriate entries to versions.json to prevent users with older versions of Obsidian to upgrade your plugin.

Major changes:

  • Prec.fallback/override/extend is now Prec.highest/high/lowest.
  • blockAtHeight, visualLineAtHeight, viewportLines, visualLineAt are now deprecated. The replacements work slightly differently but they should be lineBlockAtHeight, viewportLineBlocks and lineBlockAt.
  • Syntax trees iterate function has changed signature from 3 parameters (node, from, to) to a single object parameter (obj: {node, type, from, to}) (details)
  • scrollPosIntoView, scrollTo, and centerOn is now scrollIntoView
  • Plugin fields no longer exist, and providing decorations from a view plugin now happens by providing a function to the EditorView.decorations facet. Same for atomic ranges and scroll margins — you must use a facet for them now.
  • Many packages has been merged into other packages:
    • text and rangeset are merged into state.
    • tooltip, gutter, panel, and rectangular-selection are merged into view.
    • matchbrackets, stream-parser, fold are merged into language. The custom exports from stream-parser are now available at lishid/cm-language.
    • comment and history are merged into commands.
    • closebrackets is merged into autocomplete.
    • highlight is split into language and @lezer/highlight.

For more minor changes, check out the full breaking release notes.

Share this post

Follow the latest Obsidian news