New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ast-generator

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-generator - npm Package Versions

2

0.6.0

Diff

Changelog

Source

[0.6.0] - 2025-01-31

  • Breaking Put settings in a new settings block, i.e.
    settings {
      output = "../gen-here-plz.ts"
    }
    
    instead of the old (no longer supported):
    set output "../gen-here-plz.ts"
    
  • Add understood settings discriminator, and output for now. More settings will be added later.
  • Generate to generated-ast.ts by default, but allow specifying it through output = "../somewhere-else.ts"
  • No longer support passing output file as a CLI argument
nvie
published 0.5.0 •

Changelog

Source

[0.5.0] - 2025-01-30

  • Breaking Node unions no longer have to be written using @MyUnion syntax. This is now "just" MyUnion. The definition itself determines whether it's a union or a basic node.
  • Added support for literal types, e.g., op: ">" | "<" | ">=" | "<=" (previously the closest best thing was op: string).
nvie
published 0.4.0 •

Changelog

Source

[0.4.0] - 2025-01-29

  • Every Node now has generated .children and .descendants iterator properties, which enable you to iterate over all of its children in a type-safe manner.
  • Add support for addition of externally defined semantic properties/methods.
  • Add support for changing discriminator field, using set discriminator "_kind" in the grammar.
  • Change default discriminator field to type.
  • Breaking No longer generates visit() method. You can now use the built-in .children and .descendants properties (available on every Node) or defineMethod() to implement your own custom visitors.
nvie
published 0.3.0 •

Changelog

Source

[0.3.0] - 2025-01-20

  • New definition language
  • Internals rewritten in Ohm
nvie
published 0.2.4 •

Changelog

Source

[0.2.4] - 2025-01-09

  • Add support for null inside literal field types
nvie
published 0.2.3 •

Changelog

Source

[0.2.3] - 2025-01-08

  • Fix bug when using CLI: The data argument must be of type string or an instance of Buffer, TypedArray, or DataView.
nvie
published 0.2.2 •

Changelog

Source

[0.2.2] - 2025-01-08

  • Make typescript a peer dependency
  • Upgrade some (dev) dependencies
nvie
published 0.2.1 •

Changelog

Source

[0.2.1] - 2024-02-28

  • Made _kind enumerable again.
nvie
published 0.2.0 •

Changelog

Source

[0.2.0] - 2024-02-28

  • Made the first-defined node the start node for the grammar. It no longer has to be named "Document" per se.
  • Made _kind and range fields non-enumerable.
nvie
published 0.1.0 •

Changelog

Source

[0.1.0]

Modernize repo, rewrite in TypeScript.

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc