Eight pull requests merged since beta.3, ten issues closed.
Upgrading
This release applies migrations 026 and 027. Both rewrite data — 026 repairs learned selector arrays and clears corrupted image URLs, 027 repairs unscoped Amazon price selectors — and both snapshot the rows they touch into _backup_026_* / _backup_027_* tables first, so a rollback restores the original values. Take a database backup before deploying regardless.
Images: ghcr.io/mikeknight85/pricestalker-{backend,frontend,scraper}:2.2.0-beta.4, also published as :beta.
Added
- User-Agent presets matrix across Windows, macOS, Linux, Android, iOS, and iPadOS updated to Chrome 154, Edge 154, Safari 18.4, and Firefox 140, including an explicit "Use System Default (Inherit)" option in retailer configuration and admin debug controls (#262).
- User-Agent diagnostic warnings on retailer configs: flags engine mismatches when Chromium Browser Scraper is paired with Safari/Firefox User-Agents, or when an outdated Chromium version (< v140) is configured.
- Reset to System Defaults endpoint (
POST /api/admin/settings/system/reset) and admin UI buttons on Global Selectors and System Settings, supportingall,selectors,phrases, andnetworkscopes (#264). - Retailer
re_auto_maptoggle ("Re-map on next scrape") allowing users and admins to schedule auto-retailer rediscovery on the next scheduled scrape without manual URL testing (#265). - Heuristic non-AI auto-mapping fallback (
handleHeuristicAutoMapping) for re-mapping runs when AI auto-mapping is disabled or produces no valid selectors (#265). - Scrapy
@attributesyntax support outside brackets in CSS selector parsing and normalization (e.g.meta[name="..."]@content,img@src). - Auto-append
::attr(content)for<meta>elements in selector normalization and AI auto-mapping to prevent empty text extractions (#262, #263). - Migration
026_repair_selectors_user_agent_and_remap.tsto addre_auto_maptoretailer_configs, updatedefault_user_agentto canonical Chrome 154, repair Scrapy@attrand bare<meta>tags, strip corrupted image URLs (/c_fill, placeholder SVGs, trailing slashes), and backfill missingitems.image_url. The migration snapshots every row it mutates into_backup_026_*tables first, sodownrestores the original selector arrays and image URLs rather than leaving the rewrite in place.
Changed
- Synchronised scraper lifecycle documentation and visual Graphviz flowcharts
with the current v2.2 codebase: clarified secondary price separation
(member and original prices never compete as standard price), added saved
extraction preference evaluation, updated bidirectional anchor drift guardrail
(<50% or >250%), documented per-domain scheduler pacing (30s gap + jitter),
added product restoration and unreachable site notifications, and added
a cross-release pipeline evolution history (#221, #159, #167, #67).
Fixed
- Hidden modal, dialog, and shopping cart alert text ("Cart limit reached", "Account limit reached") extracted as product titles instead of canonical catalog metadata on storefronts using Adobe Experience Manager and similar CMS platforms (#279).
- Initial product discovery and manual confirmation writing un-sanitized generic noise into product and item records (#279).
- AI auto-mapping validator rejecting Scrapy
::attr(...)syntax due to Cheeriocss-selectpseudo-element syntax limitations (#262, #279). - AI auto-mapping and generic extraction picking up dialog/modal elements and cross-sell prices (
h2.explore-modal-title,.cross-sell-cell .product-price,.toc-menu-toggle) as product titles and prices (#279). - Retailer configuration user-agent blank string overrides normalized to NULL to correctly inherit the system default User-Agent without losing custom user settings.
- Canonical items
items.image_urlleft blank or corrupted when product listings have valid image assets (#263). - Support Bearer token authentication in
NtfyProviderwhen only an access token
is configured without a username (#258). - Backend console and disk log timestamps now correctly honour
TZconfigured in
.env. Previously, static ES module imports inbackend/src/index.tsevaluated
beforedotenvloaded the environment, permanently freezing the formatter to
UTC and logging a false-positive warning that the timezone was unrecognised.
The timestamp formatter now resolves dynamically againstprocess.env.TZin
the backend, and the scraper's mirrored timestamp utility is kept in step (#310). - Scraper price extraction: Prevent recommendation carousels and accessory containers from hijacking primary product prices on Amazon and multi-seller marketplace pages. The DOM denoiser guarantees recommendation and sponsored widgets are never preserved when broad selectors match inside them while preserving product gallery carousels and bundle products, preference arbitration enforces a deterministic total order prioritizing candidate groups within plausible anchor drift, and auto-mapping rejects bare un-scoped utility classes like
.a-offscreen. Migration 027 seeds recommendation container exclusions, marketplace out-of-stock buying options phrases, and repairs Amazon price selectors with rollback snapshotting (#236, #283).