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

Bump gofr.dev from 1.26.0 to 1.30.0 #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 13, 2025

Bumps gofr.dev from 1.26.0 to 1.30.0.

Release notes

Sourced from gofr.dev's releases.

v1.30.0

Release v1.30.0

🚀 Features

1. GoFr's Context Support in gRPC Handlers

Introduced context integration for gRPC handlers, enabling efficient dependency and tracing management. Automatically generates gRPC handler templates with built-in support for gofr's context using the gofr wrap grpc command of gofr cli.

Note: For details on setting up Protocol Buffers and gRPC in GoFr, visit the official Documentation and Example

🔧 Fixes

1. ExpectSelect Update in SQL Mocks

Refactored the ExpectSelect function in SQL mocks. Users can now set expected responses using the ReturnsResponse method, ensuring accurate mock behavior during tests.

  • Example Usage:

    var result, actualResult Response
    mockContainer, sqlMock := NewMockContainer(t)
    ctx := &gofr.Context{
    Container: mockContainer,
    }
    expectedResult := Response{
    // ... fill with expected values
    }
    sqlMock.ExpectSelect(ctx, &result, query).ReturnsResponse(expectedResult)
    ctx.SQL.Select(ctx, &actualResult, query)
    assert.Equal(t, actualResult, expectedResult)

2. Environment Variable Handling

  • OS-level environment variables now override values from .env, .<APP_ENV>.env configurations, ensuring consistent behaviour across environments.

3. Improved Logging

  • Removed sensitive information (e.g., usernames and passwords) from MongoDB connection logs by replacing uri with host.
  • Fixed inaccurate Redis connection logs and removed unnecessary SQL connection logs when no SQL connection is established.
  • Added error logs for database migration failures, improving visibility during debugging.

4. Security Fixes

... (truncated)

Commits
  • 9e01054 Add documentation for creating gRPC Handlers through gofr-cli (#1383)
  • 53e8b7a Adherence to Best Practices as stated by BadgeApp: https://www.bestpractices....
  • 4222651 Fix/golang.org/x/net update (#1381)
  • c745f6f Update golang/crypto versions in in SFTP (#1376)
  • bd11406 Fix : Incorrect MongoDB Connection Logs (#1355)
  • 44e3eeb Fix: BUG: Refactor ExpectSelect in SQL mocks to return desired entity in the ...
  • 3bc9ab4 Merge pull request #1366 from gofr-dev/dependabot/go_modules/golang.org/x/oau...
  • 099379c Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0
  • 8fb1d59 Merge pull request #1365 from gofr-dev/dependabot/go_modules/golang.org/x/ter...
  • 69b9cee Bump golang.org/x/term from 0.27.0 to 0.28.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [gofr.dev](https://github.com/gofr-dev/gofr) from 1.26.0 to 1.30.0.
- [Release notes](https://github.com/gofr-dev/gofr/releases)
- [Commits](gofr-dev/gofr@v1.26.0...v1.30.0)

---
updated-dependencies:
- dependency-name: gofr.dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants