Skip to content

Commit

Permalink
8.0.0-pre-4
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed Jun 3, 2024
1 parent 036d16d commit f536845
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## [8.0.0-pre-4] - 03.06.2024 fixing bug in `unregister` that happened if you tried to unregister a named registration by providing an istance instead of the type and the instance name
## [8.0.0-pre-3] - 31.05.2024 releaseInstance will now throw if the instance isn't registered
## [8.0.0-pre-2] - 29.05.2024 fixing negitiv reference count
## [8.0.0-pre-1] - 26.05.2024
Expand Down
4 changes: 2 additions & 2 deletions lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,8 @@ class _GetItImplementation implements GetIt {
}
final typeRegistration = factoryToRemove.registeredIn;

if (instanceName != null) {
typeRegistration.namedFactories.remove(instanceName);
if (factoryToRemove.isNamedRegistration) {
typeRegistration.namedFactories.remove(factoryToRemove.instanceName);
} else {
typeRegistration.factories.remove(factoryToRemove);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: get_it
description: Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App"
version: 8.0.0-pre-3
version: 8.0.0-pre-4
maintainer: Thomas Burkhart (@escamoteur)
homepage: https://github.com/fluttercommunity/get_it
funding:
Expand Down

0 comments on commit f536845

Please sign in to comment.