flagstaff 2.0.0 → 2.0.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/README.md +6 -6
- package/dist/box.js +1 -1
- package/dist/boxen.js +2 -1
- package/dist/cli-table3.js +1 -1
- package/dist/ora.js +2 -1
- package/dist/projection.js +1 -1
- package/dist/table.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -356,11 +356,11 @@ the `spinners` corpus, the stream hooks that keep a `console.log` above the fram
|
|
|
356
356
|
synchronized-output sequences, the pause while another writer's line is unfinished, the frame
|
|
357
357
|
kept above the last row of the screen, the stdin discarder.
|
|
358
358
|
|
|
359
|
-
What changes is the bill. ora 10.0.0 ships
|
|
359
|
+
What changes is the bill. ora 10.0.0 ships 129,073 B of JavaScript across **seventeen
|
|
360
360
|
packages** — ora, chalk, cli-spinners, string-width, log-symbols, cli-cursor,
|
|
361
361
|
restore-cursor, onetime, mimic-function, signal-exit, is-interactive, is-unicode-supported,
|
|
362
362
|
stdin-discarder, yoctocolors, strip-ansi, ansi-regex, get-east-asian-width. `flagstaff/ora`
|
|
363
|
-
is 53,486 B across **two** — itself and roundel — **
|
|
363
|
+
is 53,486 B across **two** — itself and roundel — **41% of ora's**, and 20,250 B of that is
|
|
364
364
|
the spinner corpus ora's API re-exports. Nothing in it reaches the frame loop, so a program
|
|
365
365
|
that migrates its spinner today can adopt `hoist()` a file at a time, or never ([measured](https://burgee.interlace.tools/docs/benchmarks)).
|
|
366
366
|
|
|
@@ -403,7 +403,7 @@ screen, not the bytes.
|
|
|
403
403
|
`logUpdateStderr`, with the row-level diffing intact: a five-row frame whose last row is a
|
|
404
404
|
counter costs one row of output per tick, not five.
|
|
405
405
|
|
|
406
|
-
log-update ships
|
|
406
|
+
log-update ships 115.2 KB across **sixteen** packages. This subpath reaches two, both from
|
|
407
407
|
this repository: `linegauge/wrap` for the wrapper, and `closeout` for the cursor.
|
|
408
408
|
It carries no port of `slice-ansi` — the wrapper already makes every row self-contained,
|
|
409
409
|
so clipping a frame to the terminal's height is an array slice. `signal-exit`, 22.0 KB of
|
|
@@ -486,9 +486,9 @@ Every subpath is a lock, not a convention, and the numbers below are asserted by
|
|
|
486
486
|
`weight.test.ts` against `dist/`, not estimated: `flagstaff/loop` reaches 4.4 KB on disk and
|
|
487
487
|
never the plugin registry; `flagstaff/plugin` 8.4 KB, of which 2.4 KB is the schema;
|
|
488
488
|
`flagstaff/spinner` 9.4 KB; `flagstaff/ora` 44.1 KB — 53.5 KB with roundel counted, against
|
|
489
|
-
ora 10's own
|
|
490
|
-
log-update's own
|
|
491
|
-
roundel counted, against boxen 9's own
|
|
489
|
+
ora 10's own 129.1 KB; `flagstaff/log-update` 29.6 KB, against
|
|
490
|
+
log-update's own 115.2 KB across sixteen, reaching only `linegauge/wrap` and `closeout`; `flagstaff/boxen` 17.6 KB — 67.8 KB with linegauge and
|
|
491
|
+
roundel counted, against boxen 9's own 116.7 KB across fourteen; `flagstaff/cli-table3` 32.9 KB —
|
|
492
492
|
42.3 KB with roundel, against cli-table3's own 106.0 KB across seven. The three façades share `wrap.js` and
|
|
493
493
|
`width.js`, and the first two share `closeout`; none reaches another's port, and none
|
|
494
494
|
reaches the core. `sideEffects: false` lets a
|
package/dist/box.js
CHANGED
package/dist/boxen.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { slice as sliceAnsi, widest
|
|
1
|
+
import { slice as sliceAnsi, widest } from 'linegauge';
|
|
2
|
+
import { width as stringWidth } from 'linegauge/v8';
|
|
2
3
|
import { wrap as wrapAnsi } from 'linegauge/wrap';
|
|
3
4
|
import chalk from 'roundel/chalk';
|
|
4
5
|
import { processRuntime } from './runtime.js';
|
package/dist/cli-table3.js
CHANGED
package/dist/ora.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Buffer } from 'node:buffer';
|
|
2
2
|
import { HIDE_CURSOR, rawMode, SHOW_CURSOR } from 'closeout/cursor';
|
|
3
3
|
import restoreCursor from 'closeout/restore-cursor';
|
|
4
|
-
import { strip
|
|
4
|
+
import { strip } from 'linegauge';
|
|
5
|
+
import { width } from 'linegauge/v8';
|
|
5
6
|
import { beginSynchronizedOutput, endSynchronizedOutput } from 'paratext/csi';
|
|
6
7
|
import chalk from 'roundel/chalk';
|
|
7
8
|
import { unicode } from 'roundel/terminal';
|
package/dist/projection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onExit } from 'closeout';
|
|
2
2
|
import { HIDE_CURSOR, SHOW_CURSOR } from 'closeout/cursor';
|
|
3
|
-
import { lineCount } from 'linegauge';
|
|
3
|
+
import { lineCount } from 'linegauge/v8';
|
|
4
4
|
import { muted } from 'roundel/tokens';
|
|
5
5
|
export const DEFAULT_INTERVAL = 80;
|
|
6
6
|
const DEFAULT_COLUMNS = 80;
|
package/dist/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { width } from 'linegauge';
|
|
2
1
|
import { truncate } from 'linegauge/truncate';
|
|
2
|
+
import { width } from 'linegauge/v8';
|
|
3
3
|
import { wrap } from 'linegauge/wrap';
|
|
4
4
|
import { heading, muted } from 'roundel/tokens';
|
|
5
5
|
import { cellHref, cellText, laid, painted, painter, STATIC } from './link.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flagstaff",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Spinners, progress, boxes and tables on one terminal frame loop, with a static projection for pipes, screen readers and agents, and a plugin host. No dependency outside the burgee family. Drop-in paths for ora, log-update, boxen and cli-table3.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
"dependencies": {
|
|
171
171
|
"closeout": "^2.0.0",
|
|
172
|
-
"linegauge": "^2.
|
|
172
|
+
"linegauge": "^2.2.0",
|
|
173
173
|
"paratext": "^2.0.0",
|
|
174
174
|
"roundel": "^2.0.0"
|
|
175
175
|
},
|