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

@codemirror/lang-javascript

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lang-javascript - npm Package Compare versions

Comparing version 6.2.1 to 6.2.2

6

CHANGELOG.md

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

## 6.2.2 (2024-02-20)
### Bug fixes
Fix a bug that would cause self-closing JSX tags to have another closing tag inserted when typing the final '>'.
## 6.2.1 (2023-08-28)

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

2

dist/index.d.ts

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

JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets)
completion.
and local variable completion.
*/

@@ -30,0 +30,0 @@ declare function javascript(config?: {

@@ -357,3 +357,3 @@ import { parser } from '@lezer/javascript';

JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets)
completion.
and local variable completion.
*/

@@ -421,3 +421,3 @@ function javascript(config = {}) {

let openTag = findOpenTag(around);
if (openTag &&
if (openTag && openTag.name == "JSXOpenTag" &&
!/^\/?>|^<\//.test(state.doc.sliceString(head, head + 2)) &&

@@ -424,0 +424,0 @@ (name = elementName(state.doc, openTag, head)))

{
"name": "@codemirror/lang-javascript",
"version": "6.2.1",
"version": "6.2.2",
"description": "JavaScript language support for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {

@@ -29,3 +29,3 @@ <!-- NOTE: README.md is generated from src/README.md -->

<dd><p>JavaScript support. Includes <a href="#user-content-snippets">snippet</a>
completion.</p>
and local variable completion.</p>
</dd>

@@ -66,2 +66,8 @@ <dt id="user-content-javascriptlanguage">

</dd>
<dt id="user-content-typescriptsnippets">
<code><strong><a href="#user-content-typescriptsnippets">typescriptSnippets</a></strong>: <a href="https://codemirror.net/docs/ref#autocomplete.Completion">Completion</a>[]</code></dt>
<dd><p>A collection of snippet completions for TypeScript. Includes the
JavaScript <a href="#user-content-snippets">snippets</a>.</p>
</dd>
<dt id="user-content-localcompletionsource">

@@ -68,0 +74,0 @@ <code><strong><a href="#user-content-localcompletionsource">localCompletionSource</a></strong>(<a id="user-content-localcompletionsource^context" href="#user-content-localcompletionsource^context">context</a>: <a href="https://codemirror.net/docs/ref#autocomplete.CompletionContext">CompletionContext</a>) → <a href="https://codemirror.net/docs/ref#autocomplete.CompletionResult">CompletionResult</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></code></dt>

Sorry, the diff of this file is not supported yet

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