You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
[9e32f8d]: ohm.util is removed from the public API. getLineAndColumn and getLineAndColumn have been moved into the extras module.
[feat(toAST): by default, represent built-in list rules by arrays #398]: Changed the default behavior toAST for the built-in list rules (ListOf and 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).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Browser bundles: ohm.js • ohm.min.js
Breaking changes:
any
consume a full code point, not a single code unit #424]:any
now consumes an entire code point (i.e., a full Unicode character), not just a single, 16-bit code unit.namespace
,extendNamespace
) have been removed. (These were always optional.)ohm-js/extras
.keyof
type operator forActionDict
#395]: In generated type definitions, action dictionary types now inherit fromBaseActionDict<T>
, a new supertype ofActionDict<T>
.ohm.util
is removed from the public API.getLineAndColumn
andgetLineAndColumn
have been moved into theextras
module.toAST
for the built-in list rules (ListOf
and 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:
toString
on a NodeWrapper #416]: Fix crash when callingtoString
on a non-root nodegrammarFromScriptElement
andgrammarsFromScriptElements
functions have been entirely removed.asIteration
operationInterval.getLineAndColumn
primitiveValue
property of nodes, which was deprecated in Ohm v16, has now been completely removed.This discussion was created from the release Ohm v17.0.3.
Beta Was this translation helpful? Give feedback.
All reactions