@turing-machine-js/builder 3.0.2 → 5.0.0

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,6 +4,26 @@ 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
+ ## [5.0.0] - 2026-05-09
8
+
9
+ ### Added
10
+
11
+ - **`debug` parameter on `buildMachine()`** ([#101](https://github.com/mellonis/turing-machine-js/issues/101)). Optional per-state breakpoint config; maps to `state.debug = { before, after }` on the matching `State` after construction. Filter values are raw alphabet characters (matching the input-symbol notation in `states`); the builder translates each to a `tapeBlock.symbol([char])`-interned `Symbol` at build time. `true` is the wildcard.
12
+ - Errors at build time on: unknown state name, final-state name (alias for `haltState`, out of scope per the issue spec), symbol not in alphabet.
13
+ - `haltState.debug` declarative support is out of scope — set it directly on the imported singleton if you need to pause on halt entry.
14
+
15
+ ### Changed (BREAKING)
16
+
17
+ - **`peerDependencies."@turing-machine-js/machine"` widened from `^4.0.0` to `^5.0.0`** to match the v5 lockstep. Consumers pinned to `@turing-machine-js/machine@4` will see an unmet-peer warning when installing this version. Note that the `onDebugBreak` → `onPause` rename in engine v5 doesn't affect this package (the builder doesn't call `run()`).
18
+
19
+ ## [4.0.0] - 2026-05-07
20
+
21
+ ### Changed (BREAKING)
22
+
23
+ - **`peerDependencies."@turing-machine-js/machine"` widened from `^3.0.0` to `^4.0.0`** to match the v4 lockstep. Consumers pinned to `@turing-machine-js/machine@3` will see an unmet-peer warning when installing this version.
24
+
25
+ Released in lockstep with `@turing-machine-js/machine` 4.0.0. No source or behavior changes in this package beyond the peer-dep widening.
26
+
7
27
  ## [3.0.2] - 2026-05-04
8
28
 
9
29
  Released in lockstep with `@turing-machine-js/machine` 3.0.2. No source or behavior changes in this package.
package/README.md CHANGED
@@ -32,7 +32,7 @@ machine.tapeBlock.replaceTape(new Tape({
32
32
  symbols: '#011#'.split(''),
33
33
  }));
34
34
 
35
- machine.run({ initialState, stepsLimit: 100 });
35
+ await machine.run({ initialState, stepsLimit: 100 });
36
36
  // tape now contains: #011#011# (the input duplicated)
37
37
  ```
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turing-machine-js/builder",
3
- "version": "3.0.2",
3
+ "version": "5.0.0",
4
4
  "description": "A turing machine builder — declarative state-table construction. Not actively developed by the author; the same state-table pattern is also shown as an inline example in @turing-machine-js/machine's README. Contributions welcome.",
5
5
  "engines": {
6
6
  "npm": ">=7.0.0"
@@ -25,7 +25,7 @@
25
25
  "builder"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@turing-machine-js/machine": "^3.0.0"
28
+ "@turing-machine-js/machine": "^5.0.0"
29
29
  },
30
30
  "main": "dist/index.cjs",
31
31
  "module": "dist/index.mjs",
@@ -38,5 +38,5 @@
38
38
  "default": "./dist/index.mjs"
39
39
  }
40
40
  },
41
- "gitHead": "0a78b4d0d40bbdbf79e3c53694adf930f0567b0a"
41
+ "gitHead": "ccf9a4743965c2a4ea6340ce1de8f6596e094251"
42
42
  }