@quenty/loader 10.4.0-canary.490.601c967.0 → 10.4.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,7 +3,13 @@
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.4.0-canary.490.601c967.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@10.3.0...@quenty/loader@10.4.0-canary.490.601c967.0) (2024-08-27)
6
+ # [10.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@10.3.0...@quenty/loader@10.4.0) (2024-09-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Better warnings in loader ([b504df9](https://github.com/Quenty/NevermoreEngine/commit/b504df94854d3191be998f935440ee80fc1f3049))
12
+ * Fix maid formatting ([d4cc336](https://github.com/Quenty/NevermoreEngine/commit/d4cc336f86c82de76670f0e3e1061741b0e9b998))
7
13
 
8
14
 
9
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/loader",
3
- "version": "10.4.0-canary.490.601c967.0",
3
+ "version": "10.4.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": "601c9671f09638be4f326e41fcfe3343ccfe76d8"
29
+ "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
30
30
  }
@@ -115,7 +115,7 @@ function DependencyUtils.iterPackagesInModuleModules(nodeModules)
115
115
  warn("[DependencyUtils] - Bad link value type")
116
116
  end
117
117
  else
118
- warn("[DependencyUtils] - Nothing linked")
118
+ warn(string.format("[DependencyUtils] - Nothing linked on %s", child:GetFullName()))
119
119
  end
120
120
  end
121
121
  end
@@ -133,7 +133,7 @@ function DependencyUtils.iterPackagesInModuleModules(nodeModules)
133
133
  warn("[DependencyUtils] - Bad link value type")
134
134
  end
135
135
  else
136
- warn("[DependencyUtils] - Nothing linked")
136
+ warn(string.format("[DependencyUtils] - Nothing linked on %s", item:GetFullName()))
137
137
  end
138
138
  end
139
139
  end
@@ -24,7 +24,7 @@ end
24
24
 
25
25
  local loader = waitForValue(script:WaitForChild("LoaderLink"))
26
26
  if not loader:IsDescendantOf(game) then
27
- error("Cannot load loader that is unparented from game")
27
+ error("[LoaderLink] - Cannot load loader that is unparented from game")
28
28
  end
29
29
 
30
30
  return require(loader)
@@ -113,12 +113,12 @@ function LoaderLinkCreator:_handleChildAdded(child)
113
113
  assert(typeof(child) == "Instance", "Bad child")
114
114
 
115
115
  if child:IsA("ModuleScript") then
116
- if child.Name ~= "loader" then
117
- self._maid[child] = self:_incrementNeededLoader(1)
118
- else
116
+ if child.Name == "loader" then
119
117
  if child ~= self._lastProvidedLoader then
120
118
  self._maid[child] = self:_addToHasLoaderCount(1)
121
119
  end
120
+ else
121
+ self._maid[child] = self:_incrementNeededLoader(1)
122
122
  end
123
123
  elseif child:IsA("Folder") then
124
124
  -- TODO: Maybe add to children with node_modules explicitly in its list.
package/src/Maid.lua CHANGED
@@ -99,7 +99,7 @@ end
99
99
  ]=]
100
100
  function Maid:__newindex(index, newTask)
101
101
  if Maid[index] ~= nil then
102
- error(("Cannot use '%s' as a Maid key"):format(tostring(index)), 2)
102
+ error(string.format("Cannot use '%s' as a Maid key", tostring(index)), 2)
103
103
  end
104
104
 
105
105
  local tasks = self._tasks