@quenty/collectionserviceutils 3.0.0-canary.331.7eefa75.0 → 3.0.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,141 @@
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.0.0-canary.331.7eefa75.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.6.0...@quenty/collectionserviceutils@3.0.0-canary.331.7eefa75.0) (2023-02-27)
6
+ # [3.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.21.0...@quenty/collectionserviceutils@3.0.0) (2023-10-11)
7
+
8
+ **Note:** Version bump only for package @quenty/collectionserviceutils
9
+
10
+
11
+
12
+
13
+
14
+ # [2.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.20.0...@quenty/collectionserviceutils@2.21.0) (2023-09-21)
15
+
16
+ **Note:** Version bump only for package @quenty/collectionserviceutils
17
+
18
+
19
+
20
+
21
+
22
+ # [2.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.19.0...@quenty/collectionserviceutils@2.20.0) (2023-09-04)
23
+
24
+ **Note:** Version bump only for package @quenty/collectionserviceutils
25
+
26
+
27
+
28
+
29
+
30
+ # [2.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.18.0...@quenty/collectionserviceutils@2.19.0) (2023-08-23)
31
+
32
+ **Note:** Version bump only for package @quenty/collectionserviceutils
33
+
34
+
35
+
36
+
37
+
38
+ # [2.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.17.0...@quenty/collectionserviceutils@2.18.0) (2023-07-28)
39
+
40
+ **Note:** Version bump only for package @quenty/collectionserviceutils
41
+
42
+
43
+
44
+
45
+
46
+ # [2.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.16.0...@quenty/collectionserviceutils@2.17.0) (2023-07-15)
47
+
48
+ **Note:** Version bump only for package @quenty/collectionserviceutils
49
+
50
+
51
+
52
+
53
+
54
+ # [2.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.15.0...@quenty/collectionserviceutils@2.16.0) (2023-06-17)
55
+
56
+
57
+ ### Features
58
+
59
+ * Add CollectionServiceUtils.findInstanceOrFirstAncestor(tagName, child) ([3147b1a](https://github.com/Quenty/NevermoreEngine/commit/3147b1a3d3258e6802015f7f0b4f734f31df0e33))
60
+
61
+
62
+
63
+
64
+
65
+ # [2.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.14.0...@quenty/collectionserviceutils@2.15.0) (2023-05-26)
66
+
67
+ **Note:** Version bump only for package @quenty/collectionserviceutils
68
+
69
+
70
+
71
+
72
+
73
+ # [2.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.13.0...@quenty/collectionserviceutils@2.14.0) (2023-05-08)
74
+
75
+ **Note:** Version bump only for package @quenty/collectionserviceutils
76
+
77
+
78
+
79
+
80
+
81
+ # [2.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.12.0...@quenty/collectionserviceutils@2.13.0) (2023-04-24)
82
+
83
+
84
+ ### Bug Fixes
85
+
86
+ * Fix missing dependencies ([3fbd817](https://github.com/Quenty/NevermoreEngine/commit/3fbd817b1fee45bda1b963b61a6ed22b0db12b82))
87
+
88
+
89
+
90
+
91
+
92
+ # [2.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.11.1...@quenty/collectionserviceutils@2.12.0) (2023-04-10)
93
+
94
+ **Note:** Version bump only for package @quenty/collectionserviceutils
95
+
96
+
97
+
98
+
99
+
100
+ ## [2.11.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.11.0...@quenty/collectionserviceutils@2.11.1) (2023-04-07)
101
+
102
+ **Note:** Version bump only for package @quenty/collectionserviceutils
103
+
104
+
105
+
106
+
107
+
108
+ # [2.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.10.0...@quenty/collectionserviceutils@2.11.0) (2023-04-06)
109
+
110
+ **Note:** Version bump only for package @quenty/collectionserviceutils
111
+
112
+
113
+
114
+
115
+
116
+ # [2.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.9.0...@quenty/collectionserviceutils@2.10.0) (2023-04-03)
117
+
118
+ **Note:** Version bump only for package @quenty/collectionserviceutils
119
+
120
+
121
+
122
+
123
+
124
+ # [2.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.8.0...@quenty/collectionserviceutils@2.9.0) (2023-03-31)
125
+
126
+ **Note:** Version bump only for package @quenty/collectionserviceutils
127
+
128
+
129
+
130
+
131
+
132
+ # [2.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.7.0...@quenty/collectionserviceutils@2.8.0) (2023-03-05)
133
+
134
+ **Note:** Version bump only for package @quenty/collectionserviceutils
135
+
136
+
137
+
138
+
139
+
140
+ # [2.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/collectionserviceutils@2.6.0...@quenty/collectionserviceutils@2.7.0) (2023-02-27)
7
141
 
8
142
  **Note:** Version bump only for package @quenty/collectionserviceutils
9
143
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (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/collectionserviceutils",
3
- "version": "3.0.0-canary.331.7eefa75.0",
3
+ "version": "3.0.0",
4
4
  "description": "Utility functions for use with collection service tags",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -21,9 +21,10 @@
21
21
  "url": "https://www.patreon.com/quenty"
22
22
  },
23
23
  "dependencies": {
24
- "@quenty/brio": "9.0.0-canary.331.7eefa75.0",
25
- "@quenty/loader": "6.1.0",
26
- "@quenty/rx": "8.0.0-canary.331.7eefa75.0"
24
+ "@quenty/brio": "^9.0.0",
25
+ "@quenty/loader": "^7.0.0",
26
+ "@quenty/maid": "^2.6.0",
27
+ "@quenty/rx": "^8.0.0"
27
28
  },
28
29
  "license": "MIT",
29
30
  "contributors": [
@@ -32,5 +33,5 @@
32
33
  "publishConfig": {
33
34
  "access": "public"
34
35
  },
35
- "gitHead": "7eefa756f8bd892b1210349a8133d6d56992dffb"
36
+ "gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
36
37
  }
@@ -27,6 +27,24 @@ function CollectionServiceUtils.findFirstAncestor(tagName, child)
27
27
  return nil
28
28
  end
29
29
 
30
+ --[=[
31
+ Finds the child with the tag name, or the first ancestor with the given tagName.
32
+
33
+ @param tagName string
34
+ @param child Instance
35
+ @return Instance?
36
+ ]=]
37
+ function CollectionServiceUtils.findInstanceOrFirstAncestor(tagName, child)
38
+ assert(type(tagName) == "string", "Bad tagName")
39
+ assert(typeof(child) == "Instance", "Bad child")
40
+
41
+ if CollectionService:HasTag(child, tagName) then
42
+ return child
43
+ end
44
+
45
+ return CollectionServiceUtils.findFirstAncestor(tagName, child)
46
+ end
47
+
30
48
  --[=[
31
49
  Removes all tags from an instance.
32
50
  @param instance Instance