Skip to content

⬆️ Updates inversify to v7 #2400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 27, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
inversify (source) ^5.1.1 -> ^7.0.0 age adoption passing confidence

Release Notes

inversify/InversifyJS (inversify)

v7.0.1

Compare Source

Changed
  • Updated Container.get like methods to no longer initialize twice singleton scoped bindings.

v7.0.0

Compare Source

Parity version with 7.0.0-alpha.5

v6.2.2

Compare Source

  • Solved issue with npm registry.

v6.2.1

Compare Source

Fixed
  • Added missing LazyServiceIdentifer.

v6.2.0

Compare Source

Added
  • Added interfaces.GetAllOptions.
Changed
  • Updated container.getAll with options optional param.
  • Updated container.getAllAsync with options optional param.
  • Updated interfaces.NextArgs with optional isOptional param.
  • Updated container with tryGet.
  • Updated container with tryGetAsync.
  • Updated container with tryGetTagged.
  • Updated container with tryGetTaggedAsync.
  • Updated container with tryGetNamed.
  • Updated container with tryGetNamedAsync.
  • Updated container with tryGetAll.
  • Updated container with tryGetAllAsync.
  • Updated container with tryGetAllTagged.
  • Updated container with tryGetAllTaggedAsync.
  • Updated container with tryGetAllNamed.
  • Updated container with tryGetAllNamedAsync.

v6.1.6

Compare Source

Fixed
  • Fixed unexpected property access while running planning checks on injected base types.
  • Updated ESM sourcemaps to refelct the right source code files.

v6.1.5

Compare Source

Changed
  • Updated library to import reflect-metadata. Importing reflect-metadata before bootstraping a module in the userland is no longer required.
Fixed
  • Updated ESM build to provide proper types regardless of the ts resolution module strategy in the userland.
  • Fixed container to properly resolve async .toService bindings.
  • Fixed .toService binding to properly disable caching any values.

v6.1.4

Compare Source

Changed
  • Updated planner with better error description when a binding can not be properly resolved.
Fixed
  • Updated container to allow deactivating singleton undefined values.
  • Updated ESM build to be compatible with both bundler and NodeJS module resolution algorithms.

v6.1.3

Compare Source

Fixed
  • Updated ESM build with missing types.

v6.1.2

Compare Source

Changed
  • Updated package.json to include the exports field for better bundler support.
Fixed
  • Updated fetch metadata flows with better error descriptions.

v6.1.1

Compare Source

Fixed
  • Bumped @inversifyjs/common and @inversifyjs/core fixing wrong dev engines constraints.

v6.1.0

Compare Source

Changed
  • Updated ServiceIdentifier to rely on Function instead of Abstract<T>.
Fixed
  • Fixed Target.getNameTag with the right type: number | string | symbol.
  • Fixed interfaces.ModuleActivationStore.addDeactivation to enforce serviceIdentifier and onDeactivation are consistent.
  • Fixed interfaces.ModuleActivationStore.addActivation to enforce serviceIdentifier and onDeactivation are consistent.

v6.0.3

Compare Source

Fixed

property injection tagged as @​optional no longer overrides default values with undefined.
Updated targetName to be a valid typescript@5 decorator.

v6.0.2

Compare Source

Added

Brought tests up to 100% Code Coverage

Changed

LazyIdentfier Tests
Removed browser test pipeline, browserify, karma (#​1542)
Update all dependencies except typescript (#​1531)

Fixed

Less than 100% code coverage
Use default class property for @​optional injected properties (#​1467)
Remove circular import (#​1516)
Fix strict type checking on @​unmanaged decorator (#​1499)
Fix typo (LazyServiceIdentifer -> LazyServiceIdentifier) (#​1483)
Fix typo (circular dependency error message) (#​1485)

v6.0.1

Compare Source

Added
  • add API method for check dependency only in current container
  • createTaggedDecorator #​1343
  • Async bindings #​1132
  • Async binding resolution (getAllAsync, getAllNamedAsync, getAllTaggedAsync, getAsync, getNamedAsync, getTaggedAsync, rebindAsync, unbindAsync, unbindAllAsync, unloadAsync) #​1132
  • Global onActivation / onDeactivation #​1132
  • Parent/Child onActivation / onDeactivation #​1132
  • Module onActivation / onDeactivation #​1132
  • Added @​preDestroy decorator #​1132
Changed
Fixed
  • only inject decorator can be applied to setters #​1342
  • Container.resolve should resolve in that container #​1338

Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Moscow, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link
Author

renovate bot commented Feb 27, 2025

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@auto-assign auto-assign bot requested a review from AlexRogalskiy February 27, 2025 01:04
Copy link

Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.

Copy link

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

Copy link

Thanks for the PR!

This section of the codebase is owner by https://github.com/AlexRogalskiy/ - if they write a comment saying "LGTM" then it will be merged.

Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] 🔁 npm/[email protected] None 0 29.1 kB notaphplover

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants