muse icon indicating copy to clipboard operation
muse copied to clipboard

Update dependencies

Open fabaindaiz opened this issue 5 months ago • 1 comments

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: Upgraded actions/checkout and actions/setup-node to version v4. [1] [2]
  • .github/workflows/publish.yml: Updated docker/login-action to v3 and replaced actions/checkout versions across jobs. [1] [2] [3]
  • .github/workflows/pr-release.yml, .github/workflows/pr-snapshot.yml: Changed REGISTRY_IMAGE to 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: Replaced make-dir with makeDirectory for improved readability and alignment with updated dependencies. [1] [2]
  • src/services/player.ts: Refactored getHashForCache to 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.

fabaindaiz avatar Jul 25 '25 05:07 fabaindaiz

: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

codetheweb avatar Jul 25 '25 05:07 codetheweb