Skip to content

chore(deps): bump awilix from 12.1.0 to 13.0.0#108

Open
dependabot[bot] wants to merge 2 commits intomainfrom
dependabot/npm_and_yarn/awilix-13.0.0
Open

chore(deps): bump awilix from 12.1.0 to 13.0.0#108
dependabot[bot] wants to merge 2 commits intomainfrom
dependabot/npm_and_yarn/awilix-13.0.0

Conversation

@dependabot
Copy link
Contributor

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

Bumps awilix from 12.1.0 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
  • ab75a4b 13.0.0
  • 1b5c4f2 Merge pull request #408 from kibertoad/feat/type-inference
  • ed3d1e9 Support type inference
  • 0289c71 12.1.1
  • 5f1b6a7 docs(changelog): update changelog
  • 3141783 Merge pull request #407 from kibertoad/feat/perf
  • a2d2ef6 Performance optimizations
  • fee0279 Merge pull request #406 from jeffijoe/dependabot/npm_and_yarn/js-yaml-3.14.2
  • ec1c9ae build(deps-dev): bump js-yaml from 3.13.1 to 3.14.2
  • 8eb46e7 docs(changelog): update changelog
  • See full diff in compare view

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 16, 2026
@dependabot dependabot bot requested a review from josstei as a code owner February 16, 2026 22:58
@github-actions github-actions bot added needs-review Requires manual review major-update Major version update with potential breaking changes labels Feb 16, 2026
@github-actions
Copy link
Contributor

⚠️ Major version update detected

This PR contains a major version bump that may include breaking changes.

Please review:

  • Check the package changelog for breaking changes
  • Verify build passes on all platforms
  • Test application functionality

Auto-merge is disabled for major updates.

Bumps [awilix](https://github.com/jeffijoe/awilix) from 12.1.0 to 13.0.0.
- [Changelog](https://github.com/jeffijoe/awilix/blob/master/CHANGELOG.md)
- [Commits](jeffijoe/awilix@v12.1.0...v13.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/awilix-13.0.0 branch from 4a0edc6 to f7c53f5 Compare February 24, 2026 02:19
@github-actions
Copy link
Contributor

⚠️ Major version update detected

This PR contains a major version bump that may include breaking changes.

Please review:

  • Check the package changelog for breaking changes
  • Verify build passes on all platforms
  • Test application functionality

Auto-merge is disabled for major updates.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 3, 2026

A newer version of awilix exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

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 major-update Major version update with potential breaking changes needs-review Requires manual review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant