Merge pull request #151 from streamwall/bump-dependencies

Bump-dependencies
This commit is contained in:
Ben Menesini
2024-10-05 14:51:39 -07:00
committed by GitHub
5 changed files with 4681 additions and 2450 deletions

View File

@@ -7,10 +7,12 @@ module.exports = {
'\\.(css|less)$': 'identity-obj-proxy', '\\.(css|less)$': 'identity-obj-proxy',
"^preact(/(.*)|$)": "preact$1" "^preact(/(.*)|$)": "preact$1"
}, },
testEnvironment: 'node',
transform: { transform: {
'^.+\\.jsx?$': 'babel-jest', '^.+\\.jsx?$': 'babel-jest',
}, },
transformIgnorePatterns: [
'node_modules/(?!(jsondiffpatch)/)',
],
testPathIgnorePatterns: ['/node_modules/'], testPathIgnorePatterns: ['/node_modules/'],
coveragePathIgnorePatterns: ['/node_modules/'], coveragePathIgnorePatterns: ['/node_modules/'],
collectCoverage: true, collectCoverage: true,

6643
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,62 +16,63 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@iarna/toml": "^2.2.5", "@iarna/toml": "^2.2.5",
"@repeaterjs/repeater": "^3.0.4", "@repeaterjs/repeater": "^3.0.6",
"@sentry/electron": "^4.4.0", "@sentry/electron": "^5.3.0",
"base-x": "^4.0.0", "base-x": "^5.0.0",
"chokidar": "^3.5.3", "chokidar": "^3.6.0",
"color": "^4.2.3", "color": "^4.2.3",
"dank-twitch-irc": "^3.3.0", "dank-twitch-irc": "^4.3.0",
"ejs": "^3.1.9", "ejs": "^3.1.10",
"electron": "^24.1.2", "electron": "^31.3.1",
"hls.js": "^1.4.0", "hls.js": "^1.5.14",
"jsondiffpatch": "^0.4.1", "jsondiffpatch": "^0.6.0",
"koa": "^2.14.2", "koa": "^2.15.3",
"koa-basic-auth": "^4.0.0", "koa-basic-auth": "^4.0.0",
"koa-easy-ws": "^2.1.0", "koa-easy-ws": "^2.1.0",
"koa-route": "^3.2.0", "koa-route": "^4.0.1",
"koa-static": "^5.0.0", "koa-static": "^5.0.0",
"koa-views": "^8.0.0", "koa-views": "^8.1.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"luxon": "^3.3.0", "luxon": "^3.5.0",
"node-fetch": "^3.3.1", "node-fetch": "^3.3.2",
"node-simple-cert": "0.0.1", "node-simple-cert": "0.0.1",
"preact": "^10.13.2", "preact": "^10.23.1",
"react-hotkeys-hook": "^4.4.0", "react-hotkeys-hook": "^4.5.0",
"reconnecting-websocket": "^4.4.0", "reconnecting-websocket": "^4.4.0",
"styled-components": "^5.3.9", "styled-components": "^6.1.12",
"svg-loaders-react": "^2.2.1", "svg-loaders-react": "^2.2.1",
"webpack-dev-server": "^4.13.2", "webpack-dev-server": "^5.0.4",
"ws": "^8.13.0", "ws": "^8.18.0",
"xstate": "^4.37.1", "xstate": "^4.37.1",
"yargs": "^17.7.1", "yargs": "^17.7.2",
"yjs": "^13.5.52" "yjs": "^13.6.18"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.21.4", "@babel/core": "^7.25.2",
"@babel/plugin-proposal-decorators": "^7.24.1", "@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0", "@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-react-jsx": "^7.21.0", "@babel/plugin-transform-react-jsx": "^7.25.2",
"@babel/preset-env": "^7.24.5", "@babel/preset-env": "^7.25.3",
"@svgr/webpack": "^7.0.0", "@svgr/webpack": "^8.1.0",
"babel-jest": "^29.7.0", "babel-jest": "^29.7.0",
"babel-loader": "^9.1.2", "babel-loader": "^9.1.3",
"babel-plugin-styled-components": "^2.1.1", "babel-plugin-styled-components": "^2.1.4",
"bufferutil": "^4.0.8", "bufferutil": "^4.0.8",
"copy-webpack-plugin": "^11.0.0", "copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.7.3", "css-loader": "^7.1.2",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "^29.5.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"jest-junit": "^16.0.0", "jest-junit": "^16.0.0",
"prettier": "2.8.7", "npm-check-updates": "^17.0.6",
"style-loader": "^3.3.2", "prettier": "3.3.3",
"supertest": "^6.3.3", "style-loader": "^4.0.0",
"utf-8-validate": "^5.0.10", "supertest": "^7.0.0",
"webpack": "^5.79.0", "utf-8-validate": "^6.0.4",
"webpack-cli": "^5.0.1" "webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
}, },
"browserslist": [ "browserslist": [
"electron 9.0" "electron 9.0"

View File

@@ -6,7 +6,8 @@ import { validRoles } from '../roles'
const scrypt = promisify(scryptCb) const scrypt = promisify(scryptCb)
const base62 = require('base-x')( import baseX from 'base-x'
const base62 = baseX(
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
) )

View File

@@ -13,6 +13,8 @@ import {
useRef, useRef,
} from 'preact/hooks' } from 'preact/hooks'
import { State } from 'xstate' import { State } from 'xstate'
import isPropValid from '@emotion/is-prop-valid';
import { StyleSheetManager } from 'styled-components';
import styled, { createGlobalStyle } from 'styled-components' import styled, { createGlobalStyle } from 'styled-components'
import { useHotkeys } from 'react-hotkeys-hook' import { useHotkeys } from 'react-hotkeys-hook'
import Color from 'color' import Color from 'color'
@@ -580,6 +582,7 @@ function App({ wsEndpoint, role }) {
} }
return ( return (
<StyleSheetManager shouldForwardProp={(prop) => isPropValid(prop) && !prop.startsWith('$')}>
<Stack flex="1"> <Stack flex="1">
<Stack> <Stack>
<StyledHeader> <StyledHeader>
@@ -788,6 +791,7 @@ function App({ wsEndpoint, role }) {
</StyledDataContainer> </StyledDataContainer>
</Stack> </Stack>
</Stack> </Stack>
</StyleSheetManager>
) )
} }
@@ -888,9 +892,9 @@ function StreamLine({
return ( return (
<StyledStreamLine> <StyledStreamLine>
<StyledId <StyledId
disabled={disabled} $disabled={disabled}
onMouseDown={disabled ? null : handleMouseDownId} onMouseDown={disabled ? null : handleMouseDownId}
color={idColor(id)} $color={idColor(id)}
> >
{id} {id}
</StyledId> </StyledId>
@@ -1120,7 +1124,7 @@ function GridControls({
{roleCan(role, 'set-listening-view') && ( {roleCan(role, 'set-listening-view') && (
<StyledButton <StyledButton
isActive={isListening || isBackgroundListening} isActive={isListening || isBackgroundListening}
activeColor={isListening ? 'red' : Color('red').desaturate(0.5)} activeColor={isListening ? 'red' : Color('red').desaturate(0.5).hsl().string()}
onClick={handleListeningClick} onClick={handleListeningClick}
tabIndex={1} tabIndex={1}
> >
@@ -1234,8 +1238,8 @@ const StyledButton = styled.button`
${({ isActive, activeColor = 'red' }) => ${({ isActive, activeColor = 'red' }) =>
isActive && isActive &&
` `
border-color: ${activeColor}; border-color: ${Color(activeColor).hsl().string()};
background: ${Color(activeColor).desaturate(0.5).lighten(0.5)}; background: ${Color(activeColor).desaturate(0.5).lighten(0.5).hsl().string()};
`}; `};
&:focus { &:focus {
@@ -1271,8 +1275,8 @@ const StyledGridPreviewBox = styled.div.attrs((props) => ({
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: absolute; position: absolute;
background: ${({ color }) => color.lightness(50) || '#333'}; background: ${({ color }) => Color(color).lightness(50).hsl().string() || '#333'};
border: 0 solid ${({ isError }) => (isError ? 'red' : 'black')}; border: 0 solid ${({ isError }) => (isError ? Color('red').hsl().string() : Color('black').hsl().string() )};
border-left-width: ${({ pos, borderWidth }) => border-left-width: ${({ pos, borderWidth }) =>
pos.x === 0 ? 0 : borderWidth}px; pos.x === 0 ? 0 : borderWidth}px;
border-right-width: ${({ pos, borderWidth, windowWidth }) => border-right-width: ${({ pos, borderWidth, windowWidth }) =>
@@ -1331,7 +1335,7 @@ const StyledGridInput = styled(LazyChangeInput)`
border: none; border: none;
padding: 0; padding: 0;
background: ${({ color, isHighlighted }) => background: ${({ color, isHighlighted }) =>
isHighlighted ? color.lightness(90) : color.lightness(75)}; isHighlighted ? Color(color).lightness(90).hsl().string() : Color(color).lightness(75).hsl().string() };
font-size: 20px; font-size: 20px;
text-align: center; text-align: center;
@@ -1368,13 +1372,13 @@ const StyledGridContainer = styled.div.attrs((props) => ({
const StyledId = styled.div` const StyledId = styled.div`
flex-shrink: 0; flex-shrink: 0;
margin-right: 5px; margin-right: 5px;
background: ${({ color }) => color.lightness(50) || '#333'}; background: ${({ $color }) => Color($color).lightness(50).hsl().string() || '#333'};
color: white; color: white;
padding: 3px; padding: 3px;
border-radius: 5px; border-radius: 5px;
width: 3em; width: 3em;
text-align: center; text-align: center;
cursor: ${({ disabled }) => (disabled ? 'normal' : 'pointer')}; cursor: ${({ $disabled }) => ($disabled ? 'normal' : 'pointer')};
` `
const StyledStreamLine = styled.div` const StyledStreamLine = styled.div`