# Changelog of YouTube Gaming Trends Scraper (`codingfrontend/youtube-gaming-trends-scraper`) Actor

- **URL**: https://apify.com/codingfrontend/youtube-gaming-trends-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/codingfrontend/youtube-gaming-trends-scraper.md

## Changelog

All notable changes to the YouTube Gaming Trends Scraper are documented here.

### \[2.1.0] - 2026-09-09

#### Added

- Added a safe local `fixtureFile` path for deterministic initial-page and continuation QA without network or proxy requests.
- Restored focused tests and independent dataset validation, plus `npm run check` and explicit failure summaries in `OUTPUT`.

### \[2.0.0] - 2026-07-29

#### Changed

- Replaced DOM scrolling with extraction from YouTube's embedded Gaming page data and bounded first-party `youtubei/v1/browse` continuations.
- Corrected product wording: results preserve current YouTube Gaming page ordering and sections, not an asserted global trends ranking.
- Added strict `locale` and country validation, exact result caps, cross-page deduplication, short-lived browser sessions, five browser fingerprints, and optional Apify proxy support.
- Expanded renderer-sourced video, channel, view, duration, badge, live and source metadata, with recursive output cleanup and a zero-output failure.
- Replaced the invalid dataset schema fields section with a valid Apify dataset view.

### \[1.2.0] - 2026-06-01

#### Changed

- Refactored inline `requestHandler` in `main.js` into separate `src/routes.js` + `src/routes/handlers.js` following the Brave actor pattern
- `main.js` now uses `createRouter(input, state)` for clean separation of routing and handler logic
- Added `state.totalPushed` tracking in `main.js` for consistent exit logging

### \[1.1.0] - 2026-05-22

#### Changed

- Added modular `src/errors/` module (ScraperError, ErrorTypes, ErrorHandler) following Brave actor pattern
- Added modular `src/filters/` module with deduplicateResults and normaliseText utilities
- Updated `src/main.js` to import and use `ErrorHandler` in `failedRequestHandler`
- Structured code into separate concerns: extractors, schema, utils, errors, filters

### \[1.0.0] - 2026-05-22

#### Added

- Initial production release with Playwright-based scraping
- Modular project structure: `src/main.js`, `src/routes.js`, `src/routes/handlers.js`, `src/extractors/`, `src/schema/`, `src/utils/`
- `.actor/actor.json`, `input_schema.json`, `dataset_schema.json` for Apify platform compatibility
- `validate-datasets.js` for local dataset output validation
- `Dockerfile` with Chrome-based Playwright image
- `README.md` with full Apify usage guide
