Skip to content

fix: detect message links with linkifyjs instead of a backtracking regex (v7) - #751

Merged
oliverlaz merged 4 commits into
7.x.xfrom
fix/v7-message-text-link-detection
Nov 26, 2026
Merged

oliverlaz merged 4 commits into
7.x.xfrom
fix/v7-message-text-link-detection

Conversation

@oliverlaz

@oliverlaz oliverlaz commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

🎯 Goal

Port of #750 to the v7 release line, plus what 7.x.x needs to be tested and released as a maintenance branch (7.x.x is a new branch created at the v7.2.0 tag).

πŸ›  Implementation details

fix: detect message links with linkifyjs instead of a backtracking regex: same change as #750. Links in message text are found with linkifyjs (linear-time scanner) instead of a regex that could take a very long time on some inputs. For v7:

  • The spec uses v7's StreamMessage type instead of LocalMessage.
  • The lockfile moves linkifyjs from 4.3.2 to 4.4.0. It was already installed through stream-chat@9.20.0, which accepts ^4.3.2, so there is still a single copy. Versions before 4.4.0 are slow on some long inputs.

The behaviour changes are the same as in #750: hostnames on TLDs linkifyjs doesn't know (*.internal, *.corp, *.local) are no longer linked; bare localhost:3000 and URLs containing @ now are; trailing punctuation is no longer part of a link.

ci: test and release the 7.x.x maintenance branch:

  • workflow.yml is now master's current version, triggered for pushes and PRs on 7.x.x. It no longer releases on push, and production sample-app deploys stay master-only.
  • release.yml is master's manual, approval-gated workflow, allowed to run on 7.x.x.
  • semantic-release branches is now ["master", "7.x.x"], the same way 4.x.x was set up, so releases from 7.x.x are 7.2.x patches with the release-7.x.x dist-tag (not latest). The stale feat/ngx-translate-v18-support prerelease entry is removed.

chore: bump vercel: Vercel CLI ^48.1.6 β†’ ^65.16.0, the same bump as master's eb45396d. With 48.x the sample-app preview deploy fails at vercel pull ("Could not retrieve Project Settings"). Only Vercel's own dependency tree changes in the lockfile.

ci: bump GitHub Actions to their latest versions: actions/checkout@v2 β†’ @v7, actions/cache@v4 β†’ @v6, actions/setup-node@v1 β†’ @v7 in both workflows, the same change as #752 on master.

⚠️ Before releasing

A repo admin needs to allow 7.x.x as a deployment branch of the npm-release environment; until then the Release workflow can't use it. Then run Actions β†’ Release on 7.x.x, starting with a dry run.

πŸ§ͺ Testing

  • ng run stream-chat-angular:test on the v7 code: 738/738 passing. eslint, prettier --check and ng build stream-chat-angular are clean.
  • After the Vercel bump: clean npm ci, build:prod, lint and test:ci (738/738) pass locally.
  • The workflow changes and the sample-app deploy are checked by this PR's own CI run.

@oliverlaz
oliverlaz merged commit 4507622 into 7.x.x Nov 26, 2026
1 check passed
@oliverlaz
oliverlaz deleted the fix/v7-message-text-link-detection branch November 26, 2026 08:56
github-actions Bot pushed a commit that referenced this pull request Nov 26, 2026
## [7.2.1](v7.2.0...v7.2.1) (2026-11-26)

### Bug Fixes

* detect message links with linkifyjs instead of a backtracking regex (v7) ([#751](#751)) ([4507622](4507622))
@github-actions

Copy link
Copy Markdown

πŸŽ‰ This PR is included in version 7.2.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants