@quenty/baseobject 10.5.0 → 10.6.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
+ # [10.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/baseobject@10.5.0...@quenty/baseobject@10.6.0) (2024-10-04)
7
+
8
+
9
+ ### Performance Improvements
10
+
11
+ * Reorganize constructor to let Lua table size casting work it's magic ([0bdd2bf](https://github.com/Quenty/NevermoreEngine/commit/0bdd2bf7c78e8764cb7c0b530cd0ff301f14e476))
12
+
13
+
14
+
15
+
16
+
6
17
  # [10.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/baseobject@10.4.0...@quenty/baseobject@10.5.0) (2024-09-25)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/baseobject
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/baseobject",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "description": "BaseObject implementation with Maid attached for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -24,11 +24,11 @@
24
24
  "Quenty"
25
25
  ],
26
26
  "dependencies": {
27
- "@quenty/loader": "^10.5.0",
28
- "@quenty/maid": "^3.3.0"
27
+ "@quenty/loader": "^10.6.0",
28
+ "@quenty/maid": "^3.4.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "41715b15e2b48b2d22ff4f5277a8d4b7a0d32ef3"
33
+ "gitHead": "035abfa088c854a73e1c65b350267eaa17669646"
34
34
  }
@@ -18,12 +18,10 @@ BaseObject.__index = BaseObject
18
18
  @return BaseObject
19
19
  ]=]
20
20
  function BaseObject.new(obj)
21
- local self = setmetatable({}, BaseObject)
22
-
23
- self._maid = Maid.new()
24
- self._obj = obj
25
-
26
- return self
21
+ return setmetatable({
22
+ _maid = Maid.new();
23
+ _obj = obj;
24
+ }, BaseObject)
27
25
  end
28
26
 
29
27
  --[=[