Conversation
|
📝 WalkthroughWalkthroughAdded a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/journey-client/package.json
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-22T15:14:00.044Z
Learnt from: ryanbas21
Repo: ForgeRock/ping-javascript-sdk PR: 430
File: packages/journey-client/src/lib/callbacks/name-callback.ts:9-15
Timestamp: 2025-10-22T15:14:00.044Z
Learning: In packages/journey-client, callback classes are internal implementation details not part of the public API. The callbacks barrel (src/lib/callbacks/index.ts) intentionally only exports the base JourneyCallback class. Internal code imports concrete callback classes directly from their individual files (e.g., factory.ts, journey-client.ts).
Applied to files:
packages/journey-client/package.json
packages/journey-client/package.json
Outdated
| "vite": "6.4.1", | ||
| "vitest": "^1.2.0" | ||
| "vitest": "^1.2.0", | ||
| "vitest-canvas-mock": "^0.3.3" |
There was a problem hiding this comment.
Upgrade dependencies to current versions — vite 6.4.1 and vitest ^1.2.0 are significantly outdated.
The current stable vite version is 7.2, and the latest vitest version is 4.0.15 (as of December 2025). Your pinned versions are critically behind:
- Vite 7 requires Vitest 3.2+ for testing environments, but you have vitest ^1.2.0
- Vitest 1.2.0 predates Vitest 3 and 4 releases and lacks compatibility with current Vite versions
- For vitest-canvas-mock, the latest version is 1.1.3 with active maintenance showing at least one new version released in the past 3 months, not 0.3.3
Also address the inconsistency: vite is pinned to 6.4.1 (exact version) while vitest and vitest-canvas-mock use caret ranges. Adopt a consistent versioning strategy across all dev dependencies.
🤖 Prompt for AI Agents
packages/journey-client/package.json lines 36-38: dev dependencies are pinned to
old/inconsistent versions; update "vite" to "^7.2.0", "vitest" to "^4.0.15", and
"vitest-canvas-mock" to "^1.1.3" (or to the current latest stable), and make
versioning consistent (use caret ranges for all devDependencies), then run
npm/yarn install and adjust vitest/Vite config if required for breaking changes
(e.g., update test environment/config keys to match Vitest 4 and Vite 7
compatibility).
624ef2f to
a331fe1
Compare
|
View your CI Pipeline Execution ↗ for commit 42c5eac
☁️ Nx Cloud last updated this comment at |
@forgerock/davinci-client
@forgerock/device-client
@forgerock/journey-client
@forgerock/oidc-client
@forgerock/protect
@forgerock/sdk-types
@forgerock/sdk-utilities
@forgerock/iframe-manager
@forgerock/sdk-logger
@forgerock/sdk-oidc
@forgerock/sdk-request-middleware
@forgerock/storage
commit: |
|
Deployed 3f6c262 to https://ForgeRock.github.io/ping-javascript-sdk/pr-509/3f6c262c464bae3996fb433472b13ea29484117e branch gh-pages in ForgeRock/ping-javascript-sdk |
📦 Bundle Size Analysis📦 Bundle Size Analysis🚨 Significant Changes🔻 @forgerock/journey-client - 0.0 KB (-82.4 KB, -100.0%) 📊 Minor Changes📈 @forgerock/journey-client - 82.4 KB (+0.0 KB) ➖ No Changes➖ @forgerock/device-client - 9.2 KB 13 packages analyzed • Baseline from latest Legend🆕 New package ℹ️ How bundle sizes are calculated
🔄 Updated automatically on each push to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (18.81%) is below the target coverage (40.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #509 +/- ##
==========================================
+ Coverage 18.79% 18.81% +0.02%
==========================================
Files 140 140
Lines 27640 27647 +7
Branches 980 981 +1
==========================================
+ Hits 5195 5202 +7
Misses 22445 22445 🚀 New features to boost your workflow:
|
ancheetah
left a comment
There was a problem hiding this comment.
Thanks for catching these Ryan. Do we need a typedoc.json as well?
packages/journey-client/package.json
Outdated
| "@vitest/coverage-v8": "^1.2.0", | ||
| "vite": "6.4.1", | ||
| "vitest": "^1.2.0" | ||
| "vitest": "^1.2.0", |
packages/journey-client/package.json
Outdated
| }, | ||
| "devDependencies": { | ||
| "@vitest/coverage-v8": "^1.2.0", | ||
| "vite": "6.4.1", |
There was a problem hiding this comment.
why do we need vite at all in this package?
d63c564 to
9cc3d20
Compare
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
dac117b to
134385b
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/journey-client/package.json`:
- Around line 35-36: The package.json entry for "vitest-canvas-mock" currently
uses the catalog alias "catalog:vitest" which is invalid because that package
isn't listed in the vitest catalog; either add "vitest-canvas-mock": "^0.3.3" to
the vitest catalog in pnpm-workspace.yaml under catalogs.vitest, or change the
dependency in packages/journey-client/package.json to a direct version string
(e.g., "^0.3.3") so the resolver can find it; update the "vitest-canvas-mock"
dependency key accordingly and keep "vitest" as-is.
134385b to
42c5eac
Compare
JIRA Ticket
N/A
Description
Noticed some dirs were part of the snapshot that shouldn't have been.
Summary by CodeRabbit
Chores
Documentation