Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
12.1.1→13.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
jeffijoe/awilix (awilix)
v13.0.0Compare Source
No runtime changes — all breaking changes are TypeScript-only.
anyto{}register()returns a new container type that includes the registered resolversasValue()now preserves literal types and deep readonly for objectsBREAKING CHANGES
Default cradle type changed from
anyto{}createContainer()without an explicit generic now returnsAwilixContainer<{}>instead ofAwilixContainer<any>. This enables type accumulation viaregister()chaining (any & Tcollapses toany, while{} & TproducesT).If you have existing code that relies on the
anydefault (e.g. accessingcontainer.cradle.somethingwithout type annotations), passanyexplicitly:register()returns a new container typeregister()now returnsAwilixContainer<Cradle & InferCradleFromResolvers<R>>instead ofthis. Types accumulate across chained calls:asValue()preserves literal types and deep readonlyasValue()now uses aconsttype parameter, which means it preserves literal types for primitives and infers deepreadonlyfor objects:Resolved object values are now correctly typed as
readonly, reflecting the fact that mutating container-owned values was never a safe practice:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - Between 07:00 AM and 04:59 PM, only on Monday, Tuesday, Wednesday, and Thursday ( * 7-16 * * 1,2,3,4 ) (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.