[PR #3989] [MERGED] fix(telemetry): fix runtime compatibility issues #22023

Closed
opened 2026-04-15 20:45:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3989
Author: @Bekacru
Created: 8/13/2025
Status: Merged
Merged: 8/13/2025
Merged by: @Bekacru

Base: canaryHead: fix/compatabilty


📝 Commits (1)

  • 432840a fix(telemetry): refactor config file path handling and add runtime import utility

📊 Changes

2 files changed (+30 additions, -14 deletions)

View changed files

📝 packages/better-auth/src/telemetry/index.ts (+27 -14)
packages/better-auth/src/utils/import-util.ts (+3 -0)

📄 Description

Summary by cubic

Fixed runtime compatibility issues in telemetry by replacing dynamic imports with a runtime import utility and improving config file handling.

  • Bug Fixes
  • Telemetry logic now works in environments where standard dynamic imports may fail.
  • Config file operations are safer and avoid errors if file paths are unavailable.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3989 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 8/13/2025 **Status:** ✅ Merged **Merged:** 8/13/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/compatabilty` --- ### 📝 Commits (1) - [`432840a`](https://github.com/better-auth/better-auth/commit/432840ad990fb07ed107c56193863e242ccafa63) fix(telemetry): refactor config file path handling and add runtime import utility ### 📊 Changes **2 files changed** (+30 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/telemetry/index.ts` (+27 -14) ➕ `packages/better-auth/src/utils/import-util.ts` (+3 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed runtime compatibility issues in telemetry by replacing dynamic imports with a runtime import utility and improving config file handling. - **Bug Fixes** - Telemetry logic now works in environments where standard dynamic imports may fail. - Config file operations are safer and avoid errors if file paths are unavailable. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 20:45:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22023