Skip to content

2.0.0

Choose a tag to compare

@Toflar Toflar released this 12 Oct 11:05
· 1 commit to main since this release

Escargot 2.0 fixes transport exception handling and exposes redirect destinations to subscribers.
A major release is required because of two compatibility changes:

  • ExceptionSubscriberInterface::onTransportException() now accepts ResponseInterface|null. Symfony can throw before returning a response, which previously caused a TypeError while handling the original exception. Existing subscriber implementations must update their signature and handle null.
  • DoctrineQueue now requires a nullable redirected_to column. Existing queue tables must be migrated before using 2.0. Custom persistent queues must also store and restore redirect information. CrawlUri::getRedirectedTo() exposes the final redirect destination while getUri() retains the original requested URI. Redirect information is available to subscribers and persisted even when further response processing is skipped. The HTML crawler now resolves relative links against the final destination.

What's Changed

Full Changelog: 1.7.0...2.0.0