@quenty/loader 7.0.0 → 7.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 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.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@7.0.0...@quenty/loader@7.1.0) (2023-12-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * Reduce duplicate __call() and __index code ([422d019](https://github.com/Quenty/NevermoreEngine/commit/422d0193378076fca308c96a330ad6da0eb3784e))
12
+ * Return server, client, and shared folders so they can be renamed ([8a12f42](https://github.com/Quenty/NevermoreEngine/commit/8a12f4225b91767b8ec87f3a1569a47c1a5154ce))
13
+
14
+
15
+
16
+
17
+
6
18
  # [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@6.3.0...@quenty/loader@7.0.0) (2023-10-11)
7
19
 
8
20
  **Note:** Version bump only for package @quenty/loader
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/loader",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "A simple module loader for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
29
+ "gitHead": "2c2dbbc0cb2fbb46b4f3270c559c63890fe18b26"
30
30
  }
package/src/Loader.lua CHANGED
@@ -37,18 +37,6 @@ function Loader:__call(value)
37
37
  end
38
38
  end
39
39
 
40
- function Loader:__index(value)
41
- if type(value) == "string" then
42
- local object = self._script.Parent[value]
43
- if object:IsA("ObjectValue") then
44
- return require(waitForValue(object))
45
- else
46
- return require(object)
47
- end
48
- else
49
- return require(value)
50
- end
51
- end
52
-
40
+ Loader.__index = Loader.__call
53
41
 
54
42
  return Loader
package/src/init.lua CHANGED
@@ -79,7 +79,7 @@ local function bootstrapGame(packageFolder)
79
79
  sharedFolder.Parent = ReplicatedStorage
80
80
  serverFolder.Parent = ServerScriptService
81
81
 
82
- return serverFolder
82
+ return serverFolder, clientFolder, sharedFolder
83
83
  end
84
84
 
85
85
  local function bootstrapPlugin(packageFolder)