Skip to content

Drop tough-cookie and har-validator dependencies#159

Merged
soulgalore merged 1 commit into
mainfrom
chrome-har-drop-deps
May 20, 2026
Merged

Drop tough-cookie and har-validator dependencies#159
soulgalore merged 1 commit into
mainfrom
chrome-har-drop-deps

Conversation

@soulgalore
Copy link
Copy Markdown
Member

tough-cookie was a 300 KB RFC 6265 / public-suffix library used only to
split name=value; path=/; domain=...; expires=... strings into their
parts. A small inline parser handles everything the HAR output needs and
preserves tough-cookie's leading-.-strip on the domain attribute so
output stays byte-identical for the test fixtures.

har-validator has been deprecated upstream for over a year and only
appeared in one place — a validator.har(har) smoke-check inside the
test loop. The surrounding ava assertions already cover HAR shape, so
removing the call drops the dev dep (and its transitive ajv + har-schema
chain) without losing real coverage.

Runtime dep tree shrinks from debug + tough-cookie + tldts + tldts-core
to just debug + ms.

Co-authored-by: Claude noreply@anthropic.com

  tough-cookie was a 300 KB RFC 6265 / public-suffix library used only to
  split name=value; path=/; domain=...; expires=... strings into their
  parts. A small inline parser handles everything the HAR output needs and
  preserves tough-cookie's leading-.-strip on the domain attribute so
  output stays byte-identical for the test fixtures.

  har-validator has been deprecated upstream for over a year and only
  appeared in one place — a validator.har(har) smoke-check inside the
  test loop. The surrounding ava assertions already cover HAR shape, so
  removing the call drops the dev dep (and its transitive ajv + har-schema
  chain) without losing real coverage.

  Runtime dep tree shrinks from debug + tough-cookie + tldts + tldts-core
  to just debug + ms.

  Co-authored-by: Claude noreply@anthropic.com
@soulgalore soulgalore merged commit 2944ead into main May 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant