@turing-machine-js/library-binary-numbers 7.0.0-alpha.6 → 7.0.0-alpha.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/CHANGELOG.md +4 -0
- package/package.json +3 -3
- package/states.md +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [7.0.0-alpha.7] - 2026-05-30
|
|
8
|
+
|
|
9
|
+
Released in lockstep with `@turing-machine-js/machine` 7.0.0-alpha.7 — adds `CallFrame` as a first-class `State` subclass ([#213](https://github.com/mellonis/turing-machine-js/issues/213)) and fixes a `toMermaid` framed-wrapper emit asymmetry ([#223](https://github.com/mellonis/turing-machine-js/issues/223)). The `states.md` file is regenerated under the new emit: the `minusOne` diagram's `goToNumberStart(invertNumberGoToNumberWithInversion)` wrapper now renders INSIDE `invertNumber`'s callable subtree (was outside, visually disconnected from its owner frame). No source or behavior changes. Peer dep `@turing-machine-js/machine` widened `^7.0.0-alpha.6` → `^7.0.0-alpha.7`.
|
|
10
|
+
|
|
7
11
|
## [7.0.0-alpha.6] - 2026-05-28
|
|
8
12
|
|
|
9
13
|
Released in lockstep with `@turing-machine-js/machine` 7.0.0-alpha.6 — adds the `DebugSession` interactive-debugging class and reshapes the engine debug surface: `run()` becomes synchronous + callback-free, `runStepByStep` becomes the pure-iteration primitive (no breakpoint detection), and the per-yield `m.debugBreak` is replaced by a one-sided `m.pause: { side, cause }` carried on `DebugSession` `pause` events ([#102](https://github.com/mellonis/turing-machine-js/issues/102)). No source or behavior changes in this package. Peer dep `@turing-machine-js/machine` widened `^7.0.0-alpha.5` → `^7.0.0-alpha.6`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turing-machine-js/library-binary-numbers",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.7",
|
|
4
4
|
"description": "A standard library for working with binary numbers",
|
|
5
5
|
"engines": {
|
|
6
6
|
"npm": ">=7.0.0"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"numbers"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@turing-machine-js/machine": "^7.0.0-alpha.
|
|
30
|
+
"@turing-machine-js/machine": "^7.0.0-alpha.7"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsc --build --verbose tsconfig.build.json && node ../../scripts/build-node-entries.mjs --package=@turing-machine-js/library-binary-numbers",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"default": "./dist/index.mjs"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "130d4fd8b964da21a408af2986295e8000828f78"
|
|
48
48
|
}
|
package/states.md
CHANGED
|
@@ -190,12 +190,10 @@ flowchart TD
|
|
|
190
190
|
%% alphabets: [[" ","^","$","0","1"]]
|
|
191
191
|
s0(((halt)))
|
|
192
192
|
s1["goToNumber"]
|
|
193
|
-
s9["invertNumberGoToNumberWithInversion"]
|
|
194
193
|
s12["normalizeNumberPutNewStartSymbol"]
|
|
195
194
|
s13["normalizeNumberMoveNumberStart"]
|
|
196
195
|
s15["normalizeNumber"]
|
|
197
196
|
s23["minusOne"]
|
|
198
|
-
s10[["goToNumberStart(invertNumberGoToNumberWithInversion)"]]
|
|
199
197
|
s14[["goToNumberStart(normalizeNumberMoveNumberStart)"]]
|
|
200
198
|
s20[["invertNumber(normalizeNumber)"]]
|
|
201
199
|
s21[["plusOne(invertNumber(normalizeNumber))"]]
|
|
@@ -206,6 +204,8 @@ flowchart TD
|
|
|
206
204
|
c5(((halt)))
|
|
207
205
|
end
|
|
208
206
|
subgraph w_11["callable subtree of invertNumber"]
|
|
207
|
+
s9["invertNumberGoToNumberWithInversion"]
|
|
208
|
+
s10[["goToNumberStart(invertNumberGoToNumberWithInversion)"]]
|
|
209
209
|
s11["invertNumber"]
|
|
210
210
|
c11(((halt)))
|
|
211
211
|
end
|
|
@@ -235,7 +235,7 @@ flowchart TD
|
|
|
235
235
|
s9 -- "['^'] → [K]/[R]" --> s9
|
|
236
236
|
s9 -- "['1'] → ['0']/[R]" --> s9
|
|
237
237
|
s9 -- "['0'] → ['1']/[R]" --> s9
|
|
238
|
-
s9 -- "['$'] → [K]/[S]" -->
|
|
238
|
+
s9 -- "['$'] → [K]/[S]" --> c11
|
|
239
239
|
s11 -- "['^']|['1']|['0']|['$'] → [K]/[S]" --> s10
|
|
240
240
|
s11 -- "[*] → [K]/[S]" --> c11
|
|
241
241
|
s12 -- "[B] → ['^']/[S]" --> s1
|