Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/language

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/language - npm Package Versions

1245

6.3.0

Diff

Changelog

Source

6.3.0 (2022-10-24)

New features

HighlightStyle objects now have a specs property holding the tag styles that were used to define them.

Language objects now have a name field holding the language name.

marijn
published 6.2.1 •

Changelog

Source

6.2.1 (2022-07-21)

Bug fixes

Fix a bug where bracketMatching would incorrectly match nested brackets in syntax trees that put multiple pairs of brackets in the same parent node.

Fix a bug that could cause indentRange to loop infinitely.

marijn
published 6.2.0 •

Changelog

Source

6.2.0 (2022-06-30)

Bug fixes

Fix a bug that prevented bracket matching to recognize plain brackets inside a language parsed as an overlay.

New features

The indentRange function provides an easy way to programatically auto-indent a range of the document.

marijn
published 6.1.0 •

Changelog

Source

6.1.0 (2022-06-20)

New features

The foldState field is now public, and can be used to serialize and deserialize the fold state.

marijn
published 6.0.0 •

Changelog

Source

6.0.0 (2022-06-08)

New features

The foldingChanged option to foldGutter can now be used to trigger a recomputation of the fold markers.

marijn
published 0.20.2 •

Changelog

Source

0.20.2 (2022-05-20)

Bug fixes

List style-mod as a dependency.

marijn
published 0.20.1 •

Changelog

Source

0.20.1 (2022-05-18)

Bug fixes

Make sure all styles in the CSS generated for a HighlightStyle have a lower precedence than the other rules defined for the style. Use a shorthand property

marijn
published 0.20.0 •

Changelog

Source

0.20.0 (2022-04-20)

Breaking changes

HighlightStyle.get is now called highlightingFor.

HighlightStyles no longer function as extensions (to improve tree shaking), and must be wrapped with syntaxHighlighting to add to an editor configuration.

Language objects no longer have a topNode property.

New features

HighlightStyle and defaultHighlightStyle from the now-removed @codemirror/highlight package now live in this package.

The new forceParsing function can be used to run the parser forward on an editor view.

The exports that used to live in @codemirror/matchbrackets are now exported from this package.

The @codemirror/fold package has been merged into this one.

The exports from the old @codemirror/stream-parser package now live in this package.

marijn
published 0.19.10 •

Changelog

Source

0.19.10 (2022-03-31)

Bug fixes

Autocompletion may now also trigger automatic indentation on input.

marijn
published 0.19.9 •

Changelog

Source

0.19.9 (2022-03-30)

Bug fixes

Make sure nodes that end at the end of a partial parse aren't treated as valid fold targets.

Fix an issue where the parser sometimes wouldn't reuse parsing work done in the background on transactions.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc