@quenty/steputils 3.2.0 → 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,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
+ # [3.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/steputils@3.2.0...@quenty/steputils@3.3.0) (2023-09-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add StepUtils.deferWait() ([caac896](https://github.com/Quenty/NevermoreEngine/commit/caac896fc8439d0de87245cf4bdcb534ba2a9efe))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/steputils@3.1.0...@quenty/steputils@3.2.0) (2022-10-11)
7
18
 
8
19
 
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/steputils",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Binds animations into step, where the animation only runs as needed",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "69c2153865684748d0a8d6806f1ff999685c2e55"
30
+ "gitHead": "fa0826fa54fabecb242d7c0753e2e7644ba02e11"
31
31
  }
@@ -39,6 +39,19 @@ function StepUtils.bindToRenderStep(update)
39
39
  return StepUtils.bindToSignal(RunService.RenderStepped, update)
40
40
  end
41
41
 
42
+ --[=[
43
+ Yields until the frame deferral is done
44
+ ]=]
45
+ function StepUtils.deferWait()
46
+ local signal = Instance.new("BindableEvent")
47
+ task.defer(function()
48
+ signal:Fire()
49
+ signal:Destroy()
50
+ end)
51
+
52
+ signal.Event:Wait()
53
+ end
54
+
42
55
  --[=[
43
56
  Binds the given update function to [RunService.Stepped]. See [StepUtils.bindToRenderStep] for details.
44
57