jssm 5.151.0 → 5.151.2

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/jssm.es5.d.cts CHANGED
@@ -1838,6 +1838,14 @@ interface SemanticSpan extends Range {
1838
1838
  * `.source_location` *when they reference a parsed node* — but machine-level
1839
1839
  * compile errors (e.g. an empty machine, an unknown machine rule) have none, so
1840
1840
  * the location is treated as optional and falls back to the whole document.
1841
+ *
1842
+ * Some validity checks (e.g. a `required` property that no state defines) live
1843
+ * in the {@link Machine} constructor, a stage past `compile`. We therefore also
1844
+ * construct the machine so the editor surfaces those construction-time errors
1845
+ * instead of calling such a machine valid. The `Machine` import closes a cycle
1846
+ * (`jssm` re-exports this module), but it is only referenced at call time inside
1847
+ * {@link fslDiagnostics}, never during module initialization, so the cycle is
1848
+ * benign.
1841
1849
  */
1842
1850
 
1843
1851
  /**
@@ -1847,6 +1855,8 @@ interface SemanticSpan extends Range {
1847
1855
  * @example
1848
1856
  * fslDiagnostics('a -> b;'); // => []
1849
1857
  * fslDiagnostics('a -> ;')[0].severity; // => 'error'
1858
+ * // a `required` property no state defines is a construction-time error:
1859
+ * fslDiagnostics('property p required; a -> b;')[0].severity; // => 'error'
1850
1860
  */
1851
1861
  declare function fslDiagnostics(text: string): Diagnostic[];
1852
1862
 
@@ -2262,10 +2272,10 @@ declare class Machine<mDT> {
2262
2272
  * [Red Yellow Green] ~> [Off FlashingRed];
2263
2273
  * FlashingRed -> Red;
2264
2274
  *
2265
- * state Red: { property stop_first true; property can_go false; };
2266
- * state Off: { property stop_first true; };
2267
- * state FlashingRed: { property stop_first true; };
2268
- * state Green: { property hesitate false; };
2275
+ * state Red: { property: stop_first true; property: can_go false; };
2276
+ * state Off: { property: stop_first true; };
2277
+ * state FlashingRed: { property: stop_first true; };
2278
+ * state Green: { property: hesitate false; };
2269
2279
  *
2270
2280
  * `;
2271
2281
  *
package/jssm.es6.d.ts CHANGED
@@ -1838,6 +1838,14 @@ interface SemanticSpan extends Range {
1838
1838
  * `.source_location` *when they reference a parsed node* — but machine-level
1839
1839
  * compile errors (e.g. an empty machine, an unknown machine rule) have none, so
1840
1840
  * the location is treated as optional and falls back to the whole document.
1841
+ *
1842
+ * Some validity checks (e.g. a `required` property that no state defines) live
1843
+ * in the {@link Machine} constructor, a stage past `compile`. We therefore also
1844
+ * construct the machine so the editor surfaces those construction-time errors
1845
+ * instead of calling such a machine valid. The `Machine` import closes a cycle
1846
+ * (`jssm` re-exports this module), but it is only referenced at call time inside
1847
+ * {@link fslDiagnostics}, never during module initialization, so the cycle is
1848
+ * benign.
1841
1849
  */
1842
1850
 
1843
1851
  /**
@@ -1847,6 +1855,8 @@ interface SemanticSpan extends Range {
1847
1855
  * @example
1848
1856
  * fslDiagnostics('a -> b;'); // => []
1849
1857
  * fslDiagnostics('a -> ;')[0].severity; // => 'error'
1858
+ * // a `required` property no state defines is a construction-time error:
1859
+ * fslDiagnostics('property p required; a -> b;')[0].severity; // => 'error'
1850
1860
  */
1851
1861
  declare function fslDiagnostics(text: string): Diagnostic[];
1852
1862
 
@@ -2262,10 +2272,10 @@ declare class Machine<mDT> {
2262
2272
  * [Red Yellow Green] ~> [Off FlashingRed];
2263
2273
  * FlashingRed -> Red;
2264
2274
  *
2265
- * state Red: { property stop_first true; property can_go false; };
2266
- * state Off: { property stop_first true; };
2267
- * state FlashingRed: { property stop_first true; };
2268
- * state Green: { property hesitate false; };
2275
+ * state Red: { property: stop_first true; property: can_go false; };
2276
+ * state Off: { property: stop_first true; };
2277
+ * state FlashingRed: { property: stop_first true; };
2278
+ * state Green: { property: hesitate false; };
2269
2279
  *
2270
2280
  * `;
2271
2281
  *
@@ -1509,10 +1509,10 @@ declare class Machine<mDT> {
1509
1509
  * [Red Yellow Green] ~> [Off FlashingRed];
1510
1510
  * FlashingRed -> Red;
1511
1511
  *
1512
- * state Red: { property stop_first true; property can_go false; };
1513
- * state Off: { property stop_first true; };
1514
- * state FlashingRed: { property stop_first true; };
1515
- * state Green: { property hesitate false; };
1512
+ * state Red: { property: stop_first true; property: can_go false; };
1513
+ * state Off: { property: stop_first true; };
1514
+ * state FlashingRed: { property: stop_first true; };
1515
+ * state Green: { property: hesitate false; };
1516
1516
  *
1517
1517
  * `;
1518
1518
  *
package/jssm_viz.es6.d.ts CHANGED
@@ -1509,10 +1509,10 @@ declare class Machine<mDT> {
1509
1509
  * [Red Yellow Green] ~> [Off FlashingRed];
1510
1510
  * FlashingRed -> Red;
1511
1511
  *
1512
- * state Red: { property stop_first true; property can_go false; };
1513
- * state Off: { property stop_first true; };
1514
- * state FlashingRed: { property stop_first true; };
1515
- * state Green: { property hesitate false; };
1512
+ * state Red: { property: stop_first true; property: can_go false; };
1513
+ * state Off: { property: stop_first true; };
1514
+ * state FlashingRed: { property: stop_first true; };
1515
+ * state Green: { property: hesitate false; };
1516
1516
  *
1517
1517
  * `;
1518
1518
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.151.0",
3
+ "version": "5.151.2",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },