Updating dependencies.

This commit is contained in:
John Livingston 2024-09-10 09:49:21 +02:00
parent c561851bb6
commit 4b5f83c45f
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
10 changed files with 1331 additions and 3507 deletions

View File

@ -13,6 +13,7 @@
* Using Typescript 5.5.4, and Eslint 8.57.0 (with new ruleset). * Using Typescript 5.5.4, and Eslint 8.57.0 (with new ruleset).
* Fix race condition in bot/ctl. * Fix race condition in bot/ctl.
* Various type improvements. * Various type improvements.
* Update dependencies.
## 11.0.1 ## 11.0.1

View File

@ -174,6 +174,12 @@ $small-view: 800px;
a { a {
/* See Peertube .video-channel-names */ /* See Peertube .video-channel-names */
width: fit-content;
display: flex;
align-items: baseline;
/* stylelint-disable-next-line value-keyword-case */
color: var(--mainForegroundColor);
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
@ -184,12 +190,6 @@ $small-view: 800px;
outline: none !important; outline: none !important;
} }
width: fit-content;
display: flex;
align-items: baseline;
/* stylelint-disable-next-line value-keyword-case */
color: var(--mainForegroundColor);
div:first-child { div:first-child {
/* See Peertube .video-channel-display-name */ /* See Peertube .video-channel-display-name */
font-weight: variables.$font-semibold; font-weight: variables.$font-semibold;

View File

@ -9,10 +9,10 @@
livechat-token-list { livechat-token-list {
table { table {
@include tables.data-table;
width: 100%; width: 100%;
@include tables.data-table;
tr th:first-child, tr th:first-child,
tr th:last-child { tr th:last-child {
width: 50px; width: 50px;

View File

@ -67,7 +67,7 @@ export function tplAdminFirewall (el: AdminFirewallElement): TemplateResult {
.maxLines=${maxFirewallFiles} .maxLines=${maxFirewallFiles}
.validation=${el.validationError?.properties} .validation=${el.validationError?.properties}
.validationPrefix=${'files'} .validationPrefix=${'files'}
.rows=${el.firewallConfiguration?.files} .rows=${el.firewallConfiguration?.files ?? []}
@update=${(e: CustomEvent) => { @update=${(e: CustomEvent) => {
el.resetValidation(e) el.resetValidation(e)
if (el.firewallConfiguration) { if (el.firewallConfiguration) {

View File

@ -90,7 +90,7 @@ export function tplChannelEmojis (el: ChannelEmojisElement): TemplateResult {
.maxLines=${maxEmojisPerChannel} .maxLines=${maxEmojisPerChannel}
.validation=${el.validationError?.properties} .validation=${el.validationError?.properties}
.validationPrefix=${'emojis'} .validationPrefix=${'emojis'}
.rows=${el.channelEmojisConfiguration?.emojis.customEmojis} .rows=${el.channelEmojisConfiguration?.emojis.customEmojis ?? []}
@update=${(e: CustomEvent) => { @update=${(e: CustomEvent) => {
el.resetValidation(e) el.resetValidation(e)
if (el.channelEmojisConfiguration) { if (el.channelEmojisConfiguration) {

View File

@ -26,7 +26,7 @@ export class LivechatElement extends LitElement {
this.logger = this.ptContext.logger.createLogger(this.tagName.toLowerCase()) this.logger = this.ptContext.logger.createLogger(this.tagName.toLowerCase())
} }
protected override createRenderRoot = (): Element | ShadowRoot => { protected override createRenderRoot = (): HTMLElement | DocumentFragment => {
return this return this
} }
} }

View File

@ -124,10 +124,7 @@ export default tseslint.config(
} }
}, },
{ {
files: [ files: ['server/**/*.js', 'server/**/*.ts'],
'server/**/*.js', 'server/**/*.ts'
// 'shared/**/*.js', 'shared/**/*.ts' // we also inlcude shared files here.
],
languageOptions: { languageOptions: {
ecmaVersion: 6, ecmaVersion: 6,
globals: { globals: {
@ -136,7 +133,8 @@ export default tseslint.config(
parser: typescriptParser, parser: typescriptParser,
parserOptions: { parserOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
project: './server/tsconfig.json' project: './server/tsconfig.json',
projectService: true
} }
} }
}, },

4785
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,53 +27,53 @@
], ],
"dependencies": { "dependencies": {
"@xmpp/jid": "^0.13.1", "@xmpp/jid": "^0.13.1",
"async": "^3.2.2", "async": "^3.2.6",
"decache": "^4.6.0", "decache": "^4.6.2",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"got": "^11.8.2", "got": "^11.8.2",
"http-proxy": "^1.18.1", "http-proxy": "^1.18.1",
"log-rotate": "^0.2.8", "log-rotate": "^0.2.8",
"openid-client": "^5.6.5", "openid-client": "^5.7.0",
"validate-color": "^2.2.1", "validate-color": "^2.2.4",
"xmppjs-chat-bot": "^0.4.0" "xmppjs-chat-bot": "^0.4.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.10.0", "@eslint/js": "^9.10.0",
"@lit-labs/motion": "^1.0.7", "@lit-labs/motion": "^1.0.7",
"@lit/context": "^1.1.1", "@lit/context": "^1.1.2",
"@lit/task": "^1.0.0", "@lit/task": "^1.0.1",
"@peertube/feed": "^5.1.0", "@peertube/feed": "^5.1.3",
"@peertube/peertube-types": "^5.2.0", "@peertube/peertube-types": "^5.2.0",
"@stylistic/eslint-plugin": "^2.7.2", "@stylistic/eslint-plugin": "^2.8.0",
"@tsconfig/node12": "^1.0.9", "@tsconfig/node12": "^1.0.9",
"@types/async": "^3.2.9", "@types/async": "^3.2.24",
"@types/escape-html": "^1.0.4", "@types/escape-html": "^1.0.4",
"@types/eslint__js": "^8.42.3", "@types/eslint__js": "^8.42.3",
"@types/express": "^4.17.13", "@types/express": "^4.17.21",
"@types/got": "^9.6.12", "@types/got": "^9.6.12",
"@types/http-proxy": "^1.17.9", "@types/http-proxy": "^1.17.15",
"@types/node": "^16.11.6", "@types/node": "^16.11.6",
"@types/winston": "^2.4.4", "@types/winston": "^2.4.4",
"@types/xmpp__jid": "^1.3.5", "@types/xmpp__jid": "^1.3.5",
"@typescript-eslint/parser": "^8.4.0", "@typescript-eslint/parser": "^8.4.0",
"commander": "^11.0.0", "commander": "^12.1.0",
"esbuild": "^0.16.1", "esbuild": "^0.23.1",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-love": "^64.0.0", "eslint-config-love": "^64.0.0",
"eslint-plugin-lit": "^1.15.0", "eslint-plugin-lit": "^1.15.0",
"globals": "^15.9.0", "globals": "^15.9.0",
"lit": "^2.4.0", "lit": "^3.2.0",
"lit-analyzer": "^1.2.1", "lit-analyzer": "^2.0.3",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"sass": "^1.43.4", "sass": "^1.78.0",
"sharp": "^0.33.2", "sharp": "^0.33.5",
"stylelint": "^14.0.1", "stylelint": "^14.0.1",
"stylelint-config-recommended-scss": "^5.0.1", "stylelint-config-recommended-scss": "^5.0.1",
"stylelint-config-standard-scss": "^2.0.1", "stylelint-config-standard-scss": "^2.0.1",
"svgo": "^2.8.0", "svgo": "^3.3.2",
"typescript": "^5.5.4", "typescript": "^5.5.4",
"typescript-eslint": "^8.4.0", "typescript-eslint": "^8.5.0",
"yaml": "^2.2.1" "yaml": "^2.5.1"
}, },
"engine": { "engine": {
"peertube": ">=4.2.0" "peertube": ">=4.2.0"

View File

@ -324,7 +324,7 @@ async function enableProxyRoute (
target: 'http://localhost:' + prosodyProxyInfo.port + '/http-bind', target: 'http://localhost:' + prosodyProxyInfo.port + '/http-bind',
ignorePath: true ignorePath: true
}) })
currentHttpBindProxy.on('error', (err, req, res) => { currentHttpBindProxy.on('error', (err, req, res: any) => { // FIXME: remove the `any`.
// We must handle errors, otherwise Peertube server crashes! // We must handle errors, otherwise Peertube server crashes!
logger.error( logger.error(
'The http bind proxy got an error ' + 'The http bind proxy got an error ' +
@ -346,7 +346,7 @@ async function enableProxyRoute (
ignorePath: true, ignorePath: true,
ws: true ws: true
}) })
currentWebsocketProxy.on('error', (err, req, res) => { currentWebsocketProxy.on('error', (err, req, res: any) => { // FIXME: remove the `any`.
// We must handle errors, otherwise Peertube server crashes! // We must handle errors, otherwise Peertube server crashes!
logger.error( logger.error(
'The websocket proxy got an error ' + 'The websocket proxy got an error ' +
@ -368,7 +368,7 @@ async function enableProxyRoute (
ignorePath: true, ignorePath: true,
ws: true ws: true
}) })
currentS2SWebsocketProxy.on('error', (err, req, res) => { currentS2SWebsocketProxy.on('error', (err, req, res: any) => { // FIXME: remove the `any`.
// We must handle errors, otherwise Peertube server crashes! // We must handle errors, otherwise Peertube server crashes!
logger.error( logger.error(
'The s2s websocket proxy got an error ' + 'The s2s websocket proxy got an error ' +