Skip to content

Feat/cloudflare analytics engine#183

Merged
jaypatrick merged 5 commits intomasterfrom
feat/cloudflare-analytics-engine
Jan 15, 2026
Merged

Feat/cloudflare analytics engine#183
jaypatrick merged 5 commits intomasterfrom
feat/cloudflare-analytics-engine

Conversation

@jaypatrick
Copy link
Owner

No description provided.

jaypatrick and others added 3 commits January 15, 2026 03:10
Fix JSR API documentation which was showing empty/broken links due to
deno doc --lint validation errors. The lint was failing because:

1. @inheritdoc tag is not recognized by deno doc --lint
2. Exported symbols were missing JSDoc comments
3. Type properties needed explicit type annotations

Changes:
- Replace all @inheritdoc with full JSDoc comments
- Add JSDoc to all exported class constructors, methods, and properties
- Add explicit type annotations (e.g., `public readonly type: TransformationType`)
- Add JSDoc to interface properties

Files modified (47 files):
- Diagnostics: DiagnosticsCollector.ts
- Formatters: OutputFormatter.ts
- Transformations: 14 transformation files
- Compilers: SourceCompiler.ts, FilterCompiler.ts, IncrementalCompiler.ts, HeaderGenerator.ts
- Platform: WorkerCompiler.ts, PlatformDownloader.ts, HttpFetcher.ts, etc.
- Services: FilterService.ts, TransformationRegistry.ts
- Utils: EventEmitter.ts, ErrorUtils.ts, Benchmark.ts, StringUtils.ts
- Plugins: PluginSystem.ts
- Diff: DiffReport.ts
- Downloader: FilterDownloader.ts

Results:
- deno doc --lint: 0 errors (down from 188)
- deno publish --dry-run: Success
- All 832 tests passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add comprehensive analytics tracking using Cloudflare Analytics Engine:

- Create AnalyticsService with typed event tracking for compilation
  requests, cache hits/misses, rate limiting, and workflow execution
- Add Analytics Engine binding to Env interface (optional for graceful
  degradation)
- Integrate analytics tracking into worker endpoints for API metrics
- Add workflow tracking to CompilationWorkflow, BatchCompilationWorkflow,
  CacheWarmingWorkflow, and HealthMonitoringWorkflow
- Include privacy-conscious utilities (IP hashing, UA categorization)
- Add comprehensive documentation with SQL query examples

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Run deno fmt to fix formatting issues in:
- src/services/index.ts - reorder exports alphabetically
- src/services/AnalyticsService.ts - collapse multiline ternary chains

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 15, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
adblock-compiler c712be4 Jan 15 2026, 10:27 AM

@github-actions
Copy link

Version bumped: 0.8.4 -> 0.8.5

@jaypatrick jaypatrick marked this pull request as ready for review January 15, 2026 10:27
@jaypatrick jaypatrick merged commit 67e5546 into master Jan 15, 2026
5 of 7 checks passed
@jaypatrick jaypatrick deleted the feat/cloudflare-analytics-engine branch January 15, 2026 10:27
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