Releases: bartholomej/node-csfd-api
v5.10.3
v5.10.0
Changelog
Added flexible ID parsing to movie and creator API methods. They now accept numeric strings, slugs (e.g. '228329-avatar'), and full CSFD URLs instead of strictly requiring a numeric ID.
Why?
Reduces boilerplate for developers fetching items dynamically. Developers no longer need to manually parse slugs or IDs extracted from other pages before passing them to the scraper.
Examples:
// Before:
const movie = await csfd.movie(228329); // Threw error if string/slug was passed
const movie2 = await csfd.movie(+slug.split('-')[0]); // Manual boilerplate
// After:
const movie = await csfd.movie('228329-avatar'); // Seamless
const movie2 = await csfd.movie('https://www.csfd.cz/film/228329-avatar/'); // SeamlessFull Changelog: v5.9.0...v5.10.0
v5.9.0
Changelog
- Support node 26
- Update all deps + building scripts
Potential breaking changes
All DTO and type exports are now exported as type-only using TypeScript's export type syntax.
Only runtime values (such as the main API class and instance) remain as standard exports.
If any consumer relied on importing these types as runtime values (e.g., for use with typeof or instantiation), this change will break their code.
For typical usage as types, there is no impact.
This should be considered a breaking change for consumers expecting runtime access to these symbols.
Full Changelog: v5.8.2...v5.9.0
v5.8.2
What's Changed
- Update all deps
- ⚡ Bolt: Precompute reverse Map for O(1) creator group parsing by @bartholomej in #181
- ⚡ Bolt: [performance improvement] Extract regex literals from loop callbacks by @bartholomej in #176
- ⚡ Bolt: [performance improvement] Optimize node-html-parser node list iteration by @bartholomej in #172
Full Changelog: v5.8.1...v5.8.2
v5.8.1
What's Changed
- ⬆️ chore: Update all deps by @github-actions[bot] in #161
- chore(deps): bump the npm_and_yarn group across 1 directory with 6 updates by @dependabot[bot] in #162
- ⚡ Bolt: [performance improvement] optimize parseIdFromUrl loop by @bartholomej in #163
Full Changelog: v5.8.0...v5.8.1
v5.8.0
v5.8.0-next.0
- fix: adaptation to the new csfd design
Full Changelog: v5.7.0...v5.8.0-next.0
v5.7.0 – Sound creators
What's Changed
- Movie: Add Sound creators by @bartholomej in #140 (fixes #135)
Thx @klecandr
Full Changelog: v5.6.2...v5.7.0
v5.6.2 – CLI
CLI
- Search:
npx node-csfd-api search "pulp fiction" - Movie with title or id:
npx node-csfd-api movie "pulp fiction"
Full Changelog: v5.6.1...v5.6.2
v5.6.1
What's Changed
- chore(deps): bump the npm_and_yarn group across 1 directory with 5 updates by @dependabot[bot] in #134
Full Changelog: v5.6.0...v5.6.1