Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(notify)!: resolve test & linter issues and fix dependencies compatibility #847

Merged
merged 9 commits into from
Jul 22, 2024

Conversation

nikoksr
Copy link
Owner

@nikoksr nikoksr commented Jul 22, 2024

Summary

BREAKING CHANGE: This commit introduces significant changes to the FCM and Matrix services due to breaking changes in their respective dependencies. These changes may affect existing implementations:

FCM Service:

  • Updated to accommodate changes in the github.com/appleboy/go-fcm package
  • Modified function signatures and type definitions to match new dependency requirements
  • Removed DataKey and RetriesKey
  • Changed New function signature from func(string) (*Service, error) to func(context.Context, ...Option) (*Service, error)

Matrix Service:

  • Updated to accommodate changes in the mautrix package
  • Modified SendMessageEvent method signature to include context.Context parameter

Additional changes:

  • Added new options for FCM service: Option, WithCredentialsFile, WithHTTPClient, WithProjectID
  • Updated tests and fixed linter complaints throughout the codebase

This commit aims to maintain compatibility with the latest versions of our dependencies while improving code quality. Users of the FCM and Matrix services will need to update their implementations to match the new function signatures and removed keys.

Fixes #837.

…tibility

BREAKING CHANGE: This commit introduces significant changes to the FCM and
Matrix services due to breaking changes in their respective dependencies.
These changes may affect existing implementations:

FCM Service:
- Updated to accommodate changes in the `github.com/appleboy/go-fcm` package
- Modified function signatures and type definitions to match new dependency
  requirements
- Removed `DataKey` and `RetriesKey`
- Changed `New` function signature from `func(string) (*Service, error)` to
  `func(context.Context, ...Option) (*Service, error)`

Matrix Service:
- Updated to accommodate changes in the `mautrix` package
- Modified `SendMessageEvent` method signature to include `context.Context`
  parameter

Additional changes:
- Added new options for FCM service: `Option`, `WithCredentialsFile`,
  `WithHTTPClient`, `WithProjectID`
- Updated tests and fixed linter complaints throughout the codebase

This commit aims to maintain compatibility with the latest versions of our
dependencies while improving code quality. Users of the FCM and Matrix services
will need to update their implementations to match the new function signatures
and removed keys.
Removed CodeQL as I found no intuitive way of bringing it up-to-date
manually. Removing it, and GitHub will re-add it to the project soon
with an up-to-date config.
@nikoksr nikoksr added affects/deps Issue or PR related to dependency changes. affects/tests Issue or PR related to testing. affects/core Issue or PR related to the core of the library. labels Jul 22, 2024
@nikoksr nikoksr linked an issue Jul 22, 2024 that may be closed by this pull request
@nikoksr nikoksr merged commit e2e77cc into main Jul 22, 2024
6 checks passed
@nikoksr nikoksr deleted the fix-tests-linter-and-broken-dependencies branch July 22, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/core Issue or PR related to the core of the library. affects/deps Issue or PR related to dependency changes. affects/tests Issue or PR related to testing. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reference to a non-existent version number of go-reddit
1 participant