@takazudo/zudo-doc-history-server 5.22.0 → 5.23.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 CHANGED
@@ -4,6 +4,16 @@ All notable changes to `@takazudo/zudo-doc-history-server` are documented in thi
4
4
 
5
5
  The format is based on Keep a Changelog, and release notes are generated from the changelog MDX pages.
6
6
 
7
+ ## [5.23.0] - 2026-09-13
8
+
9
+ - No package-specific changes.
10
+
11
+ ## [5.22.1] - 2026-09-13
12
+
13
+ ### Bug Fixes
14
+
15
+ - Normalized Git's alternate zero-UTC-offset spellings so generated document and asset history metadata stays consistent across Git versions. (50338104)
16
+
7
17
  ## [5.22.0] - 2026-09-11
8
18
 
9
19
  - No package-specific changes.
@@ -277,6 +277,9 @@ async function getFileAtCommitAsync(hash, filePath) {
277
277
  }
278
278
  var WALK_COMMIT_SENTINEL = "\0";
279
279
  var WALK_FORMAT = "%x00%H%n%aI%n%aN";
280
+ function normalizeGitDate(raw) {
281
+ return raw.replace(/[+-]00:00$/, "Z");
282
+ }
280
283
  function createFirstLastMetaAccumulator() {
281
284
  let state = "expect_hash";
282
285
  let curDate = "";
@@ -403,7 +406,12 @@ function getAllFilesFirstLastMetaAsync(pathspecs = []) {
403
406
  if (buf.length > 0) acc.pushLine(buf);
404
407
  const relMap = acc.finish();
405
408
  const absMap = /* @__PURE__ */ new Map();
406
- for (const [rel, meta] of relMap) absMap.set(join(repoRoot, rel), meta);
409
+ for (const [rel, meta] of relMap) {
410
+ absMap.set(join(repoRoot, rel), {
411
+ oldest: { author: meta.oldest.author, date: normalizeGitDate(meta.oldest.date) },
412
+ newest: { author: meta.newest.author, date: normalizeGitDate(meta.newest.date) }
413
+ });
414
+ }
407
415
  resolvePromise(absMap);
408
416
  });
409
417
  });
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  collectContentFiles,
15
15
  getDocHistoryAsync
16
- } from "./chunk-U4PA3LGK.js";
16
+ } from "./chunk-6T5SSYWE.js";
17
17
 
18
18
  // src/cli.ts
19
19
  import { mkdirSync, writeFileSync } from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  isGitRepo,
6
6
  parseFirstLastMeta,
7
7
  parseHashToPathMap
8
- } from "./chunk-U4PA3LGK.js";
8
+ } from "./chunk-6T5SSYWE.js";
9
9
  export {
10
10
  collectContentFiles,
11
11
  getAllFilesFirstLastMetaAsync,
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  collectContentFiles,
11
11
  getDocHistoryAsync
12
- } from "./chunk-U4PA3LGK.js";
12
+ } from "./chunk-6T5SSYWE.js";
13
13
 
14
14
  // src/server.ts
15
15
  import { createServer } from "http";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-doc-history-server",
3
- "version": "5.22.0",
3
+ "version": "5.23.0",
4
4
  "type": "module",
5
5
  "description": "Standalone doc git-history service for zudo-doc — HTTP server + CLI batch generator. Decouples expensive `git log --follow` calls from the main build pipeline.",
6
6
  "license": "MIT",