@quenty/loader 10.7.0 → 10.7.1

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,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.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@10.7.0...@quenty/loader@10.7.1) (2024-11-04)
7
+
8
+ **Note:** Version bump only for package @quenty/loader
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@10.6.0...@quenty/loader@10.7.0) (2024-10-06)
7
15
 
8
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/loader",
3
- "version": "10.7.0",
3
+ "version": "10.7.1",
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": "67c5dbf46f6f45213812f3f117419a5534936a0b"
29
+ "gitHead": "01c43a0ddd3c5e0cb2d9027313dbfa9852eedef1"
30
30
  }
package/src/Maid.lua CHANGED
@@ -26,7 +26,7 @@
26
26
  local Maid = {}
27
27
  Maid.ClassName = "Maid"
28
28
 
29
- --[=[
29
+ --[[
30
30
  Constructs a new Maid object
31
31
 
32
32
  ```lua
@@ -35,14 +35,14 @@ Maid.ClassName = "Maid"
35
35
 
36
36
  @ignore
37
37
  @return Maid
38
- ]=]
38
+ ]]
39
39
  function Maid.new()
40
40
  return setmetatable({
41
41
  _tasks = {}
42
42
  }, Maid)
43
43
  end
44
44
 
45
- --[=[
45
+ --[[
46
46
  Returns true if the class is a maid, and false otherwise.
47
47
 
48
48
  ```lua
@@ -53,12 +53,12 @@ end
53
53
  @ignore
54
54
  @param value any
55
55
  @return boolean
56
- ]=]
56
+ ]]
57
57
  function Maid.isMaid(value)
58
58
  return type(value) == "table" and value.ClassName == "Maid"
59
59
  end
60
60
 
61
- --[=[
61
+ --[[
62
62
  Returns Maid[key] if not part of Maid metatable
63
63
 
64
64
  ```lua
@@ -73,7 +73,7 @@ end
73
73
  @ignore
74
74
  @param index any
75
75
  @return MaidTask
76
- ]=]
76
+ ]]
77
77
  function Maid:__index(index)
78
78
  if Maid[index] then
79
79
  return Maid[index]
@@ -82,7 +82,7 @@ function Maid:__index(index)
82
82
  end
83
83
  end
84
84
 
85
- --[=[
85
+ --[[
86
86
  Add a task to clean up. Tasks given to a maid will be cleaned when
87
87
  maid[index] is set to a different value.
88
88
 
@@ -101,7 +101,7 @@ end
101
101
  @ignore
102
102
  @param index any
103
103
  @param newTask MaidTask
104
- ]=]
104
+ ]]
105
105
  function Maid:__newindex(index, newTask)
106
106
  if Maid[index] ~= nil then
107
107
  error(string.format("Cannot use '%s' as a Maid key", tostring(index)), 2)
@@ -145,13 +145,13 @@ function Maid:__newindex(index, newTask)
145
145
  end
146
146
  end
147
147
 
148
- --[=[
148
+ --[[
149
149
  Gives a task to the maid for cleanup and returns the resulting value
150
150
 
151
151
  @ignore
152
152
  @param task MaidTask -- An item to clean
153
153
  @return MaidTask
154
- ]=]
154
+ ]]
155
155
  function Maid:Add(task)
156
156
  if not task then
157
157
  error("Task cannot be false or nil", 2)
@@ -166,13 +166,13 @@ function Maid:Add(task)
166
166
  return task
167
167
  end
168
168
 
169
- --[=[
169
+ --[[
170
170
  Gives a task to the maid for cleanup, but uses an incremented number as a key.
171
171
 
172
172
  @ignore
173
173
  @param task MaidTask -- An item to clean
174
174
  @return number -- taskId
175
- ]=]
175
+ ]]
176
176
  function Maid:GiveTask(task)
177
177
  if not task then
178
178
  error("Task cannot be false or nil", 2)
@@ -188,13 +188,13 @@ function Maid:GiveTask(task)
188
188
  return taskId
189
189
  end
190
190
 
191
- --[=[
191
+ --[[
192
192
  Gives a promise to the maid for clean.
193
193
 
194
194
  @ignore
195
195
  @param promise Promise<T>
196
196
  @return Promise<T>
197
- ]=]
197
+ ]]
198
198
  function Maid:GivePromise(promise)
199
199
  if not promise:IsPending() then
200
200
  return promise
@@ -211,7 +211,7 @@ function Maid:GivePromise(promise)
211
211
  return newPromise
212
212
  end
213
213
 
214
- --[=[
214
+ --[[
215
215
  Cleans up all tasks and removes them as entries from the Maid.
216
216
 
217
217
  :::note
@@ -228,7 +228,7 @@ end
228
228
  :::
229
229
 
230
230
  @ignore
231
- ]=]
231
+ ]]
232
232
  function Maid:DoCleaning()
233
233
  local tasks = self._tasks
234
234
 
@@ -272,13 +272,13 @@ function Maid:DoCleaning()
272
272
  end
273
273
  end
274
274
 
275
- --[=[
275
+ --[[
276
276
  Alias for [Maid.DoCleaning()](/api/Maid#DoCleaning)
277
277
 
278
278
  @ignore
279
279
  @function Destroy
280
280
  @within Maid
281
- ]=]
281
+ ]]
282
282
  Maid.Destroy = Maid.DoCleaning
283
283
 
284
284
  return Maid