@privateaim/core-realtime-kit 0.7.22 → 0.7.23
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 +26 -0
- package/package.json +9 -10
- package/rollup.config.mjs +1 -6
- package/dist/index.cjs +0 -44
- package/dist/index.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.23](https://github.com/PrivateAIM/hub/compare/v0.7.22...v0.7.23) (2026-01-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* enhance typing for doamin entities ([9d7c516](https://github.com/PrivateAIM/hub/commit/9d7c51644b66c9361e5436e2c43f463f4f219f90))
|
|
9
|
+
* migrate to esm & replace jest with vitest ([#1368](https://github.com/PrivateAIM/hub/issues/1368)) ([5a4d9d1](https://github.com/PrivateAIM/hub/commit/5a4d9d1ce118f65740aa49caf948208eac299032))
|
|
10
|
+
* restructure domain event handling ([2ad7318](https://github.com/PrivateAIM/hub/commit/2ad7318930bd342d571105982fc92996443326fa))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* socket resources nsp pattern + project master-image requirement ([2d7be7f](https://github.com/PrivateAIM/hub/commit/2d7be7f333e6c06074f2ba9c5489f6685a6ab2ec))
|
|
16
|
+
* submit and process socket events ([0240664](https://github.com/PrivateAIM/hub/commit/02406645a5171a235845935b03f189517c0331cb))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
* The following workspace dependencies were updated
|
|
22
|
+
* devDependencies
|
|
23
|
+
* @privateaim/kit bumped from ^0.8.21 to ^0.8.22
|
|
24
|
+
* @privateaim/core-kit bumped from ^0.8.21 to ^0.8.22
|
|
25
|
+
* peerDependencies
|
|
26
|
+
* @privateaim/kit bumped from ^0.8.21 to ^0.8.22
|
|
27
|
+
* @privateaim/core-kit bumped from ^0.8.21 to ^0.8.22
|
|
28
|
+
|
|
3
29
|
## [0.7.22](https://github.com/PrivateAIM/hub/compare/v0.7.21...v0.7.22) (2025-11-04)
|
|
4
30
|
|
|
5
31
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privateaim/core-realtime-kit",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.7.23",
|
|
4
5
|
"license": "Apache-2.0",
|
|
5
6
|
"description": "",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
6
9
|
"exports": {
|
|
7
10
|
"./package.json": "./package.json",
|
|
8
11
|
".": {
|
|
9
12
|
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs"
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
13
|
+
"import": "./dist/index.mjs"
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
|
-
"main": "./dist/index.cjs",
|
|
15
|
-
"module": "./dist/index.mjs",
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
16
|
"author": {
|
|
18
17
|
"name": "Peter Placzek",
|
|
19
18
|
"email": "admin@tada5hi.net",
|
|
@@ -26,12 +25,12 @@
|
|
|
26
25
|
"build-watch": "rimraf ./dist && tsc -p tsconfig.build.json --watch"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
|
-
"@privateaim/kit": "^0.8.
|
|
30
|
-
"@privateaim/core-kit": "^0.8.
|
|
28
|
+
"@privateaim/kit": "^0.8.22",
|
|
29
|
+
"@privateaim/core-kit": "^0.8.22"
|
|
31
30
|
},
|
|
32
31
|
"peerDependencies": {
|
|
33
|
-
"@privateaim/kit": "^0.8.
|
|
34
|
-
"@privateaim/core-kit": "^0.8.
|
|
32
|
+
"@privateaim/kit": "^0.8.22",
|
|
33
|
+
"@privateaim/core-kit": "^0.8.22"
|
|
35
34
|
},
|
|
36
35
|
"publishConfig": {
|
|
37
36
|
"access": "public"
|
package/rollup.config.mjs
CHANGED
|
@@ -10,10 +10,5 @@ import fs from 'node:fs';
|
|
|
10
10
|
import { createConfig } from '../../rollup.config.mjs';
|
|
11
11
|
|
|
12
12
|
export default createConfig({
|
|
13
|
-
pkg: JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), {encoding: 'utf-8'})),
|
|
14
|
-
swc: {
|
|
15
|
-
jsc: {
|
|
16
|
-
target: 'es2016'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
13
|
+
pkg: JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), { encoding: 'utf-8' })),
|
|
19
14
|
});
|
package/dist/index.cjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) 2024.
|
|
5
|
-
* Author Peter Placzek (tada5hi)
|
|
6
|
-
* For the full copyright and license information,
|
|
7
|
-
* view the LICENSE file that was distributed with this source code.
|
|
8
|
-
*/ var STCEventName = /*#__PURE__*/ function(STCEventName) {
|
|
9
|
-
STCEventName["USER_CONNECTED"] = "userConnected";
|
|
10
|
-
STCEventName["USER_DISCONNECTED"] = "userDisconnected";
|
|
11
|
-
STCEventName["ROBOT_CONNECTED"] = "robotConnected";
|
|
12
|
-
STCEventName["ROBOT_DISCONNECTED"] = "robotDisconnected";
|
|
13
|
-
return STCEventName;
|
|
14
|
-
}({});
|
|
15
|
-
var CTSEventName = /*#__PURE__*/ function(CTSEventName) {
|
|
16
|
-
CTSEventName["USER_CONNECTIONS"] = "userConnections";
|
|
17
|
-
CTSEventName["USER_CONNECTION_SUBSCRIBE"] = "userConnectionSubscribe";
|
|
18
|
-
CTSEventName["USER_CONNECTION_UNSUBSCRIBE"] = "userConnectionUnsubscribe";
|
|
19
|
-
CTSEventName["ROBOT_CONNECTIONS"] = "robotConnections";
|
|
20
|
-
CTSEventName["ROBOT_CONNECTION_SUBSCRIBE"] = "robotConnectionSubscribe";
|
|
21
|
-
CTSEventName["ROBOT_CONNECTION_UNSUBSCRIBE"] = "robotConnectionUnsubscribe";
|
|
22
|
-
return CTSEventName;
|
|
23
|
-
}({});
|
|
24
|
-
|
|
25
|
-
/*
|
|
26
|
-
* Copyright (c) 2021-2024.
|
|
27
|
-
* Author Peter Placzek (tada5hi)
|
|
28
|
-
* For the full copyright and license information,
|
|
29
|
-
* view the LICENSE file that was distributed with this source code.
|
|
30
|
-
*/ function isEventCallback(input, fnArgs) {
|
|
31
|
-
if (typeof fnArgs === 'undefined') {
|
|
32
|
-
return typeof input === 'function';
|
|
33
|
-
}
|
|
34
|
-
return typeof input === 'function' && input.length >= fnArgs;
|
|
35
|
-
}
|
|
36
|
-
function isEventTarget(input) {
|
|
37
|
-
return typeof input === 'number' || typeof input === 'string' || typeof input === 'undefined';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
exports.CTSEventName = CTSEventName;
|
|
41
|
-
exports.STCEventName = STCEventName;
|
|
42
|
-
exports.isEventCallback = isEventCallback;
|
|
43
|
-
exports.isEventTarget = isEventTarget;
|
|
44
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/constants.ts","../src/utils.ts"],"sourcesContent":["/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCEventName {\n USER_CONNECTED = 'userConnected',\n USER_DISCONNECTED = 'userDisconnected',\n\n ROBOT_CONNECTED = 'robotConnected',\n ROBOT_DISCONNECTED = 'robotDisconnected',\n}\n\nexport enum CTSEventName {\n USER_CONNECTIONS = 'userConnections',\n USER_CONNECTION_SUBSCRIBE = 'userConnectionSubscribe',\n USER_CONNECTION_UNSUBSCRIBE = 'userConnectionUnsubscribe',\n\n ROBOT_CONNECTIONS = 'robotConnections',\n ROBOT_CONNECTION_SUBSCRIBE = 'robotConnectionSubscribe',\n ROBOT_CONNECTION_UNSUBSCRIBE = 'robotConnectionUnsubscribe',\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { EventCallback } from './types';\n\nexport function isEventCallback(\n input: unknown,\n fnArgs?: number,\n) : input is EventCallback {\n if (typeof fnArgs === 'undefined') {\n return typeof input === 'function';\n }\n\n return typeof input === 'function' &&\n input.length >= fnArgs;\n}\n\nexport function isEventTarget(\n input: unknown,\n) : input is EventTarget {\n return typeof input === 'number' ||\n typeof input === 'string' ||\n typeof input === 'undefined';\n}\n"],"names":["STCEventName","CTSEventName","isEventCallback","input","fnArgs","length","isEventTarget"],"mappings":";;AAAA;;;;;IAOO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,YAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,YAAKC,iBAAAA,SAAAA,YAAAA,EAAAA;;;;;;;AAAAA,IAAAA,OAAAA,YAAAA;AAQX,CAAA,CAAA,EAAA;;ACvBD;;;;;AAKC,IAIM,SAASC,eAAAA,CACZC,KAAc,EACdC,MAAe,EAAA;IAEf,IAAI,OAAOA,WAAW,WAAA,EAAa;AAC/B,QAAA,OAAO,OAAOD,KAAAA,KAAU,UAAA;AAC5B,IAAA;AAEA,IAAA,OAAO,OAAOA,KAAAA,KAAU,UAAA,IACpBA,KAAAA,CAAME,MAAM,IAAID,MAAAA;AACxB;AAEO,SAASE,cACZH,KAAc,EAAA;AAEd,IAAA,OAAO,OAAOA,KAAAA,KAAU,QAAA,IACpB,OAAOA,KAAAA,KAAU,QAAA,IACjB,OAAOA,KAAAA,KAAU,WAAA;AACzB;;;;;;;"}
|