From 60f0973ed7fd967d35f379acaef55795a707472b Mon Sep 17 00:00:00 2001
From: onmax
Date: Mon, 9 Nov 2026 12:44:08 +0100
Subject: [PATCH 01/10] feat(tinylinkify): add the linkify-it drop-in and GFM
link finder, with their oracles
---
.../tinylinkify/bench/samples/email_fuzzy.txt | 11 +
.../tinylinkify/bench/samples/link_fuzzy.txt | 11 +
.../tinylinkify/bench/samples/link_normal.txt | 11 +
packages/tinylinkify/bench/samples/many.txt | 11 +
.../tinylinkify/bench/samples/many_fast.txt | 13 +
packages/tinylinkify/package.json | 92 +++
packages/tinylinkify/scripts/fuzz-gfm.ts | 210 +++++++
packages/tinylinkify/scripts/fuzz.ts | 124 ++++
packages/tinylinkify/scripts/inputs.ts | 237 ++++++++
.../tinylinkify/scripts/linkify-it-tests.ts | 50 ++
packages/tinylinkify/scripts/originals.ts | 21 +
packages/tinylinkify/scripts/redirect.ts | 18 +
packages/tinylinkify/scripts/remark.ts | 121 ++++
packages/tinylinkify/scripts/shared.ts | 48 ++
packages/tinylinkify/scripts/uc-engine.ts | 36 ++
packages/tinylinkify/scripts/versions.ts | 61 ++
packages/tinylinkify/src/core/gfm.ts | 274 +++++++++
packages/tinylinkify/src/gfm/index.ts | 87 +++
packages/tinylinkify/src/index.ts | 11 +
packages/tinylinkify/src/linkify-it/index.ts | 535 +++++++++++++++++
packages/tinylinkify/src/linkify-it/re.ts | 149 +++++
.../test/suites/linkify-it-5.0.2/COMMIT | 1 +
.../test/suites/linkify-it-5.0.2/LICENSE | 22 +
.../suites/linkify-it-5.0.2/build.test.mjs | 17 +
.../linkify-it-5.0.2/fixtures/links.txt | 335 +++++++++++
.../linkify-it-5.0.2/fixtures/not_links.txt | 52 ++
.../linkify-it-5.0.2/pathological.test.mjs | 21 +
.../suites/linkify-it-5.0.2/test.test.mjs | 293 ++++++++++
.../COMMIT | 1 +
.../fixture/algorithm-2.html | 86 +++
.../fixture/algorithm-2.md | 171 ++++++
.../fixture/algorithm-2b.html | 43 ++
.../fixture/algorithm-2b.md | 85 +++
.../fixture/algorithm-2c.html | 8 +
.../fixture/algorithm-2c.md | 15 +
.../fixture/algorithm-2d.html | 3 +
.../fixture/algorithm-2d.md | 5 +
.../fixture/algorithm-2e.html | 4 +
.../fixture/algorithm-2e.md | 4 +
.../fixture/base.html | 60 ++
.../fixture/base.md | 119 ++++
.../fixture/brackets.html | 18 +
.../fixture/brackets.md | 35 ++
.../fixture/combined-with-images.html | 25 +
.../fixture/combined-with-images.md | 51 ++
.../fixture/combined-with-links.html | 55 ++
.../fixture/combined-with-links.md | 111 ++++
...domain-character-reference-like-named.html | 35 ++
.../domain-character-reference-like-named.md | 69 +++
...in-character-reference-like-numerical.html | 35 ++
...main-character-reference-like-numerical.md | 69 +++
.../fixture/email-previous.html | 24 +
.../fixture/email-previous.md | 47 ++
.../fixture/email-protocol.html | 40 ++
.../fixture/email-protocol.md | 79 +++
.../fixture/email-tld-digits.html | 39 ++
.../fixture/email-tld-digits.md | 77 +++
.../fixture/http-domain-continue.html | 35 ++
.../fixture/http-domain-continue.md | 69 +++
.../fixture/http-domain-start.html | 35 ++
.../fixture/http-domain-start.md | 69 +++
.../fixture/http-host-punctuation.html | 7 +
.../fixture/http-host-punctuation.md | 13 +
.../fixture/http-path-continue.html | 35 ++
.../fixture/http-path-continue.md | 69 +++
.../fixture/http-path-start.html | 35 ++
.../fixture/http-path-start.md | 69 +++
...inks-autolink-literals-and-characters.html | 6 +
.../links-autolink-literals-and-characters.md | 11 +
.../path-character-reference-like-named.html | 35 ++
.../path-character-reference-like-named.md | 69 +++
...th-character-reference-like-numerical.html | 35 ++
...path-character-reference-like-numerical.md | 69 +++
.../fixture/path-or-link-end.html | 21 +
.../fixture/path-or-link-end.md | 41 ++
.../fixture/previous-complex.html | 22 +
.../fixture/previous-complex.md | 43 ++
.../fixture/previous.html | 41 ++
.../fixture/previous.md | 74 +++
.../fixture/www-domain-continue.html | 35 ++
.../fixture/www-domain-continue.md | 69 +++
.../fixture/www-domain-dot.html | 35 ++
.../fixture/www-domain-dot.md | 69 +++
.../fixture/www-domain-start.html | 35 ++
.../fixture/www-domain-start.md | 69 +++
.../fixture/www-path-continue.html | 35 ++
.../fixture/www-path-continue.md | 69 +++
.../fixture/www-path-start.html | 35 ++
.../fixture/www-path-start.md | 69 +++
.../index.js | 516 +++++++++++++++++
.../license | 22 +
.../COMMIT | 1 +
.../fixtures/base.html | 60 ++
.../fixtures/base.md | 119 ++++
.../fixtures/brackets.comment.html | 18 +
.../fixtures/brackets.comment.md | 35 ++
.../combined-with-images.comment.html | 25 +
.../fixtures/combined-with-images.comment.md | 51 ++
.../fixtures/combined-with-links.comment.html | 55 ++
.../fixtures/combined-with-links.comment.md | 111 ++++
...domain-character-reference-like-named.html | 35 ++
.../domain-character-reference-like-named.md | 69 +++
...in-character-reference-like-numerical.html | 35 ++
...main-character-reference-like-numerical.md | 69 +++
.../fixtures/email-tld-digits.html | 15 +
.../fixtures/email-tld-digits.md | 29 +
.../fixtures/http-domain-continue.html | 35 ++
.../fixtures/http-domain-continue.md | 69 +++
.../fixtures/http-domain-start.html | 35 ++
.../fixtures/http-domain-start.md | 69 +++
.../fixtures/http-path-continue.html | 35 ++
.../fixtures/http-path-continue.md | 69 +++
.../fixtures/http-path-start.html | 35 ++
.../fixtures/http-path-start.md | 69 +++
...inks-autolink-literals-and-characters.html | 6 +
.../links-autolink-literals-and-characters.md | 11 +
.../path-character-reference-like-named.html | 35 ++
.../path-character-reference-like-named.md | 69 +++
...th-character-reference-like-numerical.html | 35 ++
...path-character-reference-like-numerical.md | 69 +++
.../fixtures/path-or-link-end.html | 21 +
.../fixtures/path-or-link-end.md | 41 ++
.../fixtures/previous-complex.comment.html | 22 +
.../fixtures/previous-complex.comment.md | 43 ++
.../fixtures/previous.comment.html | 42 ++
.../fixtures/previous.comment.md | 76 +++
.../fixtures/www-domain-continue.html | 35 ++
.../fixtures/www-domain-continue.md | 69 +++
.../fixtures/www-domain-dot.html | 35 ++
.../fixtures/www-domain-dot.md | 69 +++
.../fixtures/www-domain-start.comment.html | 35 ++
.../fixtures/www-domain-start.comment.md | 69 +++
.../fixtures/www-path-continue.comment.html | 35 ++
.../fixtures/www-path-continue.comment.md | 69 +++
.../fixtures/www-path-start.comment.html | 35 ++
.../fixtures/www-path-start.comment.md | 69 +++
.../index.js | 541 ++++++++++++++++++
.../license | 22 +
packages/tinylinkify/tsconfig.json | 17 +
packages/tinylinkify/vite.config.ts | 31 +
pnpm-lock.yaml | 321 ++++++-----
141 files changed, 9152 insertions(+), 159 deletions(-)
create mode 100644 packages/tinylinkify/bench/samples/email_fuzzy.txt
create mode 100644 packages/tinylinkify/bench/samples/link_fuzzy.txt
create mode 100644 packages/tinylinkify/bench/samples/link_normal.txt
create mode 100644 packages/tinylinkify/bench/samples/many.txt
create mode 100644 packages/tinylinkify/bench/samples/many_fast.txt
create mode 100644 packages/tinylinkify/package.json
create mode 100644 packages/tinylinkify/scripts/fuzz-gfm.ts
create mode 100644 packages/tinylinkify/scripts/fuzz.ts
create mode 100644 packages/tinylinkify/scripts/inputs.ts
create mode 100644 packages/tinylinkify/scripts/linkify-it-tests.ts
create mode 100644 packages/tinylinkify/scripts/originals.ts
create mode 100644 packages/tinylinkify/scripts/redirect.ts
create mode 100644 packages/tinylinkify/scripts/remark.ts
create mode 100644 packages/tinylinkify/scripts/shared.ts
create mode 100644 packages/tinylinkify/scripts/uc-engine.ts
create mode 100644 packages/tinylinkify/scripts/versions.ts
create mode 100644 packages/tinylinkify/src/core/gfm.ts
create mode 100644 packages/tinylinkify/src/gfm/index.ts
create mode 100644 packages/tinylinkify/src/index.ts
create mode 100644 packages/tinylinkify/src/linkify-it/index.ts
create mode 100644 packages/tinylinkify/src/linkify-it/re.ts
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/COMMIT
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/LICENSE
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/build.test.mjs
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/fixtures/links.txt
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/fixtures/not_links.txt
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/pathological.test.mjs
create mode 100644 packages/tinylinkify/test/suites/linkify-it-5.0.2/test.test.mjs
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/COMMIT
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2b.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2b.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2c.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2c.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2d.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2d.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2e.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2e.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.html
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.md
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/index.js
create mode 100644 packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/license
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/COMMIT
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.html
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.md
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/index.js
create mode 100644 packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/license
create mode 100644 packages/tinylinkify/tsconfig.json
create mode 100644 packages/tinylinkify/vite.config.ts
diff --git a/packages/tinylinkify/bench/samples/email_fuzzy.txt b/packages/tinylinkify/bench/samples/email_fuzzy.txt
new file mode 100644
index 0000000..c1507ea
--- /dev/null
+++ b/packages/tinylinkify/bench/samples/email_fuzzy.txt
@@ -0,0 +1,11 @@
+Lorem ipsum dolor sit amet, adipiscing elit. Cras imperdiet nec erat ac condimentum. Nulla vel rutrum ligula. Sed hendrerit interdum orci a posuere. Vivamus ut velit aliquet, mollis purus eget, iaculis nisl. Proin posuere malesuada ante. Proin auctor orci eros, ac molestie lorem dictum nec. Vestibulum sit amet erat est. Morbi luctus sed elit ac luctus. Proin blandit, enim vitae egestas posuere, neque elit ultricies dui, vel mattis nibh enim ac lorem. Maecenas molestie nisl sit amet velit dictum lobortis. Aliquam erat volutpat.
+
+Vivamus sagittis, diam in lobortis, sapien arcu mattis erat, vel aliquet sem urna et risus. Ut feugiat sapien vitae mi elementum laoreet. Suspendisse potenti. Aliquam erat nisl, aliquam pretium libero aliquet, sagittis eleifend nunc. In hac habitasse platea dictumst. Integer turpis augue, tincidunt dignissim mauris id, rhoncus dapibus purus. Maecenas et enim odio. Nullam massa metus, varius quis vehicula sed, pharetra mollis erat. In quis viverra velit. Vivamus placerat, est nec hendrerit varius, enim dui hendrerit magna, ut pulvinar nibh lorem vel lacus. Mauris a orci iaculis, hendrerit eros sed, gravida leo. In dictum mauris vel augue varius, ac ullamcorper nisl ornare. In eu posuere velit, ac fermentum arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam sed malesuada leo, at interdum elit.
+
+Nullam ut tincidunt nunc metus lacus, commodo eget justo ut, rutrum varius nunc. Sed non rhoncus risus. Morbi sodales gravida pulvinar. Duis malesuada, odio volutpat elementum vulputate, massa magna scelerisque ante, et accumsan tellus nunc in sem. Donec mattis arcu et velit aliquet, non sagittis justo vestibulum. Suspendisse volutpat felis lectus, nec consequat ipsum mattis id. Donec dapibus vehicula facilisis. In tincidunt mi nisi, nec faucibus tortor euismod nec. Suspendisse ante ligula, aliquet vitae libero eu, vulputate dapibus libero. Sed bibendum, sapien at posuere interdum, libero est sollicitudin magna, ac gravida tellus purus eu ipsum. Proin ut quam arcu.
+
+Suspendisse potenti. Donec ante velit, ornare at augue quis, tristique laoreet sem. Etiam in ipsum elit. Nullam cursus dolor sit amet nulla feugiat tristique. Phasellus ac tellus tincidunt, imperdiet purus eget, ullamcorper ipsum. Cras eu tincidunt sem. Nullam sed dapibus magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In id venenatis tortor. In consectetur sollicitudin pharetra. Etiam convallis nisi nunc, et aliquam turpis viverra sit amet. Maecenas faucibus sodales tortor. Suspendisse lobortis mi eu leo viverra volutpat. Pellentesque velit ante, vehicula sodales congue ut, elementum a urna. Cras tempor, ipsum eget luctus rhoncus, arcu ligula fermentum urna, vulputate pharetra enim enim non libero.
+
+Proin diam quam, elementum in eleifend id, elementum et metus. Cras in justo consequat justo semper ultrices. Sed dignissim lectus a ante mollis, nec vulputate ante molestie. Proin in porta nunc. Etiam pulvinar turpis sed velit porttitor, vel adipiscing velit fringilla. Cras ac tellus vitae purus pharetra tincidunt. Sed cursus aliquet aliquet. Cras eleifend commodo malesuada. In turpis turpis, ullamcorper ut tincidunt a, ullamcorper a nunc. Etiam luctus tellus ac dapibus gravida. Ut nec lacus laoreet neque ullamcorper volutpat.
+
+Nunc et leo erat. Aenean mattis ultrices lorem, eget adipiscing dolor ultricies eu. In hac habitasse platea dictumst. Vivamus cursus feugiat sapien quis aliquam. Mauris quam libero, porta vel volutpat ut, blandit a purus. Vivamus vestibulum dui vel tortor molestie, sit amet feugiat sem commodo. Nulla facilisi. Sed molestie arcu eget tellus vestibulum tristique markdown-it@github.com.
diff --git a/packages/tinylinkify/bench/samples/link_fuzzy.txt b/packages/tinylinkify/bench/samples/link_fuzzy.txt
new file mode 100644
index 0000000..c1507ea
--- /dev/null
+++ b/packages/tinylinkify/bench/samples/link_fuzzy.txt
@@ -0,0 +1,11 @@
+Lorem ipsum dolor sit amet, adipiscing elit. Cras imperdiet nec erat ac condimentum. Nulla vel rutrum ligula. Sed hendrerit interdum orci a posuere. Vivamus ut velit aliquet, mollis purus eget, iaculis nisl. Proin posuere malesuada ante. Proin auctor orci eros, ac molestie lorem dictum nec. Vestibulum sit amet erat est. Morbi luctus sed elit ac luctus. Proin blandit, enim vitae egestas posuere, neque elit ultricies dui, vel mattis nibh enim ac lorem. Maecenas molestie nisl sit amet velit dictum lobortis. Aliquam erat volutpat.
+
+Vivamus sagittis, diam in lobortis, sapien arcu mattis erat, vel aliquet sem urna et risus. Ut feugiat sapien vitae mi elementum laoreet. Suspendisse potenti. Aliquam erat nisl, aliquam pretium libero aliquet, sagittis eleifend nunc. In hac habitasse platea dictumst. Integer turpis augue, tincidunt dignissim mauris id, rhoncus dapibus purus. Maecenas et enim odio. Nullam massa metus, varius quis vehicula sed, pharetra mollis erat. In quis viverra velit. Vivamus placerat, est nec hendrerit varius, enim dui hendrerit magna, ut pulvinar nibh lorem vel lacus. Mauris a orci iaculis, hendrerit eros sed, gravida leo. In dictum mauris vel augue varius, ac ullamcorper nisl ornare. In eu posuere velit, ac fermentum arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam sed malesuada leo, at interdum elit.
+
+Nullam ut tincidunt nunc metus lacus, commodo eget justo ut, rutrum varius nunc. Sed non rhoncus risus. Morbi sodales gravida pulvinar. Duis malesuada, odio volutpat elementum vulputate, massa magna scelerisque ante, et accumsan tellus nunc in sem. Donec mattis arcu et velit aliquet, non sagittis justo vestibulum. Suspendisse volutpat felis lectus, nec consequat ipsum mattis id. Donec dapibus vehicula facilisis. In tincidunt mi nisi, nec faucibus tortor euismod nec. Suspendisse ante ligula, aliquet vitae libero eu, vulputate dapibus libero. Sed bibendum, sapien at posuere interdum, libero est sollicitudin magna, ac gravida tellus purus eu ipsum. Proin ut quam arcu.
+
+Suspendisse potenti. Donec ante velit, ornare at augue quis, tristique laoreet sem. Etiam in ipsum elit. Nullam cursus dolor sit amet nulla feugiat tristique. Phasellus ac tellus tincidunt, imperdiet purus eget, ullamcorper ipsum. Cras eu tincidunt sem. Nullam sed dapibus magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In id venenatis tortor. In consectetur sollicitudin pharetra. Etiam convallis nisi nunc, et aliquam turpis viverra sit amet. Maecenas faucibus sodales tortor. Suspendisse lobortis mi eu leo viverra volutpat. Pellentesque velit ante, vehicula sodales congue ut, elementum a urna. Cras tempor, ipsum eget luctus rhoncus, arcu ligula fermentum urna, vulputate pharetra enim enim non libero.
+
+Proin diam quam, elementum in eleifend id, elementum et metus. Cras in justo consequat justo semper ultrices. Sed dignissim lectus a ante mollis, nec vulputate ante molestie. Proin in porta nunc. Etiam pulvinar turpis sed velit porttitor, vel adipiscing velit fringilla. Cras ac tellus vitae purus pharetra tincidunt. Sed cursus aliquet aliquet. Cras eleifend commodo malesuada. In turpis turpis, ullamcorper ut tincidunt a, ullamcorper a nunc. Etiam luctus tellus ac dapibus gravida. Ut nec lacus laoreet neque ullamcorper volutpat.
+
+Nunc et leo erat. Aenean mattis ultrices lorem, eget adipiscing dolor ultricies eu. In hac habitasse platea dictumst. Vivamus cursus feugiat sapien quis aliquam. Mauris quam libero, porta vel volutpat ut, blandit a purus. Vivamus vestibulum dui vel tortor molestie, sit amet feugiat sem commodo. Nulla facilisi. Sed molestie arcu eget tellus vestibulum tristique markdown-it@github.com.
diff --git a/packages/tinylinkify/bench/samples/link_normal.txt b/packages/tinylinkify/bench/samples/link_normal.txt
new file mode 100644
index 0000000..6c06b65
--- /dev/null
+++ b/packages/tinylinkify/bench/samples/link_normal.txt
@@ -0,0 +1,11 @@
+Lorem ipsum dolor sit amet, adipiscing elit. Cras imperdiet nec erat ac condimentum. Nulla vel rutrum ligula. Sed hendrerit interdum orci a posuere. Vivamus ut velit aliquet, mollis purus eget, iaculis nisl. Proin posuere malesuada ante. Proin auctor orci eros, ac molestie lorem dictum nec. Vestibulum sit amet erat est. Morbi luctus sed elit ac luctus. Proin blandit, enim vitae egestas posuere, neque elit ultricies dui, vel mattis nibh enim ac lorem. Maecenas molestie nisl sit amet velit dictum lobortis. Aliquam erat volutpat.
+
+Vivamus sagittis, diam in lobortis, sapien arcu mattis erat, vel aliquet sem urna et risus. Ut feugiat sapien vitae mi elementum laoreet. Suspendisse potenti. Aliquam erat nisl, aliquam pretium libero aliquet, sagittis eleifend nunc. In hac habitasse platea dictumst. Integer turpis augue, tincidunt dignissim mauris id, rhoncus dapibus purus. Maecenas et enim odio. Nullam massa metus, varius quis vehicula sed, pharetra mollis erat. In quis viverra velit. Vivamus placerat, est nec hendrerit varius, enim dui hendrerit magna, ut pulvinar nibh lorem vel lacus. Mauris a orci iaculis, hendrerit eros sed, gravida leo. In dictum mauris vel augue varius, ac ullamcorper nisl ornare. In eu posuere velit, ac fermentum arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam sed malesuada leo, at interdum elit.
+
+Nullam ut tincidunt nunc metus lacus, commodo eget justo ut, rutrum varius nunc. Sed non rhoncus risus. Morbi sodales gravida pulvinar. Duis malesuada, odio volutpat elementum vulputate, massa magna scelerisque ante, et accumsan tellus nunc in sem. Donec mattis arcu et velit aliquet, non sagittis justo vestibulum. Suspendisse volutpat felis lectus, nec consequat ipsum mattis id. Donec dapibus vehicula facilisis. In tincidunt mi nisi, nec faucibus tortor euismod nec. Suspendisse ante ligula, aliquet vitae libero eu, vulputate dapibus libero. Sed bibendum, sapien at posuere interdum, libero est sollicitudin magna, ac gravida tellus purus eu ipsum. Proin ut quam arcu.
+
+Suspendisse potenti. Donec ante velit, ornare at augue quis, tristique laoreet sem. Etiam in ipsum elit. Nullam cursus dolor sit amet nulla feugiat tristique. Phasellus ac tellus tincidunt, imperdiet purus eget, ullamcorper ipsum. Cras eu tincidunt sem. Nullam sed dapibus magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In id venenatis tortor. In consectetur sollicitudin pharetra. Etiam convallis nisi nunc, et aliquam turpis viverra sit amet. Maecenas faucibus sodales tortor. Suspendisse lobortis mi eu leo viverra volutpat. Pellentesque velit ante, vehicula sodales congue ut, elementum a urna. Cras tempor, ipsum eget luctus rhoncus, arcu ligula fermentum urna, vulputate pharetra enim enim non libero.
+
+Proin diam quam, elementum in eleifend id, elementum et metus. Cras in justo consequat justo semper ultrices. Sed dignissim lectus a ante mollis, nec vulputate ante molestie. Proin in porta nunc. Etiam pulvinar turpis sed velit porttitor, vel adipiscing velit fringilla. Cras ac tellus vitae purus pharetra tincidunt. Sed cursus aliquet aliquet. Cras eleifend commodo malesuada. In turpis turpis, ullamcorper ut tincidunt a, ullamcorper a nunc. Etiam luctus tellus ac dapibus gravida. Ut nec lacus laoreet neque ullamcorper volutpat.
+
+Nunc et leo erat. Aenean mattis ultrices lorem, eget adipiscing dolor ultricies eu. In hac habitasse platea dictumst. Vivamus cursus feugiat sapien quis aliquam. Mauris quam libero, porta vel volutpat ut, blandit a purus. Vivamus vestibulum dui vel tortor molestie, sit amet feugiat sem commodo. Nulla facilisi. Sed molestie arcu eget tellus vestibulum tristique https://github.com/markdown-it
diff --git a/packages/tinylinkify/bench/samples/many.txt b/packages/tinylinkify/bench/samples/many.txt
new file mode 100644
index 0000000..acb88a3
--- /dev/null
+++ b/packages/tinylinkify/bench/samples/many.txt
@@ -0,0 +1,11 @@
+Lorem ipsum dolor sit amet, adipiscing elit. Cras imperdiet nec erat ac condimentum. Nulla vel rutrum ligula. Sed hendrerit interdum orci a posuere. Vivamus ut velit aliquet, mollis purus eget, iaculis nisl. Proin posuere malesuada ante. Proin auctor orci eros, ac molestie lorem dictum nec. Vestibulum sit amet erat est. Morbi luctus sed elit ac luctus. Proin blandit, enim vitae egestas posuere, neque elit ultricies dui, vel mattis nibh enim ac lorem. Maecenas molestie nisl sit amet velit dictum lobortis. Aliquam erat volutpat.
+
+Vivamus sagittis, diam in github.com/markdown-it/markdown-it lobortis, sapien arcu mattis erat, vel aliquet sem urna et risus. Ut feugiat sapien vitae mi elementum laoreet. Suspendisse potenti. Aliquam erat nisl, aliquam pretium libero aliquet, sagittis eleifend nunc. In hac habitasse platea dictumst. Integer turpis augue, tincidunt dignissim mauris id, rhoncus dapibus purus. Maecenas et enim odio. Nullam massa metus, varius quis vehicula sed, pharetra mollis erat. In quis viverra velit. Vivamus placerat, est nec hendrerit varius, enim dui hendrerit magna, ut pulvinar nibh lorem vel lacus. Mauris a orci iaculis, hendrerit eros sed, gravida leo. In dictum mauris vel augue varius, ac ullamcorper nisl ornare. In eu posuere velit, ac fermentum arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam sed malesuada leo, at interdum elit.
+
+Nullam ut tincidunt nunc metus lacus, http://github.com/markdown-it commodo eget justo ut, rutrum varius nunc. Sed non rhoncus risus. Morbi sodales gravida pulvinar. Duis malesuada, odio volutpat elementum vulputate, massa magna scelerisque ante, et accumsan tellus nunc in sem. Donec mattis arcu et velit aliquet, non sagittis justo vestibulum. Suspendisse volutpat felis lectus, nec consequat ipsum mattis id. Donec dapibus vehicula facilisis. In tincidunt mi nisi, nec faucibus tortor euismod nec. Suspendisse ante ligula, aliquet vitae libero eu, vulputate dapibus libero. Sed bibendum, sapien at posuere interdum, libero est sollicitudin magna, ac gravida tellus purus eu ipsum. Proin ut quam arcu.
+
+Suspendisse potenti. Donec ante velit, markdown-it@github.com ornare at augue quis, tristique laoreet sem. Etiam in ipsum elit. Nullam cursus dolor sit amet nulla feugiat tristique. Phasellus ac tellus tincidunt, imperdiet purus eget, ullamcorper ipsum. Cras eu tincidunt sem. Nullam sed dapibus magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In id venenatis tortor. In consectetur sollicitudin pharetra. Etiam convallis nisi nunc, et aliquam turpis viverra sit amet. Maecenas faucibus sodales tortor. Suspendisse lobortis mi eu leo viverra volutpat. Pellentesque velit ante, vehicula sodales congue ut, elementum a urna. Cras tempor, ipsum eget luctus rhoncus, arcu ligula fermentum urna, vulputate pharetra enim enim non libero.
+
+Proin diam quam, elementum in eleifend id, elementum et metus. Cras in justo consequat justo semper ultrices. Sed dignissim lectus a ante mollis, nec vulputate ante molestie. Proin in porta nunc. Etiam pulvinar turpis sed velit porttitor, vel adipiscing velit fringilla. Cras ac tellus vitae purus pharetra tincidunt. Sed cursus aliquet aliquet. Cras eleifend commodo malesuada. In turpis turpis, ullamcorper ut tincidunt a, ullamcorper a nunc. Etiam luctus tellus ac dapibus gravida. Ut nec lacus laoreet neque ullamcorper volutpat.
+
+Nunc et leo erat. Aenean mattis ultrices lorem, eget adipiscing dolor ultricies eu. In hac habitasse platea dictumst. Vivamus cursus feugiat sapien quis aliquam. Mauris quam libero, porta vel volutpat ut, blandit a purus. Vivamus vestibulum dui vel tortor molestie, sit amet feugiat sem commodo. Nulla facilisi. Sed molestie arcu eget tellus vestibulum tristique.
diff --git a/packages/tinylinkify/bench/samples/many_fast.txt b/packages/tinylinkify/bench/samples/many_fast.txt
new file mode 100644
index 0000000..2679c75
--- /dev/null
+++ b/packages/tinylinkify/bench/samples/many_fast.txt
@@ -0,0 +1,13 @@
+Lorem ipsum dolor sit amet, adipiscing elit. Cras imperdiet nec erat ac condimentum. Nulla vel rutrum ligula. Sed hendrerit interdum orci a posuere. Vivamus ut velit aliquet, mollis purus eget, iaculis nisl. Proin posuere malesuada ante. Proin auctor orci eros, ac molestie lorem dictum nec. Vestibulum sit amet erat est. Morbi luctus sed elit ac luctus. Proin blandit, enim vitae egestas posuere, neque elit ultricies dui, vel mattis nibh enim ac lorem. Maecenas molestie nisl sit amet velit dictum lobortis. Aliquam erat volutpat.
+
+Vivamus sagittis, diam in https://github.com/markdown-it/markdown-it lobortis, sapien arcu mattis erat, vel aliquet sem urna et risus. Ut feugiat sapien vitae mi elementum laoreet. Suspendisse potenti. Aliquam erat nisl, aliquam pretium libero aliquet, sagittis eleifend nunc. In hac habitasse platea dictumst. Integer turpis augue, tincidunt dignissim mauris id, rhoncus dapibus purus. Maecenas et enim odio. Nullam massa metus, varius quis vehicula sed, pharetra mollis erat. In quis viverra velit. Vivamus placerat, est nec hendrerit varius, enim dui hendrerit magna, ut pulvinar nibh lorem vel lacus. Mauris a orci iaculis, hendrerit eros sed, gravida leo. In dictum mauris vel augue varius, ac ullamcorper nisl ornare. In eu posuere velit, ac fermentum arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam sed malesuada leo, at interdum elit.
+
+Nullam ut tincidunt nunc metus lacus, github.com/markdown-it commodo eget justo ut, rutrum varius nunc. Sed non rhoncus risus. Morbi sodales gravida pulvinar. Duis malesuada, odio volutpat elementum vulputate, massa magna scelerisque ante, et accumsan tellus nunc in sem. Donec mattis arcu et velit aliquet, non sagittis justo vestibulum. Suspendisse volutpat felis lectus, nec consequat ipsum mattis id. Donec dapibus vehicula facilisis. In tincidunt mi nisi, nec faucibus tortor euismod nec. Suspendisse ante ligula, aliquet vitae libero eu, vulputate dapibus libero. Sed bibendum, sapien at posuere interdum, libero est sollicitudin magna, ac gravida tellus purus eu ipsum. Proin ut quam arcu.
+
+Suspendisse potenti. Donec ante velit, markdown-it@github.com ornare at augue quis, tristique laoreet sem. Etiam in ipsum elit. Nullam cursus dolor sit amet nulla feugiat tristique. Phasellus ac tellus tincidunt, imperdiet purus eget, ullamcorper ipsum. Cras eu tincidunt sem. Nullam sed dapibus magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In id venenatis tortor. In consectetur sollicitudin pharetra. Etiam convallis nisi nunc, et aliquam turpis viverra sit amet. Maecenas faucibus sodales tortor. Suspendisse lobortis mi eu leo viverra volutpat. Pellentesque velit ante, vehicula sodales congue ut, elementum a urna. Cras tempor, ipsum eget luctus rhoncus, arcu ligula fermentum urna, vulputate pharetra enim enim non libero.
+
+Proin diam quam, elementum in eleifend id, elementum et metus. Cras in justo consequat justo semper ultrices. Sed dignissim lectus a ante mollis, nec vulputate ante molestie. Proin in porta nunc. Etiam pulvinar turpis sed velit porttitor, vel adipiscing velit fringilla. Cras ac tellus vitae purus pharetra tincidunt. Sed cursus aliquet aliquet. Cras eleifend commodo malesuada. In turpis turpis, ullamcorper ut tincidunt a, ullamcorper a nunc. Etiam luctus tellus ac dapibus gravida. Ut nec lacus laoreet neque ullamcorper volutpat.
+
+Nunc et leo erat. Aenean mattis ultrices lorem, eget adipiscing dolor ultricies eu. In hac habitasse platea dictumst. Vivamus cursus feugiat sapien quis aliquam. Mauris quam libero, porta vel volutpat ut, blandit a purus. Vivamus vestibulum dui vel tortor molestie, sit amet feugiat sem commodo. Nulla facilisi. Sed molestie arcu eget tellus vestibulum tristique.
+
+https://github.com/markdown-it
diff --git a/packages/tinylinkify/package.json b/packages/tinylinkify/package.json
new file mode 100644
index 0000000..cc98498
--- /dev/null
+++ b/packages/tinylinkify/package.json
@@ -0,0 +1,92 @@
+{
+ "name": "tinylinkify",
+ "version": "0.1.1",
+ "description": "Tiny, fast link finder for plain text, with GFM autolink literals and a drop-in replacement for linkify-it",
+ "keywords": [
+ "autolink",
+ "gfm",
+ "linkify",
+ "linkify-it",
+ "markdown-it",
+ "url"
+ ],
+ "homepage": "https://github.com/onmax/tiny/tree/main/packages/tinylinkify#readme",
+ "bugs": "https://github.com/onmax/tiny/issues",
+ "license": "MIT",
+ "author": "onmax",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/onmax/tiny.git",
+ "directory": "packages/tinylinkify"
+ },
+ "files": [
+ "dist"
+ ],
+ "type": "module",
+ "sideEffects": false,
+ "typesVersions": {
+ "*": {
+ "package.json": [
+ "./package.json"
+ ],
+ "linkify-it": [
+ "./dist/linkify-it.d.mts"
+ ],
+ "gfm": [
+ "./dist/gfm.d.mts"
+ ],
+ "*": [
+ "./dist/index.d.mts"
+ ]
+ }
+ },
+ "exports": {
+ ".": "./dist/index.mjs",
+ "./linkify-it": "./dist/linkify-it.mjs",
+ "./gfm": "./dist/gfm.mjs",
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public",
+ "provenance": true
+ },
+ "scripts": {
+ "build": "vp pack",
+ "lint": "vp lint",
+ "fmt": "vp fmt",
+ "typecheck": "tsrs --noEmit",
+ "test": "vp test",
+ "test:dist": "vp test run --config test/dist.config.ts",
+ "check": "vp check && pnpm typecheck",
+ "ready": "vp fmt && pnpm build && pnpm check && pnpm test",
+ "prepare": "vp config",
+ "linkify-it-tests": "node scripts/linkify-it-tests.ts",
+ "fuzz": "node scripts/fuzz.ts",
+ "versions": "node scripts/versions.ts",
+ "gfm-fixtures": "node scripts/gfm-fixtures.ts",
+ "fuzz:gfm": "node scripts/fuzz-gfm.ts",
+ "size": "node scripts/size.ts",
+ "bench": "node bench/index.ts"
+ },
+ "devDependencies": {
+ "@types/linkify-it": "5.0.0",
+ "@types/node": "^26.6.6",
+ "esbuild": "^0.28.2",
+ "linkify-it": "5.0.2",
+ "markdown-exit": "1.3.0",
+ "mdast-util-from-markdown": "2.1.0",
+ "mdast-util-gfm-autolink-literal": "2.1.0",
+ "micromark-extension-gfm-autolink-literal": "2.1.0",
+ "publint": "^0.3.25",
+ "remark-gfm": "4.0.1",
+ "remark-parse": "11.0.0",
+ "tsrs": "0.20.1-ts7.1.0-beta",
+ "typescript": "^7.0.2",
+ "uc.micro": "2.1.0",
+ "unified": "11.0.5",
+ "vite-plus": "^1.4.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+}
diff --git a/packages/tinylinkify/scripts/fuzz-gfm.ts b/packages/tinylinkify/scripts/fuzz-gfm.ts
new file mode 100644
index 0000000..97793cd
--- /dev/null
+++ b/packages/tinylinkify/scripts/fuzz-gfm.ts
@@ -0,0 +1,210 @@
+// Differential fuzzing of tinylinkify's GFM links against remark-gfm's
+// autolink literal step (scripts/remark.ts), on plain text: lines of the
+// micromark and mdast fixtures, the benchmark samples and some chat, each
+// edited a few times with the pieces the GFM rules care about. Both must find
+// the same links, at the same offsets, with the same URLs; the root, the
+// /gfm entry's match, and its matchAtStart on each link with a schema too.
+// Inputs are single lines with nothing to trim at the ends, which is what a
+// run of text is, and no U+0000, which micromark reads as U+FFFD.
+// Usage: node scripts/fuzz-gfm.ts [iterations] [seed]
+import { readdirSync, readFileSync } from "node:fs";
+import LinkifyIt from "../src/gfm/index.ts";
+import { find } from "../src/index.ts";
+import { autolinks } from "./remark.ts";
+import { benchSamples, count, seeded, show } from "./shared.ts";
+
+const iterations = count(2, 20000);
+const next = seeded(count(3, 1));
+const pick = (list: readonly T[]) => list[Math.floor(next() * list.length)]!;
+const int = (n: number) => Math.floor(next() * n);
+
+const SUITES = [
+ "test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures",
+ "test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture",
+];
+const lines = (text: string) => text.split(/\r?\n/);
+const seeds = [
+ ...SUITES.flatMap((dir) =>
+ readdirSync(dir)
+ .filter((file) => file.endsWith(".md"))
+ .flatMap((file) => lines(readFileSync(`${dir}/${file}`, "utf8"))),
+ ),
+ ...Object.values(benchSamples()).flatMap(lines),
+].filter((line) => line.trim());
+
+const pieces = [
+ "www.",
+ "WWW.",
+ "wWw.",
+ "http://",
+ "https://",
+ "HTTPS://",
+ "httpx://",
+ "ftp://",
+ "mailto:",
+ "xmpp:",
+ "@",
+ ".",
+ "..",
+ "_",
+ "-",
+ "+",
+ "(",
+ ")",
+ "))",
+ "[",
+ "]",
+ "{",
+ "}",
+ "<",
+ ">",
+ "&",
+ "&",
+ "&hl;",
+ "#",
+ ";",
+ ":",
+ "/",
+ "?",
+ "!",
+ "*",
+ "~",
+ '"',
+ "'",
+ ",",
+ "#",
+ "%",
+ "=",
+ "`",
+ "\\",
+ "|",
+ "$",
+ " ",
+ "\t",
+ "\u000b",
+ "\u000c",
+ "\u0085",
+ " ",
+ "
",
+ " ",
+ "",
+ "\u001f",
+ "\u007f",
+ "a",
+ "Z",
+ "1",
+ "é",
+ "ß",
+ "點看",
+ "пример",
+ "😀",
+ "\ud800",
+ "\udc00",
+ "«",
+ "»",
+ "。",
+ "“",
+ "”",
+ "–",
+ "…",
+ "€",
+ "©",
+ ".com",
+ ".org",
+ ".c_d",
+ "a_b.",
+ "example",
+ "a@b.co",
+ "a.b-c_d@a.b",
+ "/resource",
+ "/a.b",
+ "?q=(x)",
+];
+
+function mutate(text: string): string {
+ const edits = 1 + int(4);
+ for (let i = 0; i < edits; i++) {
+ const at = int(text.length + 1);
+ switch (int(5)) {
+ case 0:
+ case 1:
+ text = text.slice(0, at) + pick(pieces) + text.slice(at);
+ break;
+ case 2:
+ text = text.slice(0, at) + text.slice(at + 1 + int(4));
+ break;
+ case 3:
+ text = text.slice(0, at) + pick(pieces) + text.slice(at + 1 + int(3));
+ break;
+ default: {
+ const from = int(text.length);
+ text = text.slice(0, at) + text.slice(from, from + int(12)) + text.slice(at);
+ }
+ }
+ }
+ return text;
+}
+
+// A single line with nothing to trim at either end: what remark keeps of a paragraph.
+const plain = (text: string) =>
+ text
+ .replace(/[\n\r\0]/g, " ")
+ .replace(/^[ \t]+|[ \t]+$/g, "")
+ .replace(/^(\s)+/u, "");
+
+const linkify = new LinkifyIt();
+let checked = 0;
+let differences = 0;
+let links = 0;
+const examples: string[] = [];
+for (let i = 0; i < iterations; i++) {
+ let text = pick(seeds);
+ if (next() < 0.2) text += pick([" ", ", ", ""]) + pick(seeds);
+ if (next() < 0.9) text = mutate(text);
+ text = plain(text);
+ if (!text) continue;
+ let want;
+ try {
+ want = JSON.stringify(autolinks(text));
+ } catch {
+ continue;
+ }
+ checked++;
+ const found = find(text);
+ links += found.length;
+ const got = JSON.stringify(found.map(({ index, lastIndex, url }) => ({ index, lastIndex, url })));
+ const matched = linkify.match(text) ?? [];
+ const fromEntry = JSON.stringify(
+ matched.map(({ index, lastIndex, url }: { index: number; lastIndex: number; url: string }) => ({
+ index,
+ lastIndex,
+ url,
+ })),
+ );
+ // matchAtStart from each http(s) link the root finds that micromark would
+ // read, which is what markdown-exit asks for at `://`.
+ const atStart = found.filter(
+ (link) => /^https?:$/.test(link.schema) && linkify.matchAtStart(text.slice(link.index))?.text !== link.text,
+ );
+ const textsOk = found.every((link) => text.slice(link.index, link.lastIndex) === link.text);
+ if (got !== want || fromEntry !== want || !textsOk) {
+ differences++;
+ if (examples.length < Number(process.env.SHOW ?? 10))
+ examples.push(`${show(text)}\n remark ${want}\n ours ${got}${fromEntry === got ? "" : `\n /gfm ${fromEntry}`}`);
+ } else if (atStart.length) {
+ // A link micromark found at the start must come back from matchAtStart;
+ // one only the mdast search found may not, as micromark doesn't link it.
+ const missed = atStart.filter((link) => {
+ const start = linkify.matchAtStart(text.slice(link.index));
+ return start && start.text !== link.text;
+ });
+ if (missed.length) {
+ differences++;
+ if (examples.length < Number(process.env.SHOW ?? 10))
+ examples.push(`${show(text)}: matchAtStart differs at ${missed.map((l) => l.index).join(", ")}`);
+ }
+ }
+}
+for (const example of examples) console.log(example);
+console.log(`${checked} inputs, ${links} links: ${differences} differ from remark-gfm`);
+process.exitCode = differences ? 1 : 0;
diff --git a/packages/tinylinkify/scripts/fuzz.ts b/packages/tinylinkify/scripts/fuzz.ts
new file mode 100644
index 0000000..45a3984
--- /dev/null
+++ b/packages/tinylinkify/scripts/fuzz.ts
@@ -0,0 +1,124 @@
+// Differential fuzzing of tinylinkify/linkify-it against linkify-it 5.0.2.
+// Seeds are linkify-it's fixtures, the benchmark samples and some chat; each
+// input gets a few random edits with the pieces linkify-it's patterns care
+// about, and goes through pretest, test, match, matchAtStart and testSchemaAt
+// on instances set up the same way: each option, `---`, replaced and added
+// TLDs, added, aliased and disabled schemas, and a replaced normalizer.
+//
+// There are two references (scripts/originals.ts). linkify-it as published
+// reads punctuation from uc.micro (Unicode 15.1), and tinylinkify from the
+// engine, so an input with one of the code points whose class changed since
+// may differ from it, and is counted apart. linkify-it with the engine's
+// punctuation class must give the same result on every input. Errors must
+// match too, by class and message, and so must every `re` source after
+// construction, with the punctuation class itself set aside.
+// Usage: node scripts/fuzz.ts [iterations] [seed]
+import LinkifyIt from "../src/linkify-it/index.ts";
+import { changed, onEngine, published } from "./originals.ts";
+import { int, mutate, pick, rng, run, SCHEMAS, seeds, SETUPS, type Linkify, type Make } from "./inputs.ts";
+import { attempt, count, seeded, show } from "./shared.ts";
+
+const iterations = count(2, 20000);
+rng.next = seeded(count(3, 1));
+const next = rng.next;
+
+const sides = (setup: (make: Make) => Linkify) =>
+ [LinkifyIt, onEngine, published].map((make) => attempt(() => setup(make)));
+const instances = SETUPS.map(([name, setup]) => [name, sides(setup)] as const);
+
+let calls = 0;
+let differences = 0;
+let unicode = 0;
+const examples: string[] = [];
+const report = (what: string) => {
+ differences++;
+ if (examples.length < Number(process.env.SHOW ?? 10)) examples.push(what);
+};
+
+// Every `re` source after construction, with each side's punctuation class set aside.
+const sources = (l: Linkify) =>
+ JSON.stringify(
+ Object.entries(l.re).map(([key, value]) => [
+ key,
+ (value instanceof RegExp ? `/${value.source}/${value.flags}` : String(value)).replaceAll(
+ l.re.src_P,
+ "",
+ ),
+ ]),
+ );
+for (const [name, [ours, engine, theirs]] of instances) {
+ if (!ours!.ok || !engine!.ok || !theirs!.ok) {
+ report(`${name}: setup failed ${JSON.stringify([ours, engine, theirs])}`);
+ continue;
+ }
+ const [a, b, c] = [ours.value, engine.value, theirs.value].map(sources);
+ if (a !== b || a !== c) report(`${name}: re differs`);
+}
+
+for (let i = 0; i < iterations; i++) {
+ let text = pick(seeds);
+ if (next() < 0.2) text += pick([" ", "\n", ", ", ""]) + pick(seeds);
+ if (next() < 0.9) text = mutate(text);
+ const near = changed.some((char) => text.includes(char));
+ // Every input goes through the default setup, and one other.
+ for (const [name, [ours, engine, theirs]] of [instances[0]!, pick(instances.slice(1))]) {
+ const schema = pick(SCHEMAS);
+ const pos = int(text.length + 2);
+ const [a, b, c] = [ours, engine, theirs].map((l) =>
+ JSON.stringify(run((l as { value: Linkify }).value, text, schema, pos)),
+ );
+ calls += 5 * 3;
+ if (a !== b) report(`${name} ${show(text)} ${schema} ${pos}\n ours ${a}\n engine ${b}`);
+ else if (a !== c) {
+ if (near) unicode++;
+ else report(`${name} ${show(text)} ${schema} ${pos}\n ours ${a}\n linkify-it ${c}`);
+ }
+ }
+}
+
+// Arguments of the wrong type, bad definitions and odd options, each from a
+// fresh instance on each side.
+const ODD: [string, (l: Linkify, make: Make) => unknown][] = [
+ ...[undefined, null, 5, {}, [], { length: 3 }, new String("http://a.com"), ["a.com"]].flatMap(
+ (value) =>
+ (["test", "pretest", "match", "matchAtStart"] as const).map(
+ (method) =>
+ [`${method}(${show(value)})`, (l: Linkify) => l[method](value)] as [
+ string,
+ (l: Linkify) => unknown,
+ ],
+ ),
+ ),
+ ["add([])", (l) => l.add("test:", [])],
+ ["add(validate: [])", (l) => l.add("test:", { validate: [] })],
+ ["add(normalize: 'bad')", (l) => l.add("test:", { validate: () => 0, normalize: "bad" })],
+ ["add(async validate)", (l) => l.add("test:", { validate: async () => 0 })],
+ ["add(5)", (l) => l.add("test:", 5)],
+ ["add then test", (l) => (attempt(() => l.add("test:", [])), l.test("http://a.com"))],
+ ["add uppercase", (l) => l.add("TEST:", { validate: /^\/\/\w+/ }).match("x test://abc")],
+ ["testSchemaAt(undefined)", (l) => l.testSchemaAt("http://a.com", undefined, 5)],
+ ["tlds(undefined)", (l) => l.tlds(undefined).match("a.com b.undefined")],
+ ["tlds('$&')", (l) => l.tlds("$&", true).match("a.com a.zz")],
+ ["tlds(['\\\\1'])", (l) => l.tlds(["\\1"], true).match("a.com a.\u0001 x")],
+ ["set('abc')", (l) => (l.set("abc"), l.__opts__)],
+ ["set(null)", (l) => (l.set(null), l.match("a.com"))],
+ ["options as string", (_, make) => make("fuzzyIP", "x").__opts__],
+ ["schemas only", (_, make) => Object.keys(make({ "x:": "http:" }).__schemas__)],
+ ["options proto", (_, make) => make(JSON.parse('{"__proto__": {"fuzzyIP": true}}')).__opts__],
+ ["shared compiled", (l) => Object.keys(l.__compiled__)],
+ ["instance keys", (l) => Object.keys(l)],
+];
+for (const [name, fn] of ODD) {
+ const [a, b, c] = [LinkifyIt, onEngine, published].map((make: Make) =>
+ JSON.stringify(attempt(() => fn(make(), make))),
+ );
+ calls += 3;
+ if (a !== b || a !== c) report(`${name}\n ours ${a}\n engine ${b}\n linkify-it ${c}`);
+}
+
+for (const example of examples) console.log(example);
+console.log(
+ `${iterations} inputs, ${calls} calls: ${differences} differ, ` +
+ `${unicode} differ from linkify-it as published only by Unicode version`,
+);
+process.exitCode = differences ? 1 : 0;
diff --git a/packages/tinylinkify/scripts/inputs.ts b/packages/tinylinkify/scripts/inputs.ts
new file mode 100644
index 0000000..7dd49bd
--- /dev/null
+++ b/packages/tinylinkify/scripts/inputs.ts
@@ -0,0 +1,237 @@
+// The inputs and setups the linkify-it fuzzers share: seeds, the pieces that
+// edit them, and instances set up the same way on each side.
+import { changed } from "./originals.ts";
+import { attempt, benchSamples, fixtureLines } from "./shared.ts";
+
+export type Linkify = any;
+export type Make = (options?: unknown, more?: unknown) => Linkify;
+
+/** The random number source the edits draw from; scripts set its seed. */
+export const rng = { next: Math.random };
+export const pick = (list: readonly T[]): T => list[Math.floor(rng.next() * list.length)]!;
+export const int = (n: number): number => Math.floor(rng.next() * n);
+
+
+
+// Instances set up the same way on each side: [name, setup].
+const twitter = (make: Make) =>
+ make().add("@", {
+ validate(text: string, pos: number, self: Linkify) {
+ const tail = text.slice(pos);
+ if (!self.re.twitter)
+ self.re.twitter = new RegExp(`^([a-zA-Z0-9_]){1,15}(?!_)(?=$|${self.re.src_ZPCc})`);
+ if (self.re.twitter.test(tail)) {
+ if (pos >= 2 && tail[pos - 2] === "@") return false;
+ return tail.match(self.re.twitter)[0].length;
+ }
+ return 0;
+ },
+ normalize(m: { url: string }) {
+ m.url = `https://twitter.com/${m.url.replace(/^@/, "")}`;
+ },
+ });
+export const SETUPS: [string, (make: Make) => Linkify][] = [
+ ["default", (make) => make()],
+ ["fuzzyIP", (make) => make({ fuzzyIP: true })],
+ ["no fuzzyLink", (make) => make({ fuzzyLink: false })],
+ ["no fuzzyEmail", (make) => make().set({ fuzzyEmail: false })],
+ ["---", (make) => make(null, { "---": true })],
+ ["--- and fuzzyIP", (make) => make({}, { "---": true, fuzzyIP: true })],
+ ["tlds replaced", (make) => make().tlds(["onion", "co", "рф", "xn--p1ai"])],
+ ["tlds added", (make) => make().tlds("myroot", true).tlds(["zz", "com"], true)],
+ ["tlds added, fuzzyIP", (make) => make({ fuzzyIP: true }).tlds(["local"], true)],
+ ["twitter", twitter],
+ [
+ "schemas",
+ (make) =>
+ make({ "git:": "http:", "My:": { validate: /^\/\/[a-z]+/ }, "skype:": { validate: /^\w+/ } }),
+ ],
+ [
+ "disabled",
+ (make) => make().add("http:", null).add("mailto:", null).add("ftp:", "missing:"),
+ ],
+ [
+ "normalizer",
+ (make) => {
+ const l = make();
+ l.normalize = function (this: unknown, m: { url: string; text: string }) {
+ m.text = m.text.toUpperCase();
+ m.url += "#n";
+ };
+ return l;
+ },
+ ],
+ [
+ "onCompile",
+ (make) => {
+ const l = make();
+ l.onCompile = function (this: { re: Record }) {
+ this.re.tpl_email_fuzzy = this.re.tpl_email_fuzzy.replace("@", "(?:@|\\[at\\])");
+ };
+ return l.tlds("io", true);
+ },
+ ],
+];
+
+const chat = [
+ "hey @alice can you check https://github.com/vercel/chat/pull/1#issuecomment-123?",
+ "@bob @carol see www.example.com and docs.example.org/guide (thanks!)",
+ "mail me: a.b+c@example.co.uk, or ping @dave_99",
+ "build failed at http://localhost:3000/api?x=1&y=2. retrying…",
+ "“quoted https://example.com/путь” and 例え.テスト/パス and 1.2.3.4:8080",
+];
+export const seeds = [
+ ...fixtureLines(),
+ ...chat,
+ ...Object.values(benchSamples()).flatMap((text) => text.split(/(?<=[.!?\n])\s+/)),
+];
+
+export const pieces = [
+ "http://",
+ "https://",
+ "HTTP://",
+ "ftp://",
+ "mailto:",
+ "//",
+ "///",
+ "www.",
+ ".com",
+ ".org",
+ ".io",
+ ".рф",
+ ".xn--p1ai",
+ "xn--80ak6aa92e",
+ ".museum",
+ ".comx",
+ "localhost",
+ "1.2.3.4",
+ "255.255.255.256",
+ ":8080",
+ ":65536",
+ "@",
+ "user:pass@",
+ "a@b.co",
+ ":",
+ "/",
+ "?",
+ "#",
+ "&",
+ "=",
+ "(",
+ ")",
+ "[",
+ "]",
+ "{",
+ "}",
+ '"',
+ "'",
+ ".",
+ "..",
+ "...",
+ ",",
+ ";",
+ "!",
+ "!!",
+ "-",
+ "--",
+ "---",
+ "_",
+ "<",
+ ">",
+ "|",
+ "|",
+ "$",
+ "+",
+ "^",
+ "`",
+ "\\",
+ " ",
+ "\n",
+ "\t",
+ " ",
+ "
",
+ " ",
+ "",
+ "",
+ "\u0085",
+ "\u001f",
+ "\u007f",
+ "a",
+ "Z",
+ "0",
+ "9",
+ "é",
+ "ß",
+ "ſ",
+ "K",
+ "例",
+ "点看",
+ "пример",
+ "ä",
+ "😀",
+ "𝒳",
+ "\ud800",
+ "\udc00",
+ "\udbff",
+ "«",
+ "»",
+ "。",
+ "、",
+ "!",
+ "?",
+ "“",
+ "”",
+ "‘",
+ "’",
+ "–",
+ "—",
+ "…",
+ "¿",
+ "§",
+ "·",
+ "、",
+ "・",
+ "︐",
+ ",",
+ // Punctuation in the engine's Unicode that uc.micro's tables don't have.
+ ...changed,
+];
+
+export function mutate(text: string): string {
+ const edits = 1 + int(4);
+ for (let i = 0; i < edits; i++) {
+ const at = int(text.length + 1);
+ switch (int(5)) {
+ case 0:
+ case 1:
+ text = text.slice(0, at) + pick(pieces) + text.slice(at);
+ break;
+ case 2:
+ text = text.slice(0, at) + text.slice(at + 1 + int(4));
+ break;
+ case 3:
+ text = text.slice(0, at) + pick(pieces) + text.slice(at + 1 + int(3));
+ break;
+ default: {
+ const from = int(text.length);
+ text = text.slice(0, at) + text.slice(from, from + int(12)) + text.slice(at);
+ }
+ }
+ }
+ return text;
+}
+
+// What a match result is, field by field, in key order.
+export const shape = (m: Record | null) => (m ? JSON.stringify(Object.entries(m)) : null);
+export const SCHEMAS = ["http:", "HTTPS:", "//", "mailto:", "ftp:", "git:", "@", "bad:"];
+
+export function run(l: Linkify, text: string, schema: string, pos: number) {
+ return [
+ attempt(() => l.pretest(text)),
+ attempt(() => l.test(text)),
+ attempt(() => l.match(text)?.map(shape) ?? null),
+ attempt(() => shape(l.matchAtStart(text))),
+ attempt(() => l.testSchemaAt(text, schema, pos)),
+ ];
+}
+
diff --git a/packages/tinylinkify/scripts/linkify-it-tests.ts b/packages/tinylinkify/scripts/linkify-it-tests.ts
new file mode 100644
index 0000000..5c6852f
--- /dev/null
+++ b/packages/tinylinkify/scripts/linkify-it-tests.ts
@@ -0,0 +1,50 @@
+// Runs linkify-it 5.0.2's own tests, copied unchanged into
+// test/suites/linkify-it-5.0.2, against linkify-it itself, to check the copy,
+// and against tinylinkify/linkify-it, through scripts/redirect.ts. Prints the
+// counts and each failing test, and exits non-zero when tinylinkify fails one
+// or a file runs no tests.
+// Usage: node scripts/linkify-it-tests.ts
+import { spawnSync } from "node:child_process";
+import { readdirSync, realpathSync } from "node:fs";
+import { pathToFileURL } from "node:url";
+
+const DIR = "test/suites/linkify-it-5.0.2";
+// Real paths, so linkify-it finds its own dependencies through pnpm's links.
+const href = (path: string) => pathToFileURL(realpathSync(path)).href;
+// Each target: a label, the module the tests import, and the one `require` gets.
+const TARGETS: [string, string, string][] = [
+ ["linkify-it 5.0.2", "node_modules/linkify-it/index.mjs", "node_modules/linkify-it/build/index.cjs.js"],
+ ["tinylinkify/linkify-it", "src/linkify-it/index.ts", "src/linkify-it/index.ts"],
+];
+const files = readdirSync(DIR).filter((file) => file.endsWith(".test.mjs")).sort();
+
+let failed = 0;
+for (const [label, target, required] of TARGETS) {
+ for (const file of files) {
+ const run = spawnSync(
+ process.execPath,
+ ["--import", "./scripts/redirect.ts", "--test", "--test-reporter=tap", `${DIR}/${file}`],
+ {
+ encoding: "utf8",
+ env: { ...process.env, REDIRECT_TARGET: href(target), REDIRECT_REQUIRE: href(required) },
+ },
+ );
+ const count = (key: string) => Number(run.stdout.match(new RegExp(`^# ${key} (\\d+)$`, "m"))?.[1]);
+ // A failing suite reports failureType 'subtestsFailed'; only its tests count.
+ const fails = [
+ ...run.stdout.matchAll(
+ /^ *not ok \d+ - ([^\n]*)\n(?:(?! *not ok| *ok )[^\n]*\n)*? *failureType: '(\w+)'/gm,
+ ),
+ ]
+ .filter((m) => m[2] !== "subtestsFailed")
+ .map((m) => m[1]);
+ const [pass, fail] = [count("pass"), count("fail")];
+ if (!pass && !fail) failed++;
+ else failed += fail;
+ console.log(`${label.padEnd(24)} ${file.padEnd(22)} ${pass}/${pass + fail} pass`);
+ for (const test of fails) console.log(` FAIL ${test}`);
+ if (!pass && !fail) console.log(run.stderr.slice(0, 2000));
+ }
+}
+console.log(`${failed} failing tests`);
+process.exitCode = failed ? 1 : 0;
diff --git a/packages/tinylinkify/scripts/originals.ts b/packages/tinylinkify/scripts/originals.ts
new file mode 100644
index 0000000..3bd9b5e
--- /dev/null
+++ b/packages/tinylinkify/scripts/originals.ts
@@ -0,0 +1,21 @@
+// linkify-it 5.0.2 as published, and the same code with uc.micro's `P` swapped
+// for the engine's (scripts/uc-engine.ts): every module of the second copy
+// carries `?engine` in its URL, so the two don't share state.
+import { registerHooks } from "node:module";
+import { realpathSync } from "node:fs";
+import { pathToFileURL } from "node:url";
+
+const engine = new URL("./uc-engine.ts", import.meta.url).href;
+registerHooks({
+ resolve(specifier, context, nextResolve) {
+ if (!context.parentURL?.endsWith("?engine")) return nextResolve(specifier, context);
+ if (specifier === "uc.micro") return { url: engine, shortCircuit: true };
+ const resolved = nextResolve(specifier, context);
+ return { ...resolved, url: `${resolved.url}?engine` };
+ },
+});
+
+const file = pathToFileURL(realpathSync("node_modules/linkify-it/index.mjs")).href;
+export const published = (await import(file)).default;
+export const onEngine = (await import(`${file}?engine`)).default;
+export { changed } from "./uc-engine.ts";
diff --git a/packages/tinylinkify/scripts/redirect.ts b/packages/tinylinkify/scripts/redirect.ts
new file mode 100644
index 0000000..e317a85
--- /dev/null
+++ b/packages/tinylinkify/scripts/redirect.ts
@@ -0,0 +1,18 @@
+// Loaded with `node --import`, for linkify-it's own tests copied into
+// test/suites: points their `../index.mjs`, and the `require("../")` of its
+// CommonJS test, at the modules in REDIRECT_TARGET and REDIRECT_REQUIRE (file
+// URLs), so the tests run unchanged against tinylinkify or linkify-it itself.
+import { registerHooks } from "node:module";
+
+const target = process.env.REDIRECT_TARGET!;
+const required = process.env.REDIRECT_REQUIRE ?? target;
+
+registerHooks({
+ resolve(specifier, context, nextResolve) {
+ if (context.parentURL?.includes("/test/suites/")) {
+ if (specifier === "../index.mjs") return { url: target, shortCircuit: true };
+ if (specifier === "../") return { url: required, shortCircuit: true };
+ }
+ return nextResolve(specifier, context);
+ },
+});
diff --git a/packages/tinylinkify/scripts/remark.ts b/packages/tinylinkify/scripts/remark.ts
new file mode 100644
index 0000000..c208949
--- /dev/null
+++ b/packages/tinylinkify/scripts/remark.ts
@@ -0,0 +1,121 @@
+// What remark-gfm links, for the GFM comparisons.
+// - `autolinks(text)`: the links remark-gfm's autolink literal step finds in
+// plain text: micromark with gfmAutolinkLiteral and every other construct
+// turned off, then mdast-util-gfm-autolink-literal, so the text is one run
+// as tinylinkify sees it. Offsets come from the text nodes around each link.
+// - `remarkLinks(markdown)`: every link remark-parse with remark-gfm makes.
+// - `exitLinks(markdown, LinkifyIt)`: every link markdown-exit makes with that
+// linkifier, and its URLs as remark's would read after markdown-exit's
+// normalizeLink.
+import { fromMarkdown } from "mdast-util-from-markdown";
+import { gfmAutolinkLiteralFromMarkdown } from "mdast-util-gfm-autolink-literal";
+import { gfmAutolinkLiteral } from "micromark-extension-gfm-autolink-literal";
+import MarkdownExit from "markdown-exit";
+import remarkGfm from "remark-gfm";
+import remarkParse from "remark-parse";
+import { unified } from "unified";
+
+const OFF = [
+ "attention",
+ "autolink",
+ "blockQuote",
+ "characterEscape",
+ "characterReference",
+ "codeFenced",
+ "codeIndented",
+ "codeText",
+ "definition",
+ "hardBreakEscape",
+ "headingAtx",
+ "htmlFlow",
+ "htmlText",
+ "labelEnd",
+ "labelStartImage",
+ "labelStartLink",
+ "list",
+ "setextUnderline",
+ "thematicBreak",
+];
+
+export interface Found {
+ index: number;
+ lastIndex: number;
+ url: string;
+}
+
+type Node = { type: string; value?: string; url?: string; children?: Node[] };
+const textOf = (node: Node): string =>
+ node.value ?? (node.children ?? []).map(textOf).join("");
+
+/**
+ * The links in `text`, a single line with no whitespace at either end, as
+ * remark-gfm's autolink literal step finds them. Throws when the paragraph
+ * doesn't add up to the text, which means remark read it as more than text.
+ */
+export function autolinks(text: string): Found[] {
+ const tree = fromMarkdown(text, {
+ extensions: [gfmAutolinkLiteral(), { disable: { null: OFF } }],
+ mdastExtensions: [gfmAutolinkLiteralFromMarkdown()],
+ }) as unknown as Node;
+ const children = tree.children?.[0]?.children ?? [];
+ const found: Found[] = [];
+ let offset = 0;
+ for (const child of children) {
+ const value = textOf(child);
+ if (child.type === "link")
+ found.push({ index: offset, lastIndex: offset + value.length, url: child.url! });
+ offset += value.length;
+ }
+ const whole = children.map(textOf).join("");
+ if (whole !== text) throw new Error(`remark read ${JSON.stringify(text)} as ${JSON.stringify(whole)}`);
+ return found;
+}
+
+const remark = unified().use(remarkParse).use(remarkGfm);
+
+export interface MarkdownLink {
+ url: string;
+ text: string;
+}
+
+/** Every link remark-gfm makes in `markdown`, in order. */
+export function remarkLinks(markdown: string): MarkdownLink[] {
+ const links: MarkdownLink[] = [];
+ const walk = (node: Node) => {
+ if (node.type === "link") links.push({ url: node.url!, text: textOf(node) });
+ node.children?.forEach(walk);
+ };
+ walk(remark.runSync(remark.parse(markdown)) as unknown as Node);
+ return links;
+}
+
+type Token = { type: string; children: Token[] | null; content: string; attrGet(name: string): string | null };
+
+/** markdown-exit with `linkify` on and the given linkifier. */
+export function markdownExit(LinkifyIt: new () => unknown) {
+ const md = MarkdownExit({ linkify: true }) as unknown as {
+ linkify: unknown;
+ parse(src: string, env: object): Token[];
+ normalizeLink(url: string): string;
+ };
+ md.linkify = new LinkifyIt();
+ return {
+ /** Every link markdown-exit makes in `markdown`, in order. */
+ links(markdown: string): MarkdownLink[] {
+ const links: MarkdownLink[] = [];
+ const walk = (tokens: Token[]) => {
+ let open: MarkdownLink | undefined;
+ for (const token of tokens) {
+ if (token.type === "link_open") links.push((open = { url: token.attrGet("href")!, text: "" }));
+ else if (token.type === "link_close") open = undefined;
+ else if (open && (token.type === "text" || token.type === "code_inline" || token.type === "text_special"))
+ open.text += token.content;
+ if (token.children) walk(token.children);
+ }
+ };
+ walk(md.parse(markdown, {}));
+ return links;
+ },
+ normalizeLink: (url: string) => md.normalizeLink(url),
+ };
+}
diff --git a/packages/tinylinkify/scripts/shared.ts b/packages/tinylinkify/scripts/shared.ts
new file mode 100644
index 0000000..8d23c4f
--- /dev/null
+++ b/packages/tinylinkify/scripts/shared.ts
@@ -0,0 +1,48 @@
+// Helpers the differential scripts share.
+import { readdirSync, readFileSync } from "node:fs";
+
+export type Outcome = { ok: true; value: unknown } | { ok: false; error: string };
+
+export function attempt(fn: () => unknown): Outcome {
+ try {
+ return { ok: true, value: fn() };
+ } catch (error) {
+ if (!(error instanceof Error)) return { ok: false, error: `non-error ${String(error)}` };
+ return { ok: false, error: `${error.constructor.name}: ${error.message}` };
+ }
+}
+
+export function seeded(seed: number): () => number {
+ return () => {
+ seed = (seed * 1103515245 + 12345) & 0x7fffffff;
+ return seed / 0x7fffffff;
+ };
+}
+
+/** The number in argument `index` of the command line, or `fallback`. */
+export const count = (index: number, fallback: number): number =>
+ Number(process.argv[index] ?? fallback) || fallback;
+
+/** A short, readable form of a string for a report. */
+export const show = (text: unknown): string => JSON.stringify(text)?.slice(0, 160) ?? String(text);
+
+/** linkify-it's link and not-link fixtures, one input per line, comments and expected URLs dropped. */
+export function fixtureLines(): string[] {
+ const lines: string[] = [];
+ for (const file of ["links.txt", "not_links.txt"])
+ for (const line of readFileSync(`test/suites/linkify-it-5.0.2/fixtures/${file}`, "utf8").split(
+ /\r?\n/,
+ ))
+ if (line.trim() && !line.startsWith("%")) lines.push(line.replace(/ +%.*$/, ""), line);
+ return lines;
+}
+
+/** The benchmark samples: linkify-it's own, and chat messages. */
+export function benchSamples(): Record {
+ return Object.fromEntries(
+ readdirSync("bench/samples")
+ .filter((file) => file.endsWith(".txt"))
+ .sort()
+ .map((file) => [file.slice(0, -4), readFileSync(`bench/samples/${file}`, "utf8")]),
+ );
+}
diff --git a/packages/tinylinkify/scripts/uc-engine.ts b/packages/tinylinkify/scripts/uc-engine.ts
new file mode 100644
index 0000000..f6d457b
--- /dev/null
+++ b/packages/tinylinkify/scripts/uc-engine.ts
@@ -0,0 +1,36 @@
+// uc.micro 2.1.0's classes, with `P` swapped for the engine's `\p{P}`, built
+// here one code point at a time, apart from tinylinkify's own code. linkify-it
+// loaded with this in place of uc.micro (scripts/originals.ts) is linkify-it
+// on the engine's Unicode version, which tinylinkify/linkify-it must match on
+// every input.
+import { Any, Cc, Z, P as published } from "uc.micro";
+
+const hex = (code: number) => `\\u${code.toString(16).padStart(4, "0")}`;
+const bmp: string[] = [];
+const astral = new Map();
+for (let code = 0; code <= 0x10ffff; code++) {
+ if (code >= 0xd800 && code <= 0xdfff) continue;
+ const char = String.fromCodePoint(code);
+ if (!/\p{P}/u.test(char)) continue;
+ if (code < 0x10000) bmp.push(hex(code));
+ else {
+ const high = char.charCodeAt(0);
+ astral.set(high, [...(astral.get(high) ?? []), hex(char.charCodeAt(1))]);
+ }
+}
+const P = new RegExp(
+ [`[${bmp.join("")}]`, ...[...astral].map(([high, lows]) => `${hex(high)}[${lows.join("")}]`)].join(
+ "|",
+ ),
+);
+
+/** Code points whose punctuation class differs between uc.micro and the engine. */
+export const changed: string[] = [];
+const whole = (re: RegExp) => new RegExp(`^(?:${re.source})$`);
+const [ours, theirs] = [whole(P), whole(published)];
+for (let code = 0; code <= 0x10ffff; code++) {
+ const char = String.fromCodePoint(code);
+ if (ours.test(char) !== theirs.test(char)) changed.push(char);
+}
+
+export { Any, Cc, Z, P };
diff --git a/packages/tinylinkify/scripts/versions.ts b/packages/tinylinkify/scripts/versions.ts
new file mode 100644
index 0000000..fb1124b
--- /dev/null
+++ b/packages/tinylinkify/scripts/versions.ts
@@ -0,0 +1,61 @@
+// Fuzzes published linkify-it versions, each against the next, to find which
+// behave the same and so which tinylinkify/linkify-it can stand in for. It
+// installs them into .cache/versions the first time. Each pair sees the same
+// inputs and setups as scripts/fuzz.ts. Differences are listed by setup, with
+// the first examples.
+// Usage: node scripts/versions.ts [inputs] [version,version,...]
+import { execFileSync } from "node:child_process";
+import { existsSync, mkdirSync, writeFileSync } from "node:fs";
+import { createRequire } from "node:module";
+import { mutate, pick, rng, run, SCHEMAS, seeds, SETUPS, int, type Make } from "./inputs.ts";
+import { attempt, count, seeded, show } from "./shared.ts";
+
+const VERSIONS = "3.0.3,4.0.1,5.0.0,5.0.1,5.0.2";
+const iterations = count(2, 20000);
+const versions = (process.argv[3] ?? VERSIONS).split(",");
+rng.next = seeded(1);
+
+const dir = ".cache/versions";
+if (!versions.every((v) => existsSync(`${dir}/node_modules/linkify-it-${v}`))) {
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(`${dir}/package.json`, '{ "private": true }\n');
+ const specs = VERSIONS.split(",").map((v) => `linkify-it-${v}@npm:linkify-it@${v}`);
+ execFileSync("npm", ["install", "--no-audit", "--no-fund", "--ignore-scripts", ...specs], {
+ cwd: dir,
+ stdio: "inherit",
+ });
+}
+const require = createRequire(new URL(`../${dir}/package.json`, import.meta.url));
+const libs: Make[] = versions.map((v) => require(`linkify-it-${v}`));
+
+const inputs = Array.from({ length: iterations }, () => {
+ const text = pick(seeds);
+ return rng.next() < 0.9 ? mutate(text) : text;
+});
+
+for (let i = 1; i < libs.length; i++) {
+ const [a, b] = [libs[i - 1]!, libs[i]!];
+ const differ = new Map();
+ for (const [name, setup] of SETUPS) {
+ const [la, lb] = [attempt(() => setup(a)), attempt(() => setup(b))];
+ if (!la.ok || !lb.ok) {
+ if (JSON.stringify(la) !== JSON.stringify(lb)) differ.set(name, ["setup differs"]);
+ continue;
+ }
+ for (const text of inputs) {
+ const schema = pick(SCHEMAS);
+ const pos = int(text.length + 2);
+ const [ra, rb] = [la.value, lb.value].map((l) => JSON.stringify(run(l, text, schema, pos)));
+ if (ra === rb) continue;
+ const list = differ.get(name) ?? [];
+ list.push(`${show(text)}\n ${versions[i - 1]} ${ra}\n ${versions[i]} ${rb}`);
+ differ.set(name, list);
+ }
+ }
+ console.log(`${versions[i - 1]} → ${versions[i]}: ${differ.size ? "differ" : "same"}`);
+ for (const [name, list] of differ) {
+ console.log(` ${name}: ${list.length} of ${inputs.length} inputs`);
+ for (const example of list.slice(0, Number(process.env.SHOW ?? 2)))
+ console.log(` ${example}`);
+ }
+}
diff --git a/packages/tinylinkify/src/core/gfm.ts b/packages/tinylinkify/src/core/gfm.ts
new file mode 100644
index 0000000..46fe45c
--- /dev/null
+++ b/packages/tinylinkify/src/core/gfm.ts
@@ -0,0 +1,274 @@
+// GFM autolink literals in plain text, found the way remark-gfm finds them:
+// micromark-extension-gfm-autolink-literal 2.1.0, as published, reads `www.`, `http(s)://`
+// and email literals while it parses, and mdast-util-gfm-autolink-literal
+// 2.1.0 then searches the text between the links it found for what it
+// missed, `mailto:` and `xmpp:` included. Both steps are here, on the text
+// as one run with no other markdown in it. Characters are UTF-16 code units,
+// as micromark reads them.
+
+export interface Link {
+ /** `""` for a `www.` link, `http:` or `https:`, `mailto:` for an email, or `xmpp:`. */
+ schema: string;
+ /** Where the link starts in the text. */
+ index: number;
+ /** Where it ends. */
+ lastIndex: number;
+ /** The link as written. */
+ text: string;
+ /** Where it points: `http://` before `www.`, `mailto:` before an email. */
+ url: string;
+}
+
+const PUNCTUATION = /[\p{P}\p{S}]/u;
+const WHITESPACE = /\s/;
+
+// micromark's character classes, for a code unit, with -1 for no character.
+const alpha = (c: number) => (c | 32) >= 97 && (c | 32) <= 122;
+const alnum = (c: number) => alpha(c) || (c >= 48 && c <= 57);
+const atext = (c: number) => alnum(c) || c === 43 || c === 45 || c === 46 || c === 95;
+// A space, a tab or a line ending.
+const space = (c: number) => c === 32 || c === 9 || c === 10 || c === 13;
+const whitespace = (c: number) => c > -1 && WHITESPACE.test(String.fromCharCode(c));
+const punctuation = (c: number) => c > -1 && PUNCTUATION.test(String.fromCharCode(c));
+const end = (c: number) => c < 0 || space(c) || whitespace(c);
+
+// Trailing punctuation, which leaves a link when nothing but an end follows.
+// `&` is one too when it starts a character reference, and `]` when an end,
+// `(` or `[` follows it.
+const TRAIL = new Set([33, 34, 39, 41, 42, 44, 46, 58, 59, 63, 95, 126]);
+// What a path checks for a trail at: those, `&`, `<` and `]`.
+const PATH_TRAIL = new Set([...TRAIL, 38, 60, 93]);
+
+// The text being read. Nothing here calls out, so one at a time is enough.
+let text = "";
+let n = 0;
+const at = (i: number) => (i < n ? text.charCodeAt(i) : -1);
+
+// Where the last trail that wasn't one stopped: a trail checked from before
+// it, in the same domain or path, stops there too.
+let failed = -1;
+
+/** Whether the punctuation at `i`, and what follows, is a trail before an end. */
+function trail(i: number): boolean {
+ if (i < failed) return false;
+ for (;;) {
+ const c = at(i);
+ if (TRAIL.has(c)) i++;
+ else if (c === 38) {
+ if (!alpha(at(++i))) break;
+ while (alpha(at(i))) i++;
+ if (at(i) !== 59) break;
+ i++;
+ } else if (c === 93) {
+ const d = at(++i);
+ if (d === 40 || d === 91 || end(d)) return true;
+ } else if (c === 60 || end(c)) return true;
+ else break;
+ }
+ failed = i;
+ return false;
+}
+
+/**
+ * A domain from `i`: where it ends, or -1. The last two labels can't have an
+ * underscore, and it needs one character.
+ */
+function domain(i: number): number {
+ let last = false;
+ let before = false;
+ let seen = false;
+ failed = -1;
+ for (;;) {
+ const c = at(i);
+ if (c === 46 || c === 95) {
+ if (trail(i)) break;
+ if (c === 95) last = true;
+ else [before, last] = [last, false];
+ } else if (end(c) || (c !== 45 && punctuation(c))) break;
+ else seen = true;
+ i++;
+ }
+ return before || last || !seen ? -1 : i;
+}
+
+/** A path from `i`, to its end. A closing parenthesis stays while it closes one opened in it. */
+function path(i: number): number {
+ let open = 0;
+ let closed = 0;
+ failed = -1;
+ for (;;) {
+ const c = at(i);
+ if (c === 40) open++;
+ else if (c === 41 && closed < open) closed++;
+ else if (PATH_TRAIL.has(c)) {
+ if (trail(i)) return i;
+ if (c === 41) closed++;
+ } else if (end(c)) return i;
+ i++;
+ }
+}
+
+/** An `http://` or `https://` link at `i`: its schema and end, or undefined. */
+function protocol(i: number): [string, number] | undefined {
+ let j = i;
+ while (alpha(at(j)) && j - i < 5) j++;
+ const scheme = text.slice(i, j).toLowerCase();
+ if ((scheme !== "http" && scheme !== "https") || at(j) !== 58 || at(j + 1) !== 47 || at(j + 2) !== 47)
+ return;
+ const c = at((j += 3));
+ const host = c < 32 || c === 127 || space(c) || whitespace(c) || punctuation(c) ? -1 : domain(j);
+ return host < 0 ? undefined : [`${scheme}:`, path(host)];
+}
+
+// mdast-util-gfm-autolink-literal's searches, in its order.
+const URL = /(? !!label && (label.includes("_") || !/[\dA-Za-z]/.test(label));
+
+/** The URL without trailing punctuation, keeping closing parentheses while it has more opening ones. */
+function trim(url: string): string {
+ let i = url.length;
+ while (i > 0 && "!\"&'),.:;<>?]}".includes(url[i - 1]!)) i--;
+ if (i === url.length) return url;
+ let rest = url.slice(i);
+ url = url.slice(0, i);
+ const open = url.split("(").length - 1;
+ let closed = url.split(")").length - 1;
+ for (let close = rest.indexOf(")"); close !== -1 && open > closed; close = rest.indexOf(")")) {
+ url += rest.slice(0, close + 1);
+ rest = rest.slice(close + 1);
+ closed++;
+ }
+ return url;
+}
+
+/**
+ * Every GFM autolink literal in `value`, in order. `www` and `email` set
+ * whether `www.` links and emails without `mailto:` count.
+ */
+export function find(value: string, www = true, email = true): Link[] {
+ text = value;
+ n = value.length;
+ const links: Link[] = [];
+ const add = (schema: string, index: number, lastIndex: number, prefix = "") => {
+ const raw = value.slice(index, lastIndex);
+ links.push({ schema, index, lastIndex, text: raw, url: prefix + raw });
+ };
+
+ // micromark's step, at every position: an email that starts with a
+ // letter, digit, `+`, `-`, `.` or `_` after none of those or `/`, then
+ // `http(s)://` at an `h` not after a letter, or `www.` at a `w` at the
+ // start or after whitespace, `(`, `*`, `_`, `[`, `]` or `~`.
+ for (let i = 0; i < n; ) {
+ const c = at(i);
+ const previous = i ? at(i - 1) : -1;
+ let stop = -1;
+ if (email && atext(c) && !atext(previous) && previous !== 47) {
+ let j = i;
+ while (atext(at(j))) j++;
+ if (at(j) === 64) {
+ let data = false;
+ let dot = false;
+ for (let d = at(++j); ; d = at(++j)) {
+ if (d === 46 && alnum(at(j + 1))) dot = true;
+ else if (d === 45 || d === 95 || alnum(d)) data = true;
+ else break;
+ }
+ if (data && dot && alpha(at(j - 1))) add("mailto:", i, (stop = j), "mailto:");
+ }
+ }
+ if (stop < 0 && (c | 32) === 104 && !alpha(previous)) {
+ const found = protocol(i);
+ if (found) add(found[0], i, (stop = found[1]));
+ }
+ if (
+ stop < 0 &&
+ www &&
+ (c | 32) === 119 &&
+ (at(i + 1) | 32) === 119 &&
+ (at(i + 2) | 32) === 119 &&
+ at(i + 3) === 46 &&
+ i + 4 < n &&
+ (previous < 0 || space(previous) || [40, 42, 95, 91, 93, 126].includes(previous))
+ ) {
+ const host = domain(i);
+ if (host >= 0) add("", i, (stop = path(host)), "http://");
+ }
+ i = stop < 0 ? i + 1 : stop;
+ }
+
+ // mdast-util-gfm-autolink-literal's search, of the text between links:
+ // URLs, then xmpp:, mailto: and emails, each through the text the one
+ // before left. A match it turns down, it searches again from the next
+ // character.
+ for (const search of SEARCHES) {
+ // Every URL has a dot, and every address an @.
+ if (value.indexOf(search === URL ? "." : "@") < 0) continue;
+ links.sort((a, b) => a.index - b.index);
+ const gaps: number[] = [];
+ let from = 0;
+ for (const link of links) {
+ if (link.index > from) gaps.push(from, link.index);
+ from = link.lastIndex;
+ }
+ if (from < n) gaps.push(from, n);
+ for (let g = 0; g < gaps.length; g += 2) {
+ const start = gaps[g]!;
+ const run = value.slice(start, gaps[g + 1]);
+ search.lastIndex = 0;
+ for (let m; (m = search.exec(run)); ) {
+ const index = start + m.index;
+ const [whole, a = "", b = "", rest] = m;
+ let ok = !/[\d\-_]$/.test(b);
+ if (search === URL) {
+ const c = run.charCodeAt(m.index - 1);
+ let host = b;
+ let scheme = a;
+ let prefix = "";
+ if (/^w/i.test(scheme)) {
+ host = scheme + host;
+ scheme = "";
+ prefix = "http://";
+ }
+ const labels = host.split(".");
+ ok =
+ (!m.index || whitespace(c) || punctuation(c)) &&
+ (www || !prefix) &&
+ !punctuation(host.charCodeAt(0)) &&
+ labels.length > 1 &&
+ !badLabel(labels.at(-1)) &&
+ !badLabel(labels.at(-2));
+ if (ok)
+ add(
+ scheme.slice(0, -2).toLowerCase(),
+ index,
+ index + scheme.length + trim(host + rest).length,
+ prefix,
+ );
+ } else if (search === XMPP) {
+ ok &&= !(rest && (!/[A-Za-z]$/.test(rest) || run[m.index + whole.length] === "@"));
+ if (ok) add("xmpp:", index, index + whole.length);
+ } else if (search === MAILTO) {
+ if (ok) add("mailto:", index, index + whole.length);
+ } else if ((ok &&= email)) add("mailto:", index, index + whole.length, "mailto:");
+ if (!ok) search.lastIndex = m.index + 1;
+ }
+ }
+ }
+ return links.sort((a, b) => a.index - b.index);
+}
+
+/** The `http://` or `https://` link at the start of `value`, if there's one. */
+export function findAtStart(value: string): Link | undefined {
+ text = value;
+ n = value.length;
+ if ((at(0) | 32) !== 104) return;
+ const found = protocol(0);
+ if (!found) return;
+ const raw = value.slice(0, found[1]);
+ return { schema: found[0], index: 0, lastIndex: found[1], text: raw, url: raw };
+}
diff --git a/packages/tinylinkify/src/gfm/index.ts b/packages/tinylinkify/src/gfm/index.ts
new file mode 100644
index 0000000..288b186
--- /dev/null
+++ b/packages/tinylinkify/src/gfm/index.ts
@@ -0,0 +1,87 @@
+// GFM autolink literals behind linkify-it's interface, for markdown-it and
+// markdown-exit: `md.linkify = new LinkifyIt()` from here makes their
+// `linkify` option link what remark-gfm and GitHub link, `www.` links
+// included. It isn't a drop-in for linkify-it: the links differ, there are no
+// TLD lists or custom schemas, and `tlds` and `add` do nothing.
+import { find, findAtStart, type Link } from "../core/gfm.ts";
+
+export interface Options {
+ /** Link `www.` URLs. Default `true`. */
+ fuzzyLink?: boolean | undefined;
+ /** Link emails without `mailto:`. Default `true`. */
+ fuzzyEmail?: boolean | undefined;
+ /** Ignored: GFM links an IP address only after `http://` or `https://`. */
+ fuzzyIP?: boolean | undefined;
+}
+
+/** A link, with linkify-it's fields. */
+export interface Match extends Link {
+ /** The link as written, the same as `text`. */
+ raw: string;
+}
+
+// What every link has: `www.`, `://`, or an address character before an `@`.
+const PRETEST = /www\.|:\/\/|[\w+.-]@/i;
+
+const toMatch = ({ schema, index, lastIndex, text, url }: Link): Match => ({
+ schema,
+ index,
+ lastIndex,
+ raw: text,
+ text,
+ url,
+});
+
+interface LinkifyIt {
+ /** Options for links without a schema; see Options. */
+ set(options: Options): this;
+ /** Whether the text has a link. */
+ test(text: string): boolean;
+ /** A quick check: `false` means the text has no link. */
+ pretest(text: string): boolean;
+ /** Every link in the text, or `null` when there's none. */
+ match(text: string): Match[] | null;
+ /** The `http://` or `https://` link at the start of the text, or `null`. */
+ matchAtStart(text: string): Match | null;
+ /** Does nothing: GFM has no TLD list. */
+ tlds(list: string | string[], keepOld?: boolean): this;
+ /** Does nothing: GFM has no custom schemas. */
+ add(schema: string, definition: unknown): this;
+}
+
+interface LinkifyItConstructor {
+ /** Takes linkify-it's arguments, `(options)` or `(schemas, options)`, and reads only the options. Works without `new` too. */
+ new (schemas?: object, options?: Options): LinkifyIt;
+ (schemas?: object, options?: Options): LinkifyIt;
+ prototype: LinkifyIt;
+}
+
+const LinkifyIt = function LinkifyIt(this: any, schemas?: any, options?: Options) {
+ if (!(this instanceof LinkifyIt)) return new LinkifyIt(schemas, options);
+ this.__opts__ = { fuzzyLink: true, fuzzyEmail: true, fuzzyIP: false };
+ this.set(options || schemas || {});
+} as unknown as LinkifyItConstructor;
+
+const proto: any = LinkifyIt.prototype;
+proto.set = function set(options: Options) {
+ for (const key of ["fuzzyLink", "fuzzyEmail", "fuzzyIP"] as const)
+ if (options?.[key] !== undefined) this.__opts__[key] = options[key];
+ return this;
+};
+proto.pretest = (text: string) => PRETEST.test(text);
+proto.match = function match(text: string) {
+ const links = find(text, !!this.__opts__.fuzzyLink, !!this.__opts__.fuzzyEmail);
+ return links.length ? links.map(toMatch) : null;
+};
+proto.test = function test(text: string) {
+ return this.match(text) !== null;
+};
+proto.matchAtStart = (text: string) => {
+ const link = findAtStart(text);
+ return link ? toMatch(link) : null;
+};
+proto.tlds = proto.add = function (this: LinkifyIt) {
+ return this;
+};
+
+export default LinkifyIt;
diff --git a/packages/tinylinkify/src/index.ts b/packages/tinylinkify/src/index.ts
new file mode 100644
index 0000000..dd8db7a
--- /dev/null
+++ b/packages/tinylinkify/src/index.ts
@@ -0,0 +1,11 @@
+// tinylinkify's own API: the GFM autolink literals in plain text, as
+// remark-gfm and GitHub link them.
+import { find as findAll, type Link } from "./core/gfm.ts";
+
+export type { Link };
+
+/** Every link in `text`: `www.` and `http(s)://` URLs, emails, and `mailto:` and `xmpp:` addresses. */
+export const find = (text: string): Link[] => findAll(text);
+
+/** Whether `text` has a link. */
+export const test = (text: string): boolean => findAll(text).length > 0;
diff --git a/packages/tinylinkify/src/linkify-it/index.ts b/packages/tinylinkify/src/linkify-it/index.ts
new file mode 100644
index 0000000..a23e254
--- /dev/null
+++ b/packages/tinylinkify/src/linkify-it/index.ts
@@ -0,0 +1,535 @@
+// A drop-in replacement for linkify-it 5.0.2: `import LinkifyIt from
+// "tinylinkify/linkify-it"` works as `import LinkifyIt from "linkify-it"` does,
+// with the same instance properties, `re` sources, validators and errors. It
+// follows linkify-it's code closely, and the README lists where it differs:
+// the Unicode punctuation class comes from the engine, and `match` skips the
+// fuzzy scans that can't match.
+import reFactory from "./re.ts";
+
+export type Validate = (text: string, pos: number, self: LinkifyIt) => number | boolean;
+
+export interface FullRule {
+ validate: string | RegExp | Validate;
+ normalize?: ((match: Match) => void) | undefined;
+}
+
+export type Rule = string | FullRule;
+
+export interface SchemaRules {
+ [schema: string]: Rule;
+}
+
+export interface Options {
+ /** Recognize URLs without `http(s):` prefix. Default `true`. */
+ fuzzyLink?: boolean | undefined;
+ /** Allow IPs in fuzzy links. Can conflict with some texts like version numbers. Default `false`. */
+ fuzzyIP?: boolean | undefined;
+ /** Recognize emails without `mailto:` prefix. Default `true`. */
+ fuzzyEmail?: boolean | undefined;
+}
+
+const toString = Object.prototype.toString;
+const isString = (obj: unknown) => toString.call(obj) === "[object String]";
+const isObject = (obj: unknown) => toString.call(obj) === "[object Object]";
+const isRegExp = (obj: unknown) => toString.call(obj) === "[object RegExp]";
+const isFunction = (obj: unknown) => toString.call(obj) === "[object Function]";
+
+function assign(obj: any, ...sources: any[]) {
+ sources.forEach((source) => {
+ if (!source) return;
+ Object.keys(source).forEach((key) => {
+ obj[key] = source[key];
+ });
+ });
+ return obj;
+}
+
+const escapeRE = (str: string) => str.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
+
+const defaultOptions = { fuzzyLink: true, fuzzyEmail: true, fuzzyIP: false };
+
+const isOptionsObj = (obj: any) =>
+ Object.keys(obj || {}).reduce(
+ // oxlint-disable-next-line no-prototype-builtins
+ (acc: boolean, k) => acc || defaultOptions.hasOwnProperty(k),
+ false,
+ );
+
+// A validator that compiles its regular expression on first use, from the
+// instance's `re`, since the host parts change with the TLDs.
+const lazy =
+ (name: string, source: (re: Record) => string, check?: (text: string, pos: number) => boolean) =>
+ (text: string, pos: number, self: any) => {
+ const tail = text.slice(pos);
+ if (!self.re[name]) self.re[name] = new RegExp(source(self.re), "i");
+ if (self.re[name].test(tail)) {
+ if (check && !check(text, pos)) return 0;
+ return tail.match(self.re[name])[0].length;
+ }
+ return 0;
+ };
+
+const defaultSchemas: Record = {
+ "http:": {
+ validate: lazy("http", (re) => `^\\/\\/${re.src_auth}${re.src_host_port_strict}${re.src_path}`),
+ },
+ "https:": "http:",
+ "ftp:": "http:",
+ "//": {
+ validate: lazy(
+ "no_http",
+ (re) =>
+ "^" +
+ re.src_auth +
+ // No single-level domains, because of false positives like `//test` in code comments.
+ `(?:localhost|(?:(?:${re.src_domain})\\.)+${re.src_domain_root})` +
+ re.src_port +
+ re.src_host_terminator +
+ re.src_path,
+ // Not `://` or `///`, which protects from errors in the protocol name.
+ (text, pos) => !(pos >= 3 && (text[pos - 3] === ":" || text[pos - 3] === "/")),
+ ),
+ },
+ "mailto:": {
+ validate: lazy("mailto", (re) => `^${re.src_email_name}@${re.src_host_strict}`),
+ },
+};
+
+// Two-letter TLDs, as linkify-it's support/tlds_2char_gen.js writes them.
+const tlds_2ch_src_re =
+ "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]";
+
+const tlds_default =
+ "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
+
+function createValidator(re: RegExp) {
+ return (text: string, pos: number) => {
+ const tail = text.slice(pos);
+ if (re.test(tail)) return tail.match(re)![0].length;
+ return 0;
+ };
+}
+
+function createNormalizer() {
+ return (match: Match, self: LinkifyIt) => {
+ self.normalize(match);
+ };
+}
+
+// What `match` may skip, for the `re` an instance compiled: the regular
+// expressions it built from the unchanged templates, and a quick test that
+// any fuzzy link needs to pass. A `re` that was replaced, or whose fuzzy
+// regular expressions were, gets no shortcuts.
+interface Shortcuts {
+ link: RegExp;
+ email: RegExp;
+ tld?: RegExp;
+}
+const shortcuts = new WeakMap
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2e.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2e.md
new file mode 100644
index 0000000..8638d35
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/algorithm-2e.md
@@ -0,0 +1,4 @@
+[ https://example.com
+[ https://example.com
+https://example.com
+https://example.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.html
new file mode 100644
index 0000000..0fab254
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.html
@@ -0,0 +1,60 @@
+Literal autolinks
+WWW autolinks
+w.commonmark.org
+ww.commonmark.org
+www.commonmark.org
+Www.commonmark.org
+wWw.commonmark.org
+wwW.commonmark.org
+WWW.COMMONMARK.ORG
+Visit www.commonmark.org/help for more information.
+Visit www.commonmark.org.
+Visit www.commonmark.org/a.b.
+www.aaa.bbb.ccc_ccc
+www.aaa_bbb.ccc
+www.aaa.bbb.ccc.ddd_ddd
+www.aaa.bbb.ccc_ccc.ddd
+www.aaa.bbb_bbb.ccc.ddd
+www.aaa_aaa.bbb.ccc.ddd
+Visit www.commonmark.org.
+Visit www.commonmark.org/a.b.
+www.google.com/search?q=Markup+(business)
+www.google.com/search?q=Markup+(business)))
+(www.google.com/search?q=Markup+(business))
+(www.google.com/search?q=Markup+(business)
+www.google.com/search?q=(business))+ok
+www.google.com/search?q=commonmark&hl=en
+www.google.com/search?q=commonmark&hl;en
+www.google.com/search?q=commonmark&hl;
+www.commonmark.org/he<lp
+HTTP autolinks
+hexample.com
+htexample.com
+httexample.com
+httpexample.com
+http:example.com
+http:/example.com
+https:/example.com
+http://example.com
+https://example.com
+https://example
+http://commonmark.org
+(Visit https://encrypted.google.com/search?q=Markup+(business))
+Email autolinks
+No dot: foo@barbaz
+No dot: foo@barbaz.
+foo@bar.baz
+hello@mail+xyz.example isn’t valid, but hello+xyz@mail.example is.
+a.b-c_d@a.b
+a.b-c_d@a.b.
+a.b-c_d@a.b-
+a.b-c_d@a.b_
+a@a_b.c
+a@a-b.c
+Can’t end in an underscore followed by a period: aaa@a.b_.
+Can contain an underscore followed by a period: aaa@a.b_.c
+Link text should not be expanded
+Visit www.example.com please.
+Visit http://www.example.com please.
+Mail example@example.com please.
+link http://autolink should still be expanded.
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.md
new file mode 100644
index 0000000..84ba70e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/base.md
@@ -0,0 +1,119 @@
+# Literal autolinks
+
+## WWW autolinks
+
+w.commonmark.org
+
+ww.commonmark.org
+
+www.commonmark.org
+
+Www.commonmark.org
+
+wWw.commonmark.org
+
+wwW.commonmark.org
+
+WWW.COMMONMARK.ORG
+
+Visit www.commonmark.org/help for more information.
+
+Visit www.commonmark.org.
+
+Visit www.commonmark.org/a.b.
+
+www.aaa.bbb.ccc_ccc
+
+www.aaa_bbb.ccc
+
+www.aaa.bbb.ccc.ddd_ddd
+
+www.aaa.bbb.ccc_ccc.ddd
+
+www.aaa.bbb_bbb.ccc.ddd
+
+www.aaa_aaa.bbb.ccc.ddd
+
+Visit www.commonmark.org.
+
+Visit www.commonmark.org/a.b.
+
+www.google.com/search?q=Markup+(business)
+
+www.google.com/search?q=Markup+(business)))
+
+(www.google.com/search?q=Markup+(business))
+
+(www.google.com/search?q=Markup+(business)
+
+www.google.com/search?q=(business))+ok
+
+www.google.com/search?q=commonmark&hl=en
+
+www.google.com/search?q=commonmark&hl;en
+
+www.google.com/search?q=commonmark&hl;
+
+www.commonmark.org/he should still be expanded.
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.html
new file mode 100644
index 0000000..5d7d29a
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.html
@@ -0,0 +1,18 @@
+H0.
+[https://a.com©b
+[www.a.com©b
+H1.
+[]https://a.com©b
+[]www.a.com©b
+H2.
+[] https://a.com©b
+[] www.a.com©b
+H3.
+[[https://a.com©b
+[[www.a.com©b
+H4.
+[[]https://a.com©b
+[[]www.a.com©b
+H5.
+[[]]https://a.com©b
+[[]]www.a.com©b
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.md
new file mode 100644
index 0000000..0ef579e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/brackets.md
@@ -0,0 +1,35 @@
+H0.
+
+[https://a.com©b
+
+[www.a.com©b
+
+H1.
+
+[]https://a.com©b
+
+[]www.a.com©b
+
+H2.
+
+[] https://a.com©b
+
+[] www.a.com©b
+
+H3.
+
+[[https://a.com©b
+
+[[www.a.com©b
+
+H4.
+
+[[]https://a.com©b
+
+[[]www.a.com©b
+
+H5.
+
+[[]]https://a.com©b
+
+[[]]www.a.com©b
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.html
new file mode 100644
index 0000000..a72d2f1
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.html
@@ -0,0 +1,25 @@
+Image start.
+![https://a.com
+![http://a.com
+![www.a.com
+![a@b.c
+Image start and label end.
+![https://a.com]
+![http://a.com]
+![www.a.com]
+![a@b.c]
+Image label with reference (note: GH cleans hashes here, but we keep them in).
+
+
+
+
+Image label with resource.
+![https://a.com]()
+![http://a.com]()
+![www.a.com]()
+![a@b.c]()
+Autolink literal after image.
+
https://a.com
+
http://a.com
+
www.a.com
+
a@b.c
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.md
new file mode 100644
index 0000000..c7cd4b5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-images.md
@@ -0,0 +1,51 @@
+Image start.
+
+![https://a.com
+
+![http://a.com
+
+![www.a.com
+
+![a@b.c
+
+Image start and label end.
+
+![https://a.com]
+
+![http://a.com]
+
+![www.a.com]
+
+![a@b.c]
+
+Image label with reference (note: GH cleans hashes here, but we keep them in).
+
+![https://a.com][x]
+
+![http://a.com][x]
+
+![www.a.com][x]
+
+![a@b.c][x]
+
+[x]: #
+
+Image label with resource.
+
+![https://a.com]()
+
+![http://a.com]()
+
+![www.a.com]()
+
+![a@b.c]()
+
+Autolink literal after image.
+
+![a]() https://a.com
+
+![a]() http://a.com
+
+![a]() www.a.com
+
+![a]() a@b.c
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.html
new file mode 100644
index 0000000..b5db610
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.html
@@ -0,0 +1,55 @@
+Link start.
+[https://a.com
+[http://a.com
+[www.a.com
+[a@b.c
+Label end.
+https://a.com]
+http://a.com]
+www.a.com]
+a@b.c]
+Link start and label end.
+[https://a.com]
+[http://a.com]
+[www.a.com]
+[a@b.c]
+What naïvely seems like a label end (A).
+https://a.com`]`
+http://a.com`]`
+www.a.com`]`
+a@b.c]
+Link start and what naïvely seems like a balanced brace (B).
+[https://a.com]
+[http://a.com]
+[www.a.com]
+[a@b.c]
+What naïvely seems like a label end (C).
+https://a.com ]
+http://a.com ]
+www.a.com ]
+a@b.c ]
+Link start and what naïvely seems like a balanced brace (D).
+[https://a.com ]
+[http://a.com ]
+[www.a.com ]
+[a@b.c ]
+Link label with reference.
+https://a.com
+http://a.com
+www.a.com
+a@b.c
+Link label with resource.
+https://a.com
+http://a.com
+www.a.com
+a@b.c
+More in link.
+a https://b.com c
+a http://b.com c
+a www.b.com c
+a b@c.d e
+Autolink literal after link.
+a https://a.com
+a http://a.com
+a www.a.com
+a a@b.c
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.md
new file mode 100644
index 0000000..0eec6f5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/combined-with-links.md
@@ -0,0 +1,111 @@
+Link start.
+
+[https://a.com
+
+[http://a.com
+
+[www.a.com
+
+[a@b.c
+
+Label end.
+
+https://a.com]
+
+http://a.com]
+
+www.a.com]
+
+a@b.c]
+
+Link start and label end.
+
+[https://a.com]
+
+[http://a.com]
+
+[www.a.com]
+
+[a@b.c]
+
+What naïvely seems like a label end (A).
+
+https://a.com`]`
+
+http://a.com`]`
+
+www.a.com`]`
+
+a@b.c`]`
+
+Link start and what naïvely seems like a balanced brace (B).
+
+[https://a.com`]`
+
+[http://a.com`]`
+
+[www.a.com`]`
+
+[a@b.c`]`
+
+What naïvely seems like a label end (C).
+
+https://a.com `]`
+
+http://a.com `]`
+
+www.a.com `]`
+
+a@b.c `]`
+
+Link start and what naïvely seems like a balanced brace (D).
+
+[https://a.com `]`
+
+[http://a.com `]`
+
+[www.a.com `]`
+
+[a@b.c `]`
+
+Link label with reference.
+
+[https://a.com][x]
+
+[http://a.com][x]
+
+[www.a.com][x]
+
+[a@b.c][x]
+
+[x]: #
+
+Link label with resource.
+
+[https://a.com]()
+
+[http://a.com]()
+
+[www.a.com]()
+
+[a@b.c]()
+
+More in link.
+
+[a https://b.com c]()
+
+[a http://b.com c]()
+
+[a www.b.com c]()
+
+[a b@c.d e]()
+
+Autolink literal after link.
+
+[a]() https://a.com
+
+[a]() http://a.com
+
+[a]() www.a.com
+
+[a]() a@b.c
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.html
new file mode 100644
index 0000000..88284cd
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a&b (space)
+www.a&b!
+www.a&b"
+www.a&b#
+www.a&b$
+www.a&b%
+www.a&b&
+www.a&b'
+www.a&b(
+www.a&b)
+www.a&b*
+www.a&b+
+www.a&b,
+www.a&b-
+www.a&b
+www.a&b.
+www.a&b/
+www.a&b:
+www.a&b;
+www.a&b<
+www.a&b=
+www.a&b>
+www.a&b?
+www.a&b@
+www.a&b[
+www.a&b\
+www.a&b]
+www.a&b^
+www.a&b_
+www.a&b`
+www.a&b{
+www.a&b|
+www.a&b}
+www.a&b~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.md
new file mode 100644
index 0000000..9bd82ed
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-named.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a&b (space)
+
+www.a&b!
+
+www.a&b"
+
+www.a&b#
+
+www.a&b$
+
+www.a&b%
+
+www.a&b&
+
+www.a&b'
+
+www.a&b(
+
+www.a&b)
+
+www.a&b*
+
+www.a&b+
+
+www.a&b,
+
+www.a&b-
+
+www.a&b
+
+www.a&b.
+
+www.a&b/
+
+www.a&b:
+
+www.a&b;
+
+www.a&b<
+
+www.a&b=
+
+www.a&b>
+
+www.a&b?
+
+www.a&b@
+
+www.a&b[
+
+www.a&b\
+
+www.a&b]
+
+www.a&b^
+
+www.a&b_
+
+www.a&b`
+
+www.a&b{
+
+www.a&b|
+
+www.a&b}
+
+www.a&b~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.html
new file mode 100644
index 0000000..9be5367
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a# (space)
+www.a#!
+www.a#"
+www.a##
+www.a#$
+www.a#%
+www.a#&
+www.a#'
+www.a#(
+www.a#)
+www.a#*
+www.a#+
+www.a#,
+www.a#-
+www.a#
+www.a#.
+www.a#/
+www.a#:
+www.a#
+www.a#<
+www.a#=
+www.a#>
+www.a#?
+www.a#@
+www.a#[
+www.a#\
+www.a#]
+www.a#^
+www.a#_
+www.a#`
+www.a#{
+www.a#|
+www.a#}
+www.a#~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.md
new file mode 100644
index 0000000..9a0fc22
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/domain-character-reference-like-numerical.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a# (space)
+
+www.a#!
+
+www.a#"
+
+www.a##
+
+www.a#$
+
+www.a#%
+
+www.a#&
+
+www.a#'
+
+www.a#(
+
+www.a#)
+
+www.a#*
+
+www.a#+
+
+www.a#,
+
+www.a#-
+
+www.a#
+
+www.a#.
+
+www.a#/
+
+www.a#:
+
+www.a#
+
+www.a#<
+
+www.a#=
+
+www.a#>
+
+www.a#?
+
+www.a#@
+
+www.a#[
+
+www.a#\
+
+www.a#]
+
+www.a#^
+
+www.a#_
+
+www.a#`
+
+www.a#{
+
+www.a#|
+
+www.a#}
+
+www.a#~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.html
new file mode 100644
index 0000000..1691799
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.html
@@ -0,0 +1,24 @@
+a.b@c.d
+x a.b@c.d
+/a.b@c.d
+/a@b.c
+a/b@c.d
+x/a@b.c
+./1_1_@_.b
+b/..@__.b.
+é.a@b.c
+éa@b.c
+éa_._@1b.x
+-é+@a.ax/
+é/a.b@c.d
+http://a.b/)))x
+http://a.b/(x)).
++a@b.c
++a@b.c
++a-@c.d
+++@1c.d
+_a@b.c
+x_a@b.c
+.a@b.c
+-a@b.c
+\a@b.c
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.md
new file mode 100644
index 0000000..2b42b6a
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-previous.md
@@ -0,0 +1,47 @@
+a.b@c.d
+
+x a.b@c.d
+
+/a.b@c.d
+
+/a@b.c
+
+a/b@c.d
+
+x/a@b.c
+
+./1_1_@_.b
+
+b/..@__.b.
+
+é.a@b.c
+
+éa@b.c
+
+éa_._@1b.x
+
+-é+@a.ax/
+
+é/a.b@c.d
+
+http://a.b/)))x
+
+http://a.b/(x)).
+
++a@b.c
+
+\+a@b.c
+
+\+a-@c.d
+
+\++@1c.d
+
+\_a@b.c
+
+x\_a@b.c
+
+\.a@b.c
+
+\-a@b.c
+
+\\a@b.c
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.html
new file mode 100644
index 0000000..bde82c5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.html
@@ -0,0 +1,40 @@
+[mailto:foo@bar.com
+[xmpp:foo@bar.com
+[xmpp:foo@bar.com/txt
+[xmpp:foo@bar.com/txt@bin
+[xmpp:foo@bar.com/txt@bin.com
+[MAILTO:foo@bar.com
+[a.mailto:foo@bar.com
+[amailto:foo@bar.com
+[-mailto:foo@bar.com
+[_mailto:foo@bar.com
+[+mailto:foo@bar.com
+[(mailto:foo@bar.com)
+[mailto:foo@bar.com
+[mailto:foo@bar.com
+[*mailto:*foo@bar.com
+[mailto:foo@bar.com/txt
+[xmpp:foo@bar.com/txt/more
+[xmpp:foo@bar.com/
+[xmpp:foo@bar.com/txt.
+[mailto:xmpp:foo@bar.com
+[xmpp:mailto:foo@bar.com
+[mailto:foo@bar
+[mailto:foo@bar.com.
+[mailto:foo@bar.com_
+[a mailto:a.b+c@d.e.f
+[xmpp:foo@bar.com/a-b_c.d
+[xmpp:foo@bar.com/txt?x
+[mailto:foo@bar.com
+[mailto:@bar.com
+[mailto: foo@bar.com
+[xmpp:foo@bar.com/ü
+[:foo@bar.com
+[xmpp:foo@bar.com/txt/
+[Xmpp:foo@bar.com
+[a:mailto:foo@bar.com
+[mailto:foo@bar.com@baz.com
+[xmpp:foo@bar.com/-
+[mailto:fo:o@bar.com
+[mailto:mailto:foo@bar.com
+[x@mailto:foo@bar.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.md
new file mode 100644
index 0000000..66696db
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-protocol.md
@@ -0,0 +1,79 @@
+[mailto:foo@bar.com
+
+[xmpp:foo@bar.com
+
+[xmpp:foo@bar.com/txt
+
+[xmpp:foo@bar.com/txt@bin
+
+[xmpp:foo@bar.com/txt@bin.com
+
+[MAILTO:foo@bar.com
+
+[a.mailto:foo@bar.com
+
+[amailto:foo@bar.com
+
+[-mailto:foo@bar.com
+
+[_mailto:foo@bar.com
+
+[+mailto:foo@bar.com
+
+[(mailto:foo@bar.com)
+
+[mailto:foo@bar.com
+
+[mailto\:foo@bar.com
+
+[*mailto:*foo@bar.com
+
+[mailto:foo@bar.com/txt
+
+[xmpp:foo@bar.com/txt/more
+
+[xmpp:foo@bar.com/
+
+[xmpp:foo@bar.com/txt.
+
+[mailto:xmpp:foo@bar.com
+
+[xmpp:mailto:foo@bar.com
+
+[mailto:foo@bar
+
+[mailto:foo@bar.com.
+
+[mailto:foo@bar.com_
+
+[a mailto:a.b+c@d.e.f
+
+[xmpp:foo@bar.com/a-b_c.d
+
+[xmpp:foo@bar.com/txt?x
+
+[[mailto:foo@bar.com](x)
+
+[mailto:@bar.com
+
+[mailto: foo@bar.com
+
+[xmpp:foo@bar.com/ü
+
+[:foo@bar.com
+
+[xmpp:foo@bar.com/txt/
+
+[Xmpp:foo@bar.com
+
+[a:mailto:foo@bar.com
+
+[mailto:foo@bar.com@baz.com
+
+[xmpp:foo@bar.com/-
+
+[mailto:fo:o@bar.com
+
+[mailto:mailto:foo@bar.com
+
+[x@mailto:foo@bar.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.html
new file mode 100644
index 0000000..a8d1b61
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.html
@@ -0,0 +1,39 @@
+a@0.0
+a@0.b
+a@a.29
+a@a.b
+a@0.0.c
+react@0.11.1
+react@0.12.0-rc1
+react@0.14.0-alpha1
+react@16.7.0-alpha.2
+react@0.0.0-experimental-aae83a4b9
+[ react@0.11.1
+[ react@0.12.0-rc1
+[ react@0.14.0-alpha1
+[ react@16.7.0-alpha.2
+[ react@0.0.0-experimental-aae83a4b9
+
+react@a
+react@1
+react@1.a
+react@1.1
+react@1.a-b
+react@1.a1b
+react@1.1-b
+react@1.1-alpha
+react@1.1-alpha1
+react@1.1-a
+react@1.a-1
+
+[ react@a
+[ react@1
+[ react@1.a
+[ react@1.1
+[ react@1.a-b
+[ react@1.a1b
+[ react@1.1-b
+[ react@1.1-alpha
+[ react@1.1-alpha1
+[ react@1.1-a
+[ react@1.a-1
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.md
new file mode 100644
index 0000000..1dcda7a
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/email-tld-digits.md
@@ -0,0 +1,77 @@
+a@0.0
+
+a@0.b
+
+a@a.29
+
+a@a.b
+
+a@0.0.c
+
+react@0.11.1
+
+react@0.12.0-rc1
+
+react@0.14.0-alpha1
+
+react@16.7.0-alpha.2
+
+react@0.0.0-experimental-aae83a4b9
+
+[ react@0.11.1
+
+[ react@0.12.0-rc1
+
+[ react@0.14.0-alpha1
+
+[ react@16.7.0-alpha.2
+
+[ react@0.0.0-experimental-aae83a4b9
+
+---
+
+react@a
+
+react@1
+
+react@1.a
+
+react@1.1
+
+react@1.a-b
+
+react@1.a1b
+
+react@1.1-b
+
+react@1.1-alpha
+
+react@1.1-alpha1
+
+react@1.1-a
+
+react@1.a-1
+
+---
+
+[ react@a
+
+[ react@1
+
+[ react@1.a
+
+[ react@1.1
+
+[ react@1.a-b
+
+[ react@1.a1b
+
+[ react@1.1-b
+
+[ react@1.1-alpha
+
+[ react@1.1-alpha1
+
+[ react@1.1-a
+
+[ react@1.a-1
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.html
new file mode 100644
index 0000000..bac47d7
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.html
@@ -0,0 +1,35 @@
+httpshhh? (2)
+http://a (space)
+http://a!
+http://a"
+http://a#
+http://a$
+http://a%
+http://a&
+http://a'
+http://a(
+http://a)
+http://a*
+http://a+
+http://a,
+http://a-
+http://a
+http://a.
+http://a/
+http://a:
+http://a;
+http://a<
+http://a=
+http://a>
+http://a?
+http://a@
+http://a[
+http://a\
+http://a]
+http://a^
+http://a_
+http://a`
+http://a{
+http://a|
+http://a}
+http://a~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.md
new file mode 100644
index 0000000..7b48fab
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-continue.md
@@ -0,0 +1,69 @@
+# httpshhh? (2)
+
+http://a (space)
+
+http://a!
+
+http://a"
+
+http://a#
+
+http://a$
+
+http://a%
+
+http://a&
+
+http://a'
+
+http://a(
+
+http://a)
+
+http://a*
+
+http://a+
+
+http://a,
+
+http://a-
+
+http://a
+
+http://a.
+
+http://a/
+
+http://a:
+
+http://a;
+
+http://a<
+
+http://a=
+
+http://a>
+
+http://a?
+
+http://a@
+
+http://a[
+
+http://a\
+
+http://a]
+
+http://a^
+
+http://a_
+
+http://a`
+
+http://a{
+
+http://a|
+
+http://a}
+
+http://a~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.html
new file mode 100644
index 0000000..ff059d1
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.html
@@ -0,0 +1,35 @@
+httpshhh? (1)
+http:// (space)
+http://!
+http://"
+http://#
+http://$
+http://%
+http://&
+http://'
+http://(
+http://)
+http://*
+http://+
+http://,
+http://-
+http://
+http://.
+http:///
+http://:
+http://;
+http://<
+http://=
+http://>
+http://?
+http://@
+http://[
+http://\
+http://]
+http://^
+http://_
+http://`
+http://{
+http://|
+http://}
+http://~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.md
new file mode 100644
index 0000000..64d7a68
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-domain-start.md
@@ -0,0 +1,69 @@
+# httpshhh? (1)
+
+http:// (space)
+
+http://!
+
+http://"
+
+http://#
+
+http://$
+
+http://%
+
+http://&
+
+http://'
+
+http://(
+
+http://)
+
+http://*
+
+http://+
+
+http://,
+
+http://-
+
+http://
+
+http://.
+
+http:///
+
+http://:
+
+http://;
+
+http://<
+
+http://=
+
+http://>
+
+http://?
+
+http://@
+
+http://[
+
+http://\
+
+http://]
+
+http://^
+
+http://_
+
+http://`
+
+http://{
+
+http://|
+
+http://}
+
+http://~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.html
new file mode 100644
index 0000000..334ac60
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.html
@@ -0,0 +1,7 @@
+https://-a.b https://_a.b.c https://.a.b https://a.b
+http://-a.b http://_a.b.c http://.a.b http://a.b
+https://-a.b https://_a.b.c https://.a.b
+explicit https://-a.b
+www.-a.b www._a.b www..a.b
+https://a.-b.c https://a._b.c https://a-.b
+[ https://-a.b [ www.-a.b
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.md
new file mode 100644
index 0000000..8271821
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-host-punctuation.md
@@ -0,0 +1,13 @@
+https://-a.b https://_a.b.c https://.a.b https://a.b
+
+http://-a.b http://_a.b.c http://.a.b http://a.b
+
+https\://-a.b https://_a.b.c https://.a.b
+
+[explicit](https://-a.b) `https://-a.b`
+
+www.-a.b www._a.b www..a.b
+
+https://a.-b.c https://a._b.c https://a-.b
+
+[ https://-a.b [ www.-a.b
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.html
new file mode 100644
index 0000000..f4bec56
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.html
@@ -0,0 +1,35 @@
+httpshhh? (4)
+http://a/b (space)
+http://a/b!
+http://a/b"
+http://a/b#
+http://a/b$
+http://a/b%
+http://a/b&
+http://a/b'
+http://a/b(
+http://a/b)
+http://a/b*
+http://a/b+
+http://a/b,
+http://a/b-
+http://a/b
+http://a/b.
+http://a/b/
+http://a/b:
+http://a/b;
+http://a/b<
+http://a/b=
+http://a/b>
+http://a/b?
+http://a/b@
+http://a/b[
+http://a/b\
+http://a/b]
+http://a/b^
+http://a/b_
+http://a/b`
+http://a/b{
+http://a/b|
+http://a/b}
+http://a/b~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.md
new file mode 100644
index 0000000..0198f7a
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-continue.md
@@ -0,0 +1,69 @@
+# httpshhh? (4)
+
+http://a/b (space)
+
+http://a/b!
+
+http://a/b"
+
+http://a/b#
+
+http://a/b$
+
+http://a/b%
+
+http://a/b&
+
+http://a/b'
+
+http://a/b(
+
+http://a/b)
+
+http://a/b*
+
+http://a/b+
+
+http://a/b,
+
+http://a/b-
+
+http://a/b
+
+http://a/b.
+
+http://a/b/
+
+http://a/b:
+
+http://a/b;
+
+http://a/b<
+
+http://a/b=
+
+http://a/b>
+
+http://a/b?
+
+http://a/b@
+
+http://a/b[
+
+http://a/b\
+
+http://a/b]
+
+http://a/b^
+
+http://a/b_
+
+http://a/b`
+
+http://a/b{
+
+http://a/b|
+
+http://a/b}
+
+http://a/b~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.html
new file mode 100644
index 0000000..605006c
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.html
@@ -0,0 +1,35 @@
+httpshhh? (3)
+http://a/ (space)
+http://a/!
+http://a/"
+http://a/#
+http://a/$
+http://a/%
+http://a/&
+http://a/'
+http://a/(
+http://a/)
+http://a/*
+http://a/+
+http://a/,
+http://a/-
+http://a/
+http://a/.
+http://a//
+http://a/:
+http://a/;
+http://a/<
+http://a/=
+http://a/>
+http://a/?
+http://a/@
+http://a/[
+http://a/\
+http://a/]
+http://a/^
+http://a/_
+http://a/`
+http://a/{
+http://a/|
+http://a/}
+http://a/~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.md
new file mode 100644
index 0000000..ba33f42
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/http-path-start.md
@@ -0,0 +1,69 @@
+# httpshhh? (3)
+
+http://a/ (space)
+
+http://a/!
+
+http://a/"
+
+http://a/#
+
+http://a/$
+
+http://a/%
+
+http://a/&
+
+http://a/'
+
+http://a/(
+
+http://a/)
+
+http://a/*
+
+http://a/+
+
+http://a/,
+
+http://a/-
+
+http://a/
+
+http://a/.
+
+http://a//
+
+http://a/:
+
+http://a/;
+
+http://a/<
+
+http://a/=
+
+http://a/>
+
+http://a/?
+
+http://a/@
+
+http://a/[
+
+http://a/\
+
+http://a/]
+
+http://a/^
+
+http://a/_
+
+http://a/`
+
+http://a/{
+
+http://a/|
+
+http://a/}
+
+http://a/~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.html
new file mode 100644
index 0000000..cb98947
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.html
@@ -0,0 +1,6 @@
+www.example.com/a©
+www.example.com/a©
+www.example.com/a&bogus;
+www.example.com/a&bogus;
+www.example.com/a.
+www.example.com/a\.
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.md
new file mode 100644
index 0000000..1dc65b0
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/links-autolink-literals-and-characters.md
@@ -0,0 +1,11 @@
+[www.example.com/a©](#)
+
+www.example.com/a©
+
+[www.example.com/a&bogus;](#)
+
+www.example.com/a&bogus;
+
+[www.example.com/a\.](#)
+
+www.example.com/a\.
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.html
new file mode 100644
index 0000000..b95ee96
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a/b&c (space)
+www.a/b&c!
+www.a/b&c"
+www.a/b&c#
+www.a/b&c$
+www.a/b&c%
+www.a/b&c&
+www.a/b&c'
+www.a/b&c(
+www.a/b&c)
+www.a/b&c*
+www.a/b&c+
+www.a/b&c,
+www.a/b&c-
+www.a/b&c
+www.a/b&c.
+www.a/b&c/
+www.a/b&c:
+www.a/b&c;
+www.a/b&c<
+www.a/b&c=
+www.a/b&c>
+www.a/b&c?
+www.a/b&c@
+www.a/b&c[
+www.a/b&c\
+www.a/b&c]
+www.a/b&c^
+www.a/b&c_
+www.a/b&c`
+www.a/b&c{
+www.a/b&c|
+www.a/b&c}
+www.a/b&c~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.md
new file mode 100644
index 0000000..6db7f21
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-named.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a/b&c (space)
+
+www.a/b&c!
+
+www.a/b&c"
+
+www.a/b&c#
+
+www.a/b&c$
+
+www.a/b&c%
+
+www.a/b&c&
+
+www.a/b&c'
+
+www.a/b&c(
+
+www.a/b&c)
+
+www.a/b&c*
+
+www.a/b&c+
+
+www.a/b&c,
+
+www.a/b&c-
+
+www.a/b&c
+
+www.a/b&c.
+
+www.a/b&c/
+
+www.a/b&c:
+
+www.a/b&c;
+
+www.a/b&c<
+
+www.a/b&c=
+
+www.a/b&c>
+
+www.a/b&c?
+
+www.a/b&c@
+
+www.a/b&c[
+
+www.a/b&c\
+
+www.a/b&c]
+
+www.a/b&c^
+
+www.a/b&c_
+
+www.a/b&c`
+
+www.a/b&c{
+
+www.a/b&c|
+
+www.a/b&c}
+
+www.a/b&c~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.html
new file mode 100644
index 0000000..f627d39
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a/b# (space)
+www.a/b#!
+www.a/b#"
+www.a/b##
+www.a/b#$
+www.a/b#%
+www.a/b#&
+www.a/b#'
+www.a/b#(
+www.a/b#)
+www.a/b#*
+www.a/b#+
+www.a/b#,
+www.a/b#-
+www.a/b#
+www.a/b#.
+www.a/b#/
+www.a/b#:
+www.a/b#
+www.a/b#<
+www.a/b#=
+www.a/b#>
+www.a/b#?
+www.a/b#@
+www.a/b#[
+www.a/b#\
+www.a/b#]
+www.a/b#^
+www.a/b#_
+www.a/b#`
+www.a/b#{
+www.a/b#|
+www.a/b#}
+www.a/b#~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.md
new file mode 100644
index 0000000..6858bf1
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-character-reference-like-numerical.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a/b# (space)
+
+www.a/b#!
+
+www.a/b#"
+
+www.a/b##
+
+www.a/b#$
+
+www.a/b#%
+
+www.a/b#&
+
+www.a/b#'
+
+www.a/b#(
+
+www.a/b#)
+
+www.a/b#*
+
+www.a/b#+
+
+www.a/b#,
+
+www.a/b#-
+
+www.a/b#
+
+www.a/b#.
+
+www.a/b#/
+
+www.a/b#:
+
+www.a/b#
+
+www.a/b#<
+
+www.a/b#=
+
+www.a/b#>
+
+www.a/b#?
+
+www.a/b#@
+
+www.a/b#[
+
+www.a/b#\
+
+www.a/b#]
+
+www.a/b#^
+
+www.a/b#_
+
+www.a/b#`
+
+www.a/b#{
+
+www.a/b#|
+
+www.a/b#}
+
+www.a/b#~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.html
new file mode 100644
index 0000000..3b9b465
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.html
@@ -0,0 +1,21 @@
+In autolink literal path or link end?
+https://a.com/d
+http://a.com/d
+www.a.com/d
+https://a.com/d]()
+http://a.com/d]()
+www.a.com/d]()
+In autolink literal search or link end?
+https://a.com?d
+http://a.com?d
+www.a.com?d
+https://a.com?d]()
+http://a.com?d]()
+www.a.com?d]()
+In autolink literal hash or link end?
+https://a.com#d
+http://a.com#d
+www.a.com#d
+https://a.com#d]()
+http://a.com#d]()
+www.a.com#d]()
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.md
new file mode 100644
index 0000000..f2b3f76
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/path-or-link-end.md
@@ -0,0 +1,41 @@
+In autolink literal path or link end?
+
+[https://a.com/d]()
+
+[http://a.com/d]()
+
+[www.a.com/d]()
+
+https://a.com/d]()
+
+http://a.com/d]()
+
+www.a.com/d]()
+
+In autolink literal search or link end?
+
+[https://a.com?d]()
+
+[http://a.com?d]()
+
+[www.a.com?d]()
+
+https://a.com?d]()
+
+http://a.com?d]()
+
+www.a.com?d]()
+
+In autolink literal hash or link end?
+
+[https://a.com#d]()
+
+[http://a.com#d]()
+
+[www.a.com#d]()
+
+https://a.com#d]()
+
+http://a.com#d]()
+
+www.a.com#d]()
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.html
new file mode 100644
index 0000000..8788ddb
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.html
@@ -0,0 +1,22 @@
+Last non-markdown ASCII whitespace (FF): noreply@example.com, http://example.com, https://example.com, www.example.com
+Last non-whitespace ASCII control (US): noreply@example.com, http://example.com, https://example.com, www.example.com
+First punctuation after controls: !noreply@example.com, !http://example.com, !https://example.com, !www.example.com
+Last punctuation before digits: /noreply@example.com, /http://example.com, /https://example.com, /www.example.com
+First digit: 0noreply@example.com, 0http://example.com, 0https://example.com, 0www.example.com
+First punctuation after digits: :noreply@example.com, :http://example.com, :https://example.com, :www.example.com
+Last punctuation before caps: @noreply@example.com, @http://example.com, @https://example.com, @www.example.com
+First uppercase: Anoreply@example.com, Ahttp://example.com, Ahttps://example.com, Awww.example.com
+Punctuation after uppercase: \noreply@example.com, \http://example.com, \https://example.com, \www.example.com
+Last punctuation before lowercase (1): `noreply@example.com;
+(2) `http://example.com;
+(3) `https://example.com;
+(4) `www.example.com; (broken up to prevent code from forming)
+First lowercase: anoreply@example.com, ahttp://example.com, ahttps://example.com, awww.example.com
+First punctuation after lowercase: {noreply@example.com, {http://example.com, {https://example.com, {www.example.com
+Last punctuation: ~noreply@example.com, ~http://example.com, ~https://example.com, ~www.example.com
+First non-ASCII unicode whitespace (0x80):
noreply@example.com,
http://example.com,
https://example.com,
www.example.com
+Last non-ASCII unicode whitespace (0x3000): noreply@example.com, http://example.com, https://example.com, www.example.com
+First non-ASCII punctuation: ¡noreply@example.com, ¡http://example.com, ¡https://example.com, ¡www.example.com
+Last non-ASCII punctuation: ・noreply@example.com, ・http://example.com, ・https://example.com, ・www.example.com
+Some non-ascii: 中noreply@example.com, 中http://example.com, 中https://example.com, 中www.example.com
+Some more non-ascii: 🤷noreply@example.com, 🤷http://example.com, 🤷https://example.com, 🤷www.example.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.md
new file mode 100644
index 0000000..2b567f3
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous-complex.md
@@ -0,0 +1,43 @@
+Last non-markdown ASCII whitespace (FF): noreply@example.com, http://example.com, https://example.com, www.example.com
+
+Last non-whitespace ASCII control (US): noreply@example.com, http://example.com, https://example.com, www.example.com
+
+First punctuation after controls: !noreply@example.com, !http://example.com, !https://example.com, !www.example.com
+
+Last punctuation before digits: /noreply@example.com, /http://example.com, /https://example.com, /www.example.com
+
+First digit: 0noreply@example.com, 0http://example.com, 0https://example.com, 0www.example.com
+
+First punctuation after digits: :noreply@example.com, :http://example.com, :https://example.com, :www.example.com
+
+Last punctuation before caps: @noreply@example.com, @http://example.com, @https://example.com, @www.example.com
+
+First uppercase: Anoreply@example.com, Ahttp://example.com, Ahttps://example.com, Awww.example.com
+
+Punctuation after uppercase: \noreply@example.com, \http://example.com, \https://example.com, \www.example.com
+
+Last punctuation before lowercase (1): `noreply@example.com;
+
+(2) `http://example.com;
+
+(3) `https://example.com;
+
+(4) `www.example.com; (broken up to prevent code from forming)
+
+First lowercase: anoreply@example.com, ahttp://example.com, ahttps://example.com, awww.example.com
+
+First punctuation after lowercase: {noreply@example.com, {http://example.com, {https://example.com, {www.example.com
+
+Last punctuation: ~noreply@example.com, ~http://example.com, ~https://example.com, ~www.example.com
+
+First non-ASCII unicode whitespace (0x80):
noreply@example.com,
http://example.com,
https://example.com,
www.example.com
+
+Last non-ASCII unicode whitespace (0x3000): noreply@example.com, http://example.com, https://example.com, www.example.com
+
+First non-ASCII punctuation: ¡noreply@example.com, ¡http://example.com, ¡https://example.com, ¡www.example.com
+
+Last non-ASCII punctuation: ・noreply@example.com, ・http://example.com, ・https://example.com, ・www.example.com
+
+Some non-ascii: 中noreply@example.com, 中http://example.com, 中https://example.com, 中www.example.com
+
+Some more non-ascii: 🤷noreply@example.com, 🤷http://example.com, 🤷https://example.com, 🤷www.example.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.html
new file mode 100644
index 0000000..f3e8fbd
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.html
@@ -0,0 +1,41 @@
+HTTP
+https://a.b can start after EOF
+Can start after EOL:
+https://a.b
+Can start after tab: https://a.b.
+Can start after space: https://a.b.
+Can start after left paren (https://a.b.
+Can start after asterisk *https://a.b.
+Can start after underscore *_https://a.b.
+Can start after tilde ~https://a.b.
+www
+www.a.b can start after EOF
+Can start after EOL:
+www.a.b
+Can start after tab: www.a.b.
+Can start after space: www.a.b.
+Can start after left paren (www.a.b.
+Can start after asterisk *www.a.b.
+Can start after underscore *_www.a.b.
+Can start after tilde ~www.a.b.
+Email
+Correct character before
+a@b.c can start after EOF
+Can start after EOL:
+a@b.c
+Can start after tab: a@b.c.
+Can start after space: a@b.c.
+Can start after left paren(a@b.c.
+Can start after asterisk*a@b.c.
+While theoretically it’s possible to start at an underscore, that underscore
+is part of the email, so it’s in fact part of the link: _a@b.c.
+Can start after tilde~a@b.c.
+Others characters before
+While other characters before the email aren’t allowed by GFM, they work on
+github.com: !a@b.c, "a@b.c, #a@b.c, $a@b.c, &a@b.c, 'a@b.c, )a@b.c, +a@b.c,
+,a@b.c, -a@b.c, .a@b.c, /a@b.c, :a@b.c, ;a@b.c, <a@b.c, =a@b.c, >a@b.c, ?a@b.c,
+@a@b.c, \a@b.c, ]a@b.c, ^a@b.c, `a@b.c, {a@b.c, }a@b.c.
+remarkjs/remark#678
+,https://github.com
+[ ,https://github.com
+[asd] ,https://github.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.md
new file mode 100644
index 0000000..a963e6d
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/previous.md
@@ -0,0 +1,74 @@
+# HTTP
+
+https://a.b can start after EOF
+
+Can start after EOL:
+https://a.b
+
+Can start after tab: https://a.b.
+
+Can start after space: https://a.b.
+
+Can start after left paren (https://a.b.
+
+Can start after asterisk *https://a.b.
+
+Can start after underscore *_https://a.b.
+
+Can start after tilde ~https://a.b.
+
+# www
+
+www.a.b can start after EOF
+
+Can start after EOL:
+www.a.b
+
+Can start after tab: www.a.b.
+
+Can start after space: www.a.b.
+
+Can start after left paren (www.a.b.
+
+Can start after asterisk *www.a.b.
+
+Can start after underscore *_www.a.b.
+
+Can start after tilde ~www.a.b.
+
+# Email
+
+## Correct character before
+
+a@b.c can start after EOF
+
+Can start after EOL:
+a@b.c
+
+Can start after tab: a@b.c.
+
+Can start after space: a@b.c.
+
+Can start after left paren(a@b.c.
+
+Can start after asterisk*a@b.c.
+
+While theoretically it’s possible to start at an underscore, that underscore
+is part of the email, so it’s in fact part of the link: _a@b.c.
+
+Can start after tilde~a@b.c.
+
+## Others characters before
+
+While other characters before the email aren’t allowed by GFM, they work on
+github.com: !a@b.c, "a@b.c, #a@b.c, $a@b.c, &a@b.c, 'a@b.c, )a@b.c, +a@b.c,
+,a@b.c, -a@b.c, .a@b.c, /a@b.c, :a@b.c, ;a@b.c, a@b.c, ?a@b.c,
+@a@b.c, \a@b.c, ]a@b.c, ^a@b.c, `a@b.c, {a@b.c, }a@b.c.
+
+## remarkjs/remark#678
+
+,https://github.com
+
+[ ,https://github.com
+
+[asd] ,https://github.com
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.html
new file mode 100644
index 0000000..32e1de9
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.html
@@ -0,0 +1,35 @@
+wwwtf 2?
+www.a (space)
+www.a!
+www.a"
+www.a#
+www.a$
+www.a%
+www.a&
+www.a'
+www.a(
+www.a)
+www.a*
+www.a+
+www.a,
+www.a-
+www.a
+www.a.
+www.a/
+www.a:
+www.a;
+www.a<
+www.a=
+www.a>
+www.a?
+www.a@
+www.a[
+www.a\
+www.a]
+www.a^
+www.a_
+www.a`
+www.a{
+www.a|
+www.a}
+www.a~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.md
new file mode 100644
index 0000000..9a95a77
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-continue.md
@@ -0,0 +1,69 @@
+# wwwtf 2?
+
+www.a (space)
+
+www.a!
+
+www.a"
+
+www.a#
+
+www.a$
+
+www.a%
+
+www.a&
+
+www.a'
+
+www.a(
+
+www.a)
+
+www.a*
+
+www.a+
+
+www.a,
+
+www.a-
+
+www.a
+
+www.a.
+
+www.a/
+
+www.a:
+
+www.a;
+
+www.a<
+
+www.a=
+
+www.a>
+
+www.a?
+
+www.a@
+
+www.a[
+
+www.a\
+
+www.a]
+
+www.a^
+
+www.a_
+
+www.a`
+
+www.a{
+
+www.a|
+
+www.a}
+
+www.a~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.html
new file mode 100644
index 0000000..8b755d3
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.html
@@ -0,0 +1,35 @@
+wwwtf 5?
+www.a. (space)
+www.a.!
+www.a."
+www.a.#
+www.a.$
+www.a.%
+www.a.&
+www.a.'
+www.a.(
+www.a.)
+www.a.*
+www.a.+
+www.a.,
+www.a.-
+www.a.
+www.a..
+www.a./
+www.a.:
+www.a.;
+www.a.<
+www.a.=
+www.a.>
+www.a.?
+www.a.@
+www.a.[
+www.a.\
+www.a.]
+www.a.^
+www.a._
+www.a.`
+www.a.{
+www.a.|
+www.a.}
+www.a.~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.md
new file mode 100644
index 0000000..e4d4ae4
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-dot.md
@@ -0,0 +1,69 @@
+# wwwtf 5?
+
+www.a. (space)
+
+www.a.!
+
+www.a."
+
+www.a.#
+
+www.a.$
+
+www.a.%
+
+www.a.&
+
+www.a.'
+
+www.a.(
+
+www.a.)
+
+www.a.*
+
+www.a.+
+
+www.a.,
+
+www.a.-
+
+www.a.
+
+www.a..
+
+www.a./
+
+www.a.:
+
+www.a.;
+
+www.a.<
+
+www.a.=
+
+www.a.>
+
+www.a.?
+
+www.a.@
+
+www.a.[
+
+www.a.\
+
+www.a.]
+
+www.a.^
+
+www.a._
+
+www.a.`
+
+www.a.{
+
+www.a.|
+
+www.a.}
+
+www.a.~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.html
new file mode 100644
index 0000000..1ce2654
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.html
@@ -0,0 +1,35 @@
+wwwtf?
+www. (space)
+www.!
+www."
+www.#
+www.$
+www.%
+www.&
+www.'
+www.(
+www.)
+www.*
+www.+
+www.,
+www.-
+www.
+www..
+www./
+www.:
+www.;
+www.<
+www.=
+www.>
+www.?
+www.@
+www.[
+www.\
+www.]
+www.^
+www._
+www.`
+www.{
+www.|
+www.}
+www.~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.md
new file mode 100644
index 0000000..bbe131e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-domain-start.md
@@ -0,0 +1,69 @@
+# wwwtf?
+
+www. (space)
+
+www.!
+
+www."
+
+www.#
+
+www.$
+
+www.%
+
+www.&
+
+www.'
+
+www.(
+
+www.)
+
+www.*
+
+www.+
+
+www.,
+
+www.-
+
+www.
+
+www..
+
+www./
+
+www.:
+
+www.;
+
+www.<
+
+www.=
+
+www.>
+
+www.?
+
+www.@
+
+www.[
+
+www.\
+
+www.]
+
+www.^
+
+www._
+
+www.`
+
+www.{
+
+www.|
+
+www.}
+
+www.~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.html
new file mode 100644
index 0000000..0e0477c
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.html
@@ -0,0 +1,35 @@
+wwwtf? (4)
+www.a/b (space)
+www.a/b!
+www.a/b"
+www.a/b#
+www.a/b$
+www.a/b%
+www.a/b&
+www.a/b'
+www.a/b(
+www.a/b)
+www.a/b*
+www.a/b+
+www.a/b,
+www.a/b-
+www.a/b
+www.a/b.
+www.a/b/
+www.a/b:
+www.a/b;
+www.a/b<
+www.a/b=
+www.a/b>
+www.a/b?
+www.a/b@
+www.a/b[
+www.a/b\
+www.a/b]
+www.a/b^
+www.a/b_
+www.a/b`
+www.a/b{
+www.a/b|
+www.a/b}
+www.a/b~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.md
new file mode 100644
index 0000000..aa72955
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-continue.md
@@ -0,0 +1,69 @@
+# wwwtf? (4)
+
+www.a/b (space)
+
+www.a/b!
+
+www.a/b"
+
+www.a/b#
+
+www.a/b$
+
+www.a/b%
+
+www.a/b&
+
+www.a/b'
+
+www.a/b(
+
+www.a/b)
+
+www.a/b*
+
+www.a/b+
+
+www.a/b,
+
+www.a/b-
+
+www.a/b
+
+www.a/b.
+
+www.a/b/
+
+www.a/b:
+
+www.a/b;
+
+www.a/b<
+
+www.a/b=
+
+www.a/b>
+
+www.a/b?
+
+www.a/b@
+
+www.a/b[
+
+www.a/b\
+
+www.a/b]
+
+www.a/b^
+
+www.a/b_
+
+www.a/b`
+
+www.a/b{
+
+www.a/b|
+
+www.a/b}
+
+www.a/b~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.html b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.html
new file mode 100644
index 0000000..f53778c
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.html
@@ -0,0 +1,35 @@
+wwwtf? (3)
+www.a/ (space)
+www.a/!
+www.a/"
+www.a/#
+www.a/$
+www.a/%
+www.a/&
+www.a/'
+www.a/(
+www.a/)
+www.a/*
+www.a/+
+www.a/,
+www.a/-
+www.a/
+www.a/.
+www.a//
+www.a/:
+www.a/;
+www.a/<
+www.a/=
+www.a/>
+www.a/?
+www.a/@
+www.a/[
+www.a/\
+www.a/]
+www.a/^
+www.a/_
+www.a/`
+www.a/{
+www.a/|
+www.a/}
+www.a/~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.md b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.md
new file mode 100644
index 0000000..ce72b66
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/fixture/www-path-start.md
@@ -0,0 +1,69 @@
+# wwwtf? (3)
+
+www.a/ (space)
+
+www.a/!
+
+www.a/"
+
+www.a/#
+
+www.a/$
+
+www.a/%
+
+www.a/&
+
+www.a/'
+
+www.a/(
+
+www.a/)
+
+www.a/*
+
+www.a/+
+
+www.a/,
+
+www.a/-
+
+www.a/
+
+www.a/.
+
+www.a//
+
+www.a/:
+
+www.a/;
+
+www.a/<
+
+www.a/=
+
+www.a/>
+
+www.a/?
+
+www.a/@
+
+www.a/[
+
+www.a/\
+
+www.a/]
+
+www.a/^
+
+www.a/_
+
+www.a/`
+
+www.a/{
+
+www.a/|
+
+www.a/}
+
+www.a/~
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/index.js b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/index.js
new file mode 100644
index 0000000..99c967a
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/index.js
@@ -0,0 +1,516 @@
+import assert from 'node:assert/strict'
+import fs from 'node:fs/promises'
+import test from 'node:test'
+import {toHtml} from 'hast-util-to-html'
+import {toHast} from 'mdast-util-to-hast'
+import {fromMarkdown} from 'mdast-util-from-markdown'
+import {
+ gfmAutolinkLiteralFromMarkdown,
+ gfmAutolinkLiteralToMarkdown
+} from 'mdast-util-gfm-autolink-literal'
+import {toMarkdown} from 'mdast-util-to-markdown'
+import {gfmAutolinkLiteral} from 'micromark-extension-gfm-autolink-literal'
+
+test('core', async function (t) {
+ await t.test('should expose the public api', async function () {
+ assert.deepEqual(
+ Object.keys(await import('mdast-util-gfm-autolink-literal')).sort(),
+ ['gfmAutolinkLiteralFromMarkdown', 'gfmAutolinkLiteralToMarkdown']
+ )
+ })
+})
+
+test('gfmAutolinkLiteralFromMarkdown()', async function (t) {
+ await t.test('should support autolink literals', async function () {
+ assert.deepEqual(
+ fromMarkdown(
+ 'www.example.com, https://example.com, and contact@example.com.',
+ {
+ extensions: [gfmAutolinkLiteral()],
+ mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
+ }
+ ),
+ {
+ type: 'root',
+ children: [
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'link',
+ title: null,
+ url: 'http://www.example.com',
+ children: [
+ {
+ type: 'text',
+ value: 'www.example.com',
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 16, offset: 15}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 16, offset: 15}
+ }
+ },
+ {
+ type: 'text',
+ value: ', ',
+ position: {
+ start: {line: 1, column: 16, offset: 15},
+ end: {line: 1, column: 18, offset: 17}
+ }
+ },
+ {
+ type: 'link',
+ title: null,
+ url: 'https://example.com',
+ children: [
+ {
+ type: 'text',
+ value: 'https://example.com',
+ position: {
+ start: {line: 1, column: 18, offset: 17},
+ end: {line: 1, column: 37, offset: 36}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 18, offset: 17},
+ end: {line: 1, column: 37, offset: 36}
+ }
+ },
+ {
+ type: 'text',
+ value: ', and ',
+ position: {
+ start: {line: 1, column: 37, offset: 36},
+ end: {line: 1, column: 43, offset: 42}
+ }
+ },
+ {
+ type: 'link',
+ title: null,
+ url: 'mailto:contact@example.com',
+ children: [
+ {
+ type: 'text',
+ value: 'contact@example.com',
+ position: {
+ start: {line: 1, column: 43, offset: 42},
+ end: {line: 1, column: 62, offset: 61}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 43, offset: 42},
+ end: {line: 1, column: 62, offset: 61}
+ }
+ },
+ {
+ type: 'text',
+ value: '.',
+ position: {
+ start: {line: 1, column: 62, offset: 61},
+ end: {line: 1, column: 63, offset: 62}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 63, offset: 62}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 63, offset: 62}
+ }
+ }
+ )
+ })
+
+ await t.test('should support normal links', async function () {
+ assert.deepEqual(
+ fromMarkdown('[https://google.com](https://google.com)', {
+ extensions: [gfmAutolinkLiteral()],
+ mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
+ }),
+ {
+ type: 'root',
+ children: [
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'link',
+ title: null,
+ url: 'https://google.com',
+ children: [
+ {
+ type: 'text',
+ value: 'https://google.com',
+ position: {
+ start: {line: 1, column: 2, offset: 1},
+ end: {line: 1, column: 20, offset: 19}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 41, offset: 40}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 41, offset: 40}
+ }
+ }
+ ],
+ position: {
+ start: {line: 1, column: 1, offset: 0},
+ end: {line: 1, column: 41, offset: 40}
+ }
+ }
+ )
+ })
+
+ await t.test('should merge text nodes', async function () {
+ const tree = fromMarkdown('[http://a.\n]', {
+ extensions: [gfmAutolinkLiteral()],
+ mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
+ })
+ const paragraph = tree.children[0]
+ assert.equal(paragraph.type, 'paragraph')
+
+ assert.deepEqual(paragraph.children, [
+ {type: 'text', value: '['},
+ {
+ type: 'link',
+ title: null,
+ url: 'http://a',
+ children: [{type: 'text', value: 'http://a', position: undefined}],
+ position: undefined
+ },
+ {type: 'text', value: '.\n]', position: undefined}
+ ])
+ })
+})
+
+test('gfmAutolinkLiteralToMarkdown()', async function (t) {
+ await t.test('should not serialize autolink literals', async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {type: 'text', value: 'a '},
+ {
+ type: 'link',
+ title: null,
+ url: 'mailto:contact@example.com',
+ children: [{type: 'text', value: 'contact@example.com'}]
+ },
+ {type: 'text', value: ' c.'}
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'a c.\n'
+ )
+ })
+
+ await t.test(
+ 'should escape at signs if they appear in what looks like an email',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'paragraph', children: [{type: 'text', value: 'a b@c.d'}]},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'a b\\@c.d\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape at signs if they appear in what can’t be an email',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'paragraph', children: [{type: 'text', value: 'a @c'}]},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'a @c\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should escape dots if they appear in what looks like a domain',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'paragraph', children: [{type: 'text', value: 'a www.b.c'}]},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'a www\\.b.c\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape dots if they appear in what can’t be a domain',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'paragraph', children: [{type: 'text', value: 'a.b'}]},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'a.b\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should escape colons if they appear in what looks like a http protocol',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'paragraph', children: [{type: 'text', value: 'https:/'}]},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'https\\:/\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons if they appear in what can’t be a http protocol',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'paragraph', children: [{type: 'text', value: 'https:a'}]},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ 'https:a\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in definition labels',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {type: 'definition', label: 'http://a', identifier: '', url: ''},
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '[http://a]: <>\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in link (reference) labels (shortcut)',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'linkReference',
+ label: 'http://a',
+ identifier: '',
+ referenceType: 'collapsed',
+ children: [{type: 'text', value: 'http://a'}]
+ }
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '[http://a][]\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in link (reference) labels (text)',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'linkReference',
+ label: 'a',
+ identifier: '',
+ referenceType: 'full',
+ children: [{type: 'text', value: 'http://a'}]
+ }
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '[http://a][a]\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in link (reference) labels (label)',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'linkReference',
+ label: 'http://a',
+ identifier: '',
+ referenceType: 'full',
+ children: [{type: 'text', value: 'a'}]
+ }
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '[a][http://a]\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in link (resource) labels',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'link',
+ url: 'http://a',
+ children: [{type: 'text', value: 'a'}]
+ }
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '[a](http://a)\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in image (reference) labels (label)',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'imageReference',
+ label: 'http://a',
+ identifier: '',
+ referenceType: 'full',
+ alt: 'a'
+ }
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '![a][http://a]\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in image (reference) labels (alt)',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [
+ {
+ type: 'imageReference',
+ label: 'a',
+ identifier: '',
+ referenceType: 'full',
+ alt: 'http://a'
+ }
+ ]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '![http://a][a]\n'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not escape colons in image (resource) labels',
+ async function () {
+ assert.equal(
+ toMarkdown(
+ {
+ type: 'paragraph',
+ children: [{type: 'image', url: 'http://a', alt: 'a'}]
+ },
+ {extensions: [gfmAutolinkLiteralToMarkdown()]}
+ ),
+ '\n'
+ )
+ }
+ )
+})
+
+test('fixtures', async function (t) {
+ const root = new URL('fixture/', import.meta.url)
+
+ const files = await fs.readdir(root)
+ let index = -1
+
+ while (++index < files.length) {
+ const file = files[index]
+
+ if (!/\.md$/.test(file)) continue
+
+ const stem = file.split('.').slice(0, -1).join('.')
+
+ await t.test('should work on `' + stem + '`', async function () {
+ const inputUrl = new URL(file, root)
+ const expectedUrl = new URL(stem + '.html', root)
+
+ const input = await fs.readFile(inputUrl)
+ const expected = String(await fs.readFile(expectedUrl))
+
+ const mdast = fromMarkdown(input, {
+ extensions: [gfmAutolinkLiteral()],
+ mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
+ })
+
+ const hast = toHast(mdast, {allowDangerousHtml: true})
+ assert.equal(hast.type, 'root')
+
+ let actual = toHtml(hast, {
+ allowDangerousHtml: true,
+ characterReferences: {useNamedReferences: true}
+ })
+
+ if (actual.charCodeAt(actual.length - 1) !== 10) {
+ actual += '\n'
+ }
+
+ assert.equal(actual, expected)
+ })
+ }
+})
diff --git a/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/license b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/license
new file mode 100644
index 0000000..bc8f165
--- /dev/null
+++ b/packages/tinylinkify/test/suites/mdast-util-gfm-autolink-literal-2.1.0/license
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) Titus Wormer
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/COMMIT b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/COMMIT
new file mode 100644
index 0000000..d6336ec
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/COMMIT
@@ -0,0 +1 @@
+6c39e501836f58a0448cbcbdacae4d51b46b5172
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.html
new file mode 100644
index 0000000..4a893a6
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.html
@@ -0,0 +1,60 @@
+Literal autolinks
+WWW autolinks
+w.commonmark.org
+ww.commonmark.org
+www.commonmark.org
+Www.commonmark.org
+wWw.commonmark.org
+wwW.commonmark.org
+WWW.COMMONMARK.ORG
+Visit www.commonmark.org/help for more information.
+Visit www.commonmark.org.
+Visit www.commonmark.org/a.b.
+www.aaa.bbb.ccc_ccc
+www.aaa_bbb.ccc
+www.aaa.bbb.ccc.ddd_ddd
+www.aaa.bbb.ccc_ccc.ddd
+www.aaa.bbb_bbb.ccc.ddd
+www.aaa_aaa.bbb.ccc.ddd
+Visit www.commonmark.org.
+Visit www.commonmark.org/a.b.
+www.google.com/search?q=Markup+(business)
+www.google.com/search?q=Markup+(business)))
+(www.google.com/search?q=Markup+(business))
+(www.google.com/search?q=Markup+(business)
+www.google.com/search?q=(business))+ok
+www.google.com/search?q=commonmark&hl=en
+www.google.com/search?q=commonmark&hl;en
+www.google.com/search?q=commonmark&hl;
+www.commonmark.org/he<lp
+HTTP autolinks
+hexample.com
+htexample.com
+httexample.com
+httpexample.com
+http:example.com
+http:/example.com
+https:/example.com
+http://example.com
+https://example.com
+https://example
+http://commonmark.org
+(Visit https://encrypted.google.com/search?q=Markup+(business))
+Email autolinks
+No dot: foo@barbaz
+No dot: foo@barbaz.
+foo@bar.baz
+hello@mail+xyz.example isn’t valid, but hello+xyz@mail.example is.
+a.b-c_d@a.b
+a.b-c_d@a.b.
+a.b-c_d@a.b-
+a.b-c_d@a.b_
+a@a_b.c
+a@a-b.c
+Can’t end in an underscore followed by a period: aaa@a.b_.
+Can contain an underscore followed by a period: aaa@a.b_.c
+Link text should not be expanded
+Visit www.example.com please.
+Visit http://www.example.com please.
+Mail example@example.com please.
+link http://autolink should still be expanded.
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.md
new file mode 100644
index 0000000..84ba70e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/base.md
@@ -0,0 +1,119 @@
+# Literal autolinks
+
+## WWW autolinks
+
+w.commonmark.org
+
+ww.commonmark.org
+
+www.commonmark.org
+
+Www.commonmark.org
+
+wWw.commonmark.org
+
+wwW.commonmark.org
+
+WWW.COMMONMARK.ORG
+
+Visit www.commonmark.org/help for more information.
+
+Visit www.commonmark.org.
+
+Visit www.commonmark.org/a.b.
+
+www.aaa.bbb.ccc_ccc
+
+www.aaa_bbb.ccc
+
+www.aaa.bbb.ccc.ddd_ddd
+
+www.aaa.bbb.ccc_ccc.ddd
+
+www.aaa.bbb_bbb.ccc.ddd
+
+www.aaa_aaa.bbb.ccc.ddd
+
+Visit www.commonmark.org.
+
+Visit www.commonmark.org/a.b.
+
+www.google.com/search?q=Markup+(business)
+
+www.google.com/search?q=Markup+(business)))
+
+(www.google.com/search?q=Markup+(business))
+
+(www.google.com/search?q=Markup+(business)
+
+www.google.com/search?q=(business))+ok
+
+www.google.com/search?q=commonmark&hl=en
+
+www.google.com/search?q=commonmark&hl;en
+
+www.google.com/search?q=commonmark&hl;
+
+www.commonmark.org/he should still be expanded.
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.html
new file mode 100644
index 0000000..c79a490
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.html
@@ -0,0 +1,18 @@
+H0.
+[https://a.com©b
+[www.a.com©b
+H1.
+[]https://a.com©b
+[]www.a.com©b
+H2.
+[] https://a.com©b
+[] www.a.com©b
+H3.
+[[https://a.com©b
+[[www.a.com©b
+H4.
+[[]https://a.com©b
+[[]www.a.com©b
+H5.
+[[]]https://a.com©b
+[[]]www.a.com©b
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.md
new file mode 100644
index 0000000..0ef579e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/brackets.comment.md
@@ -0,0 +1,35 @@
+H0.
+
+[https://a.com©b
+
+[www.a.com©b
+
+H1.
+
+[]https://a.com©b
+
+[]www.a.com©b
+
+H2.
+
+[] https://a.com©b
+
+[] www.a.com©b
+
+H3.
+
+[[https://a.com©b
+
+[[www.a.com©b
+
+H4.
+
+[[]https://a.com©b
+
+[[]www.a.com©b
+
+H5.
+
+[[]]https://a.com©b
+
+[[]]www.a.com©b
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.html
new file mode 100644
index 0000000..b0a01f5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.html
@@ -0,0 +1,25 @@
+Image start.
+![https://a.com
+![http://a.com
+![www.a.com
+![a@b.c
+Image start and label end.
+![https://a.com]
+![http://a.com]
+![www.a.com]
+![a@b.c]
+Image label with reference (note: GH cleans hashes here, but we keep them in).
+![https://a.com]()
+![http://a.com]()
+![www.a.com]()
+![a@b.c]()
+Image label with resource.
+![https://a.com]()
+![http://a.com]()
+![www.a.com]()
+![a@b.c]()
+Autolink literal after image.
+
https://a.com
+
http://a.com
+
www.a.com
+
a@b.c
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.md
new file mode 100644
index 0000000..c7cd4b5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-images.comment.md
@@ -0,0 +1,51 @@
+Image start.
+
+![https://a.com
+
+![http://a.com
+
+![www.a.com
+
+![a@b.c
+
+Image start and label end.
+
+![https://a.com]
+
+![http://a.com]
+
+![www.a.com]
+
+![a@b.c]
+
+Image label with reference (note: GH cleans hashes here, but we keep them in).
+
+![https://a.com][x]
+
+![http://a.com][x]
+
+![www.a.com][x]
+
+![a@b.c][x]
+
+[x]: #
+
+Image label with resource.
+
+![https://a.com]()
+
+![http://a.com]()
+
+![www.a.com]()
+
+![a@b.c]()
+
+Autolink literal after image.
+
+![a]() https://a.com
+
+![a]() http://a.com
+
+![a]() www.a.com
+
+![a]() a@b.c
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.html
new file mode 100644
index 0000000..aaa6ca5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.html
@@ -0,0 +1,55 @@
+Link start.
+[https://a.com
+[http://a.com
+[www.a.com
+[a@b.c
+Label end.
+https://a.com]
+http://a.com]
+www.a.com]
+a@b.c]
+Link start and label end.
+[https://a.com]
+[http://a.com]
+[www.a.com]
+[a@b.c]
+What naïvely seems like a label end (A).
+https://a.com`]`
+http://a.com`]`
+www.a.com`]`
+a@b.c]
+Link start and what naïvely seems like a balanced brace (B).
+[https://a.com]
+[http://a.com]
+[www.a.com]
+[a@b.c]
+What naïvely seems like a label end (C).
+https://a.com ]
+http://a.com ]
+www.a.com ]
+a@b.c ]
+Link start and what naïvely seems like a balanced brace (D).
+[https://a.com ]
+[http://a.com ]
+[www.a.com ]
+[a@b.c ]
+Link label with reference.
+https://a.com
+http://a.com
+www.a.com
+a@b.c
+Link label with resource.
+https://a.com
+http://a.com
+www.a.com
+a@b.c
+More in link.
+a https://b.com c
+a http://b.com c
+a www.b.com c
+a b@c.d e
+Autolink literal after link.
+a https://a.com
+a http://a.com
+a www.a.com
+a a@b.c
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.md
new file mode 100644
index 0000000..0eec6f5
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/combined-with-links.comment.md
@@ -0,0 +1,111 @@
+Link start.
+
+[https://a.com
+
+[http://a.com
+
+[www.a.com
+
+[a@b.c
+
+Label end.
+
+https://a.com]
+
+http://a.com]
+
+www.a.com]
+
+a@b.c]
+
+Link start and label end.
+
+[https://a.com]
+
+[http://a.com]
+
+[www.a.com]
+
+[a@b.c]
+
+What naïvely seems like a label end (A).
+
+https://a.com`]`
+
+http://a.com`]`
+
+www.a.com`]`
+
+a@b.c`]`
+
+Link start and what naïvely seems like a balanced brace (B).
+
+[https://a.com`]`
+
+[http://a.com`]`
+
+[www.a.com`]`
+
+[a@b.c`]`
+
+What naïvely seems like a label end (C).
+
+https://a.com `]`
+
+http://a.com `]`
+
+www.a.com `]`
+
+a@b.c `]`
+
+Link start and what naïvely seems like a balanced brace (D).
+
+[https://a.com `]`
+
+[http://a.com `]`
+
+[www.a.com `]`
+
+[a@b.c `]`
+
+Link label with reference.
+
+[https://a.com][x]
+
+[http://a.com][x]
+
+[www.a.com][x]
+
+[a@b.c][x]
+
+[x]: #
+
+Link label with resource.
+
+[https://a.com]()
+
+[http://a.com]()
+
+[www.a.com]()
+
+[a@b.c]()
+
+More in link.
+
+[a https://b.com c]()
+
+[a http://b.com c]()
+
+[a www.b.com c]()
+
+[a b@c.d e]()
+
+Autolink literal after link.
+
+[a]() https://a.com
+
+[a]() http://a.com
+
+[a]() www.a.com
+
+[a]() a@b.c
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.html
new file mode 100644
index 0000000..2d0bdf6
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a&b (space)
+www.a&b!
+www.a&b"
+www.a&b#
+www.a&b$
+www.a&b%
+www.a&b&
+www.a&b'
+www.a&b(
+www.a&b)
+www.a&b*
+www.a&b+
+www.a&b,
+www.a&b-
+www.a&b
+www.a&b.
+www.a&b/
+www.a&b:
+www.a&b;
+www.a&b<
+www.a&b=
+www.a&b>
+www.a&b?
+www.a&b@
+www.a&b[
+www.a&b\
+www.a&b]
+www.a&b^
+www.a&b_
+www.a&b`
+www.a&b{
+www.a&b|
+www.a&b}
+www.a&b~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.md
new file mode 100644
index 0000000..9bd82ed
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-named.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a&b (space)
+
+www.a&b!
+
+www.a&b"
+
+www.a&b#
+
+www.a&b$
+
+www.a&b%
+
+www.a&b&
+
+www.a&b'
+
+www.a&b(
+
+www.a&b)
+
+www.a&b*
+
+www.a&b+
+
+www.a&b,
+
+www.a&b-
+
+www.a&b
+
+www.a&b.
+
+www.a&b/
+
+www.a&b:
+
+www.a&b;
+
+www.a&b<
+
+www.a&b=
+
+www.a&b>
+
+www.a&b?
+
+www.a&b@
+
+www.a&b[
+
+www.a&b\
+
+www.a&b]
+
+www.a&b^
+
+www.a&b_
+
+www.a&b`
+
+www.a&b{
+
+www.a&b|
+
+www.a&b}
+
+www.a&b~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.html
new file mode 100644
index 0000000..4982fdb
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a# (space)
+www.a#!
+www.a#"
+www.a##
+www.a#$
+www.a#%
+www.a#&
+www.a#'
+www.a#(
+www.a#)
+www.a#*
+www.a#+
+www.a#,
+www.a#-
+www.a#
+www.a#.
+www.a#/
+www.a#:
+www.a#
+www.a#<
+www.a#=
+www.a#>
+www.a#?
+www.a#@
+www.a#[
+www.a#\
+www.a#]
+www.a#^
+www.a#_
+www.a#`
+www.a#{
+www.a#|
+www.a#}
+www.a#~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.md
new file mode 100644
index 0000000..9a0fc22
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/domain-character-reference-like-numerical.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a# (space)
+
+www.a#!
+
+www.a#"
+
+www.a##
+
+www.a#$
+
+www.a#%
+
+www.a#&
+
+www.a#'
+
+www.a#(
+
+www.a#)
+
+www.a#*
+
+www.a#+
+
+www.a#,
+
+www.a#-
+
+www.a#
+
+www.a#.
+
+www.a#/
+
+www.a#:
+
+www.a#
+
+www.a#<
+
+www.a#=
+
+www.a#>
+
+www.a#?
+
+www.a#@
+
+www.a#[
+
+www.a#\
+
+www.a#]
+
+www.a#^
+
+www.a#_
+
+www.a#`
+
+www.a#{
+
+www.a#|
+
+www.a#}
+
+www.a#~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.html
new file mode 100644
index 0000000..dcdef1d
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.html
@@ -0,0 +1,15 @@
+a@0.0
+a@0.b
+a@a.29
+a@a.b
+a@0.0.c
+react@0.11.1
+react@0.12.0-rc1
+react@0.14.0-alpha1
+react@16.7.0-alpha.2
+react@0.0.0-experimental-aae83a4b9
+[ react@0.11.1
+[ react@0.12.0-rc1
+[ react@0.14.0-alpha1
+[ react@16.7.0-alpha.2
+[ react@0.0.0-experimental-aae83a4b9
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.md
new file mode 100644
index 0000000..22bd457
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/email-tld-digits.md
@@ -0,0 +1,29 @@
+a@0.0
+
+a@0.b
+
+a@a.29
+
+a@a.b
+
+a@0.0.c
+
+react@0.11.1
+
+react@0.12.0-rc1
+
+react@0.14.0-alpha1
+
+react@16.7.0-alpha.2
+
+react@0.0.0-experimental-aae83a4b9
+
+[ react@0.11.1
+
+[ react@0.12.0-rc1
+
+[ react@0.14.0-alpha1
+
+[ react@16.7.0-alpha.2
+
+[ react@0.0.0-experimental-aae83a4b9
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.html
new file mode 100644
index 0000000..965dbbb
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.html
@@ -0,0 +1,35 @@
+httpshhh? (2)
+http://a (space)
+http://a!
+http://a"
+http://a#
+http://a$
+http://a%
+http://a&
+http://a'
+http://a(
+http://a)
+http://a*
+http://a+
+http://a,
+http://a-
+http://a
+http://a.
+http://a/
+http://a:
+http://a;
+http://a<
+http://a=
+http://a>
+http://a?
+http://a@
+http://a[
+http://a\
+http://a]
+http://a^
+http://a_
+http://a`
+http://a{
+http://a|
+http://a}
+http://a~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.md
new file mode 100644
index 0000000..7b48fab
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-continue.md
@@ -0,0 +1,69 @@
+# httpshhh? (2)
+
+http://a (space)
+
+http://a!
+
+http://a"
+
+http://a#
+
+http://a$
+
+http://a%
+
+http://a&
+
+http://a'
+
+http://a(
+
+http://a)
+
+http://a*
+
+http://a+
+
+http://a,
+
+http://a-
+
+http://a
+
+http://a.
+
+http://a/
+
+http://a:
+
+http://a;
+
+http://a<
+
+http://a=
+
+http://a>
+
+http://a?
+
+http://a@
+
+http://a[
+
+http://a\
+
+http://a]
+
+http://a^
+
+http://a_
+
+http://a`
+
+http://a{
+
+http://a|
+
+http://a}
+
+http://a~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.html
new file mode 100644
index 0000000..6704641
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.html
@@ -0,0 +1,35 @@
+httpshhh? (1)
+http:// (space)
+http://!
+http://"
+http://#
+http://$
+http://%
+http://&
+http://'
+http://(
+http://)
+http://*
+http://+
+http://,
+http://-
+http://
+http://.
+http:///
+http://:
+http://;
+http://<
+http://=
+http://>
+http://?
+http://@
+http://[
+http://\
+http://]
+http://^
+http://_
+http://`
+http://{
+http://|
+http://}
+http://~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.md
new file mode 100644
index 0000000..64d7a68
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-domain-start.md
@@ -0,0 +1,69 @@
+# httpshhh? (1)
+
+http:// (space)
+
+http://!
+
+http://"
+
+http://#
+
+http://$
+
+http://%
+
+http://&
+
+http://'
+
+http://(
+
+http://)
+
+http://*
+
+http://+
+
+http://,
+
+http://-
+
+http://
+
+http://.
+
+http:///
+
+http://:
+
+http://;
+
+http://<
+
+http://=
+
+http://>
+
+http://?
+
+http://@
+
+http://[
+
+http://\
+
+http://]
+
+http://^
+
+http://_
+
+http://`
+
+http://{
+
+http://|
+
+http://}
+
+http://~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.html
new file mode 100644
index 0000000..2de4f5e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.html
@@ -0,0 +1,35 @@
+httpshhh? (4)
+http://a/b (space)
+http://a/b!
+http://a/b"
+http://a/b#
+http://a/b$
+http://a/b%
+http://a/b&
+http://a/b'
+http://a/b(
+http://a/b)
+http://a/b*
+http://a/b+
+http://a/b,
+http://a/b-
+http://a/b
+http://a/b.
+http://a/b/
+http://a/b:
+http://a/b;
+http://a/b<
+http://a/b=
+http://a/b>
+http://a/b?
+http://a/b@
+http://a/b[
+http://a/b\
+http://a/b]
+http://a/b^
+http://a/b_
+http://a/b`
+http://a/b{
+http://a/b|
+http://a/b}
+http://a/b~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.md
new file mode 100644
index 0000000..0198f7a
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-continue.md
@@ -0,0 +1,69 @@
+# httpshhh? (4)
+
+http://a/b (space)
+
+http://a/b!
+
+http://a/b"
+
+http://a/b#
+
+http://a/b$
+
+http://a/b%
+
+http://a/b&
+
+http://a/b'
+
+http://a/b(
+
+http://a/b)
+
+http://a/b*
+
+http://a/b+
+
+http://a/b,
+
+http://a/b-
+
+http://a/b
+
+http://a/b.
+
+http://a/b/
+
+http://a/b:
+
+http://a/b;
+
+http://a/b<
+
+http://a/b=
+
+http://a/b>
+
+http://a/b?
+
+http://a/b@
+
+http://a/b[
+
+http://a/b\
+
+http://a/b]
+
+http://a/b^
+
+http://a/b_
+
+http://a/b`
+
+http://a/b{
+
+http://a/b|
+
+http://a/b}
+
+http://a/b~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.html
new file mode 100644
index 0000000..b2ffa18
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.html
@@ -0,0 +1,35 @@
+httpshhh? (3)
+http://a/ (space)
+http://a/!
+http://a/"
+http://a/#
+http://a/$
+http://a/%
+http://a/&
+http://a/'
+http://a/(
+http://a/)
+http://a/*
+http://a/+
+http://a/,
+http://a/-
+http://a/
+http://a/.
+http://a//
+http://a/:
+http://a/;
+http://a/<
+http://a/=
+http://a/>
+http://a/?
+http://a/@
+http://a/[
+http://a/\
+http://a/]
+http://a/^
+http://a/_
+http://a/`
+http://a/{
+http://a/|
+http://a/}
+http://a/~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.md
new file mode 100644
index 0000000..ba33f42
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/http-path-start.md
@@ -0,0 +1,69 @@
+# httpshhh? (3)
+
+http://a/ (space)
+
+http://a/!
+
+http://a/"
+
+http://a/#
+
+http://a/$
+
+http://a/%
+
+http://a/&
+
+http://a/'
+
+http://a/(
+
+http://a/)
+
+http://a/*
+
+http://a/+
+
+http://a/,
+
+http://a/-
+
+http://a/
+
+http://a/.
+
+http://a//
+
+http://a/:
+
+http://a/;
+
+http://a/<
+
+http://a/=
+
+http://a/>
+
+http://a/?
+
+http://a/@
+
+http://a/[
+
+http://a/\
+
+http://a/]
+
+http://a/^
+
+http://a/_
+
+http://a/`
+
+http://a/{
+
+http://a/|
+
+http://a/}
+
+http://a/~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.html
new file mode 100644
index 0000000..9beec03
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.html
@@ -0,0 +1,6 @@
+www.example.com/a©
+www.example.com/a©
+www.example.com/a&bogus;
+www.example.com/a&bogus;
+www.example.com/a.
+www.example.com/a\.
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.md
new file mode 100644
index 0000000..1dc65b0
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/links-autolink-literals-and-characters.md
@@ -0,0 +1,11 @@
+[www.example.com/a©](#)
+
+www.example.com/a©
+
+[www.example.com/a&bogus;](#)
+
+www.example.com/a&bogus;
+
+[www.example.com/a\.](#)
+
+www.example.com/a\.
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.html
new file mode 100644
index 0000000..e4d1a68
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a/b&c (space)
+www.a/b&c!
+www.a/b&c"
+www.a/b&c#
+www.a/b&c$
+www.a/b&c%
+www.a/b&c&
+www.a/b&c'
+www.a/b&c(
+www.a/b&c)
+www.a/b&c*
+www.a/b&c+
+www.a/b&c,
+www.a/b&c-
+www.a/b&c
+www.a/b&c.
+www.a/b&c/
+www.a/b&c:
+www.a/b&c;
+www.a/b&c<
+www.a/b&c=
+www.a/b&c>
+www.a/b&c?
+www.a/b&c@
+www.a/b&c[
+www.a/b&c\
+www.a/b&c]
+www.a/b&c^
+www.a/b&c_
+www.a/b&c`
+www.a/b&c{
+www.a/b&c|
+www.a/b&c}
+www.a/b&c~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.md
new file mode 100644
index 0000000..6db7f21
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-named.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a/b&c (space)
+
+www.a/b&c!
+
+www.a/b&c"
+
+www.a/b&c#
+
+www.a/b&c$
+
+www.a/b&c%
+
+www.a/b&c&
+
+www.a/b&c'
+
+www.a/b&c(
+
+www.a/b&c)
+
+www.a/b&c*
+
+www.a/b&c+
+
+www.a/b&c,
+
+www.a/b&c-
+
+www.a/b&c
+
+www.a/b&c.
+
+www.a/b&c/
+
+www.a/b&c:
+
+www.a/b&c;
+
+www.a/b&c<
+
+www.a/b&c=
+
+www.a/b&c>
+
+www.a/b&c?
+
+www.a/b&c@
+
+www.a/b&c[
+
+www.a/b&c\
+
+www.a/b&c]
+
+www.a/b&c^
+
+www.a/b&c_
+
+www.a/b&c`
+
+www.a/b&c{
+
+www.a/b&c|
+
+www.a/b&c}
+
+www.a/b&c~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.html
new file mode 100644
index 0000000..b3c6bb8
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.html
@@ -0,0 +1,35 @@
+“character reference”
+www.a/b# (space)
+www.a/b#!
+www.a/b#"
+www.a/b##
+www.a/b#$
+www.a/b#%
+www.a/b#&
+www.a/b#'
+www.a/b#(
+www.a/b#)
+www.a/b#*
+www.a/b#+
+www.a/b#,
+www.a/b#-
+www.a/b#
+www.a/b#.
+www.a/b#/
+www.a/b#:
+www.a/b#
+www.a/b#<
+www.a/b#=
+www.a/b#>
+www.a/b#?
+www.a/b#@
+www.a/b#[
+www.a/b#\
+www.a/b#]
+www.a/b#^
+www.a/b#_
+www.a/b#`
+www.a/b#{
+www.a/b#|
+www.a/b#}
+www.a/b#~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.md
new file mode 100644
index 0000000..6858bf1
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-character-reference-like-numerical.md
@@ -0,0 +1,69 @@
+# “character reference”
+
+www.a/b# (space)
+
+www.a/b#!
+
+www.a/b#"
+
+www.a/b##
+
+www.a/b#$
+
+www.a/b#%
+
+www.a/b#&
+
+www.a/b#'
+
+www.a/b#(
+
+www.a/b#)
+
+www.a/b#*
+
+www.a/b#+
+
+www.a/b#,
+
+www.a/b#-
+
+www.a/b#
+
+www.a/b#.
+
+www.a/b#/
+
+www.a/b#:
+
+www.a/b#
+
+www.a/b#<
+
+www.a/b#=
+
+www.a/b#>
+
+www.a/b#?
+
+www.a/b#@
+
+www.a/b#[
+
+www.a/b#\
+
+www.a/b#]
+
+www.a/b#^
+
+www.a/b#_
+
+www.a/b#`
+
+www.a/b#{
+
+www.a/b#|
+
+www.a/b#}
+
+www.a/b#~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.html
new file mode 100644
index 0000000..031e671
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.html
@@ -0,0 +1,21 @@
+In autolink literal path or link end?
+https://a.com/d
+http://a.com/d
+www.a.com/d
+https://a.com/d]()
+http://a.com/d]()
+www.a.com/d]()
+In autolink literal search or link end?
+https://a.com?d
+http://a.com?d
+www.a.com?d
+https://a.com?d]()
+http://a.com?d]()
+www.a.com?d]()
+In autolink literal hash or link end?
+https://a.com#d
+http://a.com#d
+www.a.com#d
+https://a.com#d]()
+http://a.com#d]()
+www.a.com#d]()
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.md
new file mode 100644
index 0000000..f2b3f76
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/path-or-link-end.md
@@ -0,0 +1,41 @@
+In autolink literal path or link end?
+
+[https://a.com/d]()
+
+[http://a.com/d]()
+
+[www.a.com/d]()
+
+https://a.com/d]()
+
+http://a.com/d]()
+
+www.a.com/d]()
+
+In autolink literal search or link end?
+
+[https://a.com?d]()
+
+[http://a.com?d]()
+
+[www.a.com?d]()
+
+https://a.com?d]()
+
+http://a.com?d]()
+
+www.a.com?d]()
+
+In autolink literal hash or link end?
+
+[https://a.com#d]()
+
+[http://a.com#d]()
+
+[www.a.com#d]()
+
+https://a.com#d]()
+
+http://a.com#d]()
+
+www.a.com#d]()
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.html
new file mode 100644
index 0000000..8c70dc0
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.html
@@ -0,0 +1,22 @@
+Last non-markdown ASCII whitespace (FF): noreply@example.com, http://example.com, https://example.com, www.example.com
+Last non-whitespace ASCII control (US): �noreply@example.com, �http://example.com, �https://example.com, �www.example.com
+First punctuation after controls: !noreply@example.com, !http://example.com, !https://example.com, !www.example.com
+Last punctuation before digits: /noreply@example.com, /http://example.com, /https://example.com, /www.example.com
+First digit: 0noreply@example.com, 0http://example.com, 0https://example.com, 0www.example.com
+First punctuation after digits: :noreply@example.com, :http://example.com, :https://example.com, :www.example.com
+Last punctuation before caps: @noreply@example.com, @http://example.com, @https://example.com, @www.example.com
+First uppercase: Anoreply@example.com, Ahttp://example.com, Ahttps://example.com, Awww.example.com
+Punctuation after uppercase: \noreply@example.com, \http://example.com, \https://example.com, \www.example.com
+Last punctuation before lowercase (1): `noreply@example.com;
+(2) `http://example.com;
+(3) `https://example.com;
+(4) `www.example.com; (broken up to prevent code from forming)
+First lowercase: anoreply@example.com, ahttp://example.com, ahttps://example.com, awww.example.com
+First punctuation after lowercase: {noreply@example.com, {http://example.com, {https://example.com, {www.example.com
+Last punctuation: ~noreply@example.com, ~http://example.com, ~https://example.com, ~www.example.com
+First non-ASCII unicode whitespace (0x80): �noreply@example.com, �http://example.com, �https://example.com, �www.example.com
+Last non-ASCII unicode whitespace (0x3000): noreply@example.com, http://example.com, https://example.com, www.example.com
+First non-ASCII punctuation: ¡noreply@example.com, ¡http://example.com, ¡https://example.com, ¡www.example.com
+Last non-ASCII punctuation: ・noreply@example.com, ・http://example.com, ・https://example.com, ・www.example.com
+Some non-ascii: 中noreply@example.com, 中http://example.com, 中https://example.com, 中www.example.com
+Some more non-ascii: 🤷noreply@example.com, 🤷http://example.com, 🤷https://example.com, 🤷www.example.com
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.md
new file mode 100644
index 0000000..2b567f3
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous-complex.comment.md
@@ -0,0 +1,43 @@
+Last non-markdown ASCII whitespace (FF): noreply@example.com, http://example.com, https://example.com, www.example.com
+
+Last non-whitespace ASCII control (US): noreply@example.com, http://example.com, https://example.com, www.example.com
+
+First punctuation after controls: !noreply@example.com, !http://example.com, !https://example.com, !www.example.com
+
+Last punctuation before digits: /noreply@example.com, /http://example.com, /https://example.com, /www.example.com
+
+First digit: 0noreply@example.com, 0http://example.com, 0https://example.com, 0www.example.com
+
+First punctuation after digits: :noreply@example.com, :http://example.com, :https://example.com, :www.example.com
+
+Last punctuation before caps: @noreply@example.com, @http://example.com, @https://example.com, @www.example.com
+
+First uppercase: Anoreply@example.com, Ahttp://example.com, Ahttps://example.com, Awww.example.com
+
+Punctuation after uppercase: \noreply@example.com, \http://example.com, \https://example.com, \www.example.com
+
+Last punctuation before lowercase (1): `noreply@example.com;
+
+(2) `http://example.com;
+
+(3) `https://example.com;
+
+(4) `www.example.com; (broken up to prevent code from forming)
+
+First lowercase: anoreply@example.com, ahttp://example.com, ahttps://example.com, awww.example.com
+
+First punctuation after lowercase: {noreply@example.com, {http://example.com, {https://example.com, {www.example.com
+
+Last punctuation: ~noreply@example.com, ~http://example.com, ~https://example.com, ~www.example.com
+
+First non-ASCII unicode whitespace (0x80):
noreply@example.com,
http://example.com,
https://example.com,
www.example.com
+
+Last non-ASCII unicode whitespace (0x3000): noreply@example.com, http://example.com, https://example.com, www.example.com
+
+First non-ASCII punctuation: ¡noreply@example.com, ¡http://example.com, ¡https://example.com, ¡www.example.com
+
+Last non-ASCII punctuation: ・noreply@example.com, ・http://example.com, ・https://example.com, ・www.example.com
+
+Some non-ascii: 中noreply@example.com, 中http://example.com, 中https://example.com, 中www.example.com
+
+Some more non-ascii: 🤷noreply@example.com, 🤷http://example.com, 🤷https://example.com, 🤷www.example.com
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.html
new file mode 100644
index 0000000..e78660f
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.html
@@ -0,0 +1,42 @@
+HTTP
+https://a.b can start after EOF
+Can start after EOL:
+https://a.b
+Can start after tab: https://a.b.
+Can start after space: https://a.b.
+Can start after left paren (https://a.b.
+Can start after asterisk *https://a.b.
+Can start after underscore *_https://a.b.
+Can start after tilde ~https://a.b.
+www
+www.a.b can start after EOF
+Can start after EOL:
+www.a.b
+Can start after tab: www.a.b.
+Can start after space: www.a.b.
+Can start after left paren (www.a.b.
+Can start after asterisk *www.a.b.
+Can start after underscore *_www.a.b.
+Can start after tilde ~www.a.b.
+Email
+Correct character before
+a@b.c can start after EOF
+Can start after EOL:
+a@b.c
+Can start after tab: a@b.c.
+Can start after space: a@b.c.
+Can start after left paren(a@b.c.
+Can start after asterisk*a@b.c.
+While theoretically it’s possible to start at an underscore, that underscore
+is part of the email, so it’s in fact part of the link: _a@b.c.
+Can start after tilde~a@b.c.
+Others characters before
+While other characters before the email aren’t allowed by GFM, they work on
+github.com: !a@b.c, "a@b.c, #a@b.c, $a@b.c, &a@b.c, 'a@b.c, )a@b.c, +a@b.c,
+,a@b.c, -a@b.c, .a@b.c, /a@b.c, :a@b.c, ;a@b.c, <a@b.c, =a@b.c, >a@b.c, ?a@b.c,
+@a@b.c, \a@b.c, ]a@b.c, ^a@b.c, `a@b.c, {a@b.c, }a@b.c.
+Commas
+See https://github.com/remarkjs/remark/discussions/678.
+,https://github.com
+[ ,https://github.com
+[asd] ,https://github.com
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.md
new file mode 100644
index 0000000..53cb6c7
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/previous.comment.md
@@ -0,0 +1,76 @@
+# HTTP
+
+https://a.b can start after EOF
+
+Can start after EOL:
+https://a.b
+
+Can start after tab: https://a.b.
+
+Can start after space: https://a.b.
+
+Can start after left paren (https://a.b.
+
+Can start after asterisk *https://a.b.
+
+Can start after underscore *_https://a.b.
+
+Can start after tilde ~https://a.b.
+
+# www
+
+www.a.b can start after EOF
+
+Can start after EOL:
+www.a.b
+
+Can start after tab: www.a.b.
+
+Can start after space: www.a.b.
+
+Can start after left paren (www.a.b.
+
+Can start after asterisk *www.a.b.
+
+Can start after underscore *_www.a.b.
+
+Can start after tilde ~www.a.b.
+
+# Email
+
+## Correct character before
+
+a@b.c can start after EOF
+
+Can start after EOL:
+a@b.c
+
+Can start after tab: a@b.c.
+
+Can start after space: a@b.c.
+
+Can start after left paren(a@b.c.
+
+Can start after asterisk*a@b.c.
+
+While theoretically it’s possible to start at an underscore, that underscore
+is part of the email, so it’s in fact part of the link: _a@b.c.
+
+Can start after tilde~a@b.c.
+
+## Others characters before
+
+While other characters before the email aren’t allowed by GFM, they work on
+github.com: !a@b.c, "a@b.c, #a@b.c, $a@b.c, &a@b.c, 'a@b.c, )a@b.c, +a@b.c,
+,a@b.c, -a@b.c, .a@b.c, /a@b.c, :a@b.c, ;a@b.c, a@b.c, ?a@b.c,
+@a@b.c, \a@b.c, ]a@b.c, ^a@b.c, `a@b.c, {a@b.c, }a@b.c.
+
+## Commas
+
+See `https://github.com/remarkjs/remark/discussions/678`.
+
+,https://github.com
+
+[ ,https://github.com
+
+[asd] ,https://github.com
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.html
new file mode 100644
index 0000000..c54d865
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.html
@@ -0,0 +1,35 @@
+wwwtf 2?
+www.a (space)
+www.a!
+www.a"
+www.a#
+www.a$
+www.a%
+www.a&
+www.a'
+www.a(
+www.a)
+www.a*
+www.a+
+www.a,
+www.a-
+www.a
+www.a.
+www.a/
+www.a:
+www.a;
+www.a<
+www.a=
+www.a>
+www.a?
+www.a@
+www.a[
+www.a\
+www.a]
+www.a^
+www.a_
+www.a`
+www.a{
+www.a|
+www.a}
+www.a~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.md
new file mode 100644
index 0000000..9a95a77
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-continue.md
@@ -0,0 +1,69 @@
+# wwwtf 2?
+
+www.a (space)
+
+www.a!
+
+www.a"
+
+www.a#
+
+www.a$
+
+www.a%
+
+www.a&
+
+www.a'
+
+www.a(
+
+www.a)
+
+www.a*
+
+www.a+
+
+www.a,
+
+www.a-
+
+www.a
+
+www.a.
+
+www.a/
+
+www.a:
+
+www.a;
+
+www.a<
+
+www.a=
+
+www.a>
+
+www.a?
+
+www.a@
+
+www.a[
+
+www.a\
+
+www.a]
+
+www.a^
+
+www.a_
+
+www.a`
+
+www.a{
+
+www.a|
+
+www.a}
+
+www.a~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.html
new file mode 100644
index 0000000..0440ec3
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.html
@@ -0,0 +1,35 @@
+wwwtf 5?
+www.a. (space)
+www.a.!
+www.a."
+www.a.#
+www.a.$
+www.a.%
+www.a.&
+www.a.'
+www.a.(
+www.a.)
+www.a.*
+www.a.+
+www.a.,
+www.a.-
+www.a.
+www.a..
+www.a./
+www.a.:
+www.a.;
+www.a.<
+www.a.=
+www.a.>
+www.a.?
+www.a.@
+www.a.[
+www.a.\
+www.a.]
+www.a.^
+www.a._
+www.a.`
+www.a.{
+www.a.|
+www.a.}
+www.a.~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.md
new file mode 100644
index 0000000..e4d4ae4
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-dot.md
@@ -0,0 +1,69 @@
+# wwwtf 5?
+
+www.a. (space)
+
+www.a.!
+
+www.a."
+
+www.a.#
+
+www.a.$
+
+www.a.%
+
+www.a.&
+
+www.a.'
+
+www.a.(
+
+www.a.)
+
+www.a.*
+
+www.a.+
+
+www.a.,
+
+www.a.-
+
+www.a.
+
+www.a..
+
+www.a./
+
+www.a.:
+
+www.a.;
+
+www.a.<
+
+www.a.=
+
+www.a.>
+
+www.a.?
+
+www.a.@
+
+www.a.[
+
+www.a.\
+
+www.a.]
+
+www.a.^
+
+www.a._
+
+www.a.`
+
+www.a.{
+
+www.a.|
+
+www.a.}
+
+www.a.~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.html
new file mode 100644
index 0000000..c6535cb
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.html
@@ -0,0 +1,35 @@
+wwwtf?
+www. (space)
+www.!
+www."
+www.#
+www.$
+www.%
+www.&
+www.'
+www.(
+www.)
+www.*
+www.+
+www.,
+www.-
+www.
+www..
+www./
+www.:
+www.;
+www.<
+www.=
+www.>
+www.?
+www.@
+www.[
+www.\
+www.]
+www.^
+www._
+www.`
+www.{
+www.|
+www.}
+www.~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.md
new file mode 100644
index 0000000..bbe131e
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-domain-start.comment.md
@@ -0,0 +1,69 @@
+# wwwtf?
+
+www. (space)
+
+www.!
+
+www."
+
+www.#
+
+www.$
+
+www.%
+
+www.&
+
+www.'
+
+www.(
+
+www.)
+
+www.*
+
+www.+
+
+www.,
+
+www.-
+
+www.
+
+www..
+
+www./
+
+www.:
+
+www.;
+
+www.<
+
+www.=
+
+www.>
+
+www.?
+
+www.@
+
+www.[
+
+www.\
+
+www.]
+
+www.^
+
+www._
+
+www.`
+
+www.{
+
+www.|
+
+www.}
+
+www.~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.html
new file mode 100644
index 0000000..ccb3e34
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.html
@@ -0,0 +1,35 @@
+wwwtf? (4)
+www.a/b (space)
+www.a/b!
+www.a/b"
+www.a/b#
+www.a/b$
+www.a/b%
+www.a/b&
+www.a/b'
+www.a/b(
+www.a/b)
+www.a/b*
+www.a/b+
+www.a/b,
+www.a/b-
+www.a/b
+www.a/b.
+www.a/b/
+www.a/b:
+www.a/b;
+www.a/b<
+www.a/b=
+www.a/b>
+www.a/b?
+www.a/b@
+www.a/b[
+www.a/b\
+www.a/b]
+www.a/b^
+www.a/b_
+www.a/b`
+www.a/b{
+www.a/b|
+www.a/b}
+www.a/b~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.md
new file mode 100644
index 0000000..aa72955
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-continue.comment.md
@@ -0,0 +1,69 @@
+# wwwtf? (4)
+
+www.a/b (space)
+
+www.a/b!
+
+www.a/b"
+
+www.a/b#
+
+www.a/b$
+
+www.a/b%
+
+www.a/b&
+
+www.a/b'
+
+www.a/b(
+
+www.a/b)
+
+www.a/b*
+
+www.a/b+
+
+www.a/b,
+
+www.a/b-
+
+www.a/b
+
+www.a/b.
+
+www.a/b/
+
+www.a/b:
+
+www.a/b;
+
+www.a/b<
+
+www.a/b=
+
+www.a/b>
+
+www.a/b?
+
+www.a/b@
+
+www.a/b[
+
+www.a/b\
+
+www.a/b]
+
+www.a/b^
+
+www.a/b_
+
+www.a/b`
+
+www.a/b{
+
+www.a/b|
+
+www.a/b}
+
+www.a/b~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.html b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.html
new file mode 100644
index 0000000..a9f9fc1
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.html
@@ -0,0 +1,35 @@
+wwwtf? (3)
+www.a/ (space)
+www.a/!
+www.a/"
+www.a/#
+www.a/$
+www.a/%
+www.a/&
+www.a/'
+www.a/(
+www.a/)
+www.a/*
+www.a/+
+www.a/,
+www.a/-
+www.a/
+www.a/.
+www.a//
+www.a/:
+www.a/;
+www.a/<
+www.a/=
+www.a/>
+www.a/?
+www.a/@
+www.a/[
+www.a/\
+www.a/]
+www.a/^
+www.a/_
+www.a/`
+www.a/{
+www.a/|
+www.a/}
+www.a/~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.md b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.md
new file mode 100644
index 0000000..ce72b66
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/fixtures/www-path-start.comment.md
@@ -0,0 +1,69 @@
+# wwwtf? (3)
+
+www.a/ (space)
+
+www.a/!
+
+www.a/"
+
+www.a/#
+
+www.a/$
+
+www.a/%
+
+www.a/&
+
+www.a/'
+
+www.a/(
+
+www.a/)
+
+www.a/*
+
+www.a/+
+
+www.a/,
+
+www.a/-
+
+www.a/
+
+www.a/.
+
+www.a//
+
+www.a/:
+
+www.a/;
+
+www.a/<
+
+www.a/=
+
+www.a/>
+
+www.a/?
+
+www.a/@
+
+www.a/[
+
+www.a/\
+
+www.a/]
+
+www.a/^
+
+www.a/_
+
+www.a/`
+
+www.a/{
+
+www.a/|
+
+www.a/}
+
+www.a/~
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/index.js b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/index.js
new file mode 100644
index 0000000..ce81dd2
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/index.js
@@ -0,0 +1,541 @@
+import assert from 'node:assert/strict'
+import fs from 'node:fs/promises'
+import test from 'node:test'
+import {micromark} from 'micromark'
+import {rehype} from 'rehype'
+import {createGfmFixtures} from 'create-gfm-fixtures'
+import {
+ gfmAutolinkLiteral,
+ gfmAutolinkLiteralHtml
+} from 'micromark-extension-gfm-autolink-literal'
+
+test('micromark-extension-gfm-autolink-literal', async function (t) {
+ await t.test('should expose the public api', async function () {
+ assert.deepEqual(
+ Object.keys(
+ await import('micromark-extension-gfm-autolink-literal')
+ ).sort(),
+ ['gfmAutolinkLiteral', 'gfmAutolinkLiteralHtml']
+ )
+ })
+
+ await t.test(
+ 'should skip `wwwAutolink` construct if `disable.null` includes `wwwAutolink`',
+ async function () {
+ assert.equal(
+ micromark('www.a.com', {
+ extensions: [
+ gfmAutolinkLiteral(),
+ {disable: {null: ['wwwAutolink']}}
+ ],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should skip `protocolAutolink` construct if `disable.null` includes `protocolAutolink`',
+ async function () {
+ assert.equal(
+ micromark('http://a.com', {
+ extensions: [
+ gfmAutolinkLiteral(),
+ {disable: {null: ['protocolAutolink']}}
+ ],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'http://a.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should skip `emailAutolink` construct if `disable.null` includes `emailAutolink`',
+ async function () {
+ assert.equal(
+ micromark('a@b.com', {
+ extensions: [
+ gfmAutolinkLiteral(),
+ {disable: {null: ['emailAutolink']}}
+ ],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'a@b.com
'
+ )
+ }
+ )
+
+ await t.test('should support a closing paren at TLD', async function () {
+ assert.equal(
+ micromark('www.a.)', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a.)
'
+ )
+ })
+
+ await t.test('should support a no TLD', async function () {
+ assert.equal(
+ micromark('www.a b', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a b
'
+ )
+ })
+
+ await t.test('should support a path instead of TLD', async function () {
+ assert.equal(
+ micromark('www.a/b c', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a/b c
'
+ )
+ })
+
+ await t.test(
+ 'should support a replacement character in a domain',
+ async function () {
+ assert.equal(
+ micromark('www.�a', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.�a
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support non-ascii characters in a domain (http)',
+ async function () {
+ assert.equal(
+ micromark('http://點看.com', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'http://點看.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should *not* support non-ascii characters in atext (email)',
+ async function () {
+ assert.equal(
+ micromark('點看@example.com', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ '點看@example.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should *not* support non-ascii characters in a domain (email)',
+ async function () {
+ assert.equal(
+ micromark('example@點看.com', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'example@點看.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support non-ascii characters in a domain (www)',
+ async function () {
+ assert.equal(
+ micromark('www.點看.com', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.點看.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support non-ascii characters in a path',
+ async function () {
+ assert.equal(
+ micromark('www.a.com/點看', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a.com/點看
'
+ )
+ }
+ )
+
+ await t.test('should support a dash to start a domain', async function () {
+ assert.equal(
+ micromark('www.-a.b', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.-a.b
'
+ )
+ })
+
+ await t.test('should support a dollar as a domain name', async function () {
+ assert.equal(
+ micromark('www.$', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.$
'
+ )
+ })
+
+ await t.test(
+ 'should support adjacent dots in a domain name',
+ async function () {
+ assert.equal(
+ micromark('www.a..b.c', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a..b.c
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support named character references in domains',
+ async function () {
+ assert.equal(
+ micromark('www.a&a;', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'www.a&a;
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support a closing paren and period after a path',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc/d/e/).', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc/d/e/).
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support a period and closing paren after a path',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc/d/e/.)', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc/d/e/.)
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support a closing paren and period after a domain',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc).', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc).
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support a period and closing paren after a domain',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc.)', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc.)
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support a closing paren and period in a path',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc).d', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc).d
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support a period and closing paren in a path',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc.)d', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc.)d
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support two closing parens in a path',
+ async function () {
+ assert.equal(
+ micromark('https://a.bc/))d', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'https://a.bc/))d
'
+ )
+ }
+ )
+
+ await t.test('should not support ftp links', async function () {
+ assert.equal(
+ micromark('ftp://a/b/c.txt', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ 'ftp://a/b/c.txt
'
+ )
+ })
+
+ // Note: GH comments/issues/PRs do not link this, but Gists/readmes do.
+ // await t.test(
+ // 'should support www links after Unicode punctuation',
+ // async function () {
+ // assert.equal(
+ // micromark(',www.example.com', {
+ // extensions: [gfmAutolinkLiteral()],
+ // htmlExtensions: [gfmAutolinkLiteralHtml()]
+ // }),
+ // ',www.example.com
'
+ // )
+ // }
+ // )
+
+ await t.test(
+ 'should support http links after Unicode punctuation',
+ async function () {
+ assert.equal(
+ micromark(',https://example.com', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ ',https://example.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should support email links after Unicode punctuation',
+ async function () {
+ assert.equal(
+ micromark(',example@example.com', {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }),
+ ',example@example.com
'
+ )
+ }
+ )
+
+ await t.test(
+ 'should not link character reference for `:`',
+ async function () {
+ assert.equal(
+ micromark(
+ 'http://user:password@host:port/path?key=value#fragment',
+ {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ }
+ ),
+ 'http://user:password@host:port/path?key=value#fragment
'
+ )
+ }
+ )
+})
+
+test('fixtures', async function (t) {
+ const base = new URL('fixtures/', import.meta.url)
+
+ await createGfmFixtures(base)
+
+ const files = await fs.readdir(base)
+ const extname = '.md'
+
+ for (const d of files) {
+ if (!d.endsWith(extname)) {
+ continue
+ }
+
+ const name = d.slice(0, -extname.length)
+
+ await t.test(name, async function () {
+ const input = await fs.readFile(new URL(name + '.md', base))
+ let expected = String(await fs.readFile(new URL(name + '.html', base)))
+ let actual = micromark(input, {
+ extensions: [gfmAutolinkLiteral()],
+ htmlExtensions: [gfmAutolinkLiteralHtml()]
+ })
+
+ // Format the character references.
+ actual = String(
+ await rehype()
+ .use({settings: {fragment: true}})
+ .process(actual)
+ )
+
+ // GH replaces some control codes.
+ // eslint-disable-next-line no-control-regex
+ actual = actual.replace(/[\u001F\u0085]/g, '�')
+
+ // GH strips images that point to just a search or hash.
+ actual = actual.replace(/src="[?#][^"]*"/g, 'src=""')
+
+ // GH doesn’t “fix” the percent-encoding of percentages.
+ expected = expected.replace(/%">/g, '%25">')
+
+ // We’re using GHs algo on comments to compare, but we don’t want hard
+ // breaks.
+ expected = expected.replace(/
\n/g, '\n')
+
+ // GH, on comments, does not support algo 2 for www, http, and https links.
+ // But it *does* support them for mailto links.
+ // We can’t do algo 2 because that requires an AST, so revert the mailto.
+ if (
+ name === 'combined-with-images.comment' ||
+ name === 'combined-with-links.comment'
+ ) {
+ expected = expected.replace(
+ /\[a@b\.c<\/a>/g,
+ '[a@b.c'
+ )
+ }
+
+ // GitHub’s own algorithm to parse autolink literals contains bugs.
+ // See: GFM autolink extension (`www.`, `https?://` parts): links don’t work when after bracket
+ //
+ if (name === 'brackets.comment') {
+ expected = expected
+ .replace(
+ /\[]www\.a\.com©b/,
+ '[]www.a.com©b'
+ )
+ .replace(
+ /\[\[]]www\.a\.com©b/,
+ '[[]]www.a.com©b'
+ )
+ }
+
+ if (name === 'combined-with-links.comment') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a\.com]<\/a><\/p>/g, 'a.com]
')
+ }
+
+ if (name === 'domain-character-reference-like-named') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a&b]<\/a><\/p>/g, 'a&b]')
+ }
+
+ if (name === 'domain-character-reference-like-numerical') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a#]<\/a><\/p>/g, 'a#]')
+ }
+
+ if (name === 'http-domain-continue') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a]<\/a><\/p>/g, 'a]')
+ }
+
+ if (name === 'http-path-continue') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a\/b]<\/a><\/p>/g, 'a/b]')
+ }
+
+ if (name === 'http-path-start') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a\/]<\/a><\/p>/g, 'a/]')
+ }
+
+ if (name === 'path-character-reference-like-named') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/b&c]<\/a><\/p>/g, 'b&c]')
+ }
+
+ if (name === 'path-character-reference-like-numerical') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/b#]<\/a><\/p>/g, 'b#]')
+ }
+
+ if (name === 'path-or-link-end') {
+ expected = expected
+ .replace(/%5D\(\)">/g, '">')
+ .replace(/d]\(\)<\/a><\/p>/g, 'd]()')
+ }
+
+ if (name === 'www-domain-continue') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/a]<\/a><\/p>/g, 'a]')
+ }
+
+ if (name === 'www-domain-dot') {
+ expected = expected
+ .replace(/\.%5D">/g, '">')
+ .replace(/a\.]<\/a><\/p>/g, 'a.]')
+ }
+
+ if (name === 'www-domain-start.comment') {
+ expected = expected
+ .replace(/\.%5D">/g, '">')
+ .replace(/\.]<\/a><\/p>/g, '.]')
+ }
+
+ if (name === 'www-path-continue.comment') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/b]<\/a><\/p>/g, 'b]')
+ }
+
+ if (name === 'www-path-start.comment') {
+ expected = expected
+ .replace(/%5D">/g, '">')
+ .replace(/\/]<\/a><\/p>/g, '/]')
+ }
+
+ assert.equal(actual, expected)
+ })
+ }
+})
diff --git a/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/license b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/license
new file mode 100644
index 0000000..3937235
--- /dev/null
+++ b/packages/tinylinkify/test/suites/micromark-extension-gfm-autolink-literal-2.1.0/license
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2020 Titus Wormer
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/packages/tinylinkify/tsconfig.json b/packages/tinylinkify/tsconfig.json
new file mode 100644
index 0000000..31a4337
--- /dev/null
+++ b/packages/tinylinkify/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "compilerOptions": {
+ "noEmit": true,
+ "strict": true,
+ "noUncheckedIndexedAccess": true,
+ "target": "esnext",
+ "lib": ["esnext", "dom"],
+ "module": "nodenext",
+ "moduleResolution": "nodenext",
+ "allowImportingTsExtensions": true,
+ "erasableSyntaxOnly": true,
+ "verbatimModuleSyntax": true,
+ "skipLibCheck": true,
+ "types": ["node"]
+ },
+ "include": ["src", "test", "scripts", "bench", "vite.config.ts"]
+}
diff --git a/packages/tinylinkify/vite.config.ts b/packages/tinylinkify/vite.config.ts
new file mode 100644
index 0000000..00d9634
--- /dev/null
+++ b/packages/tinylinkify/vite.config.ts
@@ -0,0 +1,31 @@
+import { defineConfig } from "vite-plus";
+
+export default defineConfig({
+ // ESM only, with types, and publint fails the build on a broken package.json.
+ pack: {
+ entry: {
+ index: "src/index.ts",
+ "linkify-it": "src/linkify-it/index.ts",
+ gfm: "src/gfm/index.ts",
+ },
+ format: ["esm"],
+ platform: "neutral",
+ fixedExtension: true,
+ dts: true,
+ clean: true,
+ publint: true,
+ },
+ test: {
+ include: ["test/**/*.test.ts"],
+ // The conformance tests shell out to scripts that run thousands of inputs.
+ testTimeout: 120_000,
+ },
+ staged: {
+ "*": "vp check --fix",
+ },
+ fmt: { ignorePatterns: ["**/dist/**", ".cache/**", "test/suites/**"] },
+ lint: {
+ ignorePatterns: ["**/dist/**", ".cache/**", "test/suites/**"],
+ options: { typeAware: true, typeCheck: false },
+ },
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6ec8222..06d2545 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -207,7 +207,7 @@ importers:
version: 1.9.0(next@16.4.3(@babel/core@7.29.7(supports-color@10.2.2))(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))
nuxt:
specifier: npm:nuxt-nightly@5x
- version: nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332)
+ version: nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036)
shiki:
specifier: ^4.5.0
version: 4.5.0
@@ -377,6 +377,57 @@ importers:
specifier: ^1.4.0
version: 1.4.0(@types/node@26.6.6)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(terser@5.51.2)(tsx@4.23.15)(typescript@7.0.2)(yaml@2.9.1)
+ packages/tinylinkify:
+ devDependencies:
+ '@types/linkify-it':
+ specifier: 5.0.0
+ version: 5.0.0
+ '@types/node':
+ specifier: ^26.6.6
+ version: 26.6.6
+ esbuild:
+ specifier: ^0.28.2
+ version: 0.28.2
+ linkify-it:
+ specifier: 5.0.2
+ version: 5.0.2
+ markdown-exit:
+ specifier: 1.3.0
+ version: 1.3.0
+ mdast-util-from-markdown:
+ specifier: 2.1.0
+ version: 2.1.0(supports-color@10.2.2)
+ mdast-util-gfm-autolink-literal:
+ specifier: 2.1.0
+ version: 2.1.0
+ micromark-extension-gfm-autolink-literal:
+ specifier: 2.1.0
+ version: 2.1.0
+ publint:
+ specifier: ^0.3.25
+ version: 0.3.25
+ remark-gfm:
+ specifier: 4.0.1
+ version: 4.0.1(supports-color@10.2.2)
+ remark-parse:
+ specifier: 11.0.0
+ version: 11.0.0(supports-color@10.2.2)
+ tsrs:
+ specifier: 0.20.1-ts7.1.0-beta
+ version: 0.20.1-ts7.1.0-beta
+ typescript:
+ specifier: ^7.0.2
+ version: 7.0.2
+ uc.micro:
+ specifier: 2.1.0
+ version: 2.1.0
+ unified:
+ specifier: 11.0.5
+ version: 11.0.5
+ vite-plus:
+ specifier: ^1.4.0
+ version: 1.4.0(@types/node@26.6.6)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(terser@5.51.2)(tsx@4.23.15)(typescript@7.0.2)(yaml@2.9.1)
+
packages/tinyswap:
dependencies:
'@clack/prompts':
@@ -873,8 +924,8 @@ packages:
resolution: {integrity: sha512-OoKoR0f76dCY666JlcbhmVTs2drYj1GUXZTYTcbUgJjh9Nv41aFfZ21bPQTERm5+L5cBDo466NltB2lplS5GBw==}
engines: {node: '>=20.19.0'}
- '@devframes/hub-ui-onboard@1.3.0':
- resolution: {integrity: sha512-goYPJFKExwkg90xkp/Opf7mVtvlrv4dhbOvhTV1AYBWcd2IiTbFLkTN+wNaIq3odX7JxzNuAtxjoU4YFw6hHYg==}
+ '@devframes/hub-ui-onboard@1.3.2':
+ resolution: {integrity: sha512-6Zm+XvrjTLFLAPkqi8jhkS1nLEYfqiozxB2rf5sHbiH7SJkxPp/B3EDcS5XTbQkURbHdVqjbbN0q3dOw5B4MFg==}
'@drizzle-team/brocli@0.10.2':
resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}
@@ -1958,8 +2009,8 @@ packages:
'@nodable/entities@3.1.0':
resolution: {integrity: sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ==}
- '@nuxt/cli-nightly@4.0.1-2610292127-cd8f364':
- resolution: {integrity: sha512-h6Xh2F8NQO358LPmdhpoSDCqaUs/vEkIPJXsMD+NqWkCZoeAeuLzLU7nUI2nqoCXifJ1W8fdgfR6a70ORWUwvA==}
+ '@nuxt/cli-nightly@4.0.3-2611062342-db93607':
+ resolution: {integrity: sha512-0Ynyi+vooBC3jcRzfjZ0uI/VkJvXOtoxmohiYP6Rm088rGR/ODNbQ47CCIXOl1QA6i5h+jt5nXxo3koBPKao7g==}
engines: {node: ^22.21.0 || ^24.11.0 || >=26.0.0}
hasBin: true
peerDependencies:
@@ -1988,8 +2039,8 @@ packages:
peerDependencies:
vite: '>=6.0'
- '@nuxt/devtools-onboard@4.0.0':
- resolution: {integrity: sha512-XE+eZZaQMkHZJ7OQQmxgszmCQN3kKD+Sq0k7qPLl2PhDzw1LXZhuGRbokD3CkbvDeraH1QCk2PgVfFrheMzp1Q==}
+ '@nuxt/devtools-onboard@4.1.0':
+ resolution: {integrity: sha512-B+zhuU+DLILo/huCh81MNnNVjh/FrxILoBRhmZgoh44oIOFAOdrQJ362xpdAbm2cdP3wXGAPVjTzQTeZ2EGMgw==}
peerDependencies:
'@nuxt/devtools': '*'
'@nuxt/kit': ^4.0.0-0 || ^5.0.0-0
@@ -2011,11 +2062,11 @@ packages:
'@vitejs/devtools':
optional: true
- '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8':
- resolution: {integrity: sha512-P90VIlYS8HY2+tvGgoaSCXn5c1zO3LDsd5BT5yMss8FUrqZGAlxQw0CG5/8KULGtHkxiiaaLz6LyKSZRGIVUhw==}
+ '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c':
+ resolution: {integrity: sha512-Jx6RkQAgZGq8o1HCHQHnKKZpLgEsotMwL5PqVBTZYI93gia6EbVMVVv3o11j38Z5sCNDfWk6WnhAVoWYSESkYw==}
engines: {node: ^20.19.0 || >=22.12.0}
peerDependencies:
- '@nuxt/schema': npm:@nuxt/schema-nightly@5.0.0-2611010234-c709ec8
+ '@nuxt/schema': npm:@nuxt/schema-nightly@5.0.0-2611071848-2d8337c
confbox: '>=0.1.0'
dotenv: '*'
giget: '>=3.1.0'
@@ -2075,14 +2126,14 @@ packages:
rolldown:
optional: true
- '@nuxt/nitro-server-nightly@5.0.0-2611010234-c709ec8':
- resolution: {integrity: sha512-m2kDM48xsUz8CbAEBu213AWJs1vrLfrxXmrSLms3CGd4dl1JLDFuquf3IVE4+zkCbCneWWugN8j5VLA5u7JOHw==}
+ '@nuxt/nitro-server-nightly@5.0.0-2611071848-2d8337c':
+ resolution: {integrity: sha512-+QJ5g/oUAGSwahxNxETNqMGrOyYmZbPhj2D9aEIIZfkORWTURNiDrlo0q3gp4e7IYis9sg74cPedCI2I0A5Phg==}
engines: {node: ^22.22.0 || ^24.11.0 || >=26.0.0}
peerDependencies:
'@babel/plugin-proposal-decorators': ^7.25.0 || ^8.0.0
'@babel/plugin-syntax-typescript': ^7.25.0 || ^8.0.0
'@rollup/plugin-babel': ^6.0.0 || ^7.0.0
- nuxt: npm:nuxt-nightly@5.0.0-2611010234-c709ec8
+ nuxt: npm:nuxt-nightly@5.0.0-2611071848-2d8337c
peerDependenciesMeta:
'@babel/plugin-proposal-decorators':
optional: true
@@ -2091,8 +2142,8 @@ packages:
'@rollup/plugin-babel':
optional: true
- '@nuxt/schema-nightly@5.0.0-2611010234-c709ec8':
- resolution: {integrity: sha512-dpE2eGvH4zDM8e5NcPOFpyYqfmrOa32/GK6VmZxlda/EZ1xYU/w73w15cmSUZL62E2A5Jtn6gUSSwX8Fv/LM5w==}
+ '@nuxt/schema-nightly@5.0.0-2611071848-2d8337c':
+ resolution: {integrity: sha512-umFTUISTwwqcWT2V8wPP77pXDuk8CVRAGvUOOZ6FSSflV/K0Qya1RwBehDdyOK8SpWjOR2OGOOiwBeG6DKnHsg==}
engines: {node: ^14.18.0 || >=16.10.0}
'@nuxt/telemetry@2.9.1':
@@ -2102,8 +2153,8 @@ packages:
peerDependencies:
'@nuxt/kit': '>=3.0.0'
- '@nuxt/vite-builder-nightly@5.0.0-2611010234-c709ec8':
- resolution: {integrity: sha512-zF7Kgdu6WEtBd7ebNVoZNvjdZS0ff1T472UPiEygqFPkbYB29JB23DquBMFPSY6QTAbA0AntjXdYiKwjAiAitQ==}
+ '@nuxt/vite-builder-nightly@5.0.0-2611071848-2d8337c':
+ resolution: {integrity: sha512-bMFeDDE4oDfn3E1SUVD6j68bTmSrxorMrVXJX4jo4Li+UZuYZ9YwVe5GmJ6JXTZWwv37rRorIIxGOjRrwL8yIQ==}
engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0}
peerDependencies:
'@babel/plugin-proposal-decorators': ^7.25.0 || ^8.0.0
@@ -2111,7 +2162,7 @@ packages:
'@vitejs/plugin-vue-jsx': ^5.1.5
autoprefixer: ^10.4.27
cssnano: ^7.1.3 || ^8.0.0 || ^9.0.0
- nuxt: npm:nuxt-nightly@5.0.0-2611010234-c709ec8
+ nuxt: npm:nuxt-nightly@5.0.0-2611071848-2d8337c
rolldown: ^1.1.5
rollup-plugin-visualizer: ^6.0.0 || ^7.0.1
vue: ^3.3.4
@@ -2129,11 +2180,11 @@ packages:
rollup-plugin-visualizer:
optional: true
- '@nuxt/vite-server-nightly@5.0.0-2611010234-c709ec8':
- resolution: {integrity: sha512-Z8plnjKwpj7uB91wFoQtNDOtD3n6uRF9pKjofMwr3b/De2O5JsdwVF8qQilgeHjOcY82AqKGSxpxuIv7CmVYRg==}
+ '@nuxt/vite-server-nightly@5.0.0-2611071848-2d8337c':
+ resolution: {integrity: sha512-XcRoLWuqNyxkFIv8yQqFFrFcBcbNSoObPEPRuZjZIFo356pw65B03lwuDAOQ+1JnAGqNqOdz70eE0phylgmglw==}
engines: {node: ^22.22.0 || ^24.11.0 || >=26.0.0}
peerDependencies:
- nuxt: npm:nuxt-nightly@5.0.0-2611010234-c709ec8
+ nuxt: npm:nuxt-nightly@5.0.0-2611071848-2d8337c
vite: ^8.3.5
'@oclif/core@4.11.4':
@@ -7599,8 +7650,8 @@ packages:
mdast-util-from-markdown@2.1.0:
resolution: {integrity: sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==}
- mdast-util-gfm-autolink-literal@2.0.1:
- resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==}
+ mdast-util-gfm-autolink-literal@2.1.0:
+ resolution: {integrity: sha512-Jx6QSK8wDo558Bcf7q+1pe0v81g2PVs09Hlvu9xJHmCFRF3sAPW7vXFVIAwBncs3sde92WbsVqNxwdqViA2XnQ==}
mdast-util-gfm-footnote@2.1.0:
resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==}
@@ -7822,6 +7873,10 @@ packages:
resolution: {integrity: sha512-t9VmxaqrmANnEOBhpSDI6HD192Ge48k8vmWqQQL7hSFEqHEYwZbbsu49+aKLWZeRvFs3j1pMhXOqqF4kPlvjkQ==}
engines: {node: '>=18.0.0'}
+ modern-tar@0.8.6:
+ resolution: {integrity: sha512-LYSks0tNVqbtez/9OB0YFP6qLRSqkdAxJWOQpVaR67lNTbj2zNLyYpowkRMia5lXLCZKzxwoxkxH2MbbBR2aEg==}
+ engines: {node: '>=18.0.0'}
+
mountx@0.0.2:
resolution: {integrity: sha512-9e9DB2zUA0gCk5d7EzaN4o4+R8+36Fn7NzEhCibe8FlaN3xDC9JtDcEotI3q++ENOcxzByzIPIOoiztZn/TIUg==}
hasBin: true
@@ -7852,8 +7907,8 @@ packages:
muggle-string@0.4.1:
resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
- my-bad@0.2.11:
- resolution: {integrity: sha512-K1R6DRz31BR7YYaDDLRr97XWKWku3SQhHKpDgz7i/VS3O3pvphIzbJIrrEXupSEmPtZElY9UzCrDc0nWvG4HyA==}
+ my-bad@0.2.12:
+ resolution: {integrity: sha512-AUIllvH8rjgkGEHEBcHbKmQyq2G8mhZ+U7kOhh7UKhS6cZROFHOP5KQ2uo13IcXbK7CWxEyfs/hNNKuz6x42TQ==}
engines: {node: '>=22.12.0'}
peerDependencies:
vite: '>=6'
@@ -7878,9 +7933,6 @@ packages:
resolution: {integrity: sha512-FixtE239Gl6Gz0ZGCK0WzvNwObNCIwVT+L7zQcf1QgcA6AzBxblzqe9OT88qiucNkhsjSOqiogSaF5jVbJiqSA==}
engines: {node: ^20.0.0 || >=22.0.0}
- nanotar@0.3.0:
- resolution: {integrity: sha512-Kv2JYYiCzt16Kt5QwAc9BFG89xfPNBx+oQL4GQXD9nLqPkZBiNaqaCWtwnbk/q7UVsTYevvM1b0UF8zmEI4pCg==}
-
napi-build-utils@2.0.0:
resolution: {integrity: sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==}
@@ -7920,8 +7972,8 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
- nitro@3.0.261029-rc:
- resolution: {integrity: sha512-BQvzAV0HgcsJCkDqZAbGYlGNi9ALJznhsihugYAIi+8IcItz320FNaxbAJvn/pMNxGOYo2MGs10mTU9tcnB9jQ==}
+ nitro@3.0.261103-rc:
+ resolution: {integrity: sha512-tLD7r5fWCtwnQEE4ZkckLUnx1wkWDaLY48dD+BCJtcQ+srSWAUpxJEK3YfTsgN3v+e4UgBYRzuR7zV7Sqns/zA==}
engines: {node: '>=22.22.0'}
hasBin: true
@@ -8006,15 +8058,15 @@ packages:
nth-check@2.1.1:
resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
- nuxt-nightly@5.0.0-2611010234-c709ec8:
- resolution: {integrity: sha512-d5dqjhG3rQ/ixOndiV5+krB2EQ5H4P3ifEYdPCziJ8DOgikrVT1KPOuDNiuPlzDYEmYZI2AtGjgURjcOd0dZqA==}
+ nuxt-nightly@5.0.0-2611071848-2d8337c:
+ resolution: {integrity: sha512-MTn51U4LLHnm0q1GSV4DXOn0BI4MHgSv6stPORxtkmTxFd6bU463h/PYbF1ZEX2ELjAvMnI5twh+XBBsWlbj/w==}
engines: {node: ^22.22.0 || ^24.11.0 || >=26.0.0}
hasBin: true
peerDependencies:
'@parcel/watcher': ^2.1.0
'@types/node': '>=18.12.0'
jiti: ^2.7.0
- nuxt: npm:nuxt-nightly@5.0.0-2611010234-c709ec8
+ nuxt: npm:nuxt-nightly@5.0.0-2611071848-2d8337c
rolldown: ^1.1.5
peerDependenciesMeta:
'@parcel/watcher':
@@ -9281,8 +9333,8 @@ packages:
webpack:
optional: true
- unrouting@0.3.1:
- resolution: {integrity: sha512-gBrZaBzhZdvnA6eZiDDAbwx2/5sTslga/LqvqrFbdMg4EDcLsvKZuwLcTaOauv2UnVcVz6pb8FlEXhP4VuEqpw==}
+ unrouting@0.3.2:
+ resolution: {integrity: sha512-TwF00VzMVh6O+l5RaDxfVus9DzN38f1lksgaVzwJA5wwpYT8lCqceNzVE4w93zPuUu0A0y35dadXeCWDVNtVgA==}
unstorage@1.17.6:
resolution: {integrity: sha512-gjKtcmn/KwZuJZO9o2sc0esAQnhmTw0LviDHwevTXbJMYs0dRTp8ZEEWXHU0vTpzbN3cA0yxlTeyXssMp3zDqw==}
@@ -9673,8 +9725,8 @@ packages:
jsdom:
optional: true
- vue-bundle-renderer@2.4.0:
- resolution: {integrity: sha512-IxHopQZgzTGBiuGERrQrAS7Lr3dCv+qxvgirEgCUFGAD4gYNfiaGYzC1DDojeZmJAmehp9gG8+17PGuVP6Ab2Q==}
+ vue-bundle-renderer@2.5.0:
+ resolution: {integrity: sha512-1dFEyECSjbpSXjblL5b7T/JWtxsABoSgmYaCrxih5Khuy67AOjd7YZnaaqQTzggy12glZl85zSjJ2utuJa8/nA==}
vue-component-type-helpers@3.3.14:
resolution: {integrity: sha512-Pq3+OnbCiPCHk0R7KSZrx+j/XXaUn2kSQ1epxq60w8CPbByLjC1EJgV51n4WY851sTXUVzsNMuitywdkdVyKjA==}
@@ -10500,7 +10552,7 @@ snapshots:
'@csstools/css-tokenizer@4.0.2':
optional: true
- '@devframes/hub-ui-onboard@1.3.0':
+ '@devframes/hub-ui-onboard@1.3.2':
dependencies:
nostics: 1.3.0
package-manager-detector: 1.9.0
@@ -10509,10 +10561,10 @@ snapshots:
'@drizzle-team/brocli@0.10.2':
optional: true
- '@dxup/nuxt@0.5.10(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
+ '@dxup/nuxt@0.5.10(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
dependencies:
'@dxup/unimport': 0.1.2
- '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
+ '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
'@vue/compiler-dom': 3.5.44
chokidar: 5.0.0
knitwork: 1.3.0
@@ -11288,7 +11340,7 @@ snapshots:
'@nodable/entities@3.1.0':
optional: true
- '@nuxt/cli-nightly@4.0.1-2610292127-cd8f364(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(jiti@2.7.0)(oxc-parser@0.148.0)(rolldown@1.2.16)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
+ '@nuxt/cli-nightly@4.0.3-2611062342-db93607(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(jiti@2.7.0)(oxc-parser@0.148.0)(rolldown@1.2.16)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
dependencies:
'@clack/prompts': 1.8.1
args-tokenizer: 0.3.0
@@ -11299,7 +11351,7 @@ snapshots:
exsolve: 1.2.0
fuzzysort: 4.0.2
get-port-please: 3.2.0
- my-bad: 0.2.11(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ my-bad: 0.2.12(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
obug: 3.0.0
package-manager-detector: 1.9.0
pathe: 2.0.3
@@ -11314,16 +11366,16 @@ snapshots:
uqr: 0.1.3
verkit: 0.5.0
optionalDependencies:
- '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611010234-c709ec8'
+ '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611071848-2d8337c'
jiti: 2.7.0
oxc-parser: 0.148.0
rolldown: 1.2.16
transitivePeerDependencies:
- vite
- '@nuxt/devtools-kit@3.4.4(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
+ '@nuxt/devtools-kit@3.4.4(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
dependencies:
- '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
+ '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
execa: 8.0.1
vite: 8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)
transitivePeerDependencies:
@@ -11339,13 +11391,13 @@ snapshots:
- unplugin
optional: true
- '@nuxt/devtools-onboard@4.0.0(3f310342ce68078f848dce1ca2838e16)':
+ '@nuxt/devtools-onboard@4.1.0(89429ac6a754ca505e69dc9593f93395)':
dependencies:
- '@devframes/hub-ui-onboard': 1.3.0
- '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
+ '@devframes/hub-ui-onboard': 1.3.2
+ '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
pkg-types: 2.4.0
optionalDependencies:
- '@nuxt/devtools': 3.4.4(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(confbox@0.2.4)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(dotenv@17.4.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
+ '@nuxt/devtools': 3.4.4(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(confbox@0.2.4)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(dotenv@17.4.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
'@nuxt/devtools-wizard@3.4.4':
dependencies:
@@ -11359,11 +11411,11 @@ snapshots:
semver: 7.8.5
optional: true
- '@nuxt/devtools@3.4.4(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(confbox@0.2.4)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(dotenv@17.4.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))':
+ '@nuxt/devtools@3.4.4(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(confbox@0.2.4)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(dotenv@17.4.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))':
dependencies:
- '@nuxt/devtools-kit': 3.4.4(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ '@nuxt/devtools-kit': 3.4.4(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
'@nuxt/devtools-wizard': 3.4.4
- '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
+ '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
'@vue/devtools-core': 8.2.1(vue@3.5.44(typescript@7.0.2))
'@vue/devtools-kit': 8.2.1
birpc: 4.2.0
@@ -11391,7 +11443,7 @@ snapshots:
tinyglobby: 0.2.17
unstorage: 1.17.6(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(ioredis@5.11.1(supports-color@10.2.2))
vite: 8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)
- vite-plugin-inspect: 11.4.1(@nuxt/kit@4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ vite-plugin-inspect: 11.4.1(@nuxt/kit@4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
vite-plugin-vue-tracer: 1.6.0(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
which: 6.0.1
ws: 8.22.0
@@ -11430,7 +11482,7 @@ snapshots:
- vue
optional: true
- '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))':
+ '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))':
dependencies:
consola: 3.4.2
defu: 6.1.7
@@ -11451,7 +11503,7 @@ snapshots:
unctx: 3.0.1(magic-string@1.4.5)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
verkit: 0.5.0
optionalDependencies:
- '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611010234-c709ec8'
+ '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611071848-2d8337c'
confbox: 0.2.4
dotenv: 17.4.2
giget: 3.3.1
@@ -11489,7 +11541,7 @@ snapshots:
- magicast
optional: true
- '@nuxt/kit@4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))':
+ '@nuxt/kit@4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))':
dependencies:
consola: 3.4.2
defu: 6.1.7
@@ -11510,7 +11562,7 @@ snapshots:
unctx: 3.0.1(magic-string@1.4.5)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
verkit: 0.5.0
optionalDependencies:
- '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611010234-c709ec8'
+ '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611071848-2d8337c'
confbox: 0.2.4
dotenv: 17.4.2
giget: 3.3.1
@@ -11522,10 +11574,10 @@ snapshots:
- magic-string
- unplugin
- '@nuxt/nitro-server-nightly@5.0.0-2611010234-c709ec8(@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.7(supports-color@10.2.2)))(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(@oxc-project/types@0.156.0)(acorn@8.19.0)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332))(oxc-parser@0.148.0)(rollup@4.67.2)(typescript@7.0.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
+ '@nuxt/nitro-server-nightly@5.0.0-2611071848-2d8337c(@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.7(supports-color@10.2.2)))(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(@oxc-project/types@0.156.0)(acorn@8.19.0)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036))(oxc-parser@0.148.0)(rollup@4.67.2)(typescript@7.0.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
dependencies:
'@ampproject/remapping': 2.3.0
- '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
+ '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
'@unhead/vue': 3.4.3(@oxc-project/types@0.156.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
consola: 3.4.2
defu: 6.1.7
@@ -11539,10 +11591,10 @@ snapshots:
klona: 2.0.6
magic-string: 1.4.5
mocked-exports: 0.1.1
- my-bad: 0.2.11(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
- nitro: 3.0.261029-rc
+ my-bad: 0.2.12(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ nitro: 3.0.261103-rc
nostics: 1.3.0
- nuxt: nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332)
+ nuxt: nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036)
ofetch: 2.0.0-alpha.3
ohash: 2.0.12
pathe: 2.0.3
@@ -11555,10 +11607,10 @@ snapshots:
unenv: 2.0.0-rc.24
unimport: 7.0.2(acorn@8.19.0)(esbuild@0.28.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
- unrouting: 0.3.1
+ unrouting: 0.3.2
unstorage: 2.0.0-beta.0
vue: 3.5.44(typescript@7.0.2)
- vue-bundle-renderer: 2.4.0
+ vue-bundle-renderer: 2.5.0
vue-devtools-stub: 0.1.0
optionalDependencies:
'@babel/plugin-syntax-typescript': 7.29.7(@babel/core@7.29.7(supports-color@10.2.2))
@@ -11586,7 +11638,7 @@ snapshots:
- vite
- webpack
- '@nuxt/schema-nightly@5.0.0-2611010234-c709ec8':
+ '@nuxt/schema-nightly@5.0.0-2611071848-2d8337c':
dependencies:
'@vue/shared': 3.5.44
defu: 6.1.7
@@ -11595,17 +11647,17 @@ snapshots:
pkg-types: 2.4.0
std-env: 4.3.0
- '@nuxt/telemetry@2.9.1(@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))':
+ '@nuxt/telemetry@2.9.1(@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))':
dependencies:
- '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
+ '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
citty: 0.2.2
consola: 3.4.2
rc9: 3.1.0
std-env: 4.3.0
- '@nuxt/vite-builder-nightly@5.0.0-2611010234-c709ec8(1d871e795c351775687ce4af1cbdcedf)':
+ '@nuxt/vite-builder-nightly@5.0.0-2611071848-2d8337c(7c6993ff468fc2cb06efbc4fb622dd7c)':
dependencies:
- '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
+ '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
'@vitejs/plugin-vue': 6.0.10(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
clickable-path: 0.1.1
consola: 3.4.2
@@ -11617,8 +11669,8 @@ snapshots:
js-tokens: 10.0.0
knitwork: 1.3.0
mocked-exports: 0.1.1
- my-bad: 0.2.11(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
- nuxt: nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332)
+ my-bad: 0.2.12(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ nuxt: nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036)
pathe: 2.0.3
pkg-types: 2.4.0
rolldown: 1.2.16
@@ -11631,7 +11683,7 @@ snapshots:
vite-node: 6.0.0(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)
vite-plugin-checker: 0.14.5(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2))(optionator@0.9.4)(oxlint@1.89.0(oxlint-tsgolint@7.0.2004)(vite-plus@1.4.0(@types/node@26.6.6)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(terser@5.51.2)(tsx@4.23.15)(typescript@7.0.2)(yaml@2.9.1)))(typescript@7.0.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
vue: 3.5.44(typescript@7.0.2)
- vue-bundle-renderer: 2.4.0
+ vue-bundle-renderer: 2.5.0
optionalDependencies:
'@babel/plugin-syntax-jsx': 7.29.7(@babel/core@7.29.7(supports-color@10.2.2))
'@vitejs/plugin-vue-jsx': 5.1.6(supports-color@10.2.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
@@ -11668,15 +11720,15 @@ snapshots:
- vue-tsc
- yaml
- '@nuxt/vite-server-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332))(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
+ '@nuxt/vite-server-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036))(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))':
dependencies:
- '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
+ '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
clickable-path: 0.1.1
defu: 6.1.7
exsolve: 1.2.0
mocked-exports: 0.1.1
- my-bad: 0.2.11(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
- nuxt: nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332)
+ my-bad: 0.2.12(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ nuxt: nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036)
pathe: 2.0.3
rou3: 1.0.0
srvx: 1.0.8
@@ -12611,7 +12663,6 @@ snapshots:
'@types/debug@4.1.13':
dependencies:
'@types/ms': 2.1.0
- optional: true
'@types/deep-eql@4.0.2': {}
@@ -12640,8 +12691,7 @@ snapshots:
'@types/mdurl@2.0.0': {}
- '@types/ms@2.1.0':
- optional: true
+ '@types/ms@2.1.0': {}
'@types/node@24.19.2':
dependencies:
@@ -14560,8 +14610,7 @@ snapshots:
b4a@1.9.0:
optional: true
- bail@2.0.2:
- optional: true
+ bail@2.0.2: {}
balanced-match@1.0.2: {}
@@ -14863,8 +14912,7 @@ snapshots:
character-entities-legacy@3.0.0: {}
- character-entities@2.0.2:
- optional: true
+ character-entities@2.0.2: {}
chat@4.43.0(ai@7.0.130(zod@4.6.7))(supports-color@10.2.2)(workflow@5.0.1(@aws-sdk/credential-provider-web-identity@3.972.49)(@nestjs/common@12.3.2(reflect-metadata@0.2.2)(rxjs@7.8.2)(supports-color@10.2.2))(@nestjs/core@12.3.2(@nestjs/common@12.3.2(reflect-metadata@0.2.2)(rxjs@7.8.2)(supports-color@10.2.2))(reflect-metadata@0.2.2)(rxjs@7.8.2))(@swc/cli@0.8.2(@swc/core@1.15.3(@swc/helpers@0.5.23))(chokidar@5.0.0)(supports-color@10.2.2))(@swc/core@1.15.3(@swc/helpers@0.5.23))(@swc/helpers@0.5.23)(magicast@0.5.5)(next@16.4.3(@babel/core@7.29.7(supports-color@10.2.2))(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1)(supports-color@10.2.2)(typescript@7.0.2)(ws@8.22.0))(zod@4.6.7):
dependencies:
@@ -15695,7 +15743,6 @@ snapshots:
decode-named-character-reference@1.3.0:
dependencies:
character-entities: 2.0.2
- optional: true
decompress-response@10.0.0:
dependencies:
@@ -16237,8 +16284,7 @@ snapshots:
sort-keys-length: 1.0.1
optional: true
- extend@3.0.2:
- optional: true
+ extend@3.0.2: {}
fast-check@4.10.2:
dependencies:
@@ -16820,8 +16866,7 @@ snapshots:
is-plain-obj@1.1.0:
optional: true
- is-plain-obj@4.1.0:
- optional: true
+ is-plain-obj@4.1.0: {}
is-promise@4.0.0:
optional: true
@@ -17128,8 +17173,7 @@ snapshots:
is-unicode-supported: 1.3.0
optional: true
- longest-streak@3.1.0:
- optional: true
+ longest-streak@3.1.0: {}
lowercase-keys@3.0.0:
optional: true
@@ -17207,8 +17251,7 @@ snapshots:
punycode.js: 2.3.1
uc.micro: 3.0.0
- markdown-table@3.0.4:
- optional: true
+ markdown-table@3.0.4: {}
marked@17.0.6:
optional: true
@@ -17224,7 +17267,6 @@ snapshots:
escape-string-regexp: 5.0.0
unist-util-is: 6.0.1
unist-util-visit-parents: 6.1.0
- optional: true
mdast-util-from-markdown@2.1.0(supports-color@10.2.2):
dependencies:
@@ -17242,16 +17284,14 @@ snapshots:
unist-util-stringify-position: 4.0.0
transitivePeerDependencies:
- supports-color
- optional: true
- mdast-util-gfm-autolink-literal@2.0.1:
+ mdast-util-gfm-autolink-literal@2.1.0:
dependencies:
'@types/mdast': 4.0.4
ccount: 2.0.1
devlop: 1.1.0
mdast-util-find-and-replace: 3.0.4
micromark-util-character: 2.1.1
- optional: true
mdast-util-gfm-footnote@2.1.0(supports-color@10.2.2):
dependencies:
@@ -17262,7 +17302,6 @@ snapshots:
micromark-util-normalize-identifier: 2.0.1
transitivePeerDependencies:
- supports-color
- optional: true
mdast-util-gfm-strikethrough@2.0.1(supports-color@10.2.2):
dependencies:
@@ -17271,7 +17310,6 @@ snapshots:
mdast-util-to-markdown: 2.2.1
transitivePeerDependencies:
- supports-color
- optional: true
mdast-util-gfm-table@2.0.0(supports-color@10.2.2):
dependencies:
@@ -17282,7 +17320,6 @@ snapshots:
mdast-util-to-markdown: 2.2.1
transitivePeerDependencies:
- supports-color
- optional: true
mdast-util-gfm-task-list-item@2.0.0(supports-color@10.2.2):
dependencies:
@@ -17292,12 +17329,11 @@ snapshots:
mdast-util-to-markdown: 2.2.1
transitivePeerDependencies:
- supports-color
- optional: true
mdast-util-gfm@3.1.0(supports-color@10.2.2):
dependencies:
mdast-util-from-markdown: 2.1.0(supports-color@10.2.2)
- mdast-util-gfm-autolink-literal: 2.0.1
+ mdast-util-gfm-autolink-literal: 2.1.0
mdast-util-gfm-footnote: 2.1.0(supports-color@10.2.2)
mdast-util-gfm-strikethrough: 2.0.1(supports-color@10.2.2)
mdast-util-gfm-table: 2.0.0(supports-color@10.2.2)
@@ -17305,13 +17341,11 @@ snapshots:
mdast-util-to-markdown: 2.2.1
transitivePeerDependencies:
- supports-color
- optional: true
mdast-util-phrasing@4.1.0:
dependencies:
'@types/mdast': 4.0.4
unist-util-is: 6.0.1
- optional: true
mdast-util-to-hast@13.2.1:
dependencies:
@@ -17338,12 +17372,10 @@ snapshots:
micromark-util-html-tag-name: 2.0.1
unist-util-visit: 5.2.0
zwitch: 2.0.4
- optional: true
mdast-util-to-string@4.0.0:
dependencies:
'@types/mdast': 4.0.4
- optional: true
mdbox@0.1.1:
dependencies:
@@ -17381,7 +17413,6 @@ snapshots:
micromark-util-subtokenize: 2.1.0
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm-autolink-literal@2.1.0:
dependencies:
@@ -17389,7 +17420,6 @@ snapshots:
micromark-util-sanitize-uri: 2.0.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm-footnote@2.1.0:
dependencies:
@@ -17401,7 +17431,6 @@ snapshots:
micromark-util-sanitize-uri: 2.0.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm-strikethrough@2.1.0:
dependencies:
@@ -17411,7 +17440,6 @@ snapshots:
micromark-util-resolve-all: 2.0.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm-table@2.1.2:
dependencies:
@@ -17420,12 +17448,10 @@ snapshots:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm-tagfilter@2.0.0:
dependencies:
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm-task-list-item@2.1.0:
dependencies:
@@ -17434,7 +17460,6 @@ snapshots:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-extension-gfm@3.0.0:
dependencies:
@@ -17446,14 +17471,12 @@ snapshots:
micromark-extension-gfm-task-list-item: 2.1.0
micromark-util-combine-extensions: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-factory-destination@2.0.1:
dependencies:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-factory-label@2.0.1:
dependencies:
@@ -17461,13 +17484,11 @@ snapshots:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-factory-space@2.1.0:
dependencies:
micromark-util-character: 2.1.1
micromark-util-types: 2.0.3
- optional: true
micromark-factory-title@2.0.1:
dependencies:
@@ -17475,7 +17496,6 @@ snapshots:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-factory-whitespace@2.0.1:
dependencies:
@@ -17483,7 +17503,6 @@ snapshots:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-util-character@2.1.1:
dependencies:
@@ -17493,25 +17512,21 @@ snapshots:
micromark-util-chunked@2.0.1:
dependencies:
micromark-util-symbol: 2.0.1
- optional: true
micromark-util-classify-character@2.0.1:
dependencies:
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-util-combine-extensions@2.0.1:
dependencies:
micromark-util-chunked: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-util-decode-numeric-character-reference@2.0.2:
dependencies:
micromark-util-symbol: 2.0.1
- optional: true
micromark-util-decode-string@2.0.1:
dependencies:
@@ -17519,27 +17534,22 @@ snapshots:
micromark-util-character: 2.1.1
micromark-util-decode-numeric-character-reference: 2.0.2
micromark-util-symbol: 2.0.1
- optional: true
micromark-util-edit-map@1.0.0:
dependencies:
micromark-util-types: 2.0.3
- optional: true
micromark-util-encode@2.0.1: {}
- micromark-util-html-tag-name@2.0.1:
- optional: true
+ micromark-util-html-tag-name@2.0.1: {}
micromark-util-normalize-identifier@2.0.1:
dependencies:
micromark-util-symbol: 2.0.1
- optional: true
micromark-util-resolve-all@2.0.1:
dependencies:
micromark-util-types: 2.0.3
- optional: true
micromark-util-sanitize-uri@2.0.1:
dependencies:
@@ -17553,7 +17563,6 @@ snapshots:
micromark-util-chunked: 2.0.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.3
- optional: true
micromark-util-symbol@2.0.1: {}
@@ -17581,7 +17590,6 @@ snapshots:
micromark-util-types: 2.0.3
transitivePeerDependencies:
- supports-color
- optional: true
mime-db@1.54.0:
optional: true
@@ -17677,6 +17685,8 @@ snapshots:
modern-tar@0.7.7:
optional: true
+ modern-tar@0.8.6: {}
+
mountx@0.0.2(unstorage@1.17.6(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(ioredis@5.11.1(supports-color@10.2.2))):
optionalDependencies:
unstorage: 1.17.6(@vercel/functions@3.10.5(@aws-sdk/credential-provider-web-identity@3.972.49)(ws@8.22.0))(aws4fetch@1.0.20)(db0@0.3.4(@libsql/client@0.18.0)(drizzle-orm@0.45.4(@cloudflare/workers-types@5.20261031.1)(@libsql/client@0.18.0)(bun-types@1.4.4)(kysely@0.29.7)(sql.js@1.15.2)))(ioredis@5.11.1(supports-color@10.2.2))
@@ -17707,7 +17717,7 @@ snapshots:
muggle-string@0.4.1: {}
- my-bad@0.2.11(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)):
+ my-bad@0.2.12(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)):
dependencies:
clickable-path: 0.1.1
errx: 0.2.2
@@ -17726,8 +17736,6 @@ snapshots:
nanostores@1.5.5:
optional: true
- nanotar@0.3.0: {}
-
napi-build-utils@2.0.0:
optional: true
@@ -17783,7 +17791,7 @@ snapshots:
unstorage: 2.0.0-beta.0
optional: true
- nitro@3.0.261029-rc:
+ nitro@3.0.261103-rc:
dependencies:
crossws: 0.4.17(srvx@1.0.8)
env-runner: 0.3.11
@@ -17866,18 +17874,18 @@ snapshots:
dependencies:
boolbase: 1.0.0
- nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332):
+ nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036):
dependencies:
- '@dxup/nuxt': 0.5.10(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
+ '@dxup/nuxt': 0.5.10(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
'@jridgewell/trace-mapping': 0.3.31
- '@nuxt/cli': '@nuxt/cli-nightly@4.0.1-2610292127-cd8f364(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(jiti@2.7.0)(oxc-parser@0.148.0)(rolldown@1.2.16)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))'
- '@nuxt/devtools-onboard': 4.0.0(3f310342ce68078f848dce1ca2838e16)
- '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
- '@nuxt/nitro-server': '@nuxt/nitro-server-nightly@5.0.0-2611010234-c709ec8(@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.7(supports-color@10.2.2)))(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(@oxc-project/types@0.156.0)(acorn@8.19.0)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332))(oxc-parser@0.148.0)(rollup@4.67.2)(typescript@7.0.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))'
- '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611010234-c709ec8'
- '@nuxt/telemetry': 2.9.1(@nuxt/kit-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))
- '@nuxt/vite-builder': '@nuxt/vite-builder-nightly@5.0.0-2611010234-c709ec8(1d871e795c351775687ce4af1cbdcedf)'
- '@nuxt/vite-server': '@nuxt/vite-server-nightly@5.0.0-2611010234-c709ec8(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332))(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))'
+ '@nuxt/cli': '@nuxt/cli-nightly@4.0.3-2611062342-db93607(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(jiti@2.7.0)(oxc-parser@0.148.0)(rolldown@1.2.16)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))'
+ '@nuxt/devtools-onboard': 4.1.0(89429ac6a754ca505e69dc9593f93395)
+ '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))'
+ '@nuxt/nitro-server': '@nuxt/nitro-server-nightly@5.0.0-2611071848-2d8337c(@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.7(supports-color@10.2.2)))(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(@oxc-project/types@0.156.0)(acorn@8.19.0)(confbox@0.2.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036))(oxc-parser@0.148.0)(rollup@4.67.2)(typescript@7.0.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))'
+ '@nuxt/schema': '@nuxt/schema-nightly@5.0.0-2611071848-2d8337c'
+ '@nuxt/telemetry': 2.9.1(@nuxt/kit-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))
+ '@nuxt/vite-builder': '@nuxt/vite-builder-nightly@5.0.0-2611071848-2d8337c(7c6993ff468fc2cb06efbc4fb622dd7c)'
+ '@nuxt/vite-server': '@nuxt/vite-server-nightly@5.0.0-2611071848-2d8337c(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036))(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))'
'@unhead/vue': 3.4.3(@oxc-project/types@0.156.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
'@vue/shared': 3.5.44
chokidar: 5.0.0
@@ -17899,10 +17907,10 @@ snapshots:
klona: 2.0.6
knitwork: 1.3.0
magic-string: 1.4.5
- my-bad: 0.2.11(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
- nanotar: 0.3.0
+ modern-tar: 0.8.6
+ my-bad: 0.2.12(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
nostics: 1.3.0
- nuxt: nuxt-nightly@5.0.0-2611010234-c709ec8(e13e31c82e69fa31cfb214771dced332)
+ nuxt: nuxt-nightly@5.0.0-2611071848-2d8337c(14b0f3b2d4fc0265dc907e23f6c5c036)
object-identity: 0.2.3
ofetch: 2.0.0-alpha.3
ohash: 2.0.12
@@ -17926,11 +17934,11 @@ snapshots:
unhead: 3.4.3(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
unimport: 7.0.2(acorn@8.19.0)(esbuild@0.28.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
- unrouting: 0.3.1
+ unrouting: 0.3.2
untyped: 2.0.0
verkit: 0.5.0
vue: 3.5.44(typescript@7.0.2)
- vue-bundle-renderer: 2.4.0
+ vue-bundle-renderer: 2.5.0
vue-component-type-helpers: 3.3.14
vue-router: 5.4.0(@vue/compiler-sfc@3.5.44)(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2))
optionalDependencies:
@@ -18584,7 +18592,6 @@ snapshots:
unified: 11.0.5
transitivePeerDependencies:
- supports-color
- optional: true
remark-parse@11.0.0(supports-color@10.2.2):
dependencies:
@@ -18594,14 +18601,12 @@ snapshots:
unified: 11.0.5
transitivePeerDependencies:
- supports-color
- optional: true
remark-stringify@11.0.0:
dependencies:
'@types/mdast': 4.0.4
mdast-util-to-markdown: 2.2.1
unified: 11.0.5
- optional: true
remend@1.4.0:
optional: true
@@ -19257,8 +19262,7 @@ snapshots:
trim-lines@3.0.1: {}
- trough@2.2.0:
- optional: true
+ trough@2.2.0: {}
ts-api-utils@2.5.0(typescript@6.0.3):
dependencies:
@@ -19438,7 +19442,6 @@ snapshots:
is-plain-obj: 4.1.0
trough: 2.2.0
vfile: 6.0.3
- optional: true
unimport@6.5.0(esbuild@0.28.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)):
dependencies:
@@ -19555,7 +19558,7 @@ snapshots:
rollup: 4.67.2
vite: 8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)
- unrouting@0.3.1:
+ unrouting@0.3.2:
dependencies:
escape-string-regexp: 5.0.0
ufo: 1.6.4
@@ -19953,7 +19956,7 @@ snapshots:
oxlint: 1.89.0(oxlint-tsgolint@7.0.2004)(vite-plus@1.4.0(@types/node@26.6.6)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(terser@5.51.2)(tsx@4.23.15)(typescript@7.0.2)(yaml@2.9.1))
typescript: 7.0.2
- vite-plugin-inspect@11.4.1(@nuxt/kit@4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)):
+ vite-plugin-inspect@11.4.1(@nuxt/kit@4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))))(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)):
dependencies:
ansis: 4.4.0
error-stack-parser-es: 1.0.5
@@ -19966,7 +19969,7 @@ snapshots:
vite: 8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)
vite-dev-rpc: 2.0.0(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))
optionalDependencies:
- '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611010234-c709ec8)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
+ '@nuxt/kit': 4.6.3(@nuxt/schema-nightly@5.0.0-2611071848-2d8337c)(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.148.0)(rolldown@1.2.16)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.16)(rollup@4.67.2)(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1)))
optional: true
vite-plugin-vue-tracer@1.6.0(vite@8.3.5(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.2)(tsx@4.23.15)(yaml@2.9.1))(vue@3.5.44(typescript@7.0.2)):
@@ -20103,7 +20106,7 @@ snapshots:
transitivePeerDependencies:
- msw
- vue-bundle-renderer@2.4.0:
+ vue-bundle-renderer@2.5.0:
dependencies:
ufo: 1.6.4
From f26e19d4f5ff5590cc1f6b513075e30f02ebf65b Mon Sep 17 00:00:00 2001
From: onmax
Date: Mon, 9 Nov 2026 13:08:13 +0100
Subject: [PATCH 02/10] feat(tinylinkify): add benchmarks, size checks and
tests
---
packages/tinylinkify/bench/index.ts | 119 ++++++++++++++++
packages/tinylinkify/bench/samples/chat.txt | 52 +++++++
packages/tinylinkify/scripts/dist-loader.ts | 21 +++
packages/tinylinkify/scripts/dist.ts | 47 +++++++
packages/tinylinkify/scripts/fuzz-gfm.ts | 12 +-
packages/tinylinkify/scripts/fuzz.ts | 15 +-
packages/tinylinkify/scripts/gfm-fixtures.ts | 117 +++++++++++++++
packages/tinylinkify/scripts/inputs.ts | 22 +--
.../tinylinkify/scripts/linkify-it-tests.ts | 13 +-
packages/tinylinkify/scripts/remark.ts | 23 ++-
packages/tinylinkify/scripts/shared.ts | 7 +-
packages/tinylinkify/scripts/size.ts | 133 ++++++++++++++++++
packages/tinylinkify/scripts/uc-engine.ts | 7 +-
packages/tinylinkify/scripts/uc.micro.d.ts | 9 ++
packages/tinylinkify/src/core/gfm.ts | 14 +-
packages/tinylinkify/src/gfm/index.ts | 3 +-
packages/tinylinkify/src/linkify-it/index.ts | 70 ++++++---
packages/tinylinkify/src/linkify-it/re.ts | 31 ++--
packages/tinylinkify/test/conformance.test.ts | 56 ++++++++
packages/tinylinkify/test/dist.config.ts | 33 +++++
packages/tinylinkify/test/exports.test.ts | 20 +++
packages/tinylinkify/test/gfm.test.ts | 101 +++++++++++++
packages/tinylinkify/test/linkify-it.test.ts | 48 +++++++
packages/tinylinkify/test/root.test.ts | 131 +++++++++++++++++
packages/tinylinkify/test/suites.test.ts | 19 +++
.../test/suites/gfm-spec-0.29/README.md | 8 ++
.../test/suites/gfm-spec-0.29/autolinks.json | 46 ++++++
27 files changed, 1110 insertions(+), 67 deletions(-)
create mode 100644 packages/tinylinkify/bench/index.ts
create mode 100644 packages/tinylinkify/bench/samples/chat.txt
create mode 100644 packages/tinylinkify/scripts/dist-loader.ts
create mode 100644 packages/tinylinkify/scripts/dist.ts
create mode 100644 packages/tinylinkify/scripts/gfm-fixtures.ts
create mode 100644 packages/tinylinkify/scripts/size.ts
create mode 100644 packages/tinylinkify/scripts/uc.micro.d.ts
create mode 100644 packages/tinylinkify/test/conformance.test.ts
create mode 100644 packages/tinylinkify/test/dist.config.ts
create mode 100644 packages/tinylinkify/test/exports.test.ts
create mode 100644 packages/tinylinkify/test/gfm.test.ts
create mode 100644 packages/tinylinkify/test/linkify-it.test.ts
create mode 100644 packages/tinylinkify/test/root.test.ts
create mode 100644 packages/tinylinkify/test/suites.test.ts
create mode 100644 packages/tinylinkify/test/suites/gfm-spec-0.29/README.md
create mode 100644 packages/tinylinkify/test/suites/gfm-spec-0.29/autolinks.json
diff --git a/packages/tinylinkify/bench/index.ts b/packages/tinylinkify/bench/index.ts
new file mode 100644
index 0000000..b3a693b
--- /dev/null
+++ b/packages/tinylinkify/bench/index.ts
@@ -0,0 +1,119 @@
+// Median time per call over seven rounds: tinylinkify/linkify-it, the root
+// and tinylinkify/gfm against linkify-it 5.0.2, on linkify-it's own benchmark
+// samples, 52 chat messages, and about 100 KB of all of them, on the call
+// markdown-it makes, `match` after a `pretest` that passes; and markdown-exit
+// rendering the chat messages with each linkifier. The GFM entries find GFM's
+// links, not linkify-it's, so theirs is the same work on the same text, not
+// the same result.
+// It measures the built dist/, what npm ships, building it first if it's
+// stale, through scripts/dist-loader.ts; --source measures src/ instead.
+// The two sides' rounds interleave, and which runs first alternates from
+// round to round, so neither gains from going first.
+// Usage: node bench/index.ts [--json] [--source]
+import LinkifyIt from "linkify-it";
+import MarkdownExit from "markdown-exit";
+import { build } from "../scripts/dist.ts";
+import { benchSamples } from "../scripts/shared.ts";
+
+const source = process.argv.includes("--source");
+if (!source) {
+ build();
+ // Imports of src/ below resolve to dist/ from here on.
+ await import("../scripts/dist-loader.ts");
+}
+const root = await import("../src/index.ts");
+const dropIn = (await import("../src/linkify-it/index.ts")).default;
+const gfm = (await import("../src/gfm/index.ts")).default;
+
+const samples = benchSamples();
+let large = "";
+for (let i = 0; large.length < 100 * 1024; i++) large += `${Object.values(samples)[i % 6]}\n\n`;
+const inputs: Record = { ...samples, large };
+
+type Find = (text: string) => unknown;
+const linkify =
+ (l: { pretest(t: string): boolean; match(t: string): unknown }): Find =>
+ (text) =>
+ l.pretest(text) && l.match(text);
+const render = (Linkify: new () => unknown): Find => {
+ const md = MarkdownExit({ linkify: true }) as unknown as {
+ linkify: unknown;
+ render(s: string): string;
+ };
+ md.linkify = new Linkify();
+ return (text) => md.render(text);
+};
+
+const pairs: [string, string, Record, Find, Find][] = [
+ ["linkify-it 5.0.2", "match", inputs, linkify(new LinkifyIt()), linkify(new dropIn())],
+ [
+ "linkify-it 5.0.2 (tinylinkify/gfm)",
+ "match",
+ inputs,
+ linkify(new LinkifyIt()),
+ linkify(new gfm()),
+ ],
+ ["linkify-it 5.0.2 (tinylinkify root)", "match", inputs, linkify(new LinkifyIt()), root.find],
+ [
+ "markdown-exit 1.3.0 (tinylinkify/linkify-it)",
+ "render",
+ { chat: samples.chat! },
+ render(LinkifyIt as never),
+ render(dropIn as never),
+ ],
+ [
+ "markdown-exit 1.3.0 (tinylinkify/gfm)",
+ "render",
+ { chat: samples.chat! },
+ render(LinkifyIt as never),
+ render(gfm as never),
+ ],
+];
+
+function time(fn: () => unknown): number {
+ let iterations = 1;
+ for (;;) {
+ const start = performance.now();
+ for (let i = 0; i < iterations; i++) fn();
+ const elapsed = performance.now() - start;
+ if (elapsed > 50) return elapsed / iterations;
+ iterations *= 2;
+ }
+}
+
+// Seven rounds of each, interleaved: round r times `theirs` first when r
+// is even, `ours` first when it's odd. The medians.
+function medians(theirs: () => unknown, ours: () => unknown) {
+ const times: { theirs: number[]; ours: number[] } = { theirs: [], ours: [] };
+ for (let round = 0; round < 7; round++)
+ for (const side of round % 2 ? (["ours", "theirs"] as const) : (["theirs", "ours"] as const))
+ times[side].push(time(side === "theirs" ? theirs : ours));
+ const median = (list: number[]) => list.sort((a, b) => a - b)[3]!;
+ return { theirs: median(times.theirs), ours: median(times.ours) };
+}
+
+const format = (ms: number) => (ms < 1 ? `${(ms * 1000).toFixed(1)} µs` : `${ms.toFixed(2)} ms`);
+
+const rows: { library: string; operation: string; theirs: number; ours: number }[] = [];
+for (const [library, op, texts, theirs, ours] of pairs)
+ for (const [name, text] of Object.entries(texts))
+ rows.push({
+ library,
+ operation: `${op} ${name}`,
+ ...medians(
+ () => theirs(text),
+ () => ours(text),
+ ),
+ });
+
+if (process.argv.includes("--json")) console.log(JSON.stringify(rows, null, 2));
+else {
+ console.log(`tinylinkify from ${source ? "src/" : "the built dist/"}\n`);
+ console.log(
+ "| Library | Operation | Library time | tinylinkify | Speedup |\n| --- | --- | --: | --: | --: |",
+ );
+ for (const r of rows)
+ console.log(
+ `| ${r.library} | ${r.operation} | ${format(r.theirs)} | ${format(r.ours)} | ${(r.theirs / r.ours).toFixed(1)}x |`,
+ );
+}
diff --git a/packages/tinylinkify/bench/samples/chat.txt b/packages/tinylinkify/bench/samples/chat.txt
new file mode 100644
index 0000000..84db746
--- /dev/null
+++ b/packages/tinylinkify/bench/samples/chat.txt
@@ -0,0 +1,52 @@
+@alice can you take a look at https://github.com/vercel/chat/pull/1 when you get a chance?
+@bob @carol standup in 5, notes are in the usual doc
+lgtm 🚀 merging now
+the preview is up at https://chat-git-feat-comark-vercel.vercel.app/ (password is in 1password)
+@dave_99 did you see the error from last night? stack trace in #incidents
+docs: www.example.com/docs/getting-started, see the "Adapters" section
+email me at alex.smith+chat@example.co.uk if Slack is down
+thanks @erin! 🙏
+@frank I pushed a fix, can you re-run CI? https://github.com/vercel/chat/actions/runs/123456789
+does anyone know why `pnpm install` hangs on node 22? @grace mentioned it last week
+re: the outage — status page is https://www.vercel-status.com and the postmortem is in Notion
+@heidi @ivan @judy reminder that the retro is tomorrow at 10:00
+I think it's fine, but let's ask @mallory before shipping
+https://vercel.com/docs/functions/runtimes#node.js-version (see the table)
+can someone review #482? it's small, mostly renames
+@oscar the link is www.google.com/search?q=markdown+(spec) btw
+the bug only shows up with emoji in the thread title 😅 repro: create a thread named "🔥 hotfix"
+@peggy did the deploy go out? I don't see it on prod yet
+yes, deployed at 14:32 UTC, commit a1b2c3d
+@trent great, closing the ticket
+FYI the API returns 429 if you send more than 1 msg/sec per channel
+@victor can you share the Figma? I only have the old link
+here: https://www.figma.com/file/AbCdEf/Chat-SDK?node-id=12%3A34
+meeting notes → notion.so/vercel/Chat-SDK-sync-2024 (ask @walter for access)
+ping @alice @bob @carol @dave @erin @frank — please fill in the survey by Friday
+"https://example.com/quoted" is how it shows up in the export, with the quotes
+looks like (https://example.com/a_(b)) breaks the old parser
+@zoe no worries, I'll pick it up tomorrow
+anyone else seeing timeouts from the Teams adapter? started around 9am
+@alice: ✅ done, see https://github.com/vercel/chat/commit/0f1e2d3c4b5a69788776655443322110ffeeddcc
+it's in packages/adapter-slack/src/index.ts, around line 200
+@bob the regex should be /^@(\w+)/ not /@(\w+)/g
+cc @security for the token rotation, details at https://vercel.com/security.
+we should move to https://comark.dev — smaller bundle and it supports GFM tables
+@carol I'll be offline next week, @dave is covering
+reply in thread pls 🧵
+@erin here's the doc: https://docs.google.com/document/d/1AbCdEfGhIjKlMnOpQrStUvWxYz/edit#heading=h.abc123
+haha yes 😂
+@frank which version? `chat@4.2.0` or the canary?
+the canary, 4.3.0-canary.12
+ok, upgrading. thanks!
+mailto:support@example.com works too if you want to forward the logs
+@grace @heidi I opened https://github.com/vercel/chat/issues/77 to track it
+not sure, maybe ask in #help? or email help@vercel.com
+@ivan can you rotate the webhook secret? the old one leaked in a screenshot
+done, new one is in the vault
+@judy 👍
+the RFC is at www.rfc-editor.org/rfc/rfc3986.txt, section 2.2 for reserved chars
+@mallory sounds good, let's sync after lunch
+I tried http://localhost:3000/api/webhooks/slack and got a 401, is the signing secret set?
+@oscar yes, it's SLACK_SIGNING_SECRET in .env.local
+@peggy the slides are here: https://www.canva.com/design/DAF123/view?utm_content=DAF123&utm_campaign=designshare
diff --git a/packages/tinylinkify/scripts/dist-loader.ts b/packages/tinylinkify/scripts/dist-loader.ts
new file mode 100644
index 0000000..4790382
--- /dev/null
+++ b/packages/tinylinkify/scripts/dist-loader.ts
@@ -0,0 +1,21 @@
+// Runs a script against dist/ instead of src/: an import of one of our
+// entries' index.ts resolves to the file it's built to.
+// Usage: node --import ./scripts/dist-loader.ts scripts/