muse
muse copied to clipboard
Update dependencies
This pull request includes updates to modernize dependencies, improve workflows, and enhance code readability. Key changes include upgrading GitHub Actions versions, updating dependencies in package.json, and refactoring code for better maintainability and clarity.
Workflow Updates:
-
.github/workflows/lint.yml,.github/workflows/type-check.yml: Upgradedactions/checkoutandactions/setup-nodeto versionv4. [1] [2] -
.github/workflows/publish.yml: Updateddocker/login-actiontov3and replacedactions/checkoutversions across jobs. [1] [2] [3] -
.github/workflows/pr-release.yml,.github/workflows/pr-snapshot.yml: ChangedREGISTRY_IMAGEto use a new registry path (ghcr.io/fabaindaiz/muse). [1] [2]
Dependency Updates:
-
package.json: Upgraded multiple dev and runtime dependencies, including@typescript-eslint,discord.js,typescript, and others to their latest versions for improved functionality and compatibility. [1] [2]
Code Refactoring:
-
eslint.config.js: Added a new ESLint configuration with TypeScript-specific rules and basic JavaScript rules for improved linting. -
src/index.ts: Replacedmake-dirwithmakeDirectoryfor improved readability and alignment with updated dependencies. [1] [2] -
src/services/player.ts: RefactoredgetHashForCacheto be asynchronous and adjusted related calls for better caching logic. [1] [2] [3]
Minor Enhancements:
-
src/bot.ts: Added comments to clarify error handling during interaction replies. - Removed unnecessary ESLint disable comments across several files for cleaner code. [1] [2] [3]
These updates collectively improve the project's maintainability, compatibility, and adherence to modern development practices.
:package: :robot: A new release has been made for this pull request.
To play around with this PR, pull ghcr.io/museofficial/muse:pr-1279.
Images are available for x86_64 and ARM64.
Latest commit: 2ebfd713c832e1129ec2c43465acbfff393927dc