@quenty/loader 10.8.3 → 10.8.4-canary.559.339cfa7.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 +8 -0
- package/package.json +2 -2
- package/src/Dependencies/DependencyUtils.lua +1 -1
- package/src/Dependencies/PackageTracker.lua +2 -2
- package/src/LoaderLink/LoaderLink.lua +1 -1
- package/src/LoaderLink/LoaderLinkCreator.lua +2 -2
- package/src/LoaderLink/LoaderLinkUtils.lua +1 -1
- package/src/LoaderUtils.lua +1 -1
- package/src/Maid.lua +1 -1
- package/src/Replication/ReplicationTypeUtils.lua +5 -2
- package/src/Replication/Replicator.lua +1 -1
- package/src/Replication/ReplicatorReferences.lua +6 -2
- package/src/Utils.lua +1 -3
- package/src/init.lua +23 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [10.8.4-canary.559.339cfa7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@10.8.3...@quenty/loader@10.8.4-canary.559.339cfa7.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/loader
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [10.8.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@10.8.2...@quenty/loader@10.8.3) (2025-04-10)
|
|
7
15
|
|
|
8
16
|
**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": "10.8.
|
|
3
|
+
"version": "10.8.4-canary.559.339cfa7.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": "
|
|
29
|
+
"gitHead": "339cfa778736f08768ed7305041f6221faa35bfc"
|
|
30
30
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
]=]
|
|
7
7
|
|
|
8
8
|
local loader = script.Parent.Parent
|
|
9
|
-
local Maid = require(loader.Maid)
|
|
10
9
|
local DependencyUtils = require(loader.Dependencies.DependencyUtils)
|
|
10
|
+
local Maid = require(loader.Maid)
|
|
11
11
|
local ReplicationType = require(loader.Replication.ReplicationType)
|
|
12
12
|
local ReplicationTypeUtils = require(loader.Replication.ReplicationTypeUtils)
|
|
13
13
|
|
|
@@ -522,4 +522,4 @@ function PackageTracker.Destroy(self: PackageTracker)
|
|
|
522
522
|
self._maid:DoCleaning()
|
|
523
523
|
end
|
|
524
524
|
|
|
525
|
-
return PackageTracker
|
|
525
|
+
return PackageTracker
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
local loader = script.Parent.Parent
|
|
9
9
|
local LoaderLinkUtils = require(loader.LoaderLink.LoaderLinkUtils)
|
|
10
|
-
local ReplicatorReferences = require(loader.Replication.ReplicatorReferences)
|
|
11
10
|
local Maid = require(loader.Maid)
|
|
11
|
+
local ReplicatorReferences = require(loader.Replication.ReplicatorReferences)
|
|
12
12
|
|
|
13
13
|
local LoaderLinkCreator = {}
|
|
14
14
|
LoaderLinkCreator.ClassName = "LoaderLinkCreator"
|
|
@@ -218,4 +218,4 @@ function LoaderLinkCreator.Destroy(self: LoaderLinkCreator)
|
|
|
218
218
|
setmetatable(self :: any, nil)
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
-
return LoaderLinkCreator
|
|
221
|
+
return LoaderLinkCreator
|
package/src/LoaderUtils.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
--!strict
|
|
2
2
|
-- Literally here just so old loading code works
|
|
3
3
|
|
|
4
|
-
error("Not implemented! Please require LoaderUtils.Parent. This file acts as a marker for old loader versions.")
|
|
4
|
+
error("Not implemented! Please require LoaderUtils.Parent. This file acts as a marker for old loader versions.")
|
package/src/Maid.lua
CHANGED
|
@@ -52,7 +52,10 @@ function ReplicationTypeUtils.inferReplicationType(): ReplicationType.Replicatio
|
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
function ReplicationTypeUtils.isAllowed(
|
|
55
|
+
function ReplicationTypeUtils.isAllowed(
|
|
56
|
+
replicationType: ReplicationType.ReplicationType,
|
|
57
|
+
requestedReplicationType: ReplicationType.ReplicationType
|
|
58
|
+
): boolean
|
|
56
59
|
assert(ReplicationTypeUtils.isReplicationType(replicationType), "Bad replicationType")
|
|
57
60
|
assert(ReplicationTypeUtils.isReplicationType(requestedReplicationType), "Bad requestedReplicationType")
|
|
58
61
|
|
|
@@ -79,4 +82,4 @@ function ReplicationTypeUtils.isAllowed(replicationType: ReplicationType.Replica
|
|
|
79
82
|
end
|
|
80
83
|
end
|
|
81
84
|
|
|
82
|
-
return ReplicationTypeUtils
|
|
85
|
+
return ReplicationTypeUtils
|
|
@@ -83,7 +83,11 @@ end
|
|
|
83
83
|
@param callback function
|
|
84
84
|
@return () -> () -- Call to disconnect
|
|
85
85
|
]=]
|
|
86
|
-
function ReplicatorReferences.ObserveReferenceChanged(
|
|
86
|
+
function ReplicatorReferences.ObserveReferenceChanged(
|
|
87
|
+
self: ReplicatorReferences,
|
|
88
|
+
orig: Instance,
|
|
89
|
+
callback: ListenerCallback
|
|
90
|
+
): () -> ()
|
|
87
91
|
assert(typeof(orig) == "Instance", "Bad orig")
|
|
88
92
|
assert(type(callback) == "function", "Bad callback")
|
|
89
93
|
|
|
@@ -114,4 +118,4 @@ function ReplicatorReferences.ObserveReferenceChanged(self: ReplicatorReferences
|
|
|
114
118
|
end
|
|
115
119
|
end
|
|
116
120
|
|
|
117
|
-
return ReplicatorReferences
|
|
121
|
+
return ReplicatorReferences
|
package/src/Utils.lua
CHANGED
|
@@ -113,7 +113,6 @@ function Utils.setValue(parent: Instance, instanceType: string, name: string, va
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
-
|
|
117
116
|
function Utils.getOrCreateFolder(parent: Instance, folderName: string): Instance
|
|
118
117
|
local found = parent:FindFirstChild(folderName)
|
|
119
118
|
if found then
|
|
@@ -126,5 +125,4 @@ function Utils.getOrCreateFolder(parent: Instance, folderName: string): Instance
|
|
|
126
125
|
end
|
|
127
126
|
end
|
|
128
127
|
|
|
129
|
-
|
|
130
|
-
return Utils
|
|
128
|
+
return Utils
|
package/src/init.lua
CHANGED
|
@@ -149,9 +149,23 @@ function Loader:_findDependency(request: string)
|
|
|
149
149
|
local foundBackup = DependencyUtils.findDependency(self._packages, request, self._replicationType)
|
|
150
150
|
if foundBackup then
|
|
151
151
|
if packageTracker then
|
|
152
|
-
warn(
|
|
152
|
+
warn(
|
|
153
|
+
string.format(
|
|
154
|
+
"[Loader] - No package tracker for root %s (while loading %s)\n%s",
|
|
155
|
+
self._packages:GetFullName(),
|
|
156
|
+
request,
|
|
157
|
+
debug.traceback()
|
|
158
|
+
)
|
|
159
|
+
)
|
|
153
160
|
else
|
|
154
|
-
warn(
|
|
161
|
+
warn(
|
|
162
|
+
string.format(
|
|
163
|
+
"[Loader] - Failed to find package %q in package tracker of root %s\n%s",
|
|
164
|
+
request,
|
|
165
|
+
self._packages:GetFullName(),
|
|
166
|
+
debug.traceback()
|
|
167
|
+
)
|
|
168
|
+
)
|
|
155
169
|
end
|
|
156
170
|
|
|
157
171
|
-- Ensure hoarcekat story has a link to use
|
|
@@ -166,7 +180,12 @@ function Loader:_findDependency(request: string)
|
|
|
166
180
|
end
|
|
167
181
|
|
|
168
182
|
-- TODO: Track location and provider install command
|
|
169
|
-
error(
|
|
183
|
+
error(
|
|
184
|
+
string.format(
|
|
185
|
+
"[Loader] - %q is not available. Please make this module or install it to the package requiring it.",
|
|
186
|
+
request
|
|
187
|
+
)
|
|
188
|
+
)
|
|
170
189
|
return nil
|
|
171
190
|
end
|
|
172
191
|
|
|
@@ -194,4 +213,4 @@ function Loader:Destroy()
|
|
|
194
213
|
setmetatable(self, nil)
|
|
195
214
|
end
|
|
196
215
|
|
|
197
|
-
return Loader
|
|
216
|
+
return Loader
|