> For AI agents: the complete documentation index is available at https://open-spaced-repetition.github.io/ts-fsrs/zh-CN/llms.txt, the full documentation bundle is available at https://open-spaced-repetition.github.io/ts-fsrs/zh-CN/llms-full.txt.

# ts-fsrs 5.4.0

Published: 2026-05-18 02:16:51 UTC

<div class="release-update-links">

[npmx](https://npmx.dev/package/ts-fsrs/v/5.4.0) · [GitHub Release](https://github.com/open-spaced-repetition/ts-fsrs/releases/tag/v5.4.0)

</div>

[All updates](https://open-spaced-repetition.github.io/ts-fsrs/zh-CN/updates/index.md)

### Minor Changes

- [#365](https://github.com/open-spaced-repetition/ts-fsrs/pull/365) [`ab44ee9`](https://github.com/open-spaced-repetition/ts-fsrs/commit/ab44ee97ca71828879b7998babb15bfa9b3aacf8) Thanks [@ishiko732](https://github.com/ishiko732)! - feat(fsrs): Add `FSRSError` base classes and use `FSRSValidationError` for package validation errors.

### Patch Changes

- [#365](https://github.com/open-spaced-repetition/ts-fsrs/pull/365) [`ab44ee9`](https://github.com/open-spaced-repetition/ts-fsrs/commit/ab44ee97ca71828879b7998babb15bfa9b3aacf8) Thanks [@ishiko732](https://github.com/ishiko732)! - fix(checkParameters): reject NaN parameter values during validation.

- [#357](https://github.com/open-spaced-repetition/ts-fsrs/pull/357) [`c0ffcce`](https://github.com/open-spaced-repetition/ts-fsrs/commit/c0ffccefd7824abe5a400c46eaa97a835efb86fa) Thanks [@ishiko732](https://github.com/ishiko732)! - refactor(fsrs): extract `applyAfterHandler` helper to deduplicate `afterHandler` plumbing in `repeat`, `next`, `rollback`, `forget`, and `reschedule`
