v0.18.0
Minor Changes
-
#1120
25eef3eThanks @OmarTawfik! - migrate NAPI front-end to WASM and ESM -
#1120
25eef3eThanks @OmarTawfik! - addTerminalKindExtensions.is_valid()API to distinguish correctly-parsed and erroneous nodes -
#1117
be7bb79Thanks @OmarTawfik! - renameLanguageAPI toParser, in preparation for introducing a multi-file compilation API. -
#1116
c88f9b5Thanks @OmarTawfik! - mergelanguage,parse_error,parse_outputnamespaces into theparsernamespace. -
#1115
96df645Thanks @OmarTawfik! - mergecursor,kinds,query, andtext_indexnamespaces into thecstnamespace. -
#1120
25eef3eThanks @OmarTawfik! - unify API methods onTerminalNodeandNonTerminalNode, and add type assertions and guards to both types -
#1120
25eef3eThanks @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
25eef3eThanks @OmarTawfik! - addTerminalNode.idandNonterminal.idproperties to get a numeric ID that can be used in indexing/comparison at runtime. -
#1120
25eef3eThanks @OmarTawfik! - addTerminalKindExtensions.is_trivia()API to distinguish between trivia nodes and other contentful nodes
Patch Changes
-
#1096
15c437cThanks @OmarTawfik! - add support for Solidity0.8.27. -
#1120
25eef3eThanks @OmarTawfik! - changeParser::new()constructor toParser::create()static method. -
#1097
e17af22Thanks @OmarTawfik! - Fix the grammar of keywords (blobbasefee,blobhash,mcopy,tload,tstore) added in0.8.24, as they were actually reserved in0.8.25.