@quenty/softshutdown 7.0.0 → 7.0.1-canary.445.ee7e5d6.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 CHANGED
@@ -3,6 +3,18 @@
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
+ ## [7.0.1-canary.445.ee7e5d6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@7.0.0...@quenty/softshutdown@7.0.1-canary.445.ee7e5d6.0) (2024-02-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix bootstrap of test environments and loader samples ([441e4a9](https://github.com/Quenty/NevermoreEngine/commit/441e4a90d19fcc203da2fdedc08e532c20d52f99))
12
+ * Fix loader issues ([4f02c27](https://github.com/Quenty/NevermoreEngine/commit/4f02c27e96314724c58778e8c113c0d362e16ae4))
13
+
14
+
15
+
16
+
17
+
6
18
  # [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@6.0.0...@quenty/softshutdown@7.0.0) (2024-02-13)
7
19
 
8
20
  **Note:** Version bump only for package @quenty/softshutdown
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2023 James Onnen (Quenty)
3
+ Copyright (c) 2014-2024 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/softshutdown",
3
- "version": "7.0.0",
3
+ "version": "7.0.1-canary.445.ee7e5d6.0",
4
4
  "description": "This service lets you shut down servers without losing a bunch of players. When game.OnClose is called, the script teleports everyone in the server into a reserved server.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,25 +29,25 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@quenty/attributeutils": "^12.0.0",
33
- "@quenty/baseobject": "^8.0.0",
34
- "@quenty/basicpane": "^11.0.0",
35
- "@quenty/bindtocloseservice": "^6.0.0",
36
- "@quenty/blend": "^10.0.0",
37
- "@quenty/clienttranslator": "^12.0.0",
38
- "@quenty/coreguienabler": "^10.0.0",
39
- "@quenty/datastore": "^11.0.0",
40
- "@quenty/loader": "^8.0.0",
41
- "@quenty/maid": "^3.0.0",
42
- "@quenty/math": "^2.5.0",
43
- "@quenty/promise": "^8.0.0",
44
- "@quenty/rx": "^11.0.0",
45
- "@quenty/servicebag": "^9.0.0",
46
- "@quenty/table": "^3.4.0",
47
- "@quenty/teleportserviceutils": "^7.0.0",
48
- "@quenty/uiobjectutils": "^4.0.0",
49
- "@quenty/valuebaseutils": "^11.0.0",
50
- "@quenty/valueobject": "^11.0.0"
32
+ "@quenty/attributeutils": "12.0.1-canary.445.ee7e5d6.0",
33
+ "@quenty/baseobject": "8.0.1-canary.445.ee7e5d6.0",
34
+ "@quenty/basicpane": "11.0.1-canary.445.ee7e5d6.0",
35
+ "@quenty/bindtocloseservice": "6.0.1-canary.445.ee7e5d6.0",
36
+ "@quenty/blend": "10.0.1-canary.445.ee7e5d6.0",
37
+ "@quenty/clienttranslator": "12.0.1-canary.445.ee7e5d6.0",
38
+ "@quenty/coreguienabler": "10.0.1-canary.445.ee7e5d6.0",
39
+ "@quenty/datastore": "11.0.1-canary.445.ee7e5d6.0",
40
+ "@quenty/loader": "8.0.1-canary.445.ee7e5d6.0",
41
+ "@quenty/maid": "3.0.0",
42
+ "@quenty/math": "2.5.0",
43
+ "@quenty/promise": "8.0.1-canary.445.ee7e5d6.0",
44
+ "@quenty/rx": "11.0.1-canary.445.ee7e5d6.0",
45
+ "@quenty/servicebag": "9.0.1-canary.445.ee7e5d6.0",
46
+ "@quenty/table": "3.4.0",
47
+ "@quenty/teleportserviceutils": "7.0.1-canary.445.ee7e5d6.0",
48
+ "@quenty/uiobjectutils": "4.0.1-canary.445.ee7e5d6.0",
49
+ "@quenty/valuebaseutils": "11.0.1-canary.445.ee7e5d6.0",
50
+ "@quenty/valueobject": "11.0.1-canary.445.ee7e5d6.0"
51
51
  },
52
- "gitHead": "87df864b5b6a9a9cef7544f6e8054a12cdd120bd"
52
+ "gitHead": "ee7e5d6ada857eba67b462aa37a00de9f430ae97"
53
53
  }
@@ -11,13 +11,10 @@ local ServiceBag = require("ServiceBag")
11
11
 
12
12
  return function(target)
13
13
  local maid = Maid.new()
14
- local serviceBag = ServiceBag.new()
15
- maid:GiveTask(serviceBag)
16
-
14
+ local serviceBag = maid:Add(ServiceBag.new())
17
15
  local translator = serviceBag:GetService(SoftShutdownTranslator)
18
16
 
19
- local softShutdownUI = SoftShutdownUI.new()
20
- maid:GiveTask(softShutdownUI)
17
+ local softShutdownUI = maid:Add(SoftShutdownUI.new())
21
18
 
22
19
  maid:GiveTask(translator:ObserveFormatByKey("shutdown.lobby.title"):Subscribe(function(text)
23
20
  softShutdownUI:SetTitle(text)
@@ -4,12 +4,10 @@
4
4
 
5
5
  local ReplicatedFirst = game:GetService("ReplicatedFirst")
6
6
 
7
- local packages = ReplicatedFirst:WaitForChild("_SoftShutdownClientPackages")
8
-
9
- local SoftShutdownServiceClient = require(packages.SoftShutdownServiceClient)
10
- local serviceBag = require(packages.ServiceBag).new()
11
-
12
- serviceBag:GetService(SoftShutdownServiceClient)
7
+ local loader = ReplicatedFirst:WaitForChild("_SoftShutdownClientPackages"):WaitForChild("loader")
8
+ local require = require(loader).bootstrapGame(loader.Parent)
13
9
 
10
+ local serviceBag = require("ServiceBag").new()
11
+ serviceBag:GetService(require("SoftShutdownServiceClient"))
14
12
  serviceBag:Init()
15
13
  serviceBag:Start()
@@ -42,6 +42,8 @@
42
42
 
43
43
  local ReplicatedFirst = game:GetService("ReplicatedFirst")
44
44
 
45
+ error("TODO: Update this code before publishing again to support new loader")
46
+
45
47
  local client, server, shared = require(script:FindFirstChild("LoaderUtils", true)).toWallyFormat(script.src, false)
46
48
 
47
49
  server.Name = "_SoftShutdownServerPackages"