Skip to content

Commit 2732471

Browse files
konardclaude
andcommitted
chore: add changeset for Log.Default.lazy.info fix
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5b69a3f commit 2732471

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.changeset/fix-log-lazy-info.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@link-assistant/agent': patch
3+
---
4+
5+
fix: Resolve 'undefined is not an object (evaluating Log.Default.lazy.info)' error
6+
7+
The error occurred because `Log.Default.lazy` was undefined - the Logger interface doesn't have a `.lazy` property.
8+
The logging methods (info, debug, warn, error) already support lazy evaluation through callback functions.
9+
10+
Changes:
11+
12+
- Fixed `Log.Default.lazy.info()` calls in src/index.js to use `Log.Default.info()` directly
13+
- Added backward-compatible `lazy` property to Logger (self-reference) for any external code using this pattern
14+
- Added unit tests for lazy logging callback support

0 commit comments

Comments
 (0)