Skip to content

chore: inline ga4 module and remove raw GitHub import#3733

Merged
bartlomieju merged 1 commit into
mainfrom
chore/inline-ga4-module
Mar 28, 2026
Merged

chore: inline ga4 module and remove raw GitHub import#3733
bartlomieju merged 1 commit into
mainfrom
chore/inline-ga4-module

Conversation

@bartlomieju

Copy link
Copy Markdown
Contributor

Summary

  • Inlined the $ga4 module (from https://raw.githubusercontent.com/denoland/ga4/main/mod.ts) into www/utils/ga4.ts
  • Replaced old deno.land/std URL imports with @std/http (getCookies, STATUS_TEXT)
  • Inlined the trivial snakeCase helper (was from deno.land/x/case)
  • Removed $ga4 import map entry from deno.json

The 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 ok passes (fmt, lint, types, 505 tests)

🤖 Generated with Claude Code

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>

@crowlKats crowlKats left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartlomieju bartlomieju merged commit 214975d into main Mar 28, 2026
9 checks passed
@bartlomieju bartlomieju deleted the chore/inline-ga4-module branch March 28, 2026 12:05
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.

2 participants