Skip to content

Dev - #5

Merged
huankong233 merged 3 commits into
mainfrom
dev
Jul 5, 2026
Merged

Dev#5
huankong233 merged 3 commits into
mainfrom
dev

Conversation

@huankong233

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 5, 2026 11:14
@huankong233
huankong233 merged commit 749eb4f into main Jul 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the public API surface of the logger package by adding a simple logger registry (“builder”) module and exporting it from the package entrypoint, while also aligning configuration naming in the test harness and refreshing tooling/dependencies.

Changes:

  • Add src/builder.ts with createLogger/getLogger/hasLogger helper functions and re-export it from src/index.ts.
  • Fix logger options casing in test/main.ts (Transformerstransformers) to match the actual LoggerOptions shape.
  • Update package version and development toolchain (switch typecheck to tsc, bump ESLint/TypeScript/tooling versions, update bun.lock).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/main.ts Aligns logger instantiation options with the actual LoggerOptions API (transformers).
src/index.ts Exposes the new builder/registry API as part of the package entrypoint.
src/builder.ts Introduces a module-level logger registry with create/get/has helpers.
package.json Bumps version and updates typecheck + dev tool dependency versions.
bun.lock Updates lockfile to reflect the dependency/tooling version bumps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/builder.ts
Comment on lines +6 to +10
export function createLogger(name: string, options: LoggerOptions): Logger {
const logger = new Logger(options)
loggers.set(name, logger)
return logger
}
Comment thread src/builder.ts
Comment on lines +6 to +9
export function createLogger(name: string, options: LoggerOptions): Logger {
const logger = new Logger(options)
loggers.set(name, logger)
return logger
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