Skip to content

chore(deps): bump github.com/matzefriedrich/parsley from 1.4.2 to 1.6.1 in /parsley - #5280

Merged
ReneWerner87 merged 2 commits into
masterfrom
dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.1
Aug 1, 2026
Merged

chore(deps): bump github.com/matzefriedrich/parsley from 1.4.2 to 1.6.1 in /parsley#5280
ReneWerner87 merged 2 commits into
masterfrom
dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 30, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/matzefriedrich/parsley from 1.4.2 to 1.6.1.

Release notes

Sourced from github.com/matzefriedrich/parsley's releases.

parsley v1.6.0

This release focuses on enhancing error reporting and developer experience by enriching resolver and registry errors with service type information while maintaining full compatibility with Go's errors.Is pattern.

Key Features

  • Enriched Error Context: ResolverError and RegistryError now include the name of the affected service type, making it significantly easier to identify which registration or resolution failed.
  • Smart Formatting: Errors now implement fmt.Formatter. Standard output (e.g., %v, %+v) includes the service type context, while the Error() method remains minimal to ensure errors.Is and sentinel error matching continue to work as expected.
  • Improved API for Error Creation: New utility functions like ForServiceType[T] and NewResolverErrorForType[T] allow for easy creation of context-rich errors.

Full Changelog: matzefriedrich/parsley@v1.5.2...v1.6.0

parsley v1.5.2

Changes

  • Bump golang.org/x/mod from 0.37.0 to 0.38.0
  • Breaking change: The context.Context parameter has been removed from the features.RegisterNamed method. The context is no longer required during registration and is now correctly handled at the resolution stage within the activator.

Full Changelog: matzefriedrich/parsley@v1.5.0...v1.5.2

parsley v1.5.0

This release brings significant improvements to the dependency injection engine and modernizes the codebase with Go 1.26.3.

New Features

  • Contextual & Fallible Activation: Activator functions now support context.Context as the first parameter and an optional error return value, enabling more powerful and safer service initialization.
  • Full Dependency Injection for Lazy Services: RegisterLazy[T] now supports dependencies in activator functions, allowing lazily-loaded services to benefit from full DI.
  • Conditional Registration: RegisterModuleIf enables service registration based on runtime conditions or environment settings.
  • Infrastructure Access: RunParsleyApplication now injects the internal infrastructure into the application context, allowing services to interact with the container directly when needed.

Breaking Changes

  • Lazy[T] Interface: The Value() method of the Lazy[T] type now requires a context.Context parameter to support contextual dependency resolution.
  • RegisterList API: The RegisterList[T] function signature has changed; the explicit context.Context parameter has been removed as it now utilizes the resolver's context internally.

Full Changelog: matzefriedrich/parsley@v1.4.2...v1.5.0

parsley v1.5.0-alpha1

This release enhances parsley with support for standard Go idioms in service activator functions, including context propagation and error handling. It also introduces conditional module registration and improves the CLI build process with dynamic versioning.

New Features

  • Enhanced Activator Signatures:
    • Support for context.Context as the first parameter in activator functions, enabling services to access the resolution context during activation.
    • Support for an optional error return value (second position) in activator functions, allowing for proper error propagation throughout the resolution chain.
  • Conditional Module Registration: Added RegisterModuleIf(condition bool, modules ...ModuleFunc) to the ServiceRegistry interface, facilitating flexible service configuration based on environment or runtime settings.
  • Lazy Service Injection: RegisterLazy[T] now supports activator functions with dependencies, enabling full dependency injection for services that are initialized lazily.

Breaking Changes

  • Lazy[T] Interface: The Value method of the Lazy[T] interface now requires a context.Context parameter.

... (truncated)

Changelog

Sourced from github.com/matzefriedrich/parsley's changelog.

[v1.6.1] - 2026-07-30

Added

  • Added -u short flag alias for the --check-update flag in the version command. #89

Changed

  • Migrates all command structs (init, version, generate, mocks, proxy) to use types.BaseCommand and the new unified cobra-x tag format for metadata and flags. This follows breaking changes in github.com/matzefriedrich/cobra-extensions v0.7.0. #89
  • Updates github.com/matzefriedrich/cobra-extensions dependency from v0.6.2 to v0.7.0. #89
  • Removes obsolete //nolint:unused comments from command structs as the new BaseCommand embedding handles command metadata discovery. #89
  • Bumps go.yaml.in/yaml/v3 from v3.0.4 to v3.0.5.

[v1.6.0] - 2026-07-25

Added

  • Introduced ParsleyErrorWithServiceTypeName interface and ServiceTypeName() getter for ResolverError and RegistryError to provide access to the affected service type. #88
  • Added ForServiceType[T] and ForServiceTypeByName error initializers to enrich errors with service type information. #88
  • Added NewResolverErrorForType[T] utility function for creating resolver errors with type context. #88

Changed

  • Refactored ResolverError and RegistryError to implement fmt.Formatter. Formatted output (e.g., via %v or %+v) now includes the service type name while Error() returns the base message, preserving compatibility with errors.Is and sentinel errors. #88

Fixed

  • ResolveRequiredService and ResolveRequiredServices now include the missing service type name in the returned error when resolution fails. #88

[v1.5.2] - 2026-07-22

Changed

  • Upgrades Go version to 1.26.4
  • Removes the context.Context parameter from RegisterNamed; the registered named service activator function does now use the resolver context. #87
  • Updates internal reflection calls to use reflect.Pointer instead of the deprecated reflect.Ptr (modern Go idiom). [feat: fiber opentelemetry trace example #87](matzefriedrich/parsley#87
  • Bumps golang.org/x/mod from 0.37.0 to 0.38.0 #86

[v1.5.0] - 2026-06-12

Changed

  • Upgrades Go version to 1.26.3
  • Bumps golang.org/x/mod from 0.35.0 to 0.37.0 #84, #85

Fixed

... (truncated)

Commits
  • 5cf6721 update: release v1.6.1 in changelog
  • 9b45a47 chore: bump go.yaml.in/yaml/v3 to v3.0.5 in dependencies
  • 03e9e01 chore: migrate to cobra-extensions v0.7.0 and cobra-x tags (#89)
  • 7599a67 refactor: improve error handling and formatting for resolver and registry err...
  • becf63c refactor: remove context from RegisterNamed (#87)
  • 9ec9a99 Upgrades Go version to 1.26.4 and update cobra-extensions dependency to v0.6.2
  • d8bc35f Refactor type model functions to simplify string formatting and improve reada...
  • d63dded Bump golang.org/x/mod from 0.37.0 to 0.38.0 (#86)
  • cf5cdf7 Updates the README.md file
  • db91a9f Bump golang.org/x/mod from 0.36.0 to 0.37.0 (#85)
  • 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 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 [github.com/matzefriedrich/parsley](https://github.com/matzefriedrich/parsley) from 1.4.2 to 1.6.1.
- [Release notes](https://github.com/matzefriedrich/parsley/releases)
- [Changelog](https://github.com/matzefriedrich/parsley/blob/main/CHANGELOG.md)
- [Commits](matzefriedrich/parsley@v1.4.2...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/matzefriedrich/parsley
  dependency-version: 1.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the 🤖 Dependencies Pull requests that update a dependency file label Jul 30, 2026
parsley v1.5.0 removed the context.Context parameter from
features.RegisterList; the resolver context is used internally now. This
is the only call site in the recipe, and it was blocking the bump to
v1.6.1.

go build, go vet and go test all pass on v1.6.1.

Copy link
Copy Markdown
Member

This was stuck on a breaking change, not on the bump itself. Pushed a fix to the branch (574f740).

parsley v1.5.0 removed the context.Context parameter from features.RegisterList, since the resolver context is used internally now:

internal/modules/route_handlers_module.go:22:85: too many arguments in call to features.RegisterList[route_handlers.RouteHandler]
	have (context.Context, types.ServiceRegistry)
	want (types.ServiceRegistry)

That was the only call site in the recipe, so the fix is dropping context.Background() and the now-unused import.

Checked the other breaking changes in the 1.4.2 to 1.6.1 range as well, none of them affect this recipe:

  • Lazy[T].Value() now requires a context.Context (v1.5.0), not used here
  • RegisterNamed lost its context.Context parameter (v1.5.2), not used here

Verified on v1.6.1: go build ./..., go vet ./... and go test ./... all pass.

Note that pushing to this branch means Dependabot will no longer rebase or update the PR automatically.


Generated by Claude Code

@ReneWerner87
ReneWerner87 merged commit 742f322 into master Aug 1, 2026
8 checks passed
@ReneWerner87
ReneWerner87 deleted the dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.1 branch August 1, 2026 12:03
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants