flagstaff 1.8.1 → 2.0.1

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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +11 -6
package/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
  <a href="https://www.npmjs.com/package/flagstaff?activeTab=code"><img src="https://img.shields.io/npm/unpacked-size/flagstaff?style=flat-square" alt="Unpacked size of the latest flagstaff release on npm" /></a>
21
21
  <a href="https://github.com/ofri-peretz/burgee/blob/main/packages/flagstaff/package.json"><img src="https://img.shields.io/badge/dependencies-4%20in%20family%2C%200%20outside-0a6b47?style=flat-square" alt="Four dependencies, all in the burgee family (closeout, linegauge, paratext, roundel), none outside it" /></a>
22
22
  <a href="https://github.com/ofri-peretz/burgee/blob/main/packages/flagstaff/package.json"><img src="https://img.shields.io/badge/types-included-blue?style=flat-square" alt="TypeScript types included for every entry point" /></a>
23
- <a href="https://github.com/ofri-peretz/burgee/blob/main/packages/flagstaff/package.json"><img src="https://img.shields.io/badge/Node.js-20.19%2B%20%7C%2022.13%2B-green?style=flat-square" alt="Node.js 20.19+ or 22.13+" /></a>
23
+ <a href="https://github.com/ofri-peretz/burgee/blob/main/packages/flagstaff/package.json"><img src="https://img.shields.io/badge/Node.js-22.13%2B-green?style=flat-square" alt="Node.js 22.13+" /></a>
24
24
  <a href="https://github.com/ofri-peretz/burgee/blob/main/packages/flagstaff/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue?style=flat-square" alt="License: MIT" /></a>
25
25
  <a href="https://www.npmjs.com/package/flagstaff#provenance"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fregistry.npmjs.org%2Fflagstaff%2Flatest&query=%24.dist.attestations.provenance~&label=npm&style=flat-square&color=0a6b47" alt="npm provenance of the latest release, read live from its registry attestation" /></a>
26
26
  </p>
@@ -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 128,182 B of JavaScript across **seventeen
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 — **42% of ora's**, and 20,250 B of that is
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 114.3 KB across **sixteen** packages. This subpath reaches two, both from
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,14 +486,14 @@ 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 128.2 KB; `flagstaff/log-update` 29.6 KB, against
490
- log-update's own 114.3 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 115.8 KB across fourteen; `flagstaff/cli-table3` 32.9 KB —
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
495
495
  bundler drop what a program does not use. ESM with a `default` condition, so
496
- `require('flagstaff/spinner')` works from CommonJS on Node 20.19+ and 22.13+ ([measured](https://burgee.interlace.tools/docs/benchmarks)).
496
+ `require('flagstaff/spinner')` works from CommonJS on Node 22.13+ ([measured](https://burgee.interlace.tools/docs/benchmarks)).
497
497
 
498
498
  ## Benchmarks
499
499
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "flagstaff",
3
- "version": "1.8.1",
3
+ "version": "2.0.1",
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
+ "author": "Ofri Peretz <ofriperetzdev@gmail.com>",
6
7
  "type": "module",
7
8
  "sideEffects": ["./dist/cli.js", "./dist/log-tail.js", "./dist/tab-bar.js"],
8
9
  "engines": {
9
- "node": "^20.19.0 || >=22.13.0"
10
+ "node": ">=22.13.0"
10
11
  },
11
12
  "types": "./dist/index.d.ts",
12
13
  "exports": {
@@ -162,11 +163,15 @@
162
163
  "non-tty",
163
164
  "json"
164
165
  ],
166
+ "publishConfig": {
167
+ "access": "public",
168
+ "provenance": true
169
+ },
165
170
  "dependencies": {
166
- "closeout": "^1.1.8",
167
- "linegauge": "^1.2.0",
168
- "paratext": "^1.0.12",
169
- "roundel": "^1.3.1"
171
+ "closeout": "^2.0.0",
172
+ "linegauge": "^2.1.0",
173
+ "paratext": "^2.0.0",
174
+ "roundel": "^2.0.0"
170
175
  },
171
176
  "devDependencies": {
172
177
  "fast-check": "^4.10.2",