8000 ENG-237 Publish packages to NPM by leite08 · Pull Request #3785 · metriport/metriport · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ENG-237 Publish packages to NPM #3785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025
Merged

Conversation

leite08
Copy link
Member
@leite08 leite08 commented May 5, 2025

Dependencies

Description

  • api@1.27.2
  • @metriport/api-sdk@14.14.2
  • @metriport/carequality-cert-runner@1.18.2
  • @metriport/carequality-sdk@1.6.2
  • @metriport/commonwell-cert-runner@1.26.2
  • @metriport/commonwell-jwt-maker@1.24.2
  • @metriport/commonwell-sdk@5.9.0
  • @metriport/core@1.24.2
  • @metriport/ihe-gateway-sdk@0.19.2
  • infrastructure@1.22.2
  • mllp-server@0.3.2
  • @metriport/shared@0.23.2
  • utils@1.25.2

Summary by CodeRabbit

  • Chores
    • Updated multiple packages and dependencies from alpha pre-release versions to stable releases. No changes to functionality or public interfaces.

Ref: #000

 - api@1.27.2
 - @metriport/api-sdk@14.14.2
 - @metriport/carequality-cert-runner@1.18.2
 - @metriport/carequality-sdk@1.6.2
 - @metriport/commonwell-cert-runner@1.26.2
 - @metriport/commonwell-jwt-maker@1.24.2
 - @metriport/commonwell-sdk@5.9.0
 - @metriport/core@1.24.2
 - @metriport/ihe-gateway-sdk@0.19.2
 - infrastructure@1.22.2
 - mllp-server@0.3.2
 - @metriport/shared@0.23.2
 - utils@1.25.2

Signed-off-by: Rafael Leite <2132564+leite08@users.noreply.github.com>
Copy link
linear bot commented May 5, 2025

Copy link
coderabbitai bot commented May 5, 2025

Walkthrough

This change updates the version numbers of multiple packages from pre-release alpha versions to their corresponding stable release versions. The updates are applied to the main version fields as well as to internal dependencies within the monorepo, ensuring all packages and their dependencies reference stable releases instead of alpha versions. No changes were made to functionality, scripts, metadata, or the declarations of exported or public entities.

Changes

File(s) Change Summary
packages/api/package.json
packages/carequality-sdk/package.json
packages/core/package.json
packages/infra/package.json
packages/mllp-server/package.json
packages/shared/package.json
packages/utils/package.json
Updated package version from pre-release alpha to stable release. No other changes.
packages/api-sdk/package.json Updated package version and internal dependencies (@metriport/commonwell-sdk, @metriport/shared) from alpha to stable.
packages/carequality-cert-runner/package.json Updated package version and dependencies (@metriport/ihe-gateway-sdk, @metriport/shared) from alpha to stable.
packages/commonwell-cert-runner/package.json
packages/commonwell-jwt-maker/package.json
Updated package version and dependency on @metriport/commonwell-sdk from alpha to stable.
packages/commonwell-sdk/package.json Updated package version and dependency on @metriport/shared from alpha to stable.
packages/ihe-gateway-sdk/package.json Updated package version and dependency on @metriport/shared from alpha to stable.

Possibly related PRs

  • chore(release): publish #3750: Updates package versions from pre-release alpha to stable releases across multiple packages, similar in scope and content.
  • chore(release): publish #3627: Performs version updates in package.json files for the same set of packages, transitioning from alpha to stable releases.
  • chore(release): publish #3641: Updates package versions and dependencies from alpha pre-release to stable release in multiple package.json files across the same packages.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
github-actions bot commented May 5, 2025

⚠️ This PR is titled PATCH or RELEASE but its not targeting the master branch. Please update the base branch to master or update the PR title.

@leite08 leite08 changed the title chore(release): publish ENG-237 Publish packages to NPM May 5, 2025
@leite08 leite08 marked this pull request as ready for review May 5, 2025 16:49
@leite08 leite08 added this pull request to the merge queue May 5, 2025
Copy link
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed fr 8000 om the base of the PR and between 4b1639d and 2e56a0c.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (13)
  • packages/api-sdk/package.json (2 hunks)
  • packages/api/package.json (1 hunks)
  • packages/carequality-cert-runner/package.json (2 hunks)
  • packages/carequality-sdk/package.json (1 hunks)
  • packages/commonwell-cert-runner/package.json (2 hunks)
  • packages/commonwell-jwt-maker/package.json (2 hunks)
  • packages/commonwell-sdk/package.json (2 hunks)
  • packages/core/package.json (1 hunks)
  • packages/ihe-gateway-sdk/package.json (2 hunks)
  • packages/infra/package.json (1 hunks)
  • packages/mllp-server/package.json (1 hunks)
  • packages/shared/package.json (1 hunks)
  • packages/utils/package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: leite08
PR: metriport/metriport#3463
File: packages/api-sdk/src/medical/models/patient.ts:1-1
Timestamp: 2025-03-19T13:58:17.253Z
Learning: When changes are made to SDK packages (`api-sdk`, `commonwell-sdk`, `carequality-sdk`) or `packages/shared` in the Metriport codebase, alpha versions need to be published to NPM before merging the PR.
packages/commonwell-sdk/package.json (1)
Learnt from: leite08
PR: metriport/metriport#3463
File: packages/api-sdk/src/medical/models/patient.ts:1-1
Timestamp: 2025-03-19T13:58:17.253Z
Learning: When changes are made to SDK packages (`api-sdk`, `commonwell-sdk`, `carequality-sdk`) or `packages/shared` in the Metriport codebase, alpha versions need to be published to NPM before merging the PR.
packages/carequality-sdk/package.json (1)
Learnt from: leite08
PR: metriport/metriport#3463
File: packages/api-sdk/src/medical/models/patient.ts:1-1
Timestamp: 2025-03-19T13:58:17.253Z
Learning: When changes are made to SDK packages (`api-sdk`, `commonwell-sdk`, `carequality-sdk`) or `packages/shared` in the Metriport codebase, alpha versions need to be published to NPM before merging the PR.
packages/api-sdk/package.json (1)
Learnt from: leite08
PR: metriport/metriport#3463
File: packages/api-sdk/src/medical/models/patient.ts:1-1
Timestamp: 2025-03-19T13:58:17.253Z
Learning: When changes are made to SDK packages (`api-sdk`, `commonwell-sdk`, `carequality-sdk`) or `packages/shared` in the Metriport codebase, alpha versions need to be published to NPM before merging the PR.
⏰ Context from checks skipped due to timeout of 90000ms (13)
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: check-pr / lint-build-test
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (16)
packages/core/package.json (1)

3-3: Bump package version to stable release

Updated the @metriport/core version from the pre-release 1.24.2-alpha.0 to the stable 1.24.2, aligning with the PR’s goal of shipping stable releases across the monorepo. Since this package is marked "private": true", this version bump ensures internal consistency.

Please verify that CHANGELOG.md or any release notes have been updated to document this version change.

packages/infra/package.json (1)

3-3: Approve version bump to stable release.

The version has been correctly updated from the pre-release 1.22.2-alpha.0 to the stable 1.22.2, matching the broader release plan for PR #3785.
Please verify that this version has been published successfully to the NPM registry and that downstream consumers are referencing the new release.

packages/carequality-sdk/package.json (1)

3-3:

✅ Verification successful

Version bump is correct; confirm NPM availability.

The version was updated from the alpha pre-release to the stable 1.6.2. Before merging, please verify that this release is published to NPM so consumers can install it without errors.

Run:

Expected output: 1.6.2


🏁 Script executed:

#!/bin/bash
npm view @metriport/carequality-sdk@1.6.2 version

Length of output: 57


NPM availability confirmed for @metriport/carequality-sdk@1.6.2
Version 1.6.2 is published on npm (npm view returned 1.6.2). No further action required before merging.

packages/mllp-server/package.json (2)

3-3: Approve stable version bump
The version has been correctly updated from the alpha pre-release to the stable release "0.3.2" in line with the PR objectives.


33-34:

❓ Verification inconclusive

Verify handling of local file dependencies
The dependencies on "file:packages/core" and "file:packages/shared" may not resolve correctly during an NPM publish. Please ensure your release process replaces these with the published version numbers (e.g., "@metriport/core": "^1.24.2") or confirm that your registry/workflow supports file-based installs.

You can run the following to locate all file-based dependencies across the monorepo:


🏁 Script executed:

#!/bin/bash
# Find all file-based deps in package.json files
rg '"file:packages/' -tjson

Length of output: 3388


To determine whether your release tooling will handle these file: dependencies automatically, let’s check for monorepo configuration (Yarn Workspaces, Lerna, PNPM, Rush, etc.) in the repo root:


🏁 Script executed:

#!/bin/bash
# Check for Yarn Workspaces in root package.json
grep -n '"workspaces":' package.json || echo "No 'workspaces' field in root package.json"

# Check for common monorepo config files
for cfg in lerna.json pnpm-workspace.yaml rush.json; do
  if [ -f "$cfg" ]; then
    echo "Found monorepo config: $cfg"
  fi
done

Length of output: 378


To confirm Lerna’s workspace integration and auto‐versioning, let’s inspect your lerna.json:


🏁 Script executed:

#!/bin/bash
# Show lerna configuration
cat lerna.json

Length of output: 265


Validate file-based dependencies with Lerna versioning
We’ve confirmed this is a Yarn Workspaces monorepo using Lerna (independent versioning, npm client). File-URL deps like

"@metriport/core": "file:packages/core",
"@metriport/shared": "file:packages/shared"

won’t be published as semver ranges unless your release pipeline runs lerna version (to bump local packages and update inter-dependencies) followed by lerna publish.

• packages/mllp-server/package.json (lines 33–34)
• Similar entries exist in other packages—use your search script to list them all.

Please confirm that your CI/CD:

  1. Invokes lerna version before publish so these file: specs get rewritten to "^<new-version>".
  2. Or migrate to the workspace: protocol (e.g. "workspace:^1.2.3") to leverage Yarn’s native resolution.
packages/shared/package.json (1)

3-3: Promote shared package to stable release
The bump from 0.23.2-alpha.0 to 0.23.2 aligns with the coordinated stable rollout. Ensure the new version is published to NPM and that any alpha tags are deprecated before merging.

packages/ihe-gateway-sdk/package.json (2)

3-3: Bump SDK package to stable release
Version updated from 0.19.2-alpha.0 to 0.19.2 as part of the stable release. Confirm that the new version is published to NPM.


56-56: Align shared dependency to stable version
Updated @metriport/shared dependency from ^0.23.2-alpha.0 to ^0.23.2. This ensures consistency with the promoted shared package.

packages/commonwell-sdk/package.json (2)

3-3: Promote CommonWell SDK to stable
Version bump from 5.9.0-alpha.0 to 5.9.0 is correct. Verify the stable release has been published to NPM.


63-63: Sync shared dependency to stable release
Changed @metriport/shared from ^0.23.2-alpha.0 to ^0.23.2, matching the shared package promotion.

packages/commonwell-cert-runner/package.json (2)

3-3: Upgrade cert-runner to stable version
Bumped from 1.26.2-alpha.0 to 1.26.2. Confirm that this stable version is available on NPM.


45-45: Update CommonWell SDK dependency
Dependency on @metriport/commonwell-sdk moved from ^5.9.0-alpha.0 to ^5.9.0, ensuring all runners reference the stable SDK.

packages/carequality-cert-runner/package.json (2)

3-3: Promote Carequality cert-runner to stable
Version updated from 1.18.2-alpha.0 to 1.18.2. Please verify the stable package is published to NPM.


44-45: Align dependencies to stable releases

  • @metriport/ihe-gateway-sdk: ^0.19.2
  • @metriport/shared: ^0.23.2

Both changes correctly point at the newly promoted stable packages.

packages/commonwell-jwt-maker/package.json (1)

44-44:

✅ Verification successful

Align internal SDK dependency to stable release
The dependency on @metriport/commonwell-sdk has been updated to ^5.9.0, matching the stable release. Verify that @metriport/commonwell-sdk@5.9.0 is published to avoid unresolved dependencies.


🏁 Script executed:

npm view @metriport/commonwell-sdk@5.9.0 version

Length of output: 56


Verified @metriport/commonwell-sdk@5.9.0 is published
The dependency update matches the stable release and npm view @metriport/commonwell-sdk@5.9.0 confirms version 5.9.0 is available. Ready to merge.

packages/api-sdk/package.json (1)

61-62:

✅ Verification successful

Update internal dependencies to stable versions
Dependencies on @metriport/commonwell-sdk (^5.9.0) and @metriport/shared (^0.23.2) have been synced to stable releases. Ensure both are published on NPM to prevent installation issues.


🏁 Script executed:

npm view @metriport/commonwell-sdk@5.9.0 version
npm view @metriport/shared@0.23.2 version

Length of output: 107


Approve: Stable dependency versions are published
I’ve confirmed that both @metriport/commonwell-sdk@5.9.0 and @metriport/shared@0.23.2 are available on npm. No further action is required—merging is safe.

• File: packages/api-sdk/package.json (lines 61–62)

@@ -1,6 +1,6 @@
{
"name": "api",
"version": "1.27.2-alpha.0",
"version": "1.27.2",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Ensure package can be published
The version bump to 1.27.2 aligns with the stable release, but since this package is marked "private": true, npm will refuse to publish it. Please update to "private": false (or remove the field) so the package can be published as intended.

Recommended diff:

-  "private": true,
+  "private": false,
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"version": "1.27.2",
"version": "1.27.2",
- "private": true,
+ "private": false,

@@ -1,6 +1,6 @@
{
"name": "infrastructure",
"version": "1.22.2-alpha.0",
"version": "1.22.2",
"private": true,
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Ensure package is publishable.

The "private": true flag prevents this package from being published to NPM. Since PR #3785 intends to publish infrastructure 1.22.2, please remove or update this field to allow publishing.

Suggested fix:

-  "private": true,
+  "private": false,
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"private": true,
"private": false,

@@ -1,6 +1,6 @@
{
"name": "utils",
"version": "1.25.2-alpha.0",
"version": "1.25.2",
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Confirm publication settings for the utils package

The version bump to "1.25.2" is correct for a stable release. However, the package is still marked "private": true", which will block any attempt to publish it to NPM. Since this PR’s objective includes publishing utils to the registry, please remove or set "private": false, or clarify if utils should remain private.


Let's verify whether the private flag in packages/utils/package.json is set to true:


🏁 Script executed:

#!/bin/bash
# Check for the "private" field in the utils package.json
rg '"private"\s*:\s*' -n packages/utils/package.json

Length of output: 75


Remove or Disable the private Flag to Enable Publishing

The packages/utils/package.json is currently marked as private, which will prevent it from being published to npm. Since this PR intends to release version 1.25.2 of utils, please remove the private field or set it to false.

• File: packages/utils/package.json
Line 5

Suggested change:

-  "private": true,
+  "private": false,
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"version": "1.25.2",
"version": "1.25.2",
"private": false,

@@ -1,6 +1,6 @@
{
"name": "mllp-server",
"version": "0.3.2-alpha.0",
"version": "0.3.2",
"description": "MLLP server that reads HL7 messages off of a raw tcp connection",
"main": "app.js",
"private": true,
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Blocker: Remove private field before publishing
The "private": true setting will prevent npm publish from succeeding. Since mllp-server is intended to be published to NPM (per PR summary), please remove this line.

Suggested diff:

-  "private": true,
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"private": true,

@@ -1,6 +1,6 @@
{
"name": "@metriport/commonwell-jwt-maker",
"version": "1.24.2-alpha.0",
"version": "1.24.2",
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Promote package to stable release
Updating the version from 1.24.2-alpha.0 to 1.24.2 correctly prepares this package for stable publication. Ensure you’ve created the corresponding Git tag and that the NPM registry reflects 1.24.2.

Consider running:


🏁 Script executed:

npm view @metriport/commonwell-jwt-maker@1.24.2 version

Length of output: 64


🏁 Script executed:

#!/bin/bash
# Verify that the Git tag for v1.24.2 exists on the remote
git fetch --tags
git ls-remote --tags origin | grep -E "refs/tags/(v?1\.24\.2)$"

Length of output: 65555


Missing Git tag for v1.24.2
The npm registry shows version 1.24.2, but I don’t see a corresponding Git tag on the remote. Please create and push the tag before finalizing this release. For example:

git tag v1.24.2
git push origin v1.24.2

@@ -1,6 +1,6 @@
{
"name": "@metriport/api-sdk",
"version": "14.14.2-alpha.0",
"version": "14.14.2",
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Promote API SDK to stable release
Bumping from 14.14.2-alpha.0 to 14.14.2 prepares this SDK for production use. Confirm the 14.14.2 Git tag exists and that the package has been published to NPM.


🏁 Script executed:

npm view @metriport/api-sdk@14.14.2 version

Length of output: 53


🏁 Script executed:

#!/bin/bash
set -eo pipefail

# Ensure latest tags are available
git fetch --tags

# Check for a tag matching 14.14.2 or v14.14.2
git tag -l | grep -E "^v?14\.14\.2$" || {
  echo "No matching git tag found for 14.14.2"
  exit 1
}

Length of output: 170


Git tag missing for release 14.14.2
The NPM package @metriport/api-sdk@14.14.2 is published, but I couldn’t find a corresponding Git tag. Please create and push a 14.14.2 (or v14.14.2) tag before merging.

• Verify locally:

git fetch --tags
git tag -l | grep -E "^v?14\.14\.2$"

• If missing, create and push:

git tag 14.14.2
git push origin 14.14.2

Merged via the queue into develop with commit 47e20bd May 5, 2025
39 of 40 checks passed
@leite08 leite08 deleted the eng-237-retry-on-500-from-cw_2 branch May 5, 2025 16:53
@coderabbitai coderabbitai bot mentioned this pull request May 13, 2025
1 task
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.

2 participants
0