diff --git a/.changeset/clever-cats-brush.md b/.changeset/clever-cats-brush.md deleted file mode 100644 index ca366265..00000000 --- a/.changeset/clever-cats-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'highlightjs-glimmer': patch ---- - -Declare support for Node 20 diff --git a/highlightjs-glimmer/CHANGELOG.md b/highlightjs-glimmer/CHANGELOG.md index 887c13c4..d4096f06 100644 --- a/highlightjs-glimmer/CHANGELOG.md +++ b/highlightjs-glimmer/CHANGELOG.md @@ -1,5 +1,11 @@ # highlightjs-glimmer +## 2.2.1 + +### Patch Changes + +- [#429](https://github.com/NullVoxPopuli/highlightjs-glimmer/pull/429) [`263c15b`](https://github.com/NullVoxPopuli/highlightjs-glimmer/commit/263c15bdea067783144569b544e277f7ef74f05b) Thanks [@davidtaylorhq](https://github.com/davidtaylorhq)! - Declare support for Node 20 + ## 2.2.0 ### Minor Changes @@ -8,27 +14,26 @@ This change refactors things so that glimmer-javascript is defined and exported as a standalone grammar. Instead of patching the standard javascript grammar, it uses the `subLanguage` feature to extend it cleanly. hbs-literal and template-tag support are added via additional 'contains' rules. - To maintain the existing 'override javascript grammar' behavior for existing consumers of this package, the setup APIs will unregister the default `javascript` grammar, and register `javascript`, `js`, `mjs` and `cjs` as aliases of the new `glimmer-javascript` grammar. Consumers who want to take advantage of the standalone grammar can import it and register using the standard `hljs.registerLanguage` technique. For example: - + ```js import hljs from 'highlight.js'; import { glimmerJavascript } from 'highlightjs-glimmer'; - + // 'javascript' must also be registered prior to running this hljs.registerLanguage('glimmer-javascript', glimmerJavascript); ``` - + The old usage, `setup` and other methods, - + ```js import hljs from 'highlight.js'; import { setup } from 'highlightjs-glimmer'; - + setup(hljs); - + hljs.highlightAll(); ``` diff --git a/highlightjs-glimmer/package.json b/highlightjs-glimmer/package.json index 61c69a3e..7895ed5c 100644 --- a/highlightjs-glimmer/package.json +++ b/highlightjs-glimmer/package.json @@ -1,6 +1,6 @@ { "name": "highlightjs-glimmer", - "version": "2.2.0", + "version": "2.2.1", "description": "Glimmer syntax highlighting with Highlight.JS", "main": "dist/glimmer.cjs.cjs", "browser": "dist/glimmer.esm.min.js",