@glyphlang/glyph 0.1.26 → 0.1.28
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/README.md +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -52,6 +52,7 @@ That compiles to clean, readable TypeScript you can commit, run anywhere TS runs
|
|
|
52
52
|
- **Greppable.** One name, one declaration form. `grep "fn parseUser"` finds the definition — always. No overloads, decorators, or barrel files.
|
|
53
53
|
- **Stable diffs.** One canonical format, one element per line, trailing commas, no reflow. A one-line change is a one-line diff — so agent edits stay reviewable.
|
|
54
54
|
- **Generate, don't hand-write.** `glyph gen openapi spec.yaml --client` emits a typed HTTP client and server stubs; `glyph gen zod` / `gen dts` turn existing schemas into checked Glyph types.
|
|
55
|
+
- **Talks to real databases.** Import any npm client by name. Class-based clients (`new Pool`, `new MongoClient`) construct with `new`, and SQLite is built in via `std/sqlite`. A row comes back untrusted, so you `Row.parse` it into a typed record, and the schema-versus-code mismatch a cast would hide is caught at the boundary. See the [databases guide](https://github.com/chadetov/glyph/blob/main/docs/guide/databases.md).
|
|
55
56
|
|
|
56
57
|
## Quickstart
|
|
57
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glyphlang/glyph",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "TypeScript your AI agents can't quietly break: a statically typed language that transpiles to TypeScript, with no any, exhaustive matching, and runtime-checked types.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"glyph": "bin/glyph.js"
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"node": ">=18"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@glyphlang/darwin-x64": "0.1.
|
|
17
|
-
"@glyphlang/darwin-arm64": "0.1.
|
|
18
|
-
"@glyphlang/linux-x64": "0.1.
|
|
19
|
-
"@glyphlang/linux-arm64": "0.1.
|
|
20
|
-
"@glyphlang/win32-x64": "0.1.
|
|
16
|
+
"@glyphlang/darwin-x64": "0.1.28",
|
|
17
|
+
"@glyphlang/darwin-arm64": "0.1.28",
|
|
18
|
+
"@glyphlang/linux-x64": "0.1.28",
|
|
19
|
+
"@glyphlang/linux-arm64": "0.1.28",
|
|
20
|
+
"@glyphlang/win32-x64": "0.1.28"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|