@akanjs/devkit 3.0.0-alpha.33 → 3.0.0-alpha.34
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.
|
@@ -11,13 +11,19 @@ language js(typescript, jsx)
|
|
|
11
11
|
// (`renderItem`, `renderList`), a module-scope helper, a non-`Props` local shape, and the props of a
|
|
12
12
|
// component nested inside another one. A function-typed prop is client-internal too: a closure cannot
|
|
13
13
|
// cross the RSC boundary at all, so whoever passes it already holds the value it takes.
|
|
14
|
+
//
|
|
15
|
+
// The exempt generics are the framework props types whose model parameter never lands on a prop as
|
|
16
|
+
// data: `ClientInit` / `ClientView` / `ClientEdit` (mapped to plain `GetStateObject`) and `ModelsProps`,
|
|
17
|
+
// whose only use of the model is `onClickItem?: (model: M) => unknown` — a callback, so the caller
|
|
18
|
+
// already holds the value. `ModelProps<"x", cnst.LightX>` is *not* exempt: it spreads the model onto
|
|
19
|
+
// the props themselves.
|
|
14
20
|
TsReferenceType() as $ref where {
|
|
15
21
|
$ref <: r"cnst\.[A-Za-z_$][A-Za-z0-9_$]*",
|
|
16
22
|
not $ref <: within TsIndexedAccessType() as $indexed where {
|
|
17
23
|
$indexed <: r"cnst\.[A-Za-z_$][A-Za-z0-9_$]*\[.value.\][\s\S]*"
|
|
18
24
|
},
|
|
19
25
|
not $ref <: within TsReferenceType() as $wrapper where {
|
|
20
|
-
$wrapper <: r"(?:Client|Server)(?:Init|View|Edit)<[\s\S]*"
|
|
26
|
+
$wrapper <: r"(?:(?:Client|Server)(?:Init|View|Edit)|ModelsProps)<[\s\S]*"
|
|
21
27
|
},
|
|
22
28
|
not $ref <: within TsFunctionType(),
|
|
23
29
|
or {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.34",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@langchain/openai": "^1.4.6",
|
|
46
46
|
"@tailwindcss/node": "^4.3.0",
|
|
47
47
|
"@trapezedev/project": "^7.1.4",
|
|
48
|
-
"akanjs": "3.0.0-alpha.
|
|
48
|
+
"akanjs": "3.0.0-alpha.34",
|
|
49
49
|
"chalk": "^5.6.2",
|
|
50
50
|
"commander": "^14.0.3",
|
|
51
51
|
"dayjs": "^1.11.20",
|