sendscript 2.3.5 → 2.3.6

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/CHANGELOG.md CHANGED
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v2.3.6](https://github.com/bas080/sendscript/compare/v2.3.5...v2.3.6)
8
+
9
+ - Document recursive nature of schema [`ddcd466`](https://github.com/bas080/sendscript/commit/ddcd46667db0d4e76c123d5dcf7e04e05b9c6e3e)
10
+
7
11
  #### [v2.3.5](https://github.com/bas080/sendscript/compare/v2.3.4...v2.3.5)
8
12
 
13
+ > 14 April 2026
14
+
9
15
  - Have reference and parse reference same schema type [`0a05608`](https://github.com/bas080/sendscript/commit/0a0560828b78d297bfa5b12639a5e54774c089bd)
10
16
 
11
17
  #### [v2.3.4](https://github.com/bas080/sendscript/compare/v2.3.3...v2.3.4)
package/README.md CHANGED
@@ -174,12 +174,7 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
174
174
 
175
175
  ### Schema
176
176
 
177
- A schema defines the structure of the runtime API tree.
178
-
179
- * string → leaf node
180
- * \[name, children] → namespace
181
-
182
- Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)])>
177
+ Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<SchemaNode>
183
178
 
184
179
  ### defaultLeafStringify
185
180
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **add**(`a`, `b`): `number`
10
10
 
11
- Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/0a0560828b78d297bfa5b12639a5e54774c089bd/example/typescript/math.ts#L1)
11
+ Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/ddcd46667db0d4e76c123d5dcf7e04e05b9c6e3e/example/typescript/math.ts#L1)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **square**(`a`): `number`
10
10
 
11
- Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/0a0560828b78d297bfa5b12639a5e54774c089bd/example/typescript/math.ts#L2)
11
+ Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/ddcd46667db0d4e76c123d5dcf7e04e05b9c6e3e/example/typescript/math.ts#L2)
12
12
 
13
13
  ## Parameters
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sendscript",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "Blur the line between server and client code.",
5
5
  "module": true,
6
6
  "main": "index.mjs",
package/schema.mjs CHANGED
@@ -1,9 +1,13 @@
1
1
  /**
2
+ * @typedef {string | [string, Schema]} SchemaNode
3
+ *
2
4
  * A schema defines the structure of the runtime API tree.
3
5
  *
4
6
  * - string → leaf node
5
- * - [name, children] → namespace
7
+ * - [name, children] → namespace node
8
+ *
9
+ * Schema is recursive: nodes can contain nested schemas.
6
10
  *
7
- * @typedef {Array<string | [string, Array]>} Schema
11
+ * @typedef {SchemaNode[]} Schema
8
12
  * @public
9
13
  */