Skip to content

chore(deps): bump js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri, sharp, and postcss - #41537

Merged
ggazzo merged 6 commits into
release-8.7.0from
bump-deps-js-fast-open
Jul 29, 2026
Merged

chore(deps): bump js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri, sharp, and postcss#41537
ggazzo merged 6 commits into
release-8.7.0from
bump-deps-js-fast-open

Conversation

@yasnagat

@yasnagat yasnagat commented Jul 23, 2026

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

This PR bumps: js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri, sharp, and postcss dependencies to address related High CVEs.

Issue(s)

Steps to test or reproduce

Further comments

sharp bump: 0.33.5 → 0.35.3

  • Why: Fixes GHSA-f88m-g3jw-g9cj (high severity)
  • Behavior change: 0.35.0 added a default limitInputChannels: 5 — >5-channel TIFF/PSD/DICOM/JP2 files now fail sharp processing. Only reachable via custom emoji upload (avatar/general upload already block TIFF before sharp). We've increased the limit from 5 to 8 to prevent from unwanted behaviors.
  • @types/sharp removed: sharp now bundles its own types, making the stale DefinitelyTyped package redundant/conflicting.
  • Code fixes: IMediaService.ts and image/service.ts used import type sharp from 'sharp' + sharp.FitEnum, relying on the old namespace-style types. Sharp's new bundled types (dist/index.d.mts) have no such namespace — only named exports. Changed both to import type { FitEnum } from 'sharp' + keyof FitEnum. Other files import sharp as a value (not type-only), so they're unaffected.

Summary by CodeRabbit

Summary by CodeRabbit

  • Bug Fixes

    • Updated OpenTelemetry exporter and Node SDK to improve tracing reliability.
    • Improved image resizing behavior and TypeScript typing consistency for media “fit” handling.
  • Chores

    • Updated and pinned dependency versions across packages, including OpenTelemetry, mail parsing, sharp, and the PostCSS toolchain (autoprefixer/css-loader/postcss).
    • Refreshed common tooling pins/resolutions (e.g., YAML parsing and linkify-related packages).

@dionisio-bot

dionisio-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5f1f7d9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Updates OpenTelemetry, mailparser, Sharp, PostCSS tooling, and transitive dependency resolutions, while aligning image-resize typings with Sharp’s explicit FitEnum export and configuring stream resizing with an eight-channel input limit.

Changes

Dependency and image typing updates

Layer / File(s) Summary
Dependency version updates
package.json, apps/meteor/package.json, packages/tracing/package.json, ee/apps/ddp-streamer/package.json, packages/livechat/package.json
Runtime, development, and Yarn resolution dependencies are updated, including OpenTelemetry, mailparser, Sharp, PostCSS tooling, fast-uri, linkify-it, and js-yaml; the obsolete Sharp type package is removed.
Image resize type contract
packages/core-services/src/types/IMediaService.ts, apps/meteor/server/services/image/service.ts
Image-resize interfaces and implementations use Sharp’s explicit FitEnum type for both resize methods, and stream resizing initializes Sharp with limitInputChannels: 8.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: type: chore

Suggested reviewers: sampaiodiego, rocketchat-github-ci, tassoevan, dougfabris, julio-rocketchat

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main dependency bumps in the pull request, including sharp, postcss, js-yaml, linkify-it, fast-uri, and OpenTelemetry.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread package.json
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.40%. Comparing base (76d8910) to head (5f1f7d9).
⚠️ Report is 13 commits behind head on release-8.7.0.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-8.7.0   #41537      +/-   ##
=================================================
- Coverage          68.59%   68.40%   -0.19%     
=================================================
  Files               4138     4139       +1     
  Lines             159415   158311    -1104     
  Branches           28188    28357     +169     
=================================================
- Hits              109351   108293    -1058     
+ Misses             44934    44883      -51     
- Partials            5130     5135       +5     
Flag Coverage Δ
e2e 58.88% <ø> (+0.02%) ⬆️
e2e-api 45.36% <100.00%> (-0.01%) ⬇️
unit 70.33% <ø> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 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.

@yasnagat
yasnagat marked this pull request as draft July 24, 2026 16:33
@yasnagat yasnagat changed the title chore(deps): bump js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri chore(deps): bump js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri, sharp Jul 24, 2026
@julio-rocketchat
julio-rocketchat marked this pull request as ready for review July 24, 2026 20:10
@julio-rocketchat
julio-rocketchat requested a review from a team as a code owner July 24, 2026 20:10
@julio-rocketchat julio-rocketchat added the stat: QA assured Means it has been tested and approved by a company insider label Jul 24, 2026
KevLehman
KevLehman previously approved these changes Jul 24, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/meteor/package.json`:
- Line 300: Update the image resize path that constructs Sharp to explicitly
handle inputs exceeding Sharp’s five-channel limit, adding user-facing
validation or a safe fallback for multi-channel TIFF, PSD, DICOM, and JP2
uploads; add regression coverage for these formats and preserve successful
custom emoji processing for supported inputs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 39010c01-c4dc-45b7-b6b6-524d257a86e4

📥 Commits

Reviewing files that changed from the base of the PR and between 87b9e10 and 2d42850.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (4)
  • apps/meteor/package.json
  • apps/meteor/server/services/image/service.ts
  • ee/apps/ddp-streamer/package.json
  • packages/core-services/src/types/IMediaService.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: cubic · AI code reviewer
⚠️ CI failures not shown inline (6)

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ✅ **QA assured**
- ✅ **Mergeable**
- ❌ **Has milestone or project** — This PR is missing the required milestone or project
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ❌ **Has milestone or project** — This PR is missing the required milestone or project
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ❌ **Has milestone or project** — This PR is missing the required milestone or project
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ❌ **Has milestone or project** — This PR is missing the required milestone or project
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ❌ **Has milestone or project** — This PR is missing the required milestone or project
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ❌ **Has milestone or project** — This PR is missing the required milestone or project
- ✅ **Valid PR title**
- ✅ **Correct target version**
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • packages/core-services/src/types/IMediaService.ts
  • apps/meteor/server/services/image/service.ts
🧠 Learnings (3)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • packages/core-services/src/types/IMediaService.ts
  • apps/meteor/server/services/image/service.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • packages/core-services/src/types/IMediaService.ts
  • apps/meteor/server/services/image/service.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • packages/core-services/src/types/IMediaService.ts
  • apps/meteor/server/services/image/service.ts
🔇 Additional comments (6)
apps/meteor/package.json (3)

90-90: 🩺 Stability & Availability

Verify the OpenTelemetry package versions are compatible.

@opentelemetry/sdk-node is being moved to ^0.220.0, while the directly related @opentelemetry/exporter-trace-otlp-grpc remains at ^0.217.0. The tracing code uses both packages together; verify the lockfile has compatible transitive versions, or update the exporter to the matching release. OpenTelemetry documents these packages as experimental, where releases may contain breaking changes. (npmjs.com)


248-248: LGTM!


412-413: LGTM!

ee/apps/ddp-streamer/package.json (1)

46-46: LGTM!

packages/core-services/src/types/IMediaService.ts (1)

3-3: LGTM!

Also applies to: 19-19, 28-28

apps/meteor/server/services/image/service.ts (1)

11-11: LGTM!

Also applies to: 44-44, 57-57

Comment thread apps/meteor/package.json

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/meteor/package.json
@julio-rocketchat
julio-rocketchat dismissed stale reviews from KevLehman and themself via e7cb452 July 24, 2026 20:29
@julio-rocketchat julio-rocketchat added this to the 8.7.0 milestone Jul 24, 2026
@dionisio-bot dionisio-bot Bot added the stat: ready to merge PR tested and approved waiting for merge label Jul 24, 2026
KevLehman
KevLehman previously approved these changes Jul 27, 2026
@yasnagat
yasnagat dismissed stale reviews from KevLehman and julio-rocketchat via 5f1f7d9 July 28, 2026 22:02
@yasnagat
yasnagat requested review from a team as code owners July 28, 2026 22:02
@yasnagat yasnagat changed the title chore(deps): bump js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri, sharp chore(deps): bump js-yaml, linkify-it, @opentelemetry/sdk-node, fast-uri, sharp, and postcss Jul 29, 2026
@ggazzo
ggazzo merged commit a4f5098 into release-8.7.0 Jul 29, 2026
113 of 131 checks passed
@ggazzo
ggazzo deleted the bump-deps-js-fast-open branch July 29, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge type: chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants