@ox-content/napi 3.0.0-beta.14 → 3.0.0-beta.16

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/index.d.ts +11 -0
  2. package/index.js +1 -0
  3. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -231,6 +231,9 @@ export declare function getGitContributors(filePath: string, root?: string | und
231
231
  /** Returns the last git commit timestamp for a file in milliseconds. */
232
232
  export declare function getGitLastUpdated(filePath: string, root?: string | undefined | null): number | null
233
233
 
234
+ /** Returns last git commit timestamps for files or directories in one lookup. */
235
+ export declare function getGitLastUpdatedMany(filePaths: Array<string>, root?: string | undefined | null): Array<JsGitLastmodResult>
236
+
234
237
  /** Derives hierarchical search scopes from a document id or URL. */
235
238
  export declare function getSearchDocumentScopes(id: string, url: string): Array<string>
236
239
 
@@ -1190,6 +1193,14 @@ export interface JsGitContributor {
1190
1193
  commits?: number
1191
1194
  }
1192
1195
 
1196
+ /** One successful git lastmod lookup from `getGitLastUpdatedMany`. */
1197
+ export interface JsGitLastmodResult {
1198
+ /** Input path supplied by the caller. */
1199
+ path: string
1200
+ /** Latest git commit timestamp in milliseconds. */
1201
+ lastUpdated: number
1202
+ }
1203
+
1193
1204
  /** Export graph resolution options. */
1194
1205
  export interface JsGraphOptions {
1195
1206
  root?: string
package/index.js CHANGED
@@ -228,6 +228,7 @@ module.exports.supportsHighlightLanguage = binding.supportsHighlightLanguage;
228
228
  module.exports.nativeHighlightLanguages = binding.nativeHighlightLanguages;
229
229
  module.exports.generateSsgBarePage = binding.generateSsgBarePage;
230
230
  module.exports.getGitLastUpdated = binding.getGitLastUpdated;
231
+ module.exports.getGitLastUpdatedMany = binding.getGitLastUpdatedMany;
231
232
  module.exports.getGitContributors = binding.getGitContributors;
232
233
  module.exports.resolveSsgPageRoutes = binding.resolveSsgPageRoutes;
233
234
  module.exports.resolveSsgRoutePaths = binding.resolveSsgRoutePaths;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ox-content/napi",
3
- "version": "3.0.0-beta.14",
3
+ "version": "3.0.0-beta.16",
4
4
  "description": "Node.js bindings for Ox Content - High-performance Markdown parser",
5
5
  "keywords": [
6
6
  "markdown",
@@ -47,12 +47,12 @@
47
47
  ]
48
48
  },
49
49
  "optionalDependencies": {
50
- "@ox-content/binding-darwin-x64": "3.0.0-beta.14",
51
- "@ox-content/binding-darwin-arm64": "3.0.0-beta.14",
52
- "@ox-content/binding-linux-x64-gnu": "3.0.0-beta.14",
53
- "@ox-content/binding-linux-x64-musl": "3.0.0-beta.14",
54
- "@ox-content/binding-linux-arm64-gnu": "3.0.0-beta.14",
55
- "@ox-content/binding-linux-arm64-musl": "3.0.0-beta.14",
56
- "@ox-content/binding-win32-x64-msvc": "3.0.0-beta.14"
50
+ "@ox-content/binding-darwin-x64": "3.0.0-beta.16",
51
+ "@ox-content/binding-darwin-arm64": "3.0.0-beta.16",
52
+ "@ox-content/binding-linux-x64-gnu": "3.0.0-beta.16",
53
+ "@ox-content/binding-linux-x64-musl": "3.0.0-beta.16",
54
+ "@ox-content/binding-linux-arm64-gnu": "3.0.0-beta.16",
55
+ "@ox-content/binding-linux-arm64-musl": "3.0.0-beta.16",
56
+ "@ox-content/binding-win32-x64-msvc": "3.0.0-beta.16"
57
57
  }
58
58
  }