@cacheable/benchmark - fix: upgrade @faker-js/faker to 10.4.0 (breaking)#1632
@cacheable/benchmark - fix: upgrade @faker-js/faker to 10.4.0 (breaking)#1632
Conversation
Upgrade @faker-js/faker dependency from 9.8.0 to 10.4.0 to align with the workspace root which is already on 10.4.0. Faker 10 dropped CommonJS support and requires Node.js >= 20. The benchmark package is private (not published) and only consumes the modern API, so this should be a no-op at the call sites. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request upgrades the @faker-js/faker dependency from version 9.8.0 to 10.4.0 in the benchmark package. While the change appears straightforward in the package manifest, the reviewer pointed out that this major version update introduces breaking changes. Specifically, the method faker.helpers.rangeToNumber has been removed in v10 and is still being called within packages/benchmark/src/object-generator.ts. These calls must be migrated to faker.number.int to prevent runtime errors.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1632 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 26 26
Lines 2496 2496
Branches 554 554
=========================================
Hits 2496 2496 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Re: gemini-code-assist's review — Verified at runtime against the installed 10.4.0 build: Also smoke-tested No code changes needed. |
|
Thank you for the clarification and for performing the runtime verification. Since |
Summary
@faker-js/fakerfrom 9.8.0 to 10.4.0 in@cacheable/benchmarkto align with the workspace root.Notes
Test plan
pnpm installsucceedspnpm --filter @cacheable/benchmark testpasses (lint only — package has no tests)🤖 Generated with Claude Code