Skip to content

0.9.0

Latest

Choose a tag to compare

@somework somework released this 07 Sep 20:09
· 1 commit to main since this release

Added

  • sitemap --new-only and Sitemap\SeenStoreInterface (wave N, spec 19b §3.5): submit only the URLs that are new
    or changed since the last run of the command, whatever <lastmod> says or does not say. The interface (Implement
    tier: unseen(iterable<SitemapEntry>): iterable<SitemapEntry>, remember(iterable<SitemapEntry>): void) keeps the
    fingerprint of every announced entry — URL plus <lastmod> in ISO 8601, or empty; Console\SitemapRunner takes it
    as the appended, named $seen (SitemapServices::runner(…, seen:) likewise), calls unseen() once after the host
    filter and remember() per batch whose results did not fail — with or without the option, never with --dry-run —
    so a full run followed by scheduled --new-only runs announces each change once. Console\SitemapOptions::$newOnly;
    Console\Definitions::sitemap() declares the option for every adapter. Without a store the option answers
    SitemapRunner::NO_SEEN_STORE (--new-only needs a store of seen URLs; this application has none (the CLI keeps one in its state file).) with exit 2 and reads nothing — the framework adapters have none in this wave; the indexnow
    CLI (indexnowkit/cli) keeps one in its sqlite state file. The summary line gains , N new or changed.
    --changed-since and --new-only add up: the window first, then the store.

Changed

  • Requires indexnowkit/core ^0.13.1.