Skip to content

fix: update deps and tests for compatibility with tap v21#732

Open
jdinsel-xealth wants to merge 2 commits intotrentm:masterfrom
jdinsel-xealth:master
Open

fix: update deps and tests for compatibility with tap v21#732
jdinsel-xealth wants to merge 2 commits intotrentm:masterfrom
jdinsel-xealth:master

Conversation

@jdinsel-xealth
Copy link
Copy Markdown

Story

Updates dependencies and replaces mv with built in fs.rename giving some more life to the Bunyan project. The mv package has a known issue and was last released 11 years ago.

bunyan@3.0.0 /node-bunyan
├── dtrace-provider@0.8.8
├── exeunt@1.1.2
├── moment@2.30.1
├── safe-json-stringify@1.2.0
├── tap@21.6.2
├── vasync@2.2.1
└── verror@1.10.1

When I started the work, all of the test cases were failing. This pull request includes fixes.

Asserts:  482 pass  0 fail  482 of 482 complete
Suites:    19 pass  0 fail    19 of 19 complete

# { total: 482, pass: 482 }
# time=4408.778ms

jdinsel-xealth and others added 2 commits July 17, 2025 14:10
- Replace t.ifError() with t.error() across all test files (removed in tap v16+)
- Add missing devDependencies: vasync, verror (used in tests but not declared)
- Add exeunt as a runtime dependency (required by bin/bunyan)
- Replace optional mv dependency with built-in fs.rename in RotatingFileStream;
  mv was only used for same-filesystem log rotation renames, making it redundant
@jdinsel-xealth
Copy link
Copy Markdown
Author

If anyone finds this and is looking for a similar solution, the fork at https://github.com/expo/node-bunyan (https://www.npmjs.com/package/@expo/bunyan) seems like a good alternative.

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