chore: inline ga4 module and remove raw GitHub import#3733
Merged
Conversation
Replace the `$ga4` raw GitHub URL import with a local inlined module. The ga4 package was never published to jsr or npm, so inlining is the cleanest way to remove the URL-based dependency. - Inlined ga4 source into www/utils/ga4.ts - Replaced old deno.land/std URL imports with @std/http - Inlined the trivial snakeCase helper (was from deno.land/x/case) - Removed $ga4 import map entry from deno.json Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
$ga4module (fromhttps://raw.githubusercontent.com/denoland/ga4/main/mod.ts) intowww/utils/ga4.tsdeno.land/stdURL imports with@std/http(getCookies,STATUS_TEXT)snakeCasehelper (was fromdeno.land/x/case)$ga4import map entry fromdeno.jsonThe ga4 package was never published to jsr or npm, so inlining was the cleanest way to eliminate the last raw URL-based dependency.
Test plan
deno task okpasses (fmt, lint, types, 505 tests)🤖 Generated with Claude Code