tina4-nodejs 3.10.10 → 3.10.11
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/CLAUDE.md +2 -2
- package/package.json +1 -1
- package/packages/frond/src/engine.ts +15 -4
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# CLAUDE.md — AI Developer Guide for tina4-nodejs (v3.10.
|
|
1
|
+
# CLAUDE.md — AI Developer Guide for tina4-nodejs (v3.10.11)
|
|
2
2
|
|
|
3
3
|
> This file helps AI assistants (Claude, Copilot, Cursor, etc.) understand and work on this codebase effectively.
|
|
4
4
|
|
|
5
5
|
## What This Project Is
|
|
6
6
|
|
|
7
|
-
Tina4 for Node.js/TypeScript v3.10.
|
|
7
|
+
Tina4 for Node.js/TypeScript v3.10.11 — a convention-over-configuration structural paradigm. **Not a framework.** The developer writes TypeScript; Tina4 is invisible infrastructure.
|
|
8
8
|
|
|
9
9
|
The philosophy: zero ceremony, batteries included, file system as source of truth.
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tina4-nodejs",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This is not a framework. Tina4 for Node.js/TypeScript — zero deps, 38 built-in features.",
|
|
6
6
|
"keywords": ["tina4", "framework", "web", "api", "orm", "graphql", "websocket", "typescript"],
|
|
@@ -196,10 +196,21 @@ function resolveVar(expr: string, context: Record<string, unknown>): unknown {
|
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
let key: string | number
|
|
200
|
-
|
|
201
|
-
if (
|
|
202
|
-
|
|
199
|
+
let key: string | number;
|
|
200
|
+
// Check if this part came from bracket access and needs variable resolution
|
|
201
|
+
if ((part.startsWith('"') && part.endsWith('"')) ||
|
|
202
|
+
(part.startsWith("'") && part.endsWith("'"))) {
|
|
203
|
+
// Quoted string literal — strip quotes
|
|
204
|
+
key = part.slice(1, -1);
|
|
205
|
+
} else {
|
|
206
|
+
const asNum = parseInt(part, 10);
|
|
207
|
+
if (!isNaN(asNum) && String(asNum) === part) {
|
|
208
|
+
key = asNum;
|
|
209
|
+
} else {
|
|
210
|
+
// Try to resolve as a variable from context
|
|
211
|
+
const resolved = context[part];
|
|
212
|
+
key = resolved !== undefined ? String(resolved) : part;
|
|
213
|
+
}
|
|
203
214
|
}
|
|
204
215
|
|
|
205
216
|
if (typeof value === "object" && value !== null) {
|