Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@inversifyjs/core

inversify769.8kMIT5.2.0TypeScript support: included

InversifyJs core package

dependency injection, dependency inversion, di, inversion of control container, ioc, javascript, node, typescript

readme

Test coverage npm version

@inversifyjs/core

Inversify monorepo core modules.

changelog

@inversifyjs/core

5.2.0

Minor Changes

  • 56dc0cd: Added getBindingId

Patch Changes

  • 1bb859a: Updated resolve to set class metadata scope bindings when autobind options are set

5.1.0

Minor Changes

  • 77150f5: Updated BindingService with removeById
  • 77150f5: Updated BindingService with getById
  • 78e1b49: Added resolveBindingsDeactivations

5.0.0

Major Changes

  • 6de1cee: updated BasePlanParams.servicesBranch to be an array

Patch Changes

  • 7ef055a: Updated plan to no longer provide false positive circular dependencies

4.0.1

Patch Changes

  • a77354a: Update cacheResolvedValue to set promise like cache values until promise is fullfilled

4.0.0

Major Changes

  • 4fb30e9: Renamed BindingMetadata to BindingConstraints

3.5.0

Minor Changes

  • e11ad62: Added ResolvedValueMetadata
  • e11ad62: Updated PlanServiceNodeParent to include ResolvedValueBindingNode
  • e11ad62: Added ResolvedValueBinding
  • e11ad62: Added ResolvedValueBindingNode

3.4.0

Minor Changes

  • b1a18b6: Added PlanResultCacheService

3.3.0

Minor Changes

  • 9c713eb: Updated GetOptions with autobind

3.2.0

Minor Changes

  • 7743276: Updated plan related error messages with binding metadata details

Patch Changes

  • 7572767: Updated OneToManyMapStar.clone to properly clone map array values
  • 9621865: Updated injectBase default values to be true
  • 559efd8: Updated BindToFluentSyntaxImplementation.toDynamicValue with right default scope

3.1.0

Minor Changes

  • 1c93440: Updated unmanaged to support method decoration
  • 1c93440: Updated inject to support method decoration
  • 1c93440: Updated optional to support method decoration
  • 1c93440: Updated named to support method decoration
  • 1c93440: Updated tagged to support method decoration
  • 1c93440: Updated multiInject to support method decoration

Patch Changes

  • c80459d: Updated OneToManyMapStar to fix an issue involving a deletion use case

3.0.2

Patch Changes

  • c346802: Updated DeactivationService to allow duplicated deactivations
  • c346802: Updated ActivationService to allow duplicated activations

3.0.1

Patch Changes

  • 0dadb6a: Updated MaybeClassElementMetadataKind values to avoid collisions
  • 7e751e2: Updated resolve flow to keep default values on optional property injection
  • 5c9ebca: Updated decorator metadata access to avoid conflicts with base type metadata
  • Updated dependencies

3.0.0

Major Changes

  • 7f97e76: Removed MetadataTargetName
  • 7f97e76: Updated ManagedClassElementMetadata with no targetName
  • 7f97e76: Updated MaybeManagedClassElementMetadata with no targetName
  • 7f97e76: Removed targetName

Minor Changes

  • 50fa92a: Updated BindingService with getNonParentBindings
  • 6c381a8: Updated BindingToSyntax with more flexible factory and provider constraints
  • bbddebc: Updated Provider with right args.

2.2.0

Minor Changes

  • f487c1b: Updated BindingService with getNonParentBoundServices
  • 5fac244: Updated injectFromBase options to be optional.

Patch Changes

  • e708d1e: Updated injectable to filter out non userland emitted metadata
  • 2d74b3f: Updated BindingActivation with missing ResolutionContext param
  • 9d5ac91: Updated injectable to throw on duplicated call

2.1.0

Minor Changes

  • 142b763: Added targetName decorator

Patch Changes

  • 27ddc35: Removed unexpected LegacyQueryableString
  • 9257c9a: Updated BindToFluentSyntaxImplementation.to to set binding scope if found in class metadata

2.0.0

Major Changes

  • 9036007: Removed LegacyTarget.
  • a3e2dd0: Removed LegacyMetadata.
  • a3e2dd0: Removed getClassMetadataFromMetadataReader.
  • 11b499a: Renamed BindingService.remove to removeAllByServiceId.
  • a3e2dd0: Updated getClassMetadata to no longer rely on legacy reflected metadata
  • 9036007: Remove getTargets.
  • a3e2dd0: Removed LegacyMetadataReader.

Minor Changes

  • 5b4ee18: Added resolveModuleDeactivations.
  • 2dbd2d6: Updated BindingMetadata with serviceIdentifier and getAncestor.
  • 0ce84d0: Added Binding.
  • 2bcbcad: Added optional.
  • 2bcbcad: Added multiInject.
  • b7fab72: Updated ManagedClassElementMetadata with isFromTypescriptParamType.
  • d6efacc: Added decorate.
  • d7cc2b4: Added resolve.
  • 2bcbcad: Added named.
  • b5fad23: Added resolveServiceDeactivations.
  • 0ce84d0: Added ActivationService.
  • 28c3452: Added plan.
  • 2bcbcad: Added postConstruct.
  • 2bcbcad: Added unmanaged.
  • 501c5f1: Added DeactivationsService.
  • 2bcbcad: Added tagged.
  • 2bcbcad: Added injectFromBase.
  • 6ddbf41: Updated ClassMetadata with scope.
  • 0ce84d0: Added BindingService.
  • 2bcbcad: Added inject.
  • 2bcbcad: Added preDestroy.
  • 2bcbcad: Added injectable.

Patch Changes

1.3.5

Patch Changes

1.3.4

Patch Changes

1.3.3

Patch Changes

  • 0e347ab: Updated get metadata flow to provide better error messages when missing metadata.

1.3.2

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

  • 3b6344c: Added LegacyTargetImpl.
  • 3b6344c: Added getClassElementMetadataFromLegacyMetadata.

1.2.0

Minor Changes

  • fca62ce: Added LegacyTarget model.
  • fca62ce: Added getTargets.
  • c588a5a: Added getClassMetadataFromMetadataReader.

Patch Changes

  • 6469c67: Updated getClassMetadata to correctly fetch name and target names

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

  • e594986: Added ClassMetadata.
  • e594986: Added getClassMetadata.

Patch Changes