@williamthorsen/nmr-core 0.8.0 → 0.9.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.
package/README.md CHANGED
@@ -5,13 +5,13 @@ Shared utilities for node-monorepo-tools packages.
5
5
  This package serves as the shared library foundation for the monorepo. For the nmr CLI tool, see [`@williamthorsen/nmr`](../nmr).
6
6
 
7
7
  <!-- section:release-notes -->
8
- ## Release notes — v0.8.0 (2026-08-03)
8
+ ## Release notes — v0.9.1 (2026-08-04)
9
9
 
10
- ### 🎉 Features
10
+ ### 🐛 Bug fixes
11
11
 
12
- - Skip checks that already passed on the current working tree (#568)
12
+ - Remove the 1 MiB ceiling on captured git output (#596)
13
13
 
14
- `nmr` commands now skip any pure check (types, lint, tests) that has already passed on an unchanged working tree; instead, success is reported immediately. `nmr --no-cache` causes the cache check to be skipped, and `NMR_NO_CACHE=1` does the same for a whole shell. Cached results are cleared by `nmr clean`. Which commands can skip is configurable at the monorepo root, and `NMR_DEBUG=1` reports why a run didn't skip.
14
+ Fixes an issue where `release-kit prepare` began aborting once a repository's release history grew long enough, leaving that repository unable to cut another release. The fix covers, in addition to `prepare`, every other release-kit command that reads from git.
15
15
  <!-- /section:release-notes -->
16
16
 
17
17
  ## Installation
@@ -0,0 +1 @@
1
+ export declare const GIT_OUTPUT_LIMIT: number;
@@ -0,0 +1 @@
1
+ export const GIT_OUTPUT_LIMIT = 64 * 1024 * 1024;
@@ -2,8 +2,8 @@ import { spawnSync } from 'node:child_process';
2
2
  import { createHash } from 'node:crypto';
3
3
  import { existsSync, lstatSync, readFileSync, readlinkSync } from 'node:fs';
4
4
  import path from 'node:path';
5
+ import { GIT_OUTPUT_LIMIT } from "./gitOutputLimit.js";
5
6
  const HASH_FORMAT = 'nmr-working-tree-v1';
6
- const GIT_OUTPUT_LIMIT = 64 * 1024 * 1024;
7
7
  const PRECEDING_FIELD_COUNTS = {
8
8
  1: 8,
9
9
  2: 9,
@@ -2,6 +2,7 @@ export declare const PACKAGE_NAME = "@williamthorsen/nmr-core";
2
2
  export type { CacheDirRef, CacheEntryRef } from './cache-store.js';
3
3
  export { readCacheEntry, readJsonCacheEntry, removeCacheDir, resolveCacheDir, resolveCacheEntryPath, writeCacheEntry, } from './cache-store.js';
4
4
  export { findPackageRoot } from './findPackageRoot.js';
5
+ export { GIT_OUTPUT_LIMIT } from './gitOutputLimit.js';
5
6
  export type { WorkingTreeHashResult } from './hashWorkingTree.js';
6
7
  export { hashWorkingTree, readHeadSha } from './hashWorkingTree.js';
7
8
  export type { FlagDefinition, FlagSchema, ParseArgsOptions, ParsedArgs, ParsedFlags, ParseErrorKind, } from './parseArgs.js';
package/dist/esm/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export const PACKAGE_NAME = '@williamthorsen/nmr-core';
2
2
  export { readCacheEntry, readJsonCacheEntry, removeCacheDir, resolveCacheDir, resolveCacheEntryPath, writeCacheEntry, } from "./cache-store.js";
3
3
  export { findPackageRoot } from "./findPackageRoot.js";
4
+ export { GIT_OUTPUT_LIMIT } from "./gitOutputLimit.js";
4
5
  export { hashWorkingTree, readHeadSha } from "./hashWorkingTree.js";
5
6
  export { parseArgs, parseArgsOrExit, ParseError } from "./parseArgs.js";
6
7
  export { readPackageVersion } from "./readPackageVersion.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/nmr-core",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "private": false,
5
5
  "description": "Shared utilities for node-monorepo-tools packages",
6
6
  "keywords": [