Repository navigation
fix: detect message links with linkifyjs instead of a backtracking regex (v7) - #751
Merged
Merged
Conversation
szuperaz
approved these changes
Nov 25, 2026
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))
|
π This PR is included in version 7.2.1 π The release is available on: Your semantic-release bot π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π― Goal
Port of #750 to the v7 release line, plus what
7.x.xneeds to be tested and released as a maintenance branch (7.x.xis a new branch created at thev7.2.0tag).π 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:StreamMessagetype instead ofLocalMessage.linkifyjsfrom 4.3.2 to 4.4.0. It was already installed throughstream-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; barelocalhost:3000and URLs containing@now are; trailing punctuation is no longer part of a link.ci: test and release the 7.x.x maintenance branch:workflow.ymlis nowmaster's current version, triggered for pushes and PRs on7.x.x. It no longer releases on push, and production sample-app deploys staymaster-only.release.ymlismaster's manual, approval-gated workflow, allowed to run on7.x.x.branchesis now["master", "7.x.x"], the same way4.x.xwas set up, so releases from7.x.xare 7.2.x patches with therelease-7.x.xdist-tag (notlatest). The stalefeat/ngx-translate-v18-supportprerelease entry is removed.chore: bump vercel: Vercel CLI^48.1.6β^65.16.0, the same bump asmaster'seb45396d. With 48.x the sample-app preview deploy fails atvercel 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β@v7in both workflows, the same change as #752 onmaster.A repo admin needs to allow
7.x.xas a deployment branch of thenpm-releaseenvironment; until then the Release workflow can't use it. Then run Actions β Release on7.x.x, starting with a dry run.π§ͺ Testing
ng run stream-chat-angular:teston the v7 code: 738/738 passing.eslint,prettier --checkandng build stream-chat-angularare clean.npm ci,build:prod,lintandtest:ci(738/738) pass locally.