sliftutils 0.32.0 → 0.34.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/.cursorrules +4 -1
- package/index.d.ts +0 -1
- package/package.json +2 -2
- package/render-utils/SyncedController.d.ts +0 -1
- package/yarn.lock +4 -4
package/.cursorrules
CHANGED
|
@@ -69,7 +69,9 @@ Coding Styles
|
|
|
69
69
|
|
|
70
70
|
Never use inline styles, always use the CSS helper.
|
|
71
71
|
|
|
72
|
-
Don't use as any
|
|
72
|
+
Don't use `as any`.
|
|
73
|
+
|
|
74
|
+
When you're making fetch calls and you get a type of any, you need to cast it to the actual type, and not leave it as any. The same goes for when you're deserializing values.
|
|
73
75
|
|
|
74
76
|
DO NOT redeclare constants and copy their value. JUST IMPORT THEM!
|
|
75
77
|
|
|
@@ -78,6 +80,7 @@ Coding Styles
|
|
|
78
80
|
Do not try catch for no reason. If you can't actually handle the exception, just let it throw.
|
|
79
81
|
|
|
80
82
|
|
|
83
|
+
|
|
81
84
|
General Styling
|
|
82
85
|
Never use em or rem. Only use px or vw/vh/%.
|
|
83
86
|
|
package/index.d.ts
CHANGED
|
@@ -254,7 +254,6 @@ declare module "sliftutils/render-utils/LocalStorageParam" {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
declare module "sliftutils/render-utils/SyncedController" {
|
|
257
|
-
/// <reference types="socket-function" />
|
|
258
257
|
import { SocketRegistered } from "socket-function/SocketFunctionTypes";
|
|
259
258
|
type RemapFunction<T> = T extends (...args: infer Args) => Promise<infer Return> ? {
|
|
260
259
|
(...args: Args): Return | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sliftutils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mobx": "^6.13.3",
|
|
49
49
|
"preact": "10.24.3",
|
|
50
50
|
"shell-quote": "^1.8.3",
|
|
51
|
-
"socket-function": "^0.
|
|
51
|
+
"socket-function": "^0.161.0",
|
|
52
52
|
"typenode": "^6.0.0",
|
|
53
53
|
"typesafecss": "*",
|
|
54
54
|
"ws": "^8.18.3",
|
package/yarn.lock
CHANGED
|
@@ -1494,10 +1494,10 @@ slash@^3.0.0:
|
|
|
1494
1494
|
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
|
|
1495
1495
|
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
|
|
1496
1496
|
|
|
1497
|
-
socket-function@^0.
|
|
1498
|
-
version "0.
|
|
1499
|
-
resolved "https://registry.yarnpkg.com/socket-function/-/socket-function-0.
|
|
1500
|
-
integrity sha512-
|
|
1497
|
+
socket-function@^0.161.0:
|
|
1498
|
+
version "0.161.0"
|
|
1499
|
+
resolved "https://registry.yarnpkg.com/socket-function/-/socket-function-0.161.0.tgz#93c49123dad9677e87ddd5c954d43f23302110dc"
|
|
1500
|
+
integrity sha512-Znik/F2EZzzLotAXuz37cmLC15sSxju2w6waLLf9yAQHiyWsqimfGa247EWUvl99XXBY2k/8WkkghEM1pVvyVQ==
|
|
1501
1501
|
dependencies:
|
|
1502
1502
|
"@types/pako" "^2.0.3"
|
|
1503
1503
|
"@types/ws" "^8.5.3"
|