@quenty/servicebag 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +3 -3
- package/src/Shared/ServiceBag.lua +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@5.0.0...@quenty/servicebag@5.1.0) (2022-07-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Ensure deconstructing service does not affect other services ([9ac2b9c](https://github.com/Quenty/NevermoreEngine/commit/9ac2b9c2ea4c1a68677182fd77103fcd0b5c6864))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@4.2.0...@quenty/servicebag@5.0.0) (2022-05-21)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/servicebag",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Service providing mechanisms for Nevermore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/baseobject": "^5.
|
|
29
|
+
"@quenty/baseobject": "^5.1.0",
|
|
30
30
|
"@quenty/loader": "^5.0.0",
|
|
31
31
|
"@quenty/signal": "^2.2.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "e31b3a35aa475bb5699a24898a8639e107165b36"
|
|
37
37
|
}
|
|
@@ -263,8 +263,12 @@ function ServiceBag:Destroy()
|
|
|
263
263
|
local key, service = next(services)
|
|
264
264
|
while service ~= nil do
|
|
265
265
|
services[key] = nil
|
|
266
|
-
if
|
|
267
|
-
|
|
266
|
+
if not self._serviceTypesToInitializeSet[key] then
|
|
267
|
+
task.spawn(function()
|
|
268
|
+
if service.Destroy then
|
|
269
|
+
service:Destroy()
|
|
270
|
+
end
|
|
271
|
+
end)
|
|
268
272
|
end
|
|
269
273
|
key, service = next(services)
|
|
270
274
|
end
|