Skip to content

Releases

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 00:37
v0.4.0
154a398

Add two JSON-LD rules, make wrapped suppression comments work, and give SARIF
rules the help text GitHub code scanning requires. Both packages move to 0.4.0
together; the catalogue grows from 203 to 205 rules.

New rules

  • script/json-ld-author-without-name: an author, creator or publisher given as
    a bare @id credits nobody, because Google reads one page and finds no name
    there (#539).
  • script/json-ld-required-properties: a ProfilePage or BreadcrumbList without a
    property Google requires is not eligible for its rich result (#540).

Suppression comments

  • A deadhead-disable-next-line comment wrapped over several lines, as
    formatters do with long ones, covers the line after its -->. It used to
    target a line inside the comment and suppress nothing (#548).

SARIF

  • Every rule carries help.text: the rule's description, its advice and the
    link to its page. GitHub's SARIF reference requires it and code scanning
    shows it beside each result (#549).

Rule text

  • Nine rules about an HTML attribute that no one element owns are titled as
    attribute selectors, such as [dropzone] and [fetchpriority] other than high, low or auto. Ids and URLs are unchanged (#547).
  • Rules carry an optional updatedDate, set when their guidance changes; rule
    pages, the sitemap and structured data use it instead of git history
    (#545).

Bookmarklet and site

  • The bookmarklet's rule payload is base85 and leaves out rules a live page
    cannot trigger, which frees 1.3 kB of the 64 kB URL cap for new rules
    (#550).
  • Rule pages lead with severity, fix and the exact suppression comment, and
    show when the guidance last changed. /install gains a CI recipe (#544).
  • Seventy-seven rule explanations are rewritten in depth
    (#526–#534),
    and every topic and impact page opens with an introduction (#522), (#524),
    (#527).
  • The playground keeps pasted HTML when Lint is pressed early, says whether it
    checked a page or a fragment and marks a stale report (#543), (#544).

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 14 Oct 19:34
v0.3.1
c7ff08c

Fix CLI input handling, suppression comments and byte preservation, and reduce
repeated work in the CLI, browser playground and Vite integration. Both packages
move to 0.3.1 together; the catalogue remains at 203 rules.

CLI

  • Reject unsupported stdin options and invalid worker counts. Settle workers
    that exit without a report and clean up siblings on failure
    (#505).
  • Validate baseline options and files before --fix changes HTML. Reject
    malformed baseline entries and counts outside the safe integer range.
  • Keep JSON and SARIF parseable with fixes and baseline notices by sending
    those notices to stderr. Wait for stdout writes, including rule listings,
    before exiting. Reject inherited object names as report formats.
  • Prune ignored directories before traversing them, deduplicate equivalent
    input paths, and cap worker counts at available CPUs and selected files.
  • Report large finding lists without exceeding JavaScript's argument limit.
  • Clarify first-run help and installation examples
    (#505).

Findings and fixes

  • Read suppression directives from actual parsed HTML comments. Comment-like
    strings in scripts, styles, RCDATA and attributes cannot suppress findings.
    Unknown-rule warnings use line numbers from the source after fixes.
  • Preserve surviving whitespace and quote style in keyword fixes. Remove a
    standalone element's full CRLF line. Decline quoted encoded token values
    where a source edit cannot preserve their decoded meaning.
  • Build bounded finding previews and reuse them across rules reporting the
    same element, preserving the existing text and 90-character limit.
  • Align ESLint text with HTML comment, RCDATA and newline semantics. Preserve
    template parents and sibling indices in the live DOM adapter.

Runtime reuse and browser

  • Retain at most 128 compiled ESLint rule subsets with least-recently-used
    eviction; findings, fixes and one engine pass per file survive eviction.
  • Reuse analysis for unchanged Vite HTML. Bound cached prepared reports to
    512 URL paths and 4 MiB of retained text, without retaining response bodies.
  • Reuse the playground's original analysis in its fix loop, and the corpus
    runner's initial findings when measuring fixed HTML.
  • Remove unused analysis/single-file/baseline helpers and internal exports.
    Simplify finding ordering and per-port child caches, and generate both
    registries in one pass without parsing the generated JSON again.
  • Generate a browser registry with the same logic and engine metadata, omitting
    documentation fields that the playground never reads.
  • Include backtick dynamic imports when measuring the playground's JavaScript
    payload; the size check previously omitted its generated registry chunk.
  • Bound decoded link data to 10 MiB and encoded handoffs to one million
    characters. Cancel oversized decompression; local file input has no link limit.
  • Report clipboard, file-read and malformed-link failures in the playground.
    Clear incoming page fragments before decoding them.
  • Add worker-count benchmark options, reject failed cold-start measurements,
    and clean up synthetic benchmark files.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 19:17
v0.3.0
e61ee9d

The new deadhead/vite export adds dev-time checking to Vite 8 projects. Both
published packages move to 0.3.0 together. The rule set is unchanged: 203 rules,
with the same findings and autofixes as 0.2.1.

Vite integration

  • Add deadhead() from deadhead/vite to your Vite config to report findings,
    advice and rule links in the terminal and DevTools console during development
    (#502).
  • Checks use the CLI parser and inspect completed HTML responses, including SSR
    streams served through Vite's middleware stack. Positions refer to the served
    HTML. Frameworks with a separate HTML server need the CLI or bookmarklet.
  • Read rule settings and URL filters from deadhead.config.ts in Vite's root,
    with plugin options overriding the file. Set console: false for terminal
    reports with unchanged response bytes and headers.
  • The plugin checks UTF-8 HTML up to 2 MiB, preserves streamed writes and
    backpressure, and skips compressed or partial responses. It respects
    Cache-Control: no-transform and uses Vite's configured CSP nonce for console
    output. A blocked console script leaves the terminal report available.
  • Vite is an optional peer; CLI users do not install it. The plugin ships
    JavaScript and TypeScript declarations. Builds keep using
    "postbuild": "deadhead dist" after the framework writes its final output.

Bookmarklet

  • The full report button re-reads the page's HTML in your browser and opens it on
    /try, with positions, advice and fixed HTML. If CSP blocks the re-read, it
    sends the rendered DOM. The HTML travels in the URL fragment; /try clears it
    after reading it (#501).

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 04 Oct 22:07
v0.2.1
120411e

Fixes from the first corpus run. Deadhead 0.2.0 linted the home pages of the Tranco top
10,000, and a review of 20 findings per rule found autofixes that changed what a page does,
false positives, and doc claims their sources contradict. No new rules; 203 in all.

Changes that alter fixes

  • A <meta> carrying more than one of name, property, http-equiv, itemprop and
    charset is still reported but never deleted whole: the fix would take a live key with
    the dead one (#488).
  • link/href-missing keeps a link with an id or a data-* attribute, a hook a script
    fills (#488).
  • attr/input-number-maxlength-size fixes only where maxlength is absent: scripts read it
    through maxLength (#488).
  • link/canonical-qualifiers has no autofix: stripping the qualifier makes Google use the
    canonical (#488).
  • meta/http-equiv-x-dns-prefetch-control fixes what it reports: no engine acts on on or
    an empty value (#492).
  • meta/apple-mobile-web-app-status-bar-style fixes every value it reports (#490).

Changes that alter findings

  • meta/viewport-value accepts WebKit's shrink-to-fit and numeric user-scalable; on
    the top 10,000 it falls from 10.9% of sites to 1.1% (#490).
  • meta/apple-mobile-web-app-status-bar-style leaves black and black-translucent
    alone: since iOS 26 every Home Screen site opens as a web app (#490).
  • meta/referrer-value accepts origin-when-crossorigin, a legacy keyword in HTML's
    table (#490).
  • attr/script-async and attr/script-defer leave an empty script with no src, a
    placeholder HTML prepares again once src arrives (#488).
  • attr/a-coords-shape reports shape only with an image-map value (#488).
  • meta/http-equiv-x-dns-prefetch-control reports on, an empty value and a missing
    content; any other value is an opt-out in Firefox (#492).
  • head/viewport-missing leaves a desktop page that names its separate mobile URL with
    <link rel="alternate" media> (#492).
  • script/json-ld-unescaped-lt reports a literal </, not any < (#494).
  • Narrowed to what each rule claims (#490, #492): attr/fetchpriority-value
    (empty value), head/base-position (no href), document/main-multiple (under a
    hidden ancestor or a closed dialog), script/json-ld-syntax (empty block),
    link/preload-as-missing (preload stylesheet), link/preload-font-crossorigin-missing
    (stylesheet URLs), meta/og-name-attribute (with property),
    meta/http-equiv-unregistered-pragmas (onion-location, x-pjax-version),
    attr/list-presentational (ol[type]), link/canonical-relative and
    link/hreflang-relative (URLs trimmed as the URL parser trims them; any scheme is
    absolute), head/metadata-position (template contents), meta/charset-value (empty
    value) and meta/title (Swiftype's tags).

ESLint plugin

  • Decodes character references in attribute values and text, as the CLI and the
    bookmarklet do: type="text&#x2F;javascript" now reports in ESLint too (#486).

Rule text

  • Corrected against primary sources: attr/iframe-presentational, attr/style-type,
    document/doctype, meta/charset-value, meta/csp-block-all-mixed-content and
    link/apple-touch-icon-precomposed (#492); the descriptions of
    head/charset-multiple and head/base-multiple (#494).

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 15:46
v0.2.0
3dbb62d

13 new rules, 203 in all, and 12 revised ones. The first release published from CI
with npm provenance, staged and approved with 2FA.

Changes that alter findings or fixes

  • meta/og-required-properties reports a page with Open Graph tags and no og:image,
    and nothing else; severity drops from harmful to unnecessary
    (#426).
  • meta/twitter-card-names keeps twitter:card, attribution and layout tags, and
    fixes the tags that repeat Open Graph or that nothing reads
    (#423).
  • meta/robots-value accepts noai and noimageai outside Google's own names
    (#428).
  • meta/http-equiv-unregistered-pragmas leaves origin-trial to the new
    meta/http-equiv-origin-trial, which reports a tag once its tokens expire
    (#464).
  • meta/msapplication-names now fixes every name: Internet Explorer is gone
    (#470).
  • meta/apple-mobile-web-app-capable fixes the tag when the page links a
    manifest and no startup image, and nowhere else (#471).
  • The bookmarklet panel links to each rule's fix instead of printing it, which frees 11 kB
    of the javascript: URL under the 64 kB cap (#458).

New rules

  • meta/tdm-reservation-value (#430)
  • attr/img-fetchpriority-loading (#444)
  • attr/fetchpriority-value (#446)
  • script/speculationrules-syntax (#448)
  • link/preload-fetch-crossorigin-missing (#450)
  • script/importmap-syntax (#452)
  • attr/importance (#455)
  • head/base-position (#457)
  • head/description-multiple (#460)
  • link/hreflang-relative (#462)
  • meta/http-equiv-origin-trial (#464)
  • link/modulepreload-as-value (#466)
  • head/metadata-position (#473)

Rule text

  • element/fencedframe milestones move to M156 and M157 (#432)
  • attr/browsingtopics-attributionsrc and attr/iframe-allow-privacy-sandbox state the removal stage (#434)
  • meta/apple-mobile-web-app-capable states the iOS 26 web app default (#436)
  • meta/revisit-after names lastmod as what Google and Bing read (#438)
  • meta/og-relative-url cites Meta's absolute-URL rule (#440)
  • meta/http-equiv-x-dns-prefetch-control cites whatwg/html#9473 (#442)

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 07:29
v0.1.0
1487cd4

First release. ESM only, Node 24.8 or newer; the ESLint plugin needs ESLint 10.

  • 190 rules across attr/, document/, element/, head/, link/, meta/ and
    script/. Every finding links to its page on https://deadhead.cevdet.ch.
  • CLI: stylish, JSON and SARIF output; --fix; baselines; suppression comments;
    --jobs for large trees; stdin. Layout partials and components are linted
    for what they hold.
  • ESLint plugin: one rule per deadhead rule, recommended and all configs,
    autofix where the rule has one.
  • Types generated from the source for defineConfig and the plugin.
  • Published by hand from the tested tarballs. Every later release comes from
    CI with npm provenance, staged and approved with 2FA.