@quenty/funnels 1.2.0 → 1.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,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
+ # [1.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/funnels@1.2.0...@quenty/funnels@1.3.0) (2025-01-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add :IsStepComplete call ([e71445c](https://github.com/Quenty/NevermoreEngine/commit/e71445c919f527c52b00558a721f783887819ca4))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/funnels@1.1.0...@quenty/funnels@1.2.0) (2024-12-15)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/funnels
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/funnels",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Funnel utility class",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "0a20ace4dc7d38f8c889bf73b716b33e8a767c54"
38
+ "gitHead": "a55ec046e30ddacc356f3d93fcbc6058888a88f6"
39
39
  }
@@ -55,6 +55,10 @@ function FunnelStepLogger:LogStep(stepNumber, stepName)
55
55
  self._stepTracker:LogStep(stepNumber, stepName)
56
56
  end
57
57
 
58
+ function FunnelStepLogger:IsStepComplete(stepNumber)
59
+ return self._stepTracker:IsStepComplete(stepNumber)
60
+ end
61
+
58
62
  function FunnelStepLogger:_sendStep(stepNumber, stepName)
59
63
  AnalyticsService:LogFunnelStepEvent(self._player, self._funnelName, self._funnelSessionId, stepNumber, stepName)
60
64
 
@@ -38,6 +38,12 @@ function FunnelStepTracker:LogStep(stepNumber, stepName)
38
38
  self.StepLogged:Fire(stepNumber, stepName)
39
39
  end
40
40
 
41
+ function FunnelStepTracker:IsStepComplete(stepNumber)
42
+ assert(type(stepNumber) == "number", "Bad stepNumber")
43
+
44
+ return self._stepsLogged[stepNumber] ~= nil
45
+ end
46
+
41
47
  function FunnelStepTracker:GetLoggedSteps()
42
48
  return table.clone(self._stepsLogged)
43
49
  end