@quenty/instanceutils 3.1.2 → 3.3.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,28 @@
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.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@3.2.0...@quenty/instanceutils@3.3.0) (2021-11-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Support MacOS syncing ([#225](https://github.com/Quenty/NevermoreEngine/issues/225)) ([03f9183](https://github.com/Quenty/NevermoreEngine/commit/03f918392c6a5bdd33f8a17c38de371d1e06c67a))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@3.1.2...@quenty/instanceutils@3.2.0) (2021-10-30)
18
+
19
+
20
+ ### Features
21
+
22
+ * RxInstanceUtils.observeProperty also outputs the instance it observed the property on as the second argument ([1a556cd](https://github.com/Quenty/NevermoreEngine/commit/1a556cdd39463300f4f9a2090222aa084c9a497a))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.1.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@3.1.1...@quenty/instanceutils@3.1.2) (2021-10-30)
7
29
 
8
30
  **Note:** Version bump only for package @quenty/instanceutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/instanceutils",
3
- "version": "3.1.2",
3
+ "version": "3.3.0",
4
4
  "description": "Utility functions involving instances in Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,13 +26,13 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/brio": "^3.1.2",
29
+ "@quenty/brio": "^3.3.0",
30
30
  "@quenty/loader": "^3.1.1",
31
31
  "@quenty/maid": "^2.0.1",
32
- "@quenty/rx": "^3.1.2"
32
+ "@quenty/rx": "^3.3.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "e9cd4223c7fda7c852db9743ef844baa19cacb13"
37
+ "gitHead": "87ab1435a59a05e7dd745db1dfcec26116d1d71d"
38
38
  }
@@ -19,9 +19,9 @@ function RxInstanceUtils.observeProperty(instance, propertyName)
19
19
  local maid = Maid.new()
20
20
 
21
21
  maid:GiveTask(instance:GetPropertyChangedSignal(propertyName):Connect(function()
22
- sub:Fire(instance[propertyName])
22
+ sub:Fire(instance[propertyName], instance)
23
23
  end))
24
- sub:Fire(instance[propertyName])
24
+ sub:Fire(instance[propertyName], instance)
25
25
 
26
26
  return maid
27
27
  end)
@@ -176,5 +176,4 @@ function RxInstanceUtils.observeDescendants(parent, predicate)
176
176
  end)
177
177
  end
178
178
 
179
-
180
179
  return RxInstanceUtils
@@ -0,0 +1,22 @@
1
+ ---
2
+ -- @module RxInstanceUtils.spec.lua
3
+
4
+ local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)
5
+
6
+ local RxInstanceUtils = require("RxInstanceUtils")
7
+
8
+ return function()
9
+ describe("RxInstanceUtils.observeChildrenBrio", function()
10
+ local part = Instance.new("Part")
11
+ local observe = RxInstanceUtils.observeChildrenBrio(part)
12
+ local externalResult = nil
13
+
14
+ it("should not emit anything", function()
15
+ observe:Subscribe(function(result)
16
+ externalResult = result
17
+ end)
18
+
19
+ expect(externalResult).to.equal(nil)
20
+ end)
21
+ end)
22
+ end
@@ -2,6 +2,6 @@
2
2
  "name": "node_modules",
3
3
  "globIgnorePaths": [ "**/.package-lock.json" ],
4
4
  "tree": {
5
- "$path": { "optional": "..\\node_modules" }
5
+ "$path": { "optional": "../node_modules" }
6
6
  }
7
7
  }