Skip to content

chore: use modern ESM import 'dotenv/config' - #331

Merged
huan merged 1 commit into
mainfrom
fix/dotenv-config-esm
Nov 27, 2026
Merged

huan merged 1 commit into
mainfrom
fix/dotenv-config-esm

Conversation

@huan

@huan huan commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Replaces legacy import 'dotenv/config.js' with import 'dotenv/config' in examples/ding-dong-bot.ts and examples/basic/ding-dong-bot.ts.

Verified with npm test (lint:biome, lint:ts, lint:md, test:smoke).


Note

Low Risk
Example-only import path change with no production or security impact.

Overview
Updates both ding-dong bot examples to load environment variables via import 'dotenv/config' instead of import 'dotenv/config.js', aligning with current dotenv ESM entry points.

No runtime behavior change is intended—only the import specifier in examples/ding-dong-bot.ts and examples/basic/ding-dong-bot.ts.

Reviewed by Cursor Bugbot for commit b59fedd. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor

cursor Bot commented Nov 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: b547799a-b91a-4cfe-81aa-e662fb3af22f)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T20:01:53.113552Z b59fedd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@huan
huan merged commit a8ccfe2 into main Nov 27, 2026
6 checks passed
@huan
huan deleted the fix/dotenv-config-esm branch November 27, 2026 20:02
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