@slugbugblue/trax-tty 1.1.0 → 1.2.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 +11 -0
- package/package.json +13 -5
- package/tty.js +4 -1
- package/version.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @slugbugblue/trax-tty
|
|
2
2
|
|
|
3
|
+
## 1.2.0 - 2025-11-07
|
|
4
|
+
|
|
5
|
+
- Update Trax Engine to v1.0
|
|
6
|
+
- Add the version number as `version`
|
|
7
|
+
- Update to latest dev dependencies
|
|
8
|
+
- Address newly added xo rules
|
|
9
|
+
|
|
10
|
+
## 1.1.0 - 2023-03-24
|
|
11
|
+
|
|
12
|
+
- Update to v0.22 of the Trax engine
|
|
13
|
+
|
|
3
14
|
## 1.0.0 - 2023-03-24
|
|
4
15
|
|
|
5
16
|
- Pulled out of `@slugbugblue/trax` into its own repository for an initial
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slugbugblue/trax-tty",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Simple tty graphics for displaying trax games",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"trax",
|
|
@@ -15,14 +15,21 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": "gitlab:slugbugblue/trax-tty",
|
|
17
17
|
"scripts": {
|
|
18
|
+
"genversion": "genversion --esm version.js",
|
|
19
|
+
"git-add": "git add version.js",
|
|
18
20
|
"test": "xo",
|
|
21
|
+
"preversion": "npm test",
|
|
22
|
+
"version": "npm run genversion ; npm run git-add",
|
|
19
23
|
"postversion": "git push && git push --tags && npm publish"
|
|
20
24
|
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@slugbugblue/trax": "^1.0.0"
|
|
27
|
+
},
|
|
21
28
|
"devDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"husky": "^
|
|
24
|
-
"prettier": "^
|
|
25
|
-
"xo": "
|
|
29
|
+
"genversion": "^3.2.0",
|
|
30
|
+
"husky": "^9.1.7",
|
|
31
|
+
"prettier": "^3.6.2",
|
|
32
|
+
"xo": "^1.2.3"
|
|
26
33
|
},
|
|
27
34
|
"type": "module",
|
|
28
35
|
"engines": {
|
|
@@ -38,6 +45,7 @@
|
|
|
38
45
|
},
|
|
39
46
|
"xo": {
|
|
40
47
|
"prettier": true,
|
|
48
|
+
"space": true,
|
|
41
49
|
"rules": {
|
|
42
50
|
"curly": [
|
|
43
51
|
"error",
|
package/tty.js
CHANGED
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
// Ever wanted to draw Trax boards on the console? I have.
|
|
17
17
|
|
|
18
18
|
import process from 'node:process'
|
|
19
|
-
|
|
20
19
|
import { Trax } from '@slugbugblue/trax'
|
|
21
20
|
|
|
21
|
+
export { version } from './version.js'
|
|
22
|
+
|
|
22
23
|
const esc = '\u001B[' // Start of console color escape code
|
|
23
24
|
const off = esc + 'm' // Color reset code
|
|
24
25
|
const ENV = process.env
|
|
@@ -286,6 +287,8 @@ export const display = (
|
|
|
286
287
|
} else if (showMove <= trax.moves.length) {
|
|
287
288
|
icon = trax.dropsIcon({
|
|
288
289
|
dropped: Object.values(trax.tiles).filter((t) => t.move > showMove),
|
|
290
|
+
notation: '',
|
|
291
|
+
valid: true,
|
|
289
292
|
})
|
|
290
293
|
}
|
|
291
294
|
|
package/version.js
ADDED