basant307/AI_Governance_Project
048
1## 6.12.3 (2026-03-25)2 3### Bug fixes4 5Fix a crash in `bracketMatching` when composing at end of document.6 7## 6.12.2 (2026-02-25)8 9### Bug fixes10 11Make sure brackets are highlighted in the initial editor state.12 13Pause bracket matching updates during composition, to avoid disrupting Mobile Safari's fragile composition handling.14 15## 6.12.1 (2025-12-22)16 17### Bug fixes18 19Improve finding inner language in syntax tree when the nested parse has been marked as bracketed.20 21## 6.11.3 (2025-08-15)22 23### Bug fixes24 25Make the stream parser user 4 times smaller chunks to reduce the amount of re-parsed code on changes.26 27## 6.11.2 (2025-06-27)28 29### Bug fixes30 31Make sure folded ranges open when backspacing or deleting into them.32 33## 6.11.1 (2025-06-02)34 35### Bug fixes36 37Fix an issue where indentation would sometimes miss nodes in mixed-language situations.38 39## 6.11.0 (2025-03-13)40 41### New features42 43Stream parsers now support a `mergeTokens` option that can be used to turn off automatic merging of adjacent tokens.44 45## 6.10.8 (2024-12-23)46 47### Bug fixes48 49Fix a regression introduced 6.10.7 that caused indention to sometimes crash on nested language boundaries.50 51## 6.10.7 (2024-12-17)52 53### Bug fixes54 55Fix an issue where indentation for a stream language would fail to work when the parse covered only part of the document, far from the start.56 57Make sure the inner mode gets a chance to indent when indenting right at the end of a nested language section.58 59## 6.10.6 (2024-11-29)60 61### Bug fixes62 63Fix a crash in `StreamLanguage` when the input range is entirely before the editor viewport.64 65## 6.10.5 (2024-11-27)66 67### Bug fixes68 69Fix an issue where a `StreamLanguage` could get confused when trying to reuse existing parse data when the parsed range changed.70 71## 6.10.4 (2024-11-24)72 73### Bug fixes74 75Join adjacent tokens of the same type into a single token in .76 77Call stream language indent functions even when the language is used as a nested parser.78 79Fix a crash in `StreamParser` when a parse was resumed with different input ranges.80 81## 6.10.3 (2024-09-19)82 83### Bug fixes84 85Fix a TypeScript error when using `HighlightStyle` with the `exactOptionalPropertyTypes` typechecking option enabled.86 87Make `delimitedIndent` align to spaces after the opening token.88 89## 6.10.2 (2024-06-03)90 91### Bug fixes92 93Fix an infinite loop that could occur when enabling `bidiIsolates` in documents with both bidirectional text and very long lines.94 95## 6.10.1 (2024-02-02)96 97### Bug fixes98 99Fix an issue where, when a lot of code is visible in the initial editor, the bottom bit of code is shown without highlighting for one frame.100 101## 6.10.0 (2023-12-28)102 103### New features104 105The new `bidiIsolates` extension can be used to wrap syntactic elements where this is appropriate in an element that isolates their text direction, avoiding weird ordering of neutral characters on direction boundaries.106 107## 6.9.3 (2023-11-27)108 109### Bug fixes110 111Fix an issue in `StreamLanguage` where it ran out of node type ids if you repeatedly redefined a language with the same token table.112 113## 6.9.2 (2023-10-24)114 115### Bug fixes116 117Allow `StreamParser` tokens get multiple highlighting tags.118 119## 6.9.1 (2023-09-20)120 121### Bug fixes122 123Indentation now works a lot better in mixed-language documents that interleave the languages in a complex way.124 125Code folding is now able to pick the right foldable syntax node when the line end falls in a mixed-parsing language that doesn't match the target node.126 127## 6.9.0 (2023-08-16)128 129### Bug fixes130 131Make `getIndentation` return null, rather than 0, when there is no syntax tree available.132 133### New features134 135The new `preparePlaceholder` option to `codeFolding` makes it possible to display contextual information in a folded range placeholder widget.136 137## 6.8.0 (2023-06-12)138 139### New features140 141The new `baseIndentFor` method in `TreeIndentContext` can be used to find the base indentation for an arbitrary node.142 143## 6.7.0 (2023-05-19)144 145### New features146 147Export `DocInput` class for feeding editor documents to a Lezer parser.148 149## 6.6.0 (2023-02-13)150 151### New features152 153Syntax-driven language data queries now support sublanguages, which make it possible to return different data for specific parts of the tree produced by a single language.154 155## 6.5.0 (2023-02-07)156 157### Bug fixes158 159Make indentation for stream languages more reliable by having `StringStream.indentation` return overridden indentations from the indent context.160 161### New features162 163The `toggleFold` command folds or unfolds depending on whether there's an existing folded range on the current line.164 165`indentUnit` now accepts any (repeated) whitespace character, not just spaces and tabs.166 167## 6.4.0 (2023-01-12)168 169### New features170 171The `bracketMatchingHandle` node prop can now be used to limit bracket matching behavior for larger nodes to a single subnode (for example the tag name of an HTML tag).172 173## 6.3.2 (2022-12-16)174 175### Bug fixes176 177Fix a bug that caused `ensureSyntaxTree` to return incomplete trees when using a viewport-aware parser like `StreamLanguage`.178 179## 6.3.1 (2022-11-14)180 181### Bug fixes182 183Make syntax-based folding include syntax nodes that start right at the end of a line as potential fold targets.184 185Fix the `indentService` protocol to allow a distinction between declining to handle the indentation and returning null to indicate the line has no definite indentation.186 187## 6.3.0 (2022-10-24)188 189### New features190 191`HighlightStyle` objects now have a `specs` property holding the tag styles that were used to define them.192 193`Language` objects now have a `name` field holding the language name.194 195## 6.2.1 (2022-07-21)196 197### Bug fixes198 199Fix a bug where `bracketMatching` would incorrectly match nested brackets in syntax trees that put multiple pairs of brackets in the same parent node.200 201Fix a bug that could cause `indentRange` to loop infinitely.202 203## 6.2.0 (2022-06-30)204 205### Bug fixes206 207Fix a bug that prevented bracket matching to recognize plain brackets inside a language parsed as an overlay.208 209### New features210 211The `indentRange` function provides an easy way to programatically auto-indent a range of the document.212 213## 6.1.0 (2022-06-20)214 215### New features216 217The `foldState` field is now public, and can be used to serialize and deserialize the fold state.218 219## 6.0.0 (2022-06-08)220 221### New features222 223The `foldingChanged` option to `foldGutter` can now be used to trigger a recomputation of the fold markers.224 225## 0.20.2 (2022-05-20)226 227### Bug fixes228 229List style-mod as a dependency.230 231## 0.20.1 (2022-05-18)232 233### Bug fixes234 235Make 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 property236 237## 0.20.0 (2022-04-20)238 239### Breaking changes240 241`HighlightStyle.get` is now called `highlightingFor`.242 243`HighlightStyles` no longer function as extensions (to improve tree shaking), and must be wrapped with `syntaxHighlighting` to add to an editor configuration.244 245`Language` objects no longer have a `topNode` property.246 247### New features248 249`HighlightStyle` and `defaultHighlightStyle` from the now-removed @codemirror/highlight package now live in this package.250 251The new `forceParsing` function can be used to run the parser forward on an editor view.252 253The exports that used to live in @codemirror/matchbrackets are now exported from this package.254 255The @codemirror/fold package has been merged into this one.256 257The exports from the old @codemirror/stream-parser package now live in this package.258 259## 0.19.10 (2022-03-31)260 261### Bug fixes262 263Autocompletion may now also trigger automatic indentation on input.264 265## 0.19.9 (2022-03-30)266 267### Bug fixes268 269Make sure nodes that end at the end of a partial parse aren't treated as valid fold targets.270 271Fix an issue where the parser sometimes wouldn't reuse parsing work done in the background on transactions.272 273## 0.19.8 (2022-03-03)274 275### Bug fixes276 277Fix an issue that could cause indentation logic to use the wrong line content when indenting multiple lines at once.278 279## 0.19.7 (2021-12-02)280 281### Bug fixes282 283Fix an issue where the parse worker could incorrectly stop working when the parse tree has skipped gaps in it.284 285## 0.19.6 (2021-11-26)286 287### Bug fixes288 289Fixes an issue where the background parse work would be scheduled too aggressively, degrading responsiveness on a newly-created editor with a large document.290 291Improve initial highlight for mixed-language editors and limit the amount of parsing done on state creation for faster startup.292 293## 0.19.5 (2021-11-17)294 295### New features296 297The new function `syntaxTreeAvailable` can be used to check if a fully-parsed syntax tree is available up to a given document position.298 299The module now exports `syntaxParserRunning`, which tells you whether the background parser is still planning to do more work for a given editor view.300 301## 0.19.4 (2021-11-13)302 303### New features304 305`LanguageDescription.of` now takes an optional already-loaded extension.306 307## 0.19.3 (2021-09-13)308 309### Bug fixes310 311Fix an issue where a parse that skipped content with `skipUntilInView` would in some cases not be restarted when the range came into view.312 313## 0.19.2 (2021-08-11)314 315### Bug fixes316 317Fix a bug that caused `indentOnInput` to fire for the wrong kinds of transactions.318 319Fix a bug that could cause `indentOnInput` to apply its changes incorrectly.320 321## 0.19.1 (2021-08-11)322 323### Bug fixes324 325Fix incorrect versions for @lezer dependencies.326 327## 0.19.0 (2021-08-11)328 329### Breaking changes330 331CodeMirror now uses lezer 0.15, which means different package names (scoped with @lezer) and some breaking changes in the library.332 333`EditorParseContext` is now called `ParseContext`. It is no longer passed to parsers, but must be retrieved with `ParseContext.get`.334 335`IndentContext.lineIndent` now takes a position, not a `Line` object, as argument.336 337`LezerLanguage` was renamed to `LRLanguage` (because all languages must emit Lezer-style trees, the name was misleading).338 339`Language.parseString` no longer exists. You can just call `.parser.parse(...)` instead.340 341### New features342 343New `IndentContext.lineAt` method to access lines in a way that is aware of simulated line breaks.344 345`IndentContext` now provides a `simulatedBreak` property through which client code can query whether the context has a simulated line break.346 347## 0.18.2 (2021-06-01)348 349### Bug fixes350 351Fix an issue where asynchronous re-parsing (with dynamically loaded languages) sometimes failed to fully happen.352 353## 0.18.1 (2021-03-31)354 355### Breaking changes356 357`EditorParseContext.getSkippingParser` now replaces `EditorParseContext.skippingParser` and allows you to provide a promise that'll cause parsing to start again. (The old property remains available until the next major release.)358 359### Bug fixes360 361Fix an issue where nested parsers could see past the end of the nested region.362 363## 0.18.0 (2021-03-03)364 365### Breaking changes366 367Update dependencies to 0.18.368 369### Breaking changes370 371The `Language` constructor takes an additional argument that provides the top node type.372 373### New features374 375`Language` instances now have a `topNode` property giving their top node type.376 377`TreeIndentContext` now has a `continue` method that allows an indenter to defer to the indentation of the parent nodes.378 379## 0.17.5 (2021-02-19)380 381### New features382 383This package now exports a `foldInside` helper function, a fold function that should work for most delimited node types.384 385## 0.17.4 (2021-01-15)386 387## 0.17.3 (2021-01-15)388 389### Bug fixes390 391Parse scheduling has been improved to reduce the likelyhood of the user looking at unparsed code in big documents.392 393Prevent parser from running too far past the current viewport in huge documents.394 395## 0.17.2 (2021-01-06)396 397### New features398 399The package now also exports a CommonJS module.400 401## 0.17.1 (2020-12-30)402 403### Bug fixes404 405Fix a bug where changing the editor configuration wouldn't update the language parser used.406 407## 0.17.0 (2020-12-29)408 409### Breaking changes410 411First numbered release.412 413 