Skip to content

0.3.0

Choose a tag to compare

@somework somework released this 05 Sep 17:24
· 30 commits to main since this release

Changed

  • Requires core 0.7: Console\SubmitterFactory / Console\SubmitterFactoryInterface are now
    IndexNowKit\Adapter\SubmitterFactory / IndexNowKit\Adapter\SubmitterFactoryInterface, Console\ResultSummary is
    IndexNowKit\Submission\ResultSummary. Application code that names them (a decorator of the submitters argument of Console\\SitemapRunner) changes the use line; nothing else.
  • The test suite requires indexnowkit/testing ^0.1 (require-dev): the conformance kits and the H01–H05 assertions
    moved there from the core (Testing\Conformance\KeyFileAssertions, CheckOutputAssertions, ReadmeAssertions).
  • Requires indexnowkit/console ^0.1 and symfony/console: the runners and the formatter Console\SitemapRunner
    builds on moved there from the core with their FQCN unchanged, and the runner renders through SymfonyStyle like
    every command body of the family; symfony/console leaves suggest (it is a requirement now).

Added

  • SitemapConfig::loadOrDisabled(array $block, LoggerInterface $logger, string $checkCommand): the runtime path of
    an adapter — fromArray(), and for an invalid block one critical line indexnow: invalid sitemap configuration, the sitemap command is disabled until it is fixed: {error} (run "{check}") plus disabled(). Replaces the copies
    in Laravel and Yii2 (spec 17 §4.3).

Documentation

  • README: "Notes for AI assistants" (package, minimal complete snippet, verification, pitfalls across the adapters);
    ReadmeAiNotesTest keeps it consistent with the commands and configuration keys.
  • README: --force re-announces URLs inside the debounce window (one-off, not for schedules); batch.max_urls is a
    ceiling, not a target.
  • homepage in composer.json points at the docs site (https://indexnowkit.github.io/php/).