@quenty/binder 4.4.0 → 4.5.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
+ # [4.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.4.0...@quenty/binder@4.5.0) (2021-12-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Binder was not deconstructing correctly on cleanup ([b6cd547](https://github.com/Quenty/NevermoreEngine/commit/b6cd54746457afe180ddda2f4d41731b29c144a5))
12
+
13
+
14
+
15
+
16
+
6
17
  # [4.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.3.1...@quenty/binder@4.4.0) (2021-12-14)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/binder
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014 Quenty
3
+ Copyright (c) 2014-2021 Quenty
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/binder",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Utility object to Bind a class to Roblox object, and associated helper methods",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,17 +26,17 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@quenty/baseobject": "^3.2.0",
29
- "@quenty/brio": "^3.4.0",
30
- "@quenty/instanceutils": "^3.4.0",
31
- "@quenty/linkutils": "^3.4.0",
29
+ "@quenty/brio": "^3.5.0",
30
+ "@quenty/instanceutils": "^3.5.0",
31
+ "@quenty/linkutils": "^3.5.0",
32
32
  "@quenty/loader": "^3.1.1",
33
33
  "@quenty/maid": "^2.0.1",
34
- "@quenty/promise": "^3.2.0",
34
+ "@quenty/promise": "^3.3.0",
35
35
  "@quenty/signal": "^2.0.0",
36
- "@quenty/valueobject": "^3.4.0"
36
+ "@quenty/valueobject": "^3.5.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "8a33939501e25cf227e96f7eb0d1a23b86f10f3c"
41
+ "gitHead": "6eb398e9fb81191f0815885f807ab0cb3bb9bad1"
42
42
  }
@@ -357,12 +357,12 @@ end
357
357
 
358
358
  --- Cleans up all bound classes, and disconnects all events
359
359
  function Binder:Destroy()
360
- local index, class = next(self._instToClass)
360
+ local inst, class = next(self._instToClass)
361
361
  while class ~= nil do
362
- self:_remove(class)
363
- assert(self._instToClass[index] == nil, "Failed to remove")
362
+ self:_remove(inst)
363
+ assert(self._instToClass[inst] == nil, "Failed to remove")
364
364
 
365
- index, class = next(self._instToClass)
365
+ inst, class = next(self._instToClass)
366
366
  end
367
367
 
368
368
  -- Disconnect events