Skip to content

docs: demote URL surface to best-effort host extraction (PUNY-gfjkdjol)#19

Merged
bart-turczynski merged 1 commit into
mainfrom
docs/puny-gfjkdjol-demote-url-surface
Jun 16, 2026
Merged

docs: demote URL surface to best-effort host extraction (PUNY-gfjkdjol)#19
bart-turczynski merged 1 commit into
mainfrom
docs/puny-gfjkdjol-demote-url-surface

Conversation

@bart-turczynski

Copy link
Copy Markdown
Owner

What

Item C (phase 1) of the standards-compliance audit (PUNY-emjvtzlr). Documentation only — no behaviour change.

punycoder_url.cpp is a hand-rolled splitter, not an RFC 3986 / WHATWG URL parser. This re-documents the URL surface honestly so nobody mistakes it for URL canonicalization (which is rurl's mission, and was the source of the old rurlpunycoder circular dependency).

  • roxygen (url_encode / url_decode / parse_url): reframed as "best-effort host extraction and rewriting, NOT URL parsing or canonicalization".
  • Explicit non-goals stated: percent encoding/decoding, scheme validation, port/path/query semantics, full IPv6 (incl. zone IDs / RFC 6874), serialization.
  • DESCRIPTION + README (.Rmd + rendered .md) updated to match; parse_url doc notes the surface is slated for eventual removal in favour of rurl consuming punycoder's host functions.

Out of scope

Phase 2 (deprecation + removal of url_* / parse_url / punycoder_url.cpp) is a separate follow-up ticket with its own deprecation cycle.

Test

devtools::test()[ FAIL 0 | WARN 0 | SKIP 0 | PASS 375 ]

🤖 Generated with Claude Code

Re-document url_encode/url_decode/parse_url as best-effort host extraction
and rewriting in URL-shaped strings — explicitly NOT RFC 3986 / WHATWG URL
parsing or canonicalization. State the non-goals (percent encoding/decoding,
scheme/port/path semantics, full IPv6 incl. zone IDs / RFC 6874,
serialization) and note the surface is slated for eventual removal in favour
of a dedicated URL package (rurl) consuming punycoder's host functions.

Updated roxygen, DESCRIPTION, and README (.Rmd + rendered .md). Phase 1 only;
deprecation/removal is a separate follow-up ticket. No behaviour change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bart-turczynski bart-turczynski merged commit 53cbb16 into main Jun 16, 2026
@bart-turczynski bart-turczynski deleted the docs/puny-gfjkdjol-demote-url-surface branch June 16, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant