higherdata 0.3.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +30 -3
  2. package/dist/index.js +7086 -779
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -213,9 +213,8 @@ Formats follow the current [Claude Code MCP](https://code.claude.com/docs/en/mcp
213
213
  ## Compatibility
214
214
 
215
215
  The CLI reads public `/api/v1/meta` once per day per API origin and caches the
216
- policy beside its config file. Updates are announced on stderr so JSON output
217
- stays machine-readable. Versions below the server's minimum refuse commands
218
- with `npm install --global higherdata@latest` as the upgrade command. `login`,
216
+ policy beside its config file. Update notices are written to stderr only during interactive invocations.
217
+ Versions below the server's minimum refuse commands and suggest `higherdata update`. `update`, `login`,
219
218
  `--help` and `--version` remain available without a compatibility check.
220
219
 
221
220
  The metadata request times out after three seconds. On network failure the CLI
@@ -224,3 +223,31 @@ checks are cached for a day too. A read-only cache directory allows commands but
224
223
  cannot persist the daily check, so subsequent invocations may check again.
225
224
 
226
225
  Download the loaded search page to a new file with `higherdata search companies --country-code CA --out results.csv`. Add `--all` to download up to 5,000 rows, or use a `.jsonl` destination for JSON Lines. The interactive results screen offers "This page" and "All results" when you press `d`. For larger sets, save the search to a list and export the list. Existing files are never overwritten.
226
+
227
+ ## Updates
228
+
229
+ Run `higherdata update` (alias `higherdata upgrade`) to check npm and install the
230
+ latest stable release. The CLI installs the exact version it checked and prints
231
+ the old and new versions. A permission failure prints npm's error summary and
232
+ the manual command. It never retries with sudo.
233
+
234
+ Interactive npm global installs check npm on every run with a 1.5-second timeout, then
235
+ automatically install a newer release and restart the same command with the
236
+ same arguments. Failed installs print a manual command and continue on the
237
+ current version. Timeouts and network failures continue silently. There is no
238
+ cache for this npm release check.
239
+
240
+ Automatic updates are skipped when either stdin or stdout is not a TTY, `CI`
241
+ is set, `--json` or `--jsonl` is used, for MCP or stdio protocols, and for `npx`
242
+ or non-global installs. To opt out for an invocation, set
243
+ `HIGHERDATA_NO_AUTO_UPDATE=1`. To persist the preference, run:
244
+
245
+ ```sh
246
+ higherdata config set auto-update false
247
+ # Re-enable automatic updates
248
+ higherdata config set auto-update true
249
+ ```
250
+
251
+ Explicit `higherdata update` remains available with an opt-out or a server
252
+ minimum-version refusal. Users on 0.3.0 must reinstall once to obtain the update
253
+ command: `npm install --global higherdata@latest`.