unstale

npm / yuku-parser

yuku-parser

What changed in yuku-parser 0.2 to 0.28, from its official release notes, upgrade guides and advisories. Also covers yuku-analyzer, yuku-codegen. Sources checked 2026-11-24.

125 breaking1 security31 new APIs and options22 performance11 behavior and defaults90 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

yuku-parser 0.2811 changes

Breaking changes 5

  • The ast.outOfMemory API is gone.

    0.28.0release notes

  • Code nested too deeply now reports a parse error instead of crashing the process.

    0.28.0release notes

  • Running out of memory now throws an error instead of aborting the process.

    0.28.0release notes

  • The Zig parser returns error.OutOfMemory instead of panicking, so callers must handle the error from parser.parse.

    0.28.0release notes

  • Throws on a hand-built tree containing a node where the parser never puts one; place nodes where the parser expects them.

    0.28.0release notes

Performance 3

  • Parsing is faster on code with many operators, strings, and block comments.

    0.28.1release notes

  • Printing a file whose program and comments have not been read prints directly from its source without building the JavaScript tree, making parsing and printing faster.

    0.28.1release notes

  • Parsing TypeScript such as a<a<a< no longer takes quadratic time.

    0.28.0release notes

Fixes and other changes 3

  • A parenthesized arrow body that cannot be arrow parameters no longer takes the conditional's : as its return type, so the expression parses as TypeScript reads it.

    0.28.1release notes

  • Handles long chains and deep nesting without a RangeError; trees too deep to print are reported in diagnostics.

    0.28.0release notes

  • A failed WebAssembly call no longer breaks subsequent parses.

    0.28.0release notes

yuku-parser 0.2710 changes

Breaking changes 3

  • Bundling into one file and running without node_modules now fails on the first parse; pass --conditions=module or keep yuku external.

    0.27.0release notes

  • Names in a type member's computed key, such as [a + b], now resolve as values.

    0.27.0release notes

  • Index signature parameters in exported types are no longer classified as Exported.

    0.27.0release notes

New APIs and options 1

  • CoreOptions.wasm now also accepts a function, which runs only where no addon loads.

    0.27.0release notes

Performance 2

  • Parsing deeply nested conditionals, arrows, and generics no longer takes exponential time.

    0.27.0release notes

  • Importing yuku on Node no longer loads WebAssembly when the addon runs, saving about 5 ms and 7 MB.

    0.27.0release notes

Behavior and default changes 1

  • Exporting a nested namespace exports its outer namespace; renaming the outer namespace preserves its export, while renaming the member is refused.

    0.27.0release notes

Fixes and other changes 3

  • Imports, catch variables, type parameters, and index signature parameters in ambient code are classified as Ambient.

    0.27.0release notes

  • A default-exported interface keeps its binding and is read as a type, allowing a definition from another file to find it.

    0.27.0release notes

  • Valid typed arrows inside a conditional now parse.

    0.27.0release notes

yuku-parser 0.2614 changes

Breaking changes 10

  • An escaped word in a class body is treated as a member name, not a modifier.

    0.26.1release notes

  • Strict TypeScript reports legacy octal numbers and escapes in types, as TypeScript does.

    0.26.1release notes

  • No longer counts names in a decorator as uses inside the function it decorates.

    0.26.0release notes

  • A comment built without a position prints before its node instead of being dropped.

    0.26.0release notes

  • parse takes analyze: true in place of semantic: true.

    0.26.0release notes

  • print runs Yuku's Zig printer; replace custom node types with standard nodes before printing.

    0.26.0release notes

  • Throws a TypeError naming the field when a node does not fit the AST.

    0.26.0release notes

  • The Printer type is removed because print runs Yuku's Zig printer.

    0.26.0release notes

  • The printers option is removed because print runs Yuku's Zig printer.

    0.26.0release notes

  • The Printers type is removed because print runs Yuku's Zig printer.

    0.26.0release notes

Behavior and default changes 1

  • Diagnostics read more like TypeScript's, with clearer module errors from Project and shorter help text.

    0.26.1release notes

Fixes and other changes 3

  • JSX parses after new and extends; .tsx files report that parentheses are needed there, matching TypeScript.

    0.26.1release notes

  • A JSX element with a mismatched closing tag remains in the AST alongside its error.

    0.26.1release notes

  • Rebuilds the semantic model for an edited program on the same node objects, allowing nodes added without a position to resolve.

    0.26.0release notes

yuku-parser 0.2510 changes

New APIs and options 1

  • Adds a utility that decodes character references in JSX text and attribute strings.

    0.25.0release notes

Performance 2

Behavior and default changes 1

  • The pretty format keeps a parameter's decorators on its line.

    0.25.0release notes

Fixes and other changes 6

  • In Zig, ast.JSXText has its decoded value again.

    0.25.0release notes

  • JSXText.raw is optional in the types because built nodes have no raw source text.

    0.25.0release notes

  • Diagnostics cover the whole character they point at, avoiding split emoji, and trailing numeric separators are reported at the underscore.

    0.25.0release notes

  • Printing (value?.prop)!.x parsed with preserveParens: false keeps the parentheses that end the optional chain.

    0.25.0release notes

  • Printing preserves source text only while it still spells the node's value; edited values are printed, and built JSX text without raw source prints valid JSX.

    0.25.0release notes

  • In sloppy JavaScript, a function declared in a block also binds where a var of its name would, so later uses resolve to it and are renamed with it.

    0.25.0release notes

yuku-parser 0.2415 changes

Breaking changes 12

  • The b builders replace the js and ts templates for building nodes.

    0.24.1release notes

  • The b builders are removed; build nodes with js and ts, and build nested nodes from a template of their container.

    0.24.0release notes

  • bindingIdentifiers is removed; read binding.declarations instead.

    0.24.0release notes

  • clone is removed; copy a node with structuredClone instead.

    0.24.0release notes

  • langFromPath is removed; read file.lang instead.

    0.24.0release notes

  • nameOf is removed; read node.name instead.

    0.24.0release notes

  • The pattern API is removed; test nodes in a walk visitor with is guards instead.

    0.24.0release notes

  • A regular expression after an expression ending in an arrow function or yield parses; an arrow-function expression followed by + 1 is an error.

    0.24.0release notes

  • sourceTypeFromPath is removed; read file.sourceType instead.

    0.24.0release notes

  • Cloudflare Workers and Vercel Edge users must also install @yuku-toolchain/wasm.

    0.24.0release notes

  • On Cloudflare Workers and Vercel Edge, import the wasm module from @yuku-toolchain/wasm/yuku.wasm instead of yuku/yuku.wasm.

    0.24.0release notes

  • Import is, unwrap, and the identifier checks from yuku/utils as plain exports.

    0.24.0release notes

Performance 2

  • Installing yuku fetches only the addon for its platform, reducing the install size from about 7.5 MB to 2.4 MB.

    0.24.0release notes

  • Templates with holes build 3 to 7 times faster.

    0.24.0release notes

Behavior and default changes 1

  • Templates accept a string or number inside quotes and improve handling of yield, JSX closing tags, name types, comments, and nodes used twice.

    0.24.0release notes

yuku-parser 0.233 changes

Breaking changes 1

  • The wasm option of parse and new Project is replaced by core; pass core: new Core({ wasm: module }) instead.

    0.23.0release notes

New APIs and options 1

  • Core can include addons, allowing a dialect to run natively in Node.js, Bun, and Deno when its package ships those addons in its core.

    0.23.0release notes

Behavior and default changes 1

  • addAddons in build.zig builds addons for every platform.

    0.23.0release notes

yuku-parser 0.2250 changes

Breaking changes 41

  • Enum member names follow TypeScript: string and template-literal names resolve, numeric names are errors, and computed members start at their opening bracket.

    0.22.2release notes

  • Removed.

    0.22.0release notes

  • Removed; test binding.flags instead.

    0.22.0release notes

  • Removed; read exports from parse(source, { semantic: true }).

    0.22.0release notes

  • Removed; read imports from parse(source, { semantic: true }).

    0.22.0release notes

  • Accepts "all" and "none" instead of true and false.

    0.22.0release notes

  • Scoped or semantic traversers read ctx.scope.current in place of currentScope().

    0.22.0release notes

  • Scoped or semantic traversers use ctx.scope.get(id) in place of the removed scope accessors.

    0.22.0release notes

  • Removed; read export.name instead.

    0.22.0release notes

  • Scopes, bindings, references, imports, exports, and definitions use file in place of module; imports and exports use resolvedFile in place of resolvedModule.

    0.22.0release notes

  • Use with walk in place of the removed module.walk and module.findAll APIs.

    0.22.0release notes

  • Removed; use walk with a typed handler.

    0.22.0release notes

  • Use flags.intersects(Symbol.value_space), and likewise for types and namespaces, in place of flags.inValueSpace().

    0.22.0release notes

  • Removed; read import.kind instead.

    0.22.0release notes

  • Removed; use nameOf(unwrap(node.callee)) on a CallExpression.

    0.22.0release notes

  • Removed; use is.Wrapper instead.

    0.22.0release notes

  • Replaces isStrictBindOnlyReservedWord.

    0.22.0release notes

  • Identifier checks are now under lexical.

    0.22.0release notes

  • Replaces isStrictBindReservedWord, alongside lexical.isEvalOrArguments.

    0.22.0release notes

  • Removed because queries relink as needed.

    0.22.0release notes

  • Removed; use node.value instead.

    0.22.0release notes

  • Now accepts only true or false and also selects compact format, shortest quotes, and "some" comments; format, quotes, and comments can override these choices.

    0.22.0release notes

  • Module is now SourceFile, and module.ast is now file.program.

    0.22.0release notes

  • Returns a SourceFile instead of ParseResult; reading tokens without tokens: true throws.

    0.22.0release notes

  • Zig semantic types now come from parser.semantic; traverser.semantic and traverser.scoped no longer re-export them.

    0.22.0release notes

  • Replaces generate, uses PrintOptions and PrintResult, and accepts a SourceFile as well as a node.

    0.22.0release notes

  • Throws when given an option it does not know.

    0.22.0release notes

  • Replaces the print option.

    0.22.0release notes

  • Replaces Analyzer; use set, delete, and files in place of setFile, deleteFile, modules, and module(path).

    0.22.0release notes

  • Replaces AnalyzerOptions; SetFileOptions is likewise replaced by FileOptions.

    0.22.0release notes

  • Replaces module.lookup.

    0.22.0release notes

  • Set semantic: true to put scopes, bindings, references, imports, and exports on the SourceFile; reading the semantic model without it throws.

    0.22.0release notes

  • Removed; iterate semantic.symbols instead.

    0.22.0release notes

  • Replaces semantic.scope(id).

    0.22.0release notes

  • Removed; check tree.diagnostics.items.len instead.

    0.22.0release notes

  • Use Tree.init(allocator, "") in place of Tree.initEmpty(allocator).

    0.22.0release notes

  • Removed; filter file.references by binding === null instead.

    0.22.0release notes

  • Takes no state argument, returns nothing, and its context has no node or state; keep state in handler scope. It also accepts a list of visitors in one pass and is 43 to 48% faster.

    0.22.0release notes

  • Removed; collect nodes in one walk, await the work, then edit in a second walk.

    0.22.0release notes

  • Import everything from yuku; the yuku/analyzer, yuku/ast, yuku/codegen, and yuku/types entry points are removed.

    0.22.0release notes

  • Replaces tree.setIdentifierName.

    0.22.0release notes

New APIs and options 6

  • Renames a binding at its declaration and uses, preserves file exports, and returns reasons without changing code when a rename would change meaning.

    0.22.0release notes

  • Makes a deep copy of a node.

    0.22.0release notes

  • Returns the line and column for an offset.

    0.22.0release notes

  • Builds nodes from code with values in its holes.

    0.22.0release notes

  • Matches nodes against code patterns with holes and returns what each hole captured.

    0.22.0release notes

  • Set sourceMap: true to add a source map with the default print options.

    0.22.0release notes

Performance 1

  • Node.js, Bun, and Deno with --allow-ffi run Yuku natively on macOS, Linux, and Windows for x64 and arm64, parsing a whole project 27 to 34% faster with up to 35% less peak memory; everything else keeps running WebAssembly.

    0.22.1release notes

Fixes and other changes 2

  • Regular expressions with unknown, repeated, or conflicting flags keep their node and the code after it, and the error points at the flag.

    0.22.2release notes

  • Now preserves exact values for hexadecimal, octal, and binary literals above 2^64 and reads decimal literals of any length.

    0.22.0release notes

yuku-parser 0.2120 changes

Breaking changes 10

  • Early errors that need scopes, such as redeclarations, are reported only when semanticErrors is true, matching parse.

    0.21.0release notes

  • Zig removes ast.JSXText.value; decode raw with lexical.decodeJSXEntities instead.

    0.21.0release notes

  • The Zig parse option now takes .none, .collect, or .attach instead of .flat, .attached, or .both.

    0.21.0release notes

  • In a custom Zig traverser context, enter takes the node tag first.

    0.21.0release notes

  • In a custom Zig traverser context, exit takes the node tag first.

    0.21.0release notes

  • Zig semantic.analyze takes options and reports early errors only when .check is true.

    0.21.0release notes

  • Custom traverser contexts no longer use traverser.Layer; pass the visitor directly to traverser.walk with .whole_tree.

    0.21.0release notes

  • A custom traverser context passes its visitor directly to traverser.walk with a .whole_tree option, replacing traverser.Layer.

    0.21.0release notes

  • In Zig, tree.commentsOf returns an iterator of Comment.

    0.21.0release notes

  • AttachedComment is no longer exported; use Comment, which also has start and end, for the same comment objects held in a node's comments.

    0.21.0release notes

New APIs and options 4

  • Zig parser.lexical provides the lexer's rules for identifiers, keywords, line breaks, and escapes, including isEvalOrArguments.

    0.21.0release notes

  • Finds a member of a namespace or enum across its merged bodies in Zig.

    0.21.0release notes

  • Adds a node's comments in Zig.

    0.21.0release notes

  • Moves a node's comments in Zig.

    0.21.0release notes

Performance 2

  • analyze is 17 to 21% faster on large files, or 12 to 16% faster with semanticErrors.

    0.21.0release notes

  • Zig semantic analysis is 14 to 20% faster.

    0.21.0release notes

Behavior and default changes 1

  • Identifier checks in yuku/ast follow the parser's Unicode version on every runtime instead of the runtime's own version.

    0.21.0release notes

Fixes and other changes 3

  • A decorator with type arguments now parses before export, as in @dec<T> export class A {}.

    0.21.0release notes

  • (): (void) => {} reads (void) as the return type, and type F = (this) => void parses as a function type.

    0.21.0release notes

  • Identifiers that escape $ or _, such as $a, now parse.

    0.21.0release notes

yuku-parser 0.2029 changes

Breaking changes 11

  • yuku/types no longer exports Core.

    0.20.0release notes

  • The semantic traverser's Ctx.init now takes a mode.

    0.20.0release notes

  • Ctx.parentOf is removed.

    0.20.0release notes

  • The Zig build option -Dparser-extension is replaced by -Ddialect.

    0.20.0release notes

  • Node.js 16.4 or newer is required.

    0.20.0release notes

  • SymbolTracker.init now takes a mode.

    0.20.0release notes

  • Browsers need WebAssembly SIMD, such as Safari 16.4 or newer.

    0.20.0release notes

  • Yuku now ships as one package; install yuku and import from yuku, yuku/analyzer, yuku/ast, yuku/codegen, and yuku/types.

    0.20.0release notes

  • The yuku-core package is removed because everything runs on the WebAssembly module inside yuku.

    0.20.0release notes

  • The @yuku-core/binding-* native packages are removed because everything runs on the WebAssembly module inside yuku.

    0.20.0release notes

  • The @yuku-core/wasm package is removed because everything runs on the WebAssembly module inside yuku.

    0.20.0release notes

New APIs and options 2

  • Dialects let you add custom syntax to the parser in Zig, match it to files by extension, and pass it to parse and analyze through the wasm option.

    0.20.0release notes

  • The wasm option lets parse and analyze receive dialects.

    0.20.0release notes

Performance 4

  • generate is 12 to 17% faster with a source map, and 7 to 13% faster without one.

    0.20.1release notes

  • Parsing is 13 to 22% faster.

    0.20.0release notes

  • Repeated calls reuse memory, making batches that mix large and small files much faster.

    0.20.0release notes

  • semanticErrors is 29 to 49% cheaper because it skips the full semantic model.

    0.20.0release notes

Behavior and default changes 2

  • unwrap from yuku/ast accepts any node, null, or undefined, and returns anything it does not unwrap as it is.

    0.20.1release notes

  • Yuku runs unchanged in Node.js, Bun, Deno, browsers, and Workers, with no setup before the first parse.

    0.20.0release notes

Fixes and other changes 10

  • Parsing works on big-endian hosts such as s390x.

    0.20.1release notes

  • Yuku runs in Vercel's Edge Runtime, which loads it through the edge-light condition.

    0.20.1release notes

  • A for (init;;) head parses in correctly inside parentheses, literals, templates, functions, and classes.

    0.20.1release notes

  • generate keeps the braces in import type {} from "m", which previously printed as invalid import type "m".

    0.20.1release notes

  • generate keeps parentheses around a ++ or -- operand followed by a comment that breaks the line.

    0.20.1release notes

  • JSX text after a closing fragment parses, so <p><>a</> — b</p> works.

    0.20.1release notes

  • module.imports lists export {} from "m" as a side-effect import, and import() or require() of a parenthesized string or a template literal without substitutions.

    0.20.1release notes

  • Source maps map a JSX attribute's string value, and a string key that minifying prints as a name, to its own column.

    0.20.1release notes

  • super() in a computed key of a class inside a derived constructor no longer reports an error.

    0.20.1release notes

  • TypeScript overloads of a private method no longer report a duplicate private name.

    0.20.1release notes

yuku-parser 0.193 changes

Breaking changes 1

  • Using Yuku as a Zig package now requires Zig 0.17.0 or later, so upgrade Zig before updating.

    0.19.0release notes

Security 1

  • Parsing an empty source now works correctly in runtimes like WebContainers, where leftover bytes could be read as input.

    0.19.0release notes

Behavior and default changes 1

  • generate prints any single node, such as an object property, rather than only a whole Program.

    0.19.0release notes

yuku-parser 0.1819 changes

Breaking changes 5

  • Core.analyze now takes a string; decode UTF-8 bytes before passing them.

    0.18.0release notes

  • Core.parse now takes a string; decode UTF-8 bytes before passing them. parse still accepts bytes.

    0.18.0release notes

  • The parser rejects decorators on both sides of export.

    0.18.0release notes

  • The parser reports duplicate exports and redeclarations as TypeScript does.

    0.18.0release notes

  • The parser rejects import and export in scripts and below the top level.

    0.18.0release notes

New APIs and options 1

  • Trees of any depth can now be decoded and walked.

    0.18.0release notes

Behavior and default changes 1

  • The parser now attaches comments at any depth.

    0.18.0release notes

Fixes and other changes 12

  • Code generation prints every attached comment.

    0.18.1release notes

  • Code generation strips an uninitialized const as ambient.

    0.18.1release notes

  • Code generation reprints a hashbang verbatim.

    0.18.1release notes

  • The parser joins a surrogate pair in a string regardless of how it is written.

    0.18.1release notes

  • The parser spans a type predicate's type without including its stripped parentheses.

    0.18.1release notes

  • The analyzer marks members of a declare enum as ambient.

    0.18.0release notes

  • The analyzer merges declare module augmentations into the augmented module.

    0.18.0release notes

  • Code generation keeps decorators before export.

    0.18.0release notes

  • The findAll parameter type is corrected.

    0.18.0release notes

  • The analyzer resolves ns in the namespace space for import x = ns.T.

    0.18.0release notes

  • The parser decodes entities in JSX text and attribute values.

    0.18.0release notes

  • Pattern unions have corrected types.

    0.18.0release notes

yuku-parser 0.176 changes

Breaking changes 5

  • Load the WebAssembly core and pass it as core to parse, analyze, or new Analyzer.

    0.17.0release notes

  • The init() API is removed; load() or loadSync() from @yuku-core/wasm can load the WebAssembly core.

    0.17.0release notes

  • Installing @yuku-core/wasm no longer switches the packages to it, and platforms without a native build no longer fall back to it; pass it in as core instead.

    0.17.0release notes

  • The WebAssembly package is renamed from @yuku-engine/wasm to @yuku-core/wasm.

    0.17.0release notes

  • The engine package is renamed from yuku-engine to yuku-core.

    0.17.0release notes

Performance 1

yuku-parser 0.1522 changes

Breaking changes 15

  • Replaces Symbol in the analyzer API.

    0.15.0release notes

  • Replaces analyzer.definitionOf.

    0.15.0release notes

  • Replaces analyzer.referencesOf.

    0.15.0release notes

  • Replaces the .symbol property in the analyzer API.

    0.15.0release notes

  • Replaces SymbolFlags in the analyzer API.

    0.15.0release notes

  • Replaces symbolOf in the analyzer API.

    0.15.0release notes

  • Replaces symbols in the analyzer API.

    0.15.0release notes

  • Replaces removeFile in the analyzer API.

    0.15.0release notes

  • Kind predicates are removed except imp.isNamespace; compare kind instead.

    0.15.0release notes

  • An unknown lang now throws a TypeError.

    0.15.0release notes

  • Replaces module.resolve(name, scope, space) with module.lookup(name, { from, space }).

    0.15.0release notes

  • Link diagnostics use the shared diagnostic shape, with path in place of module.

    0.15.0release notes

  • A resolver returns false for a module outside the project; null means unresolved.

    0.15.0release notes

  • Replaces addFile in the analyzer API.

    0.15.0release notes

  • An unknown sourceType now throws a TypeError.

    0.15.0release notes

New APIs and options 5

Fixes and other changes 2

  • Names, merges, and exports resolve as tsc does.

    0.15.0release notes

  • The analyzer probes module paths in TypeScript's order.

    0.15.0release notes

yuku-parser 0.145 changes

Breaking changes 1

Fixes and other changes 4

  • The parser accepts async function expressions after new and extends.

    0.14.0release notes

  • The parser allows duplicate simple parameters in sloppy async and generator functions.

    0.14.0release notes

  • Each switch case statement starts on its own line in generated code.

    0.14.0release notes

  • The parser accepts legal line breaks in TypeScript declarations.

    0.14.0release notes

yuku-parser 0.133 changes

Performance 1

Fixes and other changes 2

  • Closes code generation, source map, and semantic gaps.

    0.13.0release notes

  • Closes cover grammar gaps in patterns and async arrow heads.

    0.13.0release notes

yuku-parser 0.125 changes

Fixes and other changes 5

  • Annotation comments with leading whitespace are kept.

    0.12.0release notes

  • JSX closing tags are matched across whitespace and comments.

    0.12.0release notes

  • JSX components named with _, $, or non-ASCII characters are referenced.

    0.12.0release notes

  • Lists longer than 65535 items are no longer truncated.

    0.12.0release notes

  • Uint8Array sources are decoded before text is read from them.

    0.12.0release notes

yuku-parser 0.112 changes

Breaking changes 1

  • Deprecated walking and codegen entry points were removed.

    0.11.0release notes

Fixes and other changes 1

  • Codegen now keeps the trailing comma on an arrow's lone type parameter.

    0.11.0release notes

yuku-parser 0.103 changes

New APIs and options 1

Performance 1

Fixes and other changes 1

  • The parser no longer repeats a rejected TypeScript speculation.

    0.10.2release notes

yuku-parser 0.911 changes

Breaking changes 1

  • Rejects initialized for-in and for-of heads at parse time.

    0.9.1release notes

New APIs and options 1

  • Adds minimal compile-time extension points for authors extending the parser.

    0.9.1release notes

Behavior and default changes 1

Fixes and other changes 8

  • The playground now allows typing over auto-closed brackets and quotes.

    0.9.4release notes

  • Lexical error spans now point at the byte at the cursor.

    0.9.4release notes

  • Declared the import predicates in the types, so developers can use their type information.

    0.9.3release notes

  • Declared kind in the types, so developers can use its type information.

    0.9.3release notes

  • Declared moduleFlags in the types, so developers can use its type information.

    0.9.3release notes

  • Keeps decorators on rest parameters during parsing.

    0.9.1release notes

  • The analyzer now binds lowercase JSX member roots.

    0.9.0release notes

  • The parser now reports TypeScript grammar errors.

    0.9.0release notes

yuku-parser 0.89 changes

Breaking changes 1

  • The parser option allowReturnOutsideFunction is removed.

    0.8.0release notes

New APIs and options 3

  • Exposes isWrapper for developers to use.

    0.8.7release notes

  • Adds bindings for Android arm64, enabling developers to use yuku-parser on that platform.

    0.8.3release notes

  • The parser accepts sourceType: "commonjs".

    0.8.0release notes

Fixes and other changes 5

  • The parser now matches TypeScript in function and constructor type positions.

    0.8.6release notes

  • The parser now parses function types in infer constraints and parenthesized positions.

    0.8.5release notes

  • A JSX tag's > is scanned as a single token.

    0.8.4release notes

  • Reports a lexical error hit during lookahead.

    0.8.2release notes

  • The parser now accepts escape sequences in a TypeScript template literal type head.

    0.8.1release notes

yuku-parser 0.76 changes

Breaking changes 1

  • The codegen API is redesigned around a single composable generate API.

    0.7.0release notes

New APIs and options 3

  • The playground semantics view adds bidirectional symbol navigation.

    0.7.1release notes

  • Adds a semantics view to the playground.

    0.7.0release notes

  • Adds the @yuku-analyzer/wasm package.

    0.7.0release notes

Performance 1

  • The parse pipeline is faster across the FFI boundary.

    0.7.3release notes

Fixes and other changes 1

  • Passes pre-encoded source bytes through to the wasm bindings.

    0.7.4release notes

yuku-parser 0.614 changes

Breaking changes 1

  • Reference resolution is now space-aware, changing how semantic references are resolved.

    0.6.1release notes

New APIs and options 1

Performance 1

Fixes and other changes 11

  • Fixes parsing in let-as-identifier contexts.

    0.6.3release notes

  • Allows the options argument in phased dynamic imports.

    0.6.3release notes

  • Fixes parsing involving reserved type names.

    0.6.3release notes

  • Fixes parsing involving U+0085 whitespace.

    0.6.3release notes

  • The parser handles a line terminator between a class and its key.

    0.6.2release notes

  • A dts file is treated as an ambient context throughout.

    0.6.2release notes

  • The parser allows a line terminator before an enum declaration name.

    0.6.2release notes

  • Module declaration spans now include import attributes.

    0.6.2release notes

  • A non-null assertion is bound into the new-expression callee chain.

    0.6.2release notes

  • Ambient contexts now allow a trailing comma after a rest parameter.

    0.6.2release notes

  • Type-predicate references are recorded only for declared parameters.

    0.6.1release notes

yuku-parser 0.59 changes

New APIs and options 1

Performance 1

  • Punctuation and identifier scanning is faster, which may improve parsing performance.

    0.5.41release notes

Fixes and other changes 7

  • The parser traverses AST children in source order.

    0.5.48release notes

  • NumericLiteral value is now Infinity rather than null when the numeric value is Infinity.

    0.5.47release notes

  • The parser keeps arrow return types in ternary consequents.

    0.5.45release notes

  • Allows assert with a newline.

    0.5.43release notes

  • Allows decorators before an abstract class.

    0.5.43release notes

  • Aligns the linebreak after export default async with ESTree.

    0.5.43release notes

  • Fixes multiline indentation in generated JSDoc.

    0.5.21release notes

yuku-parser 0.21 changes

Fixes and other changes 1