Skip to content

Bump awilix from 12.1.1 to 13.0.0 in the awilix group#399

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/awilix-a820ea1e4a
Open

Bump awilix from 12.1.1 to 13.0.0 in the awilix group#399
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/awilix-a820ea1e4a

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 16, 2026

Bumps the awilix group with 1 update: awilix.

Updates awilix from 12.1.1 to 13.0.0

Changelog

Sourced from awilix's changelog.

v13.0.0

No runtime changes — all breaking changes are TypeScript-only.

  • BREAKING (types): Default cradle type changed from any to {}
  • BREAKING (types): register() returns a new container type that includes the registered resolvers
  • BREAKING (types): asValue() now preserves literal types and deep readonly for objects

BREAKING CHANGES

Default cradle type changed from any to {}

createContainer() without an explicit generic now returns AwilixContainer<{}> instead of AwilixContainer<any>. This enables type accumulation via register() chaining (any & T collapses to any, while {} & T produces T).

If you have existing code that relies on the any default (e.g. accessing container.cradle.something without type annotations), pass any explicitly:

// Before (v12) — implicit any
const container = createContainer()
container.cradle.anything // OK
// After (v13) — explicit any to preserve old behavior
const container = createContainer<any>()
container.cradle.anything // OK
// After (v13) — recommended: use register() for type inference
const container = createContainer().register({
anything: asValue('hello'),
})
container.cradle.anything // OK, typed as 'hello'

register() returns a new container type

register() now returns AwilixContainer<Cradle & InferCradleFromResolvers<R>> instead of this. Types accumulate across chained calls:

const container = createContainer()
  .register({ port: asValue(3000) })       // AwilixContainer<{ port: 3000 }>
  .register({ host: asValue('localhost') }) // AwilixContainer<{ port: 3000; host: 'localhost' }>
container.resolve('port') // 3000
container.resolve('host') // 'localhost'

asValue() preserves literal types and deep readonly

asValue() now uses a const type parameter, which means it preserves literal types for primitives and infers deep readonly for objects:

</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the awilix group with 1 update: [awilix](https://github.com/jeffijoe/awilix).


Updates `awilix` from 12.1.1 to 13.0.0
- [Changelog](https://github.com/jeffijoe/awilix/blob/master/CHANGELOG.md)
- [Commits](jeffijoe/awilix@v12.1.1...v13.0.0)

---
updated-dependencies:
- dependency-name: awilix
  dependency-version: 13.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: awilix
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code major labels Feb 16, 2026
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 javascript Pull requests that update Javascript code major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

Comments