v0.18.0
Minor Changes
-
#1120
25eef3e
Thanks @OmarTawfik! - migrate NAPI front-end to WASM and ESM -
#1120
25eef3e
Thanks @OmarTawfik! - addTerminalKindExtensions.is_valid()
API to distinguish correctly-parsed and erroneous nodes -
#1117
be7bb79
Thanks @OmarTawfik! - renameLanguage
API toParser
, in preparation for introducing a multi-file compilation API. -
#1116
c88f9b5
Thanks @OmarTawfik! - mergelanguage
,parse_error
,parse_output
namespaces into theparser
namespace. -
#1115
96df645
Thanks @OmarTawfik! - mergecursor
,kinds
,query
, andtext_index
namespaces into thecst
namespace. -
#1120
25eef3e
Thanks @OmarTawfik! - unify API methods onTerminalNode
andNonTerminalNode
, and add type assertions and guards to both types -
#1120
25eef3e
Thanks @OmarTawfik! - expose edges and edge labels on CST nodes viaNode.children()
method. This allows distinguishing between children of the same node based on their label/role in the parent, even if they have the same kind. -
#1120
25eef3e
Thanks @OmarTawfik! - addTerminalNode.id
andNonterminal.id
properties to get a numeric ID that can be used in indexing/comparison at runtime. -
#1120
25eef3e
Thanks @OmarTawfik! - addTerminalKindExtensions.is_trivia()
API to distinguish between trivia nodes and other contentful nodes
Patch Changes
-
#1096
15c437c
Thanks @OmarTawfik! - add support for Solidity0.8.27
. -
#1120
25eef3e
Thanks @OmarTawfik! - changeParser::new()
constructor toParser::create()
static method. -
#1097
e17af22
Thanks @OmarTawfik! - Fix the grammar of keywords (blobbasefee
,blobhash
,mcopy
,tload
,tstore
) added in0.8.24
, as they were actually reserved in0.8.25
.