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

@codemirror/lang-html

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lang-html - npm Package Compare versions

Comparing version 6.1.4 to 6.2.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 6.2.0 (2022-11-16)
### New features
Add a `selfClosingTags` option to `html` that enables `/>` syntax.
## 6.1.4 (2022-11-15)

@@ -2,0 +8,0 @@

1

dist/index.d.ts

@@ -61,2 +61,3 @@ import * as _codemirror_state from '@codemirror/state';

matchClosingTags?: boolean;
selfClosingTags?: boolean;
/**

@@ -63,0 +64,0 @@ Determines whether [`autoCloseTags`](https://codemirror.net/6/docs/ref/#lang-html.autoCloseTags)

@@ -575,2 +575,4 @@ import { parser, configureNesting } from '@lezer/html';

lang = lang.configure({ dialect: "noMatch" });
if (config.selfClosingTags === true)
lang = lang.configure({ dialect: "selfClosing" });
return new LanguageSupport(lang, [

@@ -577,0 +579,0 @@ htmlLanguage.data.of({ autocomplete: htmlCompletionSourceWith(config) }),

4

package.json
{
"name": "@codemirror/lang-html",
"version": "6.1.4",
"version": "6.2.0",
"description": "HTML language support for the CodeMirror code editor",

@@ -34,3 +34,3 @@ "scripts": {

"@codemirror/state": "^6.0.0",
"@lezer/html": "^1.0.1",
"@lezer/html": "^1.1.0",
"@lezer/common": "^1.0.0",

@@ -37,0 +37,0 @@ "@codemirror/view": "^6.2.2"

Sorry, the diff of this file is not supported yet

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