# Changelog of Tabelog Scraper — Japan Restaurant Ratings & Budgets (`stone_jadex/tabelog-restaurants`) Actor

- **URL**: https://apify.com/stone_jadex/tabelog-restaurants/changelog.md
- **Full Actor documentation**: https://apify.com/stone_jadex/tabelog-restaurants.md

## Changelog

### 2026-11-21

- Reliability hardening: retry transient network errors and HTTP 5xx up to 2 times (5 s, 10 s backoff) on the same sticky proxy session; back off 30 s then 60 s on HTTP 403/412/429 and stop gracefully preserving partial results (with `stopReason: "blocked-*"`, `failed: true`, `runNotice`, and terminal warning status message) without rotating proxies; stop immediately on anti-bot challenge pages; treat pagination HTTP 404 on `page > 1` / peek page as `noMorePages`; prevent optional next-page peek failures after `maxItems` is collected from failing the run; complete cleanly on valid filtered runs with 0 matches; reuse one cached `HttpsProxyAgent` on the sticky proxy session per run.
- Input schema polish: added explicit `prefill` values (`area`, `maxItems`, `maxPages`) and `sectionCaption` groupings.
- Documentation: added Apify Store subscription tier discounts table, JavaScript & Python `ApifyClient` quickstart examples, updated reliability notes, and 2026-11-21 changelog.

### Unreleased (fix after 0a64bd3)

- Fix: when the collected count lands exactly on a page boundary — the last page is full and the next page is empty, or `maxItems` equals the total result count — OUTPUT/RUN_SUMMARY now report `truncated: false` and `stopReason: "noMorePages"` (natural end). `truncated: true` / `stopReason: "maxItems"` only when a later page still has results, or when `maxItems` cuts off mid-page. Confirming the next page may increment `pagesFetched` by 1.
- Input, output field names, schemas, billing and README unchanged.
- Tests: test/maxitems-boundary.test.js (red: redlogs/page-boundary-not-truncated.red.log, 3 ERR_ASSERTION; mutation: redlogs/page-boundary-not-truncated.mutation.log). 33 tests, fail 0.

### Unreleased (fix after aeadd62)

- Fix: when maxItems is reached exactly on a page boundary (e.g. 20/40/100 with 20 results per page), OUTPUT/RUN_SUMMARY now report `stopReason: "maxItems"` and `truncated: true` instead of `null`/`false` (an existing value filling a former null).
- Input, output field names, schemas and billing unchanged. No fetchDetails.
- Tests: test/maxitems-boundary.test.js (red: redlogs/maxitems-boundary.red.log, 4 ERR_ASSERTION fails; mutation: redlogs/maxitems-boundary.mutation.log).
