@quenty/loader 3.2.0 → 3.2.1-canary.913a974.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,17 @@
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
+ ## [3.2.1-canary.913a974.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@3.2.0...@quenty/loader@3.2.1-canary.913a974.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Centralize loader constants ([913a974](https://github.com/Quenty/NevermoreEngine/commit/913a974e69304d8dc5aa805f2db4638a206fe89e))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@3.1.2...@quenty/loader@3.2.0) (2022-01-03)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/loader",
3
- "version": "3.2.0",
3
+ "version": "3.2.1-canary.913a974.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": "d910da8f5c7e9a55a8bf76d8efbe5632713dd0fe"
29
+ "gitHead": "913a974e69304d8dc5aa805f2db4638a206fe89e"
30
30
  }
@@ -6,9 +6,7 @@
6
6
 
7
7
  local Utils = require(script.Parent.Utils)
8
8
  local Queue = require(script.Parent.Queue)
9
-
10
- local GROUP_EACH_PACKAGE_INDIVIDUALLY = false
11
- local ALLOW_MULTIPLE_GROUPS = true
9
+ local LoaderConstants = require(script.Parent.LoaderConstants)
12
10
 
13
11
  local GroupInfoUtils = {}
14
12
 
@@ -42,11 +40,11 @@ function GroupInfoUtils.groupPackageInfos(packageInfoList, replicationMode)
42
40
  if GroupInfoUtils.canAddPackageInfoToGroup(current, packageInfo, replicationMode) then
43
41
  GroupInfoUtils.addPackageInfoToGroup(current, packageInfo, replicationMode)
44
42
 
45
- if GROUP_EACH_PACKAGE_INDIVIDUALLY then
43
+ if LoaderConstants.GROUP_EACH_PACKAGE_INDIVIDUALLY then
46
44
  table.insert(built, current)
47
45
  current = GroupInfoUtils.createGroupInfo()
48
46
  end
49
- elseif ALLOW_MULTIPLE_GROUPS then
47
+ elseif LoaderConstants.ALLOW_MULTIPLE_GROUPS then
50
48
  -- Create a new group
51
49
  table.insert(built, current)
52
50
  current = GroupInfoUtils.createGroupInfo()
@@ -0,0 +1,12 @@
1
+ --[=[
2
+ @private
3
+ @class LoaderConstants
4
+ ]=]
5
+
6
+ local Utils = require(script.Parent.Utils)
7
+
8
+ return Utils.readonly({
9
+ GROUP_EACH_PACKAGE_INDIVIDUALLY = false;
10
+ ALLOW_MULTIPLE_GROUPS = true;
11
+ INCLUDE_IMPLICIT_DEPENDENCIES = true;
12
+ })
@@ -4,12 +4,11 @@
4
4
  @class PackageInfoUtils
5
5
  ]=]
6
6
 
7
- local Utils = require(script.Parent.Utils)
8
- local ScriptInfoUtils = require(script.Parent.ScriptInfoUtils)
9
- local Queue = require(script.Parent.Queue)
10
7
  local BounceTemplateUtils = require(script.Parent.BounceTemplateUtils)
11
-
12
- local INCLUDE_IMPLICIT_DEPENDENCIES = true
8
+ local LoaderConstants = require(script.Parent.LoaderConstants)
9
+ local Queue = require(script.Parent.Queue)
10
+ local ScriptInfoUtils = require(script.Parent.ScriptInfoUtils)
11
+ local Utils = require(script.Parent.Utils)
13
12
 
14
13
  local PackageInfoUtils = {}
15
14
 
@@ -85,7 +84,7 @@ function PackageInfoUtils.computePackageDependencySet(packageInfo, implicitDepen
85
84
  local dependencyNameMap = {}
86
85
 
87
86
  -- Set implicit dependencies
88
- if INCLUDE_IMPLICIT_DEPENDENCIES then
87
+ if LoaderConstants.INCLUDE_IMPLICIT_DEPENDENCIES then
89
88
  for entry, _ in pairs(implicitDependencySet) do
90
89
  dependencyNameMap[entry.name] = entry
91
90
  end