Releases: jhlywa/chess.js
Releases · jhlywa/chess.js
v0.13.4
Bug Fixes
- [PGN] Fix bug that omitted comments preceding the initial move of a setup position when black is the first to move.
v0.13.3
Bug Fixes
- [FEN] Fix validate_fen when whitespace is found in place of move number (@eleurent - b51b44e)
Changes
v0.13.2
Bug Fixes
- [PGN] Ignore extraneous whitespace in PGN header (@jhlywa - 24d1c86)
- [PGN] Allow FEN header without a SetUp header in sloppy PGN parser (@jhlywa - 35e3fbf)
v0.12.1
Bug Fixes
- [PGN] Fix duplication of last move when loading PGN containing trailing comments without a game termination marker (@jhlywa - 321a25e)
- [PGN] Fix PGN export that included unnecessary move disambiguators (@SyntaxBlitz - 1814427)
0.12.0
Enhancements
- [SAN] Improve performance of SAN move parser by inferring the piece the user is moving (in both
.move()
and .load_pgn()
) and restricting move generation to those piece types. This change resulted in a 50% performance improvement as measured through the unit tests. (@ejezisek - #275)
0.11.0
Enhancements
- [PGN] Add support for PGN comments (new API:
.set_comment(comment)
, .get_comment()
, .get_comments()
, .delete_comment()
, .delete_comments()
) (@jtwires - #235)
Bug Fixes
- [PGN] Parse PGN headers with whitespace before closing brackets (@erral - #191)
0.10.3
Enhancements
- Added
.board()
function to return a 2D representation of the board (@jhlywa - f2a9baa)
- Revamped documentation for
.load_pgn()
function (@svangordon - #149)
- The minified version of the source code has been removed from version control.
Bug Fixes
- [PGN] Fix bug where PGN parser fail to load PGN with a comment before the first move (@svangordon - #150)
- [PGN] Fix bug where PGN data containing SetUp and FEN tags causes header information to be lost (@siansell - #154)
0.10.2
Enhancements
- [Parser] The sloppy parser now supports many variations of Long Algebraic Notation, such as:
e2e4
, e2-e4
, Pe2e4
, Pe2-e4
, Qf3xf7+
, e7xf8Q+
(capture and promotion), and e1-g1
(king-side castling). This parser will also catch and parse many non-standard methods of move disambiguation.