Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jackstenglein/pgn-parser

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackstenglein/pgn-parser - npm Package Versions

23

2.0.7

Diff

Changelog

Source

2.0.7 2024-09-17

Changed

  • Added support for null moves using the -- syntax
  • Added IntTagValue to the Tags type
jackstenglein
published 2.0.6 •

Changelog

Source

2.0.6 2024-06-19

Breaking Changes

  • The type of the Board and PlyCount tags have been changed from integers to objects of the form {value: string, int: number}.
jackstenglein
published 2.0.5 •

Changelog

Source

2.0.5 2024-06-19

Changed

  • Parser now understands a custom notation for delay time controls.
jackstenglein
published 2.0.4 •

Changelog

Source

2.0.4 2024-06-17

Changed

  • Parser can now read games that have a game comment but no result in the move text, although these games violate the PGN standard.
jackstenglein
published 2.0.3 •

Changelog

Source

2.0.3 2024-06-14

Changed

  • Parser now reads non-standard date formats in the PGN header: yyyy-mm-dd and yyyy/mm/dd.
jackstenglein
published 2.0.2 •

Changelog

Source

2.0.2 2024-06-14

Fixed

  • Corrected the type of the TimeControl tag to an object: {value: string, items: TimeControl[]}.
jackstenglein
published 2.0.1 •

Changelog

Source

2.0.1 2024-06-13

Fixed

  • Corrected the type of the TimeControl tag to an array of TimeControl objects.
jackstenglein
published 2.0.0 •

Changelog

Source

2.0.0 2024-06-09

Changes

  • parseGame return type limited only to ParseTree. Previously it was returning only a ParseTree, but declared that it could return other types as well.
  • parse and parseGame are now generic functions typed by the start rule.

Breaking Changes

  • Dependency on @mliebelt/pgn-types removed and all types are included in this package now.
  • The messages object is no longer included in the tags object if startRule is tags. It will now be a separate field in the returned ParseTree.
  • All fields of PgnMove will be undefined rather than null if they are not included.
  • Changed the name of the type GameComment to DiagramComment.
  • Changed the type of WhiteElo, BlackElo, WhiteUSCF, BlackUSCF tags to handle non-integer values.
  • Changed the name of various fields in PgnMove.notation to be more self-explanatory.
jackstenglein
published 1.4.19 •

jackstenglein
published 1.4.18 •

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