Skip to content

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

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.0
Closed

chore(deps): bump github.com/matzefriedrich/parsley from 1.4.2 to 1.6.0 in /parsley#5231
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

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

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.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

  • The bootstap.RunParsleyApplication method does now handle activation errors and returns them #83

[v1.5.0-alpha1] - 2026-05-07

Added

  • Added the RegisterModuleIf(condition bool, modules ...ModuleFunc) error method to the ServiceRegistry interface, allowing for conditional module registration based on runtime requirements or environment settings. #77

  • Enhanced RegisterLazy[T] to support activator functions with dependencies, enabling full dependency injection for lazily-activated services. #80

  • Support for context.Context as the first parameter in activator functions, allowing services to access the resolution context. #82

  • Support for an optional error return value (second position) in activator functions, enabling proper error propagation during service activation. #82

  • Adds Makefile to the reposiory #81

... (truncated)

Commits
  • 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)
  • 93e1e18 Updates the changelog
  • 6f33466 Bump golang.org/x/mod from 0.35.0 to 0.36.0 (#84)
  • 6adf10e Handle activation error in application context initialization (#83)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added the 🤖 Dependencies Pull requests that update a dependency file label Jul 27, 2026
@ReneWerner87

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@ReneWerner87

Copy link
Copy Markdown
Member

@dependabot recreate

Bumps [github.com/matzefriedrich/parsley](https://github.com/matzefriedrich/parsley) from 1.4.2 to 1.6.0.
- [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.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.0 branch from 37fbd4a to fdb678c Compare July 27, 2026 06:35
@dependabot @github

dependabot Bot commented on behalf of github Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #5280.

@dependabot dependabot Bot closed this Jul 30, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/parsley/github.com/matzefriedrich/parsley-1.6.0 branch July 30, 2026 05:05
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.

1 participant