-
Notifications
You must be signed in to change notification settings - Fork 76
Update dependencies, require node 20 #775
base: develop
Are you sure you want to change the base?
Changes from 7 commits
f280497
1692062
81b29b3
b8c5c6b
1777f11
8790e83
4efd49e
5cbd1f4
7f3cdec
af9075b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node_version: [16, 18] | ||
| node_version: [20] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js | ||
|
|
@@ -24,7 +24,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node_version: [16, 18] | ||
| node_version: [20] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js | ||
|
|
@@ -38,7 +38,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally we should make sure this works before merging. |
||
| strategy: | ||
| matrix: | ||
| node_version: [16, 18] | ||
| node_version: [20] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js | ||
|
|
@@ -51,5 +51,5 @@ jobs: | |
| docker run --detach --publish 5432:5432 \ | ||
| --env POSTGRES_PASSWORD=pass \ | ||
| --env POSTGRES_INITDB_ARGS="--lc-collate C --lc-ctype C --encoding UTF8" \ | ||
| postgres:13 | ||
| postgres:16 | ||
| - run: yarn test:postgres | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Require node 20, update dependencies. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be a I wouldn't both stating that dependencies are updated, it doesn't help the user any to know that.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good points. Changed in 7f3cdec |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,14 +25,6 @@ const log = new Logger("substitutions"); | |
| const ATTACHMENT_TYPES = ["m.audio", "m.video", "m.file", "m.image"]; | ||
| const PILL_REGEX = /<a href="https:\/\/matrix\.to\/#\/(#|@|\+)([^"]+)">([^<]+)<\/a>/g; | ||
|
|
||
| /** | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assuming this is now part of the functionality.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct. I've now added tests to verify this. |
||
| * Will return the emoji's name within ':'. | ||
| * @param name The emoji's name. | ||
| */ | ||
| export const getFallbackForMissingEmoji = (name: string): string => ( | ||
| `:${name}:` | ||
| ); | ||
|
|
||
| interface PillItem { | ||
| id: string; | ||
| text: string; | ||
|
|
@@ -74,7 +66,7 @@ class Substitutions { | |
| body = url ? body.replace(file.permalink, url) : body; | ||
| } | ||
|
|
||
| body = emoji.emojify(body, getFallbackForMissingEmoji); | ||
| body = emoji.emojify(body); | ||
|
|
||
| return body; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N.B. Remember to update the Dockerfile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in af9075b