diff --git a/.changeset/flat-mirrors-film.md b/.changeset/flat-mirrors-film.md deleted file mode 100644 index 1b31ea0d..00000000 --- a/.changeset/flat-mirrors-film.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@freshgum/typedi': patch ---- - -The code for virtual tokens (such as `HostContainer()`) has been moved into individual tokens, -as opposed to hosting logic for these tokens in `ContainerInstance`. - -This means that we no longer have to check for individual tokens in the container's -`.get` code-path, [which has historically been the case.](https://github.com/freshgum-bubbles/typedi/blob/cd4b8437ac14882a0ed4d1964d76e29b32bd1b3e/src/container-instance.class.mts#L331) - -Instead, logic for these tokens is now moved into special tokens called Executable Tokens. - -This yields numerous advantages, one of which being that, should a certain special token go -unused, its code can safely be removed from a bundle via dead-code elimination. - -While **this is mostly an internal change**, the concept of Executable Tokens works quite well, -and so I'm considering making it part of the public API surface + documentation after further testing. diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b928b77..4d3c10b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # @freshgum/typedi +## 0.7.3 + +### Patch Changes + +- 02fe3cc: The code for virtual tokens (such as `HostContainer()`) has been moved into individual tokens, + as opposed to hosting logic for these tokens in `ContainerInstance`. + + This means that we no longer have to check for individual tokens in the container's + `.get` code-path, [which has historically been the case.](https://github.com/freshgum-bubbles/typedi/blob/cd4b8437ac14882a0ed4d1964d76e29b32bd1b3e/src/container-instance.class.mts#L331) + + Instead, logic for these tokens is now moved into special tokens called Executable Tokens. + + This yields numerous advantages, one of which being that, should a certain special token go + unused, its code can safely be removed from a bundle via dead-code elimination. + + While **this is mostly an internal change**, the concept of Executable Tokens works quite well, + and so I'm considering making it part of the public API surface + documentation after further testing. + ## 0.7.2 ### Patch Changes diff --git a/package.json b/package.json index 2278299e..828468a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@freshgum/typedi", - "version": "0.7.2", + "version": "0.7.3", "description": "Elegant Dependency Injection in JavaScript and TypeScript.", "homepage": "https://typedi.js.org", "main": "./build/esm5/entry/index.mjs",