@quenty/messagingserviceutils 7.13.0-canary.00067520041c.0 → 7.13.0-canary.636.52f1a4b.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 +47 -1
- package/LICENSE.md +1 -1
- package/default.project.json +8 -1
- package/package.json +8 -5
- package/src/Server/MessagingServiceUtils.lua +17 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,53 @@
|
|
|
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
|
-
# [7.13.0-canary.
|
|
6
|
+
# [7.13.0-canary.636.52f1a4b.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/messagingserviceutils@7.12.6...@quenty/messagingserviceutils@7.13.0-canary.636.52f1a4b.0) (2026-01-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add new datastore session locking ([52f1a4b](https://github.com/Quenty/NevermoreEngine/commit/52f1a4b8988e9271ca639b0fec43315bb63ae97b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [7.12.6](https://github.com/Quenty/NevermoreEngine/compare/@quenty/messagingserviceutils@7.12.5...@quenty/messagingserviceutils@7.12.6) (2026-01-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Fix dependency installation process for pnpm ([9651b09](https://github.com/Quenty/NevermoreEngine/commit/9651b09af34f252ef3f9c7c539793cc878dd8cba))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [7.12.5](https://github.com/Quenty/NevermoreEngine/compare/@quenty/messagingserviceutils@7.12.4...@quenty/messagingserviceutils@7.12.5) (2026-01-10)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @quenty/messagingserviceutils
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [7.12.4](https://github.com/Quenty/NevermoreEngine/compare/@quenty/messagingserviceutils@7.12.3...@quenty/messagingserviceutils@7.12.4) (2026-01-03)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @quenty/messagingserviceutils
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [7.12.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/messagingserviceutils@7.12.2...@quenty/messagingserviceutils@7.12.3) (2025-12-31)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @quenty/messagingserviceutils
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## [7.12.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/messagingserviceutils@7.12.1...@quenty/messagingserviceutils@7.12.2) (2025-12-29)
|
|
7
53
|
|
|
8
54
|
**Note:** Version bump only for package @quenty/messagingserviceutils
|
|
9
55
|
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-2026 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/default.project.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "messagingserviceutils",
|
|
3
|
-
"globIgnorePaths": [
|
|
3
|
+
"globIgnorePaths": [
|
|
4
|
+
"**/.package-lock.json",
|
|
5
|
+
"**/.pnpm",
|
|
6
|
+
"**/.pnpm-workspace-state-v1.json",
|
|
7
|
+
"**/.modules.yaml",
|
|
8
|
+
"**/.ignored",
|
|
9
|
+
"**/.ignored_*"
|
|
10
|
+
],
|
|
4
11
|
"tree": {
|
|
5
12
|
"$path": "src"
|
|
6
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/messagingserviceutils",
|
|
3
|
-
"version": "7.13.0-canary.
|
|
3
|
+
"version": "7.13.0-canary.636.52f1a4b.0",
|
|
4
4
|
"description": "Utility functions for messaging srevice",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -22,18 +22,21 @@
|
|
|
22
22
|
"url": "https://www.patreon.com/quenty"
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"preinstall": "npx only-allow pnpm"
|
|
27
|
+
},
|
|
25
28
|
"contributors": [
|
|
26
29
|
"Quenty"
|
|
27
30
|
],
|
|
28
31
|
"dependencies": {
|
|
29
|
-
"@quenty/loader": "10.9.
|
|
30
|
-
"@quenty/promise": "10.13.0-canary.
|
|
32
|
+
"@quenty/loader": "10.9.3",
|
|
33
|
+
"@quenty/promise": "10.13.0-canary.636.52f1a4b.0"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"@quenty/loader": "
|
|
36
|
+
"@quenty/loader": "workspace:*"
|
|
34
37
|
},
|
|
35
38
|
"publishConfig": {
|
|
36
39
|
"access": "public"
|
|
37
40
|
},
|
|
38
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "52f1a4b8988e9271ca639b0fec43315bb63ae97b"
|
|
39
42
|
}
|
|
@@ -26,7 +26,7 @@ function MessagingServiceUtils.promisePublish(topic: string, message: any?): Pro
|
|
|
26
26
|
|
|
27
27
|
return Promise.spawn(function(resolve, reject)
|
|
28
28
|
if DEBUG_PUBLISH then
|
|
29
|
-
print(string.format("Publishing on %q: ", topic),
|
|
29
|
+
print(string.format("Publishing on %q: ", topic), MessagingServiceUtils.toHumanReadable(message))
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
local ok, err = pcall(function()
|
|
@@ -42,6 +42,11 @@ function MessagingServiceUtils.promisePublish(topic: string, message: any?): Pro
|
|
|
42
42
|
end)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
export type SubscriptionData = {
|
|
46
|
+
Data: any,
|
|
47
|
+
Sent: number,
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
--[=[
|
|
46
51
|
Wraps MessagingService:SubscribeAsync(topic, callback)
|
|
47
52
|
@param topic string
|
|
@@ -50,7 +55,7 @@ end
|
|
|
50
55
|
]=]
|
|
51
56
|
function MessagingServiceUtils.promiseSubscribe(
|
|
52
57
|
topic: string,
|
|
53
|
-
callback: (
|
|
58
|
+
callback: (SubscriptionData) -> ()
|
|
54
59
|
): Promise.Promise<RBXScriptConnection>
|
|
55
60
|
assert(type(topic) == "string", "Bad topic")
|
|
56
61
|
assert(type(callback) == "function", "Bad callback")
|
|
@@ -59,8 +64,8 @@ function MessagingServiceUtils.promiseSubscribe(
|
|
|
59
64
|
print(string.format("Listening on %q", topic))
|
|
60
65
|
|
|
61
66
|
local oldCallback = callback
|
|
62
|
-
callback = function(message)
|
|
63
|
-
print(string.format("Recieved on %q", topic),
|
|
67
|
+
callback = function(message: SubscriptionData)
|
|
68
|
+
print(string.format("Recieved on %q", topic), MessagingServiceUtils.toHumanReadable(message))
|
|
64
69
|
oldCallback(message)
|
|
65
70
|
end
|
|
66
71
|
end
|
|
@@ -81,4 +86,12 @@ function MessagingServiceUtils.promiseSubscribe(
|
|
|
81
86
|
end)
|
|
82
87
|
end
|
|
83
88
|
|
|
89
|
+
function MessagingServiceUtils.toHumanReadable(message: any)
|
|
90
|
+
if type(message) ~= "table" then
|
|
91
|
+
return tostring(message)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
return HttpService:JSONEncode(message)
|
|
95
|
+
end
|
|
96
|
+
|
|
84
97
|
return MessagingServiceUtils
|