Releases: ohmjs/ohm
Releases · ohmjs/ohm
Ohm v17.2.1
Browser bundles: ohm.js • ohm.min.js
New features:
- [456b540]: asIteration() is now support for iter nodes (returns the node itself)
Fixes
- [59b17ec]: Expose Matcher’s grammar prop in TS types
Ohm v17.1.0
Browser bundles: ohm.js • ohm.min.js
New features:
- Added
extractExamplesto theextrasmodule, which can extract example inputs — written with a special comment syntax — from grammar definitions.
Ohm v17.0.4
Browser bundles: ohm.js • ohm.min.js
Fixes
Ohm v17.0.3
Browser bundles: ohm.js • ohm.min.js
Breaking changes:
- [#424]:
anynow consumes an entire code point (i.e., a full Unicode character), not just a single, 16-bit code unit. - [55c787b]: The namespace helpers (
namespace,extendNamespace) have been removed. (These were always optional.) - [bea0be9]: When used as an ES module, the main 'ohm-js' module now has only named exports (i.e., no default export). The same is true for
ohm-js/extras. - [#395]: In generated type definitions, action dictionary types now inherit from
BaseActionDict<T>, a new supertype ofActionDict<T>. - [9e32f8d]:
ohm.utilis removed from the public API.getLineAndColumnandgetLineAndColumnhave been moved into theextrasmodule. - [#398]: Changed the default behavior
toASTfor the built-in list rules (ListOfand friends). Both the syntactic (ListOf, ...) and lexical versions (listOf, ...) are now represented as arrays, with the separators discarded. Previously, the syntactic versions were represented by arrays, but with separators included, and the lexical versions were represented as strings (just like other lexical rules).
Other notable changes:
- [#416]: Fix crash when calling
toStringon a non-root node - [13c8991]: The deprecated
grammarFromScriptElementandgrammarsFromScriptElementsfunctions have been entirely removed. - Improvements to the TypeScript types:
- [#368]: The
primitiveValueproperty of nodes, which was deprecated in Ohm v16, has now been completely removed.
Ohm v16.6.0
Browser bundles: ohm.js • ohm.min.js
Bug fixes
- Fixed an issue with the Interval types: they no longer have an
inputStreamproperty; but they do have asourceStringproperty.
New features
- Added type information for remaining methods of Interval
Ohm v16.5.0
Browser bundles: ohm.js • ohm.min.js
New features
Ohm v16.4.0
Ohm v16.3.4
Ohm v16.3.3
Browser bundles: ohm.js • ohm.min.js
Bug fixes
- [#374] Fixed incorrect type annotation for
Node.isOptional()
Ohm v16.3.2
Browser bundles: ohm.js • ohm.min.js
Bug fixes
- [#370] Fix ohmjs/ohm-editor#72 - grammars with super-splice (
...) not working in the Ohm Editor