Skip to content

Commit 45797d1

Browse files
committed
chore: bump version to 3.8.1 and update changelog
1 parent 9d55f63 commit 45797d1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
## [3.8.1] - 2026-03-15
12+
13+
### Fixed
14+
15+
- `PIECE_MOVE` no longer accepts promotion syntax (`=Q`, `=N`, etc.) on non-pawn
16+
pieces. `Nf3=Q` previously parsed silently and produced a `Move` object with a
17+
nonsensical `promotion` field; it now causes a parse failure. Only `PAWN_PUSH`
18+
and `PAWN_CAPTURE` accept the `PROMO` suffix, as required by the PGN spec.
19+
- `Meta.Result` is now typed as optional (`Result?: Result`) to reflect that
20+
tagless games (no tag pairs) return `meta: {}` with no `Result` key. The field
21+
was previously typed as required, which was incorrect at runtime.
22+
1123
## [3.8.0] - 2026-03-15
1224

1325
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@
8282
},
8383
"type": "module",
8484
"types": "dist/index.d.ts",
85-
"version": "3.8.0"
85+
"version": "3.8.1"
8686
}

0 commit comments

Comments
 (0)