Releases: elliotchance/dingo
Releases · elliotchance/dingo
v1.4.2
Sort arguments (#20) Fixes #19 Co-authored-by: James Dang <[email protected]>
v1.4.1
Fix prototype bug (#18) * fix: has scope: 'prototype' and arguments use @{SendEmail()} error panic: runtime error: invalid memory address or nil pointer dereference * fix: PackageName is empty Co-authored-by: wuji <[email protected]>
v1.4.0
feature: add yaml set Package (#17) The root level `package` key describes the package name. Default is the directory name is not enough because it may contain a command (package main). Find the first non-test file to get the real package name.
v1.3.3
Refactoring out the deduction of package name and generation of the c…
v1.3.2
Panic when a service is referenced that doesn't exist (#15)
v1.3.1
Add generated code marker (#12) "// Code generated by dingo; DO NOT EDIT" is the first line of dingo.go. Fixes #1
v1.3.0
Added "arguments" (#11) The "arguments" allow services to act as factories without intermediate code. Services that have "arguments" will be turned into a func and only compatible with the prototype scope. Containers must now be created with NewContainer() (instead of &Container{}). Fixes #5
v1.2.0
Adding "func" types (#10) The `type` now allows functions, such as "func () bool". The `returns` can be used to return such a function and the contents can contain references to other services like all other Go expressions.
v1.1.0
Adding "scope" (#9) The `scope` defines when a service should be created, or when it can be reused. It must be one of the following values: - `prototype`: A new instance will be created whenever the service is requested or injected into another service as a dependency. - `container` (default): The instance will created once for this container, and then it will be returned in future requests. This is sometimes called a singleton, however the service will not be shared outside of the container. Fixes #2
v1.0.1
Properties must be sorted (#8) The "properties" must be sorted so that the generated dingo.go is deterministic. It also makes it a little easier to read.