Skip to content

Conversation

@ryanbas21
Copy link
Contributor

@ryanbas21 ryanbas21 commented Jun 30, 2025

JIRA Ticket

N/A

Description

This is a publish to fix the versioning problem presented when using ping-protect. We are now using the ~^so that any minor will be picked up.

https://pnpm.io/workspaces#publishing-workspace-packages

shows a reference to how this is translated

@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2025

🦋 Changeset detected

Latest commit: ba1aa07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@forgerock/ping-protect Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ryanbas21 ryanbas21 force-pushed the fix-protect-package-versioning branch from f6b6c10 to 6bcd150 Compare June 30, 2025 15:34
@nx-cloud
Copy link

nx-cloud bot commented Jun 30, 2025

View your CI Pipeline Execution ↗ for commit a87b517.

Command Status Duration Result
nx affected -t build lint test docs e2e-ci --ve... ✅ Succeeded <1s View ↗
nx-cloud record -- nx format:check --verbose ✅ Succeeded 9s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-30 15:53:33 UTC

@ryanbas21 ryanbas21 force-pushed the fix-protect-package-versioning branch 2 times, most recently from e2cb0e6 to ba1aa07 Compare June 30, 2025 15:38
@codecov-commenter
Copy link

codecov-commenter commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.68%. Comparing base (5ddbab1) to head (a87b517).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #546   +/-   ##
========================================
  Coverage    58.68%   58.68%           
========================================
  Files          105      105           
  Lines        25680    25680           
  Branches      1690     1690           
========================================
  Hits         15070    15070           
  Misses       10610    10610           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ryanbas21 ryanbas21 force-pushed the fix-protect-package-versioning branch from ba1aa07 to a87b517 Compare June 30, 2025 15:52
{
"name": "@forgerock/javascript-sdk",
"version": "4.8.1",
"version": "4.8.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be 4.8.3 or will the changeset auto bump this? The current release in Github is already 4.8.2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would get bumped, i just manually made this up to date because i had to do a manual publish for the last release

],
"commit": false,
"fixed": [["@forgerock/javascript-sdk"]],
"fixed": [["@forgerock/javascript-sdk"], ["@forgerock/ping-protect"]],
Copy link
Contributor

Choose a reason for hiding this comment

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

This will cause protect to always be versioned along with the js sdk, changing the protect version from 4.6.0 --> 4.8.1 in this release. Is that correct/intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It won't version it with the SDK, but the SDK would get bumped because it's a dependent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They would have to be grouped in the same sub-array to be fixed together (pretty sure but we can see in the release pr)

"types": "./dist/index.ts.d.ts",
"dependencies": {
"@forgerock/javascript-sdk": "workspace:*"
"@forgerock/javascript-sdk": "workspace:^"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a version number after this? What does the caret mean when it's alone like this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pnpm workspace syntax allows for ^, ~, or *

  • means - fixed version
    ~ means patch only
    ^ means minors allowed

so if the forgerock/javascript-sdk is at version 4.8.2 when we publish this it translates to

4.8.2
^4.8.2
~4.8.2

respectively. so in this case changing the * to a ^ gives us ^4.8.2 instead of 4.8.2

pnpm automatically resolves this syntax when publish is called

@ryanbas21 ryanbas21 merged commit 6d1ae39 into develop Jun 30, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Jun 30, 2025
This was referenced Oct 28, 2025
This was referenced Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants