# Changelog of Yellowpage Scraper (`dainty_screw/yellowpage-scraper`) Actor

- **URL**: https://apify.com/dainty_screw/yellowpage-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/dainty_screw/yellowpage-scraper.md

## Changelog

### 1.0.0 — 2026-04-20

#### Added

- Native Apify SDK v3 lifecycle: `Actor.init()` / `Actor.exit()` with migration,
  abort, and `persistState` handlers that checkpoint crawler stats to the
  Key-Value Store (`CRAWLER_STATE`).
- `Actor.setStatusMessage()` progress updates in the Console.
- Session pool + cookie persistence + `retryOnBlocked` on both crawlers.
- Parallel HTTP and Playwright browser crawlers (previously sequential).
- `browserMaxConcurrency` and `browserMaxRequestsPerMinute` inputs (previously
  hardcoded).
- LD+JSON + DOM parser merge with deterministic dedup (`dedupKey` =
  canonical URL → phone digits → name+address).
- Phone normalization (`phoneDigits`), image and categories emission from
  LD+JSON path.
- Secondary pagination selector fallbacks.
- Full `.actor/actor.json` metadata: `dockerfile`, `readme`, `changelog`,
  `input`, `categories`, `minMemoryMbytes`, `maxMemoryMbytes`,
  `defaultRunOptions`, and a typed dataset `fields` schema.
- Input schema: `required: ["runMode"]`, `legalBasisReference` regex pattern,
  grouped sections (Compliance / Search / Reliability / Advanced).
- Additional test fixtures (blocked, empty, multi-listing) and tests for
  pagination, maxItems cap, dedup, format validation, and host
  canonicalization.

#### Changed

- Proxy / dataset / request queue resolved via Apify-native helpers
  (`Actor.createProxyConfiguration`, `Actor.openDataset`,
  `Actor.openRequestQueue`) rather than Crawlee constructors.
- Atomic `maxItems` cap guard — no more over-pushing under concurrency.
- Host allowlist now canonicalizes case, strips port, and accepts
  subdomains.
- `legalBasisReference` now enforces a `PREFIX-IDENTIFIER` pattern.
- README rewritten to Apify Store standard (features, input/output JSON
  samples, compliance section, FAQ, integrations).
- Jenkinsfile SBOM and scan stages now fail the build on error.
- Node engine bumped to `>=20` to match the Docker base image.

#### Removed

- Legacy `apify.json` (superseded by `.actor/actor.json`).
- Unbounded `visited` Set in the crawler (Crawlee's `uniqueKey` now
  handles dedup).

### 2022-05-11

Features:

- Update SDK
- Better informational messages

Fix:

- Crashing on SDK 0.21

## Audit reliability and Store readiness (2026-11-22)

- Drain HTTP-to-browser fallback reliably; preserve deduplication after write retries and resurrection.
- Add independent navigation-attempt limits, URL checks during pagination/navigation, explicit empty/error outcomes and per-run diagnostics.
- Align advertised inputs, runtime presets, US source coverage and Store examples.
- Add Actor output/KV schemas, repair dataset views, move Docker/CI to Node 22/24 and update dependency lockfile.
- Add focused regression tests. See audit/STATUS.md for measured local/cloud evidence and deployment status.

## Consistent residential defaults (2026-11-22)

- Align runtime defaults, schema defaults/prefill, and sample input: compliant category page, 10 results, 4 page attempts, US residential Apify Proxy.
- Empty API input uses the example. Preserve explicit searches, URLs, direct connections and custom proxies; authorized mode still requires the user's real reference.
- Log proxy mode/groups/country without proxy credentials. Document resetting previously saved inputs after rebuilding.
