@flighthq/statechart 0.5.1-edge.1692.64cda40 → 0.5.1-edge.1892.cbd15bd
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 +2 -2
- package/dist/contract.d.ts +4 -4
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +4 -4
- package/dist/contract.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/enableStatechartGuards.test.ts +6 -2
- package/src/statechart.test.ts +1 -1
- package/src/statechartSignals.test.ts +2 -2
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/statechart`. The `@f
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/statechart@0.5.1-edge.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/statechart@0.5.1-edge.1892.cbd15bd](https://github.com/flighthq/flight/tree/cbd15bd13373265e8f6dcf0cb057a16aee812919/packages/statechart)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/cbd15bd13373265e8f6dcf0cb057a16aee812919/LICENSE.md)
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './enableStatechartGuards';
|
|
2
|
-
export * from './statechart';
|
|
3
|
-
export * from './statechartSignals';
|
|
4
|
-
export { initializeStatechartInstance } from './statechart';
|
|
1
|
+
export * from './enableStatechartGuards.ts';
|
|
2
|
+
export * from './statechart.ts';
|
|
3
|
+
export * from './statechartSignals.ts';
|
|
4
|
+
export { initializeStatechartInstance } from './statechart.ts';
|
|
5
5
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { initializeStatechartInstance } from
|
|
1
|
+
export * from "./enableStatechartGuards.js";
|
|
2
|
+
export * from "./statechart.js";
|
|
3
|
+
export * from "./statechartSignals.js";
|
|
4
|
+
export { initializeStatechartInstance } from "./statechart.js";
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { areStatechartGuardsEnabled, disableStatechartGuards, enableStatechartGuards } from './enableStatechartGuards';
|
|
2
|
-
export { advanceStatechartInstance, createStatechartInstance, explainStatechartTransition, fireStatechartTrigger, getStatechartInputIndex, getStatechartRegionBlend, getStatechartRegionState, setStatechartBooleanInput, setStatechartNumberInput, setStatechartRegionDuration, } from './statechart';
|
|
3
|
-
export { enableStatechartSignals, getStatechartSignals } from './statechartSignals';
|
|
1
|
+
export { areStatechartGuardsEnabled, disableStatechartGuards, enableStatechartGuards, } from './enableStatechartGuards.ts';
|
|
2
|
+
export { advanceStatechartInstance, createStatechartInstance, explainStatechartTransition, fireStatechartTrigger, getStatechartInputIndex, getStatechartRegionBlend, getStatechartRegionState, setStatechartBooleanInput, setStatechartNumberInput, setStatechartRegionDuration, } from './statechart.ts';
|
|
3
|
+
export { enableStatechartSignals, getStatechartSignals } from './statechartSignals.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { areStatechartGuardsEnabled, disableStatechartGuards, enableStatechartGuards } from
|
|
2
|
-
export { advanceStatechartInstance, createStatechartInstance, explainStatechartTransition, fireStatechartTrigger, getStatechartInputIndex, getStatechartRegionBlend, getStatechartRegionState, setStatechartBooleanInput, setStatechartNumberInput, setStatechartRegionDuration, } from
|
|
3
|
-
export { enableStatechartSignals, getStatechartSignals } from
|
|
1
|
+
export { areStatechartGuardsEnabled, disableStatechartGuards, enableStatechartGuards, } from "./enableStatechartGuards.js";
|
|
2
|
+
export { advanceStatechartInstance, createStatechartInstance, explainStatechartTransition, fireStatechartTrigger, getStatechartInputIndex, getStatechartRegionBlend, getStatechartRegionState, setStatechartBooleanInput, setStatechartNumberInput, setStatechartRegionDuration, } from "./statechart.js";
|
|
3
|
+
export { enableStatechartSignals, getStatechartSignals } from "./statechartSignals.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/statechart",
|
|
3
|
-
"version": "0.5.1-edge.
|
|
3
|
+
"version": "0.5.1-edge.1892.cbd15bd",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-edge.
|
|
42
|
-
"@flighthq/log": "0.5.1-edge.
|
|
43
|
-
"@flighthq/signals": "0.5.1-edge.
|
|
44
|
-
"@flighthq/types": "0.5.1-edge.
|
|
41
|
+
"@flighthq/entity": "0.5.1-edge.1892.cbd15bd",
|
|
42
|
+
"@flighthq/log": "0.5.1-edge.1892.cbd15bd",
|
|
43
|
+
"@flighthq/signals": "0.5.1-edge.1892.cbd15bd",
|
|
44
|
+
"@flighthq/types": "0.5.1-edge.1892.cbd15bd"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"typescript": "^5.3.0"
|
|
@@ -2,8 +2,12 @@ import { addLogSink, createMemoryLogSink, getMemoryLogSinkEntries, removeLogSink
|
|
|
2
2
|
import { StatechartAtomicStateKind, StatechartTransitionStatus } from '@flighthq/types/contract';
|
|
3
3
|
import type { LogEntry, Statechart } from '@flighthq/types/contract';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
areStatechartGuardsEnabled,
|
|
7
|
+
disableStatechartGuards,
|
|
8
|
+
enableStatechartGuards,
|
|
9
|
+
} from './enableStatechartGuards.ts';
|
|
10
|
+
import { advanceStatechartInstance, createStatechartInstance, setStatechartRegionDuration } from './statechart.ts';
|
|
7
11
|
|
|
8
12
|
describe('areStatechartGuardsEnabled', () => {
|
|
9
13
|
it('reports guard state per actor', () => {
|
package/src/statechart.test.ts
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setStatechartBooleanInput,
|
|
20
20
|
setStatechartNumberInput,
|
|
21
21
|
setStatechartRegionDuration,
|
|
22
|
-
} from './statechart';
|
|
22
|
+
} from './statechart.ts';
|
|
23
23
|
|
|
24
24
|
describe('advanceStatechartInstance', () => {
|
|
25
25
|
it('advances every concurrent region before clearing a shared trigger', () => {
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
createStatechartInstance,
|
|
8
8
|
fireStatechartTrigger,
|
|
9
9
|
setStatechartRegionDuration,
|
|
10
|
-
} from './statechart';
|
|
11
|
-
import { enableStatechartSignals, getStatechartSignals, initializeStatechartSignals } from './statechartSignals';
|
|
10
|
+
} from './statechart.ts';
|
|
11
|
+
import { enableStatechartSignals, getStatechartSignals, initializeStatechartSignals } from './statechartSignals.ts';
|
|
12
12
|
|
|
13
13
|
describe('enableStatechartSignals', () => {
|
|
14
14
|
it('lazily attaches one standard signal group to the mutable instance', () => {
|