@neocompose/cli 0.31.5 → 0.31.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neocompose/cli",
3
- "version": "0.31.5",
3
+ "version": "0.31.7",
4
4
  "description": "Neo Compose native project-source CLI with bidirectional sync.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,7 +9,7 @@ description: >-
9
9
  `@neocompose/cli` or `node cli/bin/neo.mjs` in the neo-compose repository.
10
10
  ---
11
11
 
12
- <!-- reviewed-through-cli: 0.31.5 -->
12
+ <!-- reviewed-through-cli: 0.31.7 -->
13
13
 
14
14
  # Neo Compose CLI
15
15
 
@@ -83,7 +83,7 @@ wrappers.
83
83
  The marker near the top of `SKILL.md` must exactly match the package version:
84
84
 
85
85
  ```html
86
- <!-- reviewed-through-cli: 0.31.5 -->
86
+ <!-- reviewed-through-cli: 0.31.7 -->
87
87
  ```
88
88
 
89
89
  The quoted version above is checked too, so this instruction cannot go stale
@@ -287,3 +287,16 @@ class Child(string name) : Base {
287
287
  Bind generic base arguments explicitly when needed. Reject a subclass that
288
288
  omits required base arguments or leaves any inherited required member
289
289
  unsettled.
290
+
291
+ Generic constraints may construct another generic from a parameter in the
292
+ same declaration. This preserves the relationship between the parameters in
293
+ source checks, stored initializer replay, and generated C#:
294
+
295
+ ```neo
296
+ class PlacedItem<
297
+ TData extends InventoryStackData,
298
+ TItem extends InventoryItem<TData>
299
+ >(TItem item) {
300
+ public TData Data = item.DefaultData.Clone();
301
+ }
302
+ ```