This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to develop, this PR will be updated.
Releases
@freshgum/typedi@0.7.0
Minor Changes
18372c6: We now support ES decorators! Grab the new ESService decorator from contrib/es!
To use this, you'll need to disable experimentalDecorators in your TypeScript
configuration file. Note that, by doing this, you won't be able to utilise the
legacy decorators included in the package (Service).
Here's an example:
import { ESService } from '@freshgum/typedi/contrib/es';
@ESService([])
export class MyService {}
Note that the legacy decorators have not been removed for backwards-compatibility
reasons: you're still able to use them just as before.
b26ad02: Add a new getServiceIdentifierType utility to ascertain the type of a given ServiceIdentifier. This allows for differentiation between virtual identifiers, such as HostContainer, and concrete identifiers set by you / any code which interacts with the ContainerInstance.
9ad853e: The ContainerRegistryError constructor is now exported from the package index. This allows for greater pattern-matching of errors which occur as a result of invalid registry operations.
e18d944: An unused PickPartial utility type has been removed. This change does not affect consumers of the package.
f4e10cf: The internal PickRequired type has been replaced with SetRequired from type-fest, to take further advantage of the dependency. This change does not affect consumers of the package.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to develop, this PR will be updated.
Releases
@freshgum/typedi@0.7.0
Minor Changes
18372c6: We now support ES decorators! Grab the new ESService decorator from contrib/es!
To use this, you'll need to disable
experimentalDecorators
in your TypeScript configuration file. Note that, by doing this, you won't be able to utilise the legacy decorators included in the package (Service
).Here's an example:
Note that the legacy decorators have not been removed for backwards-compatibility reasons: you're still able to use them just as before.
Many thanks to Axel Rauschmayer for providing a very detailed guide re: ES decorators.
Patch Changes
getServiceIdentifierType
utility to ascertain the type of a givenServiceIdentifier
. This allows for differentiation between virtual identifiers, such asHostContainer
, and concrete identifiers set by you / any code which interacts with theContainerInstance
.ContainerRegistryError
constructor is now exported from the package index. This allows for greater pattern-matching of errors which occur as a result of invalid registry operations.PickPartial
utility type has been removed. This change does not affect consumers of the package.PickRequired
type has been replaced withSetRequired
from type-fest, to take further advantage of the dependency. This change does not affect consumers of the package.