Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7f3f186

Browse files
authored
Switch back to upstream Linkify (#7677)
1 parent 3f789d3 commit 7f3f186

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@
5858
},
5959
"dependencies": {
6060
"@babel/runtime": "^7.12.5",
61-
"@matrix-org/linkify-element": "^4.0.0-rc.5",
62-
"@matrix-org/linkify-string": "^4.0.0-rc.5",
63-
"@matrix-org/linkifyjs": "^4.0.0-rc.6",
6461
"@sentry/browser": "^6.11.0",
6562
"@sentry/tracing": "^6.11.0",
6663
"@types/geojson": "^7946.0.8",
@@ -88,6 +85,9 @@
8885
"is-ip": "^3.1.0",
8986
"jszip": "^3.7.0",
9087
"katex": "^0.12.0",
88+
"linkify-element": "^4.0.0-beta.4",
89+
"linkify-string": "^4.0.0-beta.4",
90+
"linkifyjs": "^4.0.0-beta.4",
9191
"lodash": "^4.17.20",
9292
"maplibre-gl": "^1.15.2",
9393
"matrix-analytics-events": "github:matrix-org/matrix-analytics-events.git#dfa6feaa12bcfc8e99b05a148e12fff7f9d62f08",

src/linkify-matrix.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
import * as linkifyjs from '@matrix-org/linkifyjs';
19-
import linkifyElement from '@matrix-org/linkify-element';
20-
import linkifyString from '@matrix-org/linkify-string';
18+
import * as linkifyjs from 'linkifyjs';
19+
import { registerCustomProtocol, registerPlugin } from 'linkifyjs';
20+
import linkifyElement from 'linkify-element';
21+
import linkifyString from 'linkify-string';
2122
import { RoomMember } from 'matrix-js-sdk/src/models/room-member';
22-
import { registerCustomProtocol, registerPlugin } from '@matrix-org/linkifyjs';
2323

2424
import { baseUrl } from "./utils/permalinks/MatrixToPermalinkConstructor";
2525
import {

yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,21 +1430,6 @@
14301430
resolved "https://registry.yarnpkg.com/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz#497c67a1cef50d1a2459ba60f315e448d2ad87fe"
14311431
integrity sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==
14321432

1433-
"@matrix-org/linkify-element@^4.0.0-rc.5":
1434-
version "4.0.0-rc.5"
1435-
resolved "https://registry.yarnpkg.com/@matrix-org/linkify-element/-/linkify-element-4.0.0-rc.5.tgz#0c27e81272638674ba4162fec2fd131b2c36c163"
1436-
integrity sha512-6sdJ5x9EZpUNVZqc2Dig8Q4hySdL2fdE/ivehk4L3y3rV7tMD0fRs5rXQQ4wcgCMhGAAGbscbNiS8pyZIy9Hlg==
1437-
1438-
"@matrix-org/linkify-string@^4.0.0-rc.5":
1439-
version "4.0.0-rc.5"
1440-
resolved "https://registry.yarnpkg.com/@matrix-org/linkify-string/-/linkify-string-4.0.0-rc.5.tgz#139ba23c70a4f5b531656365a6109c122177b132"
1441-
integrity sha512-WFyu6+kVEPJsDwZwgCSrtUDeIMDdWIFzRRq5z+MLYHiO3J8G19jvRjRnNm4dwjDUqROWhvWS9b8JG7rbuwjkLQ==
1442-
1443-
"@matrix-org/linkifyjs@^4.0.0-rc.6":
1444-
version "4.0.0-rc.6"
1445-
resolved "https://registry.yarnpkg.com/@matrix-org/linkifyjs/-/linkifyjs-4.0.0-rc.6.tgz#62bce99272e0b2a78896b01651d8b26602247f32"
1446-
integrity sha512-RoBejrxlv8jJjaZ9itTx0+JW8ECNEvj7iJzbD1rGhToLZjRZ5qXexWIa3+Vu4qmm+Yic+ETPCSH7odYWSYj/fA==
1447-
14481433
"@matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.8.tgz":
14491434
version "3.2.8"
14501435
resolved "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.8.tgz#8d53636d045e1776e2a2ec6613e57330dd9ce856"
@@ -6074,6 +6059,21 @@ lines-and-columns@^1.1.6:
60746059
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
60756060
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
60766061

6062+
linkify-element@^4.0.0-beta.4:
6063+
version "4.0.0-beta.4"
6064+
resolved "https://registry.yarnpkg.com/linkify-element/-/linkify-element-4.0.0-beta.4.tgz#31bb5dff7430c4debc34030466bd8f3e297793a7"
6065+
integrity sha512-dsu5qxk6MhQHxXUlPjul33JknQPx7Iv/N8zisH4JtV31qVk0qZg/5gn10Hr76GlMuixcdcxVvGHNfVcvbut13w==
6066+
6067+
linkify-string@^4.0.0-beta.4:
6068+
version "4.0.0-beta.4"
6069+
resolved "https://registry.yarnpkg.com/linkify-string/-/linkify-string-4.0.0-beta.4.tgz#0982509bc6ce81c554bff8d7121057193b84ea32"
6070+
integrity sha512-1U90tclSloCMAhbcuu4S+BN7ZisZkFB6ggKS1ofdYy1bmtgxdXGDppVUV+qRp5rcAudla7K0LBgOiwCQ0WzrYQ==
6071+
6072+
linkifyjs@^4.0.0-beta.4:
6073+
version "4.0.0-beta.4"
6074+
resolved "https://registry.yarnpkg.com/linkifyjs/-/linkifyjs-4.0.0-beta.4.tgz#8a03e7a999ed0b578a14d690585a32706525c45e"
6075+
integrity sha512-j8IUYMqyTT0aDrrkA5kf4hn6QurSKjGiQbqjNr4qc8dwEXIniCGp0JrdXmsGcTOEyhKG03GyRnJjp3NDTBBPDQ==
6076+
60776077
loader-utils@^2.0.0:
60786078
version "2.0.2"
60796079
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.2.tgz#d6e3b4fb81870721ae4e0868ab11dd638368c129"

0 commit comments

Comments
 (0)