Skip to content

polite-crawler 0.2.4

Choose a tag to compare

@github-actions github-actions released this 25 Oct 07:25
b7bc5bc
  • A server can no longer stop the process through undici. polite-crawler needs undici 8.12.3 or later. With an earlier undici, a server stopped the process when it sent more than five content codings and then closed the connection (CVE-2026-109869). The lockfile of the repository also gets the fixed versions of body-parser, fast-uri, ip-address and postcss.
  • A robots.txt from a site can no longer stop the crawler for seconds or minutes. Two regular expressions of the robots.txt parser took polynomial time. With this version, the parser reads each line in linear time.
    • A line of 100,000 # characters and a U+2028 character took 6 seconds. A usage line with 100,000 spaces after its path took 10 seconds. The time increased as the square of the length, and the parser reads 500 KiB.
    • A # starts a comment also when a U+2028 or U+2029 character comes after it, as RFC 9309 says. Before, such a comment stayed in its rule.
  • A search query with many * characters no longer takes polynomial time. A word of 100,000 * characters took 6 seconds in parseQuery, thus in each search with that query. With this version, it takes less than 5 milliseconds.