@quenty/countdowntext 4.8.0 → 4.8.1
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 +11 -0
- package/package.json +3 -3
- package/src/Shared/CountdownTextUtils.lua +4 -1
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.8.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/countdowntext@4.8.0...@quenty/countdowntext@4.8.1) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [4.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/countdowntext@4.7.1...@quenty/countdowntext@4.8.0) (2025-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/countdowntext
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/countdowntext",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "Utility methods to format countdown text",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "^10.8.
|
|
28
|
+
"@quenty/loader": "^10.8.1"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
|
|
34
34
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
3
|
+
Utility functions to format countdowns in-game
|
|
4
|
+
|
|
2
5
|
@class CountdownTextUtils
|
|
3
6
|
]=]
|
|
4
7
|
|
|
@@ -11,7 +14,7 @@ local CountdownTextUtils = {}
|
|
|
11
14
|
@param whenAtZeroText string?
|
|
12
15
|
@return string
|
|
13
16
|
]=]
|
|
14
|
-
function CountdownTextUtils.formatCountdown(seconds, whenAtZeroText)
|
|
17
|
+
function CountdownTextUtils.formatCountdown(seconds: number, whenAtZeroText: string?): string
|
|
15
18
|
assert(type(seconds) == "number", "Bad seconds")
|
|
16
19
|
assert(type(whenAtZeroText) == "string" or whenAtZeroText == nil, "Bad whenAtZeroText")
|
|
17
20
|
|