This repository has been archived by the owner on May 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Bump to ESM and update all deps (#1851)
* chore: Bump various packages * feat: Update everything to ESM * fix: building and porting js to cjs
- Loading branch information
1 parent
89ee84b
commit 05d3208
Showing
32 changed files
with
5,946 additions
and
5,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
src/renderer/*hls*.js | ||
build/* | ||
dist/* | ||
src/renderer/lib/* | ||
*.min.* | ||
.pnpm-store |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
nodeLinker: node-modules | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,11 @@ | |
"version": "1.6.2", | ||
"description": "A new cross-platform Apple Music experience based on Electron and Vue.js written from scratch with performance in mind.", | ||
"license": "AGPL-3.0", | ||
"exports": "./build/index.js", | ||
"main": "./build/index.js", | ||
"author": "Cider Collective <[email protected]> (https://cider.sh)", | ||
"repository": "github:ciderapp/Cider", | ||
"type": "module", | ||
"bugs": { | ||
"url": "https://github.com/ciderapp/Cider/issues?q=is%3Aopen+is%3Aissue+label%3Abug" | ||
}, | ||
|
@@ -29,29 +31,29 @@ | |
"format:write": "npx prettier --write \"src/**/*.{js,json,ts,less}\"" | ||
}, | ||
"dependencies": { | ||
"@achingbrain/ssdp": "^4.0.4", | ||
"@crowdin/ota-client": "^1.1.0", | ||
"@sentry/electron": "^4.6.0", | ||
"@sentry/integrations": "^7.69.0", | ||
"adm-zip": "^0.5.10", | ||
"airtunes2": "github:ciderapp/node_airtunes2", | ||
"castv2-client": "^1.2.0", | ||
"chokidar": "^3.5.3", | ||
"@achingbrain/ssdp": "^4.0.6", | ||
"@crowdin/ota-client": "^1.1.1", | ||
"@sentry/electron": "^4.24.0", | ||
"@sentry/integrations": "7.114.0", | ||
"adm-zip": "^0.5.12", | ||
"airtunes2": "ciderapp/node_airtunes2", | ||
"castv2-client": "ciderapp/node-castv2-client", | ||
"chokidar": "^3.6.0", | ||
"discord-auto-rpc": "^1.0.17", | ||
"ejs": "^3.1.9", | ||
"electron-fetch": "^1.9.1", | ||
"electron-log": "^4.4.8", | ||
"ejs": "^3.1.10", | ||
"electron-log": "^5.1.4", | ||
"electron-notarize": "^1.2.2", | ||
"electron-store": "^8.1.0", | ||
"electron-updater": "^5.3.0", | ||
"electron-store": "^9.0.0", | ||
"electron-updater": "6.2.1", | ||
"electron-window-state": "^5.0.3", | ||
"express": "^4.18.2", | ||
"get-port": "5.1.1", | ||
"jimp": "^0.22.8", | ||
"express": "^4.19.2", | ||
"get-port": "7.1.0", | ||
"jimp": "^0.22.12", | ||
"lastfmapi": "^0.1.1", | ||
"mdns-js": "github:ciderapp/node-mdns-js", | ||
"mpris-service": "^2.1.2", | ||
"music-metadata": "7.12.6", | ||
"mdns-js": "ciderapp/node-mdns-js", | ||
"mpris-service": "ciderapp/mpris-service", | ||
"music-metadata": "7.14.0", | ||
"node-fetch": "^3.3.2", | ||
"node-ssdp": "^4.0.1", | ||
"node-ssdp-js": "^0.9.6", | ||
"qrcode": "^1.5.3", | ||
|
@@ -60,31 +62,35 @@ | |
"source-map-support": "^0.5.21", | ||
"ssdp-js": "^1.0.1", | ||
"ts-md5": "1.3.1", | ||
"upnp-mediarenderer-client": "github:vapormusic/node-upnp-mediarenderer-client", | ||
"v8-compile-cache": "^2.3.0", | ||
"wallpaper": "5.0.1", | ||
"ws": "^8.14.1", | ||
"xml2js": "^0.6.0", | ||
"youtube-search-without-api-key": "^1.1.0" | ||
"upnp-mediarenderer-client": "vapormusic/node-upnp-mediarenderer-client", | ||
"v8-compile-cache": "^2.4.0", | ||
"wallpaper": "7.2.1", | ||
"ws": "^8.17.0", | ||
"xml2js": "^0.6.2", | ||
"youtube-search-without-api-key": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/adm-zip": "^0.5.0", | ||
"@types/discord-rpc": "4.0.4", | ||
"@types/express": "^4.17.17", | ||
"@types/musickit": "github:ciderapp/musickit-types", | ||
"@types/node": "^20.2.5", | ||
"@types/qrcode-terminal": "^0.12.0", | ||
"@types/ws": "^8.5.4", | ||
"electron": "github:castlabs/electron-releases", | ||
"electron-builder": "^23.6.0", | ||
"@types/adm-zip": "^0.5.5", | ||
"@types/discord-rpc": "4.0.8", | ||
"@types/express": "^4.17.21", | ||
"@types/musickit": "ciderapp/musickit-types", | ||
"@types/node": "^20.12.12", | ||
"@types/node-ssdp": "^4.0.4", | ||
"@types/qrcode-terminal": "^0.12.2", | ||
"@types/request": "^2.48.12", | ||
"@types/upnp-mediarenderer-client": "^1.4.3", | ||
"@types/ws": "^8.5.10", | ||
"@types/xml2js": "^0.4.14", | ||
"electron": "github:castlabs/electron-releases#v30.0.4+wvcus", | ||
"electron-builder": "^24.13.3", | ||
"electron-builder-notarize-pkg": "^1.2.0", | ||
"electron-webpack": "^2.8.2", | ||
"less": "^4.1.3", | ||
"node-gyp": "^9.4.0", | ||
"prettier": "2.8.8", | ||
"typescript": "^5.1.3", | ||
"less": "^4.2.0", | ||
"node-gyp": "^10.1.0", | ||
"prettier": "3.2.5", | ||
"typescript": "^5.4.5", | ||
"vue-devtools": "^5.1.4", | ||
"webpack": "~5.85.0" | ||
"webpack": "~5.91.0" | ||
}, | ||
"fileAssociations": [ | ||
{ | ||
|
@@ -109,14 +115,14 @@ | |
} | ||
], | ||
"build": { | ||
"electronVersion": "25.0.0", | ||
"electronVersion": "30.0.6", | ||
"electronDownload": { | ||
"version": "25.0.0+wvcus", | ||
"version": "30.0.6+wvcus", | ||
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v" | ||
}, | ||
"appId": "cider", | ||
"afterPack": "./resources/afterPack.js", | ||
"afterSign": "./resources/notarize.js", | ||
"afterPack": "./resources/afterPack.cjs", | ||
"afterSign": "./resources/notarize.cjs", | ||
"protocols": [ | ||
{ | ||
"name": "Cider", | ||
|
@@ -224,7 +230,7 @@ | |
"devtool": "source-map" | ||
}, | ||
"engines": { | ||
"node": ">= 16", | ||
"node": ">= 18", | ||
"npm": ">= 6.13.4", | ||
"yarn": ">= 1.21.1" | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @ts-nocheck | ||
import castv2Cli from "castv2-client"; | ||
const RequestResponseController = castv2Cli.RequestResponseController; | ||
|
||
|
||
|
||
export class CiderCastController extends RequestResponseController { | ||
constructor(client: string, sourceId: string, destinationId: string) { | ||
super(client, sourceId, destinationId, "urn:x-cast:com.ciderapp.customdata"); | ||
this.once("close", onclose); | ||
var self = this; | ||
function onclose() { | ||
self.stop(); | ||
} | ||
} | ||
|
||
sendIp(ip: string) { | ||
// TODO: Implement Callback | ||
let data = { | ||
ip: ip, | ||
}; | ||
this.request(data); | ||
} | ||
|
||
kill() { | ||
// TODO: Implement Callback | ||
let data = { | ||
action: "stop", | ||
}; | ||
this.request(data); | ||
} | ||
} |
Oops, something went wrong.