Skip to content

Commit cc603ae

Browse files
committed
2.3.7
1 parent afb2d1b commit cc603ae

6 files changed

Lines changed: 28 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v2.3.7](https://github.com/bas080/sendscript/compare/v2.3.6...v2.3.7)
8+
9+
- Fix missing schema node type [`afb2d1b`](https://github.com/bas080/sendscript/commit/afb2d1b8cba4406c659db1f76f79b4e1de3d1872)
10+
711
#### [v2.3.6](https://github.com/bas080/sendscript/compare/v2.3.5...v2.3.6)
812

13+
> 14 April 2026
14+
915
- Document recursive nature of schema [`ddcd466`](https://github.com/bas080/sendscript/commit/ddcd46667db0d4e76c123d5dcf7e04e05b9c6e3e)
1016

1117
#### [v2.3.5](https://github.com/bas080/sendscript/compare/v2.3.4...v2.3.5)

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Write JS code that you can run on servers, browsers or other clients.
1515
* [Parse](#parse)
1616
* [parse](#parse)
1717
* [References](#references)
18+
* [SchemaNode](#schemanode)
1819
* [Schema](#schema)
1920
* [defaultLeafStringify](#defaultleafstringify)
2021
* [Stringify](#stringify)
@@ -172,9 +173,22 @@ Schema supports:
172173

173174
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Nested instrumented API object
174175

176+
### SchemaNode
177+
178+
A single schema node.
179+
180+
Type: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Schema](#schema)])
181+
175182
### Schema
176183

177-
Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<SchemaNode>
184+
A schema defines the structure of the runtime API tree.
185+
186+
* string → leaf node
187+
* \[name, children] → namespace node
188+
189+
Schema is recursive: nodes can contain nested schemas.
190+
191+
Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[SchemaNode](#schemanode)>
178192

179193
### defaultLeafStringify
180194

@@ -196,6 +210,8 @@ Creates a stringify function for SendScript AST structures.
196210

197211
* `leafStringify` (optional, default `defaultLeafStringify`)
198212

213+
Returns **[stringify](#stringify)**&#x20;
214+
199215
### stringify
200216

201217
Serializes a program into a JSON string representation.

example/typescript/docs/functions/add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
> **add**(`a`, `b`): `number`
1010
11-
Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/ddcd46667db0d4e76c123d5dcf7e04e05b9c6e3e/example/typescript/math.ts#L1)
11+
Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/afb2d1b8cba4406c659db1f76f79b4e1de3d1872/example/typescript/math.ts#L1)
1212

1313
## Parameters
1414

example/typescript/docs/functions/square.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
> **square**(`a`): `number`
1010
11-
Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/ddcd46667db0d4e76c123d5dcf7e04e05b9c6e3e/example/typescript/math.ts#L2)
11+
Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/afb2d1b8cba4406c659db1f76f79b4e1de3d1872/example/typescript/math.ts#L2)
1212

1313
## Parameters
1414

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendscript",
3-
"version": "2.3.6",
3+
"version": "2.3.7",
44
"description": "Blur the line between server and client code.",
55
"module": true,
66
"main": "index.mjs",

0 commit comments

Comments
 (0)