Upgrade dependencies

- mpris-service: migrate to @jellybrick/mpris-service, which has upgraded dependencies and uses class
- i18next-parser: 6 -> 8. This requires a small change to i18next-parser.config.js
This commit is contained in:
Kendall Garner 2024-04-28 20:50:52 -07:00
parent 5259f2401b
commit 89688455e0
No known key found for this signature in database
GPG Key ID: 18D2767419676C87
7 changed files with 3774 additions and 1222 deletions

2118
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -253,7 +253,7 @@
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^7.0.4",
"i18next-parser": "^6.6.0",
"i18next-parser": "^8.13.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
@ -357,7 +357,7 @@
"styled-components": "^6"
},
"devEngines": {
"node": ">=14.x",
"node": ">=16.x",
"npm": ">=7.x"
},
"browserslist": [],

File diff suppressed because it is too large Load Diff

View File

@ -13,8 +13,8 @@
"postinstall": "npm run electron-rebuild && npm run link-modules"
},
"dependencies": {
"@jellybrick/mpris-service": "2.1.4",
"cheerio": "^1.0.0-rc.12",
"mpris-service": "^2.1.2",
"ws": "^8.13.0"
},
"devDependencies": {

View File

@ -37,7 +37,11 @@ module.exports = {
output: 'src/renderer/i18n/locales/$LOCALE.json',
pluralSeparator: '_',
resetDefaultValueLocale: 'en',
skipDefaultValues: false,
// Per migration guide, replacement for skipDefaultValues
// https://github.com/i18next/i18next-parser/blob/master/docs/migration.md
defaultValue: function (locale, namespace, key, value) {
return '';
},
sort: true,
useKeysAsDefaultValue: true,
verbose: false,

View File

@ -1,9 +1,9 @@
import { ipcMain } from 'electron';
import Player from 'mpris-service';
import Player from '@jellybrick/mpris-service';
import { PlayerRepeat, PlayerStatus, SongUpdate } from '../../../renderer/types';
import { getMainWindow } from '../../main';
const mprisPlayer = Player({
const mprisPlayer = new Player({
identity: 'Feishin',
maximumRate: 1.0,
minimumRate: 1.0,

View File

@ -1 +1 @@
declare module 'mpris-service';
declare module '@jellybrick/mpris-service';