gitverse-release 3.2.0 → 3.3.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.
@@ -1,11 +1,16 @@
1
1
  import type { GitRepoInfo } from "./types";
2
+ /**
3
+ * Retry функция type
4
+ */
5
+ export type RetryFunction = <T>(fn: () => Promise<T>, operationName?: string) => Promise<T>;
2
6
  /**
3
7
  * GitVerse API клиент для создания релизов
4
8
  */
5
9
  export declare class GitVerseReleaseClient {
6
10
  private client;
7
11
  private repoInfo;
8
- constructor(token: string, repoInfo: GitRepoInfo);
12
+ private retryFn?;
13
+ constructor(token: string, repoInfo: GitRepoInfo, retryFn?: RetryFunction);
9
14
  /**
10
15
  * Создает релиз на GitVerse
11
16
  */
@@ -25,4 +30,4 @@ export declare class GitVerseReleaseClient {
25
30
  /**
26
31
  * Создает клиент для работы с GitVerse API
27
32
  */
28
- export declare function createGitVerseClient(repoInfo: GitRepoInfo): GitVerseReleaseClient;
33
+ export declare function createGitVerseClient(repoInfo: GitRepoInfo, retryFn?: RetryFunction): GitVerseReleaseClient;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,11 @@ import type { CliOptions, ReleaseResult } from "./types";
3
3
  * Основная функция для создания релиза
4
4
  */
5
5
  export declare function release(packageName?: string, options?: CliOptions): Promise<ReleaseResult>;
6
+ /**
7
+ * Создает только GitVerse Release для существующего тега (без commit/push)
8
+ * Полезно для recovery после failed release в CI/CD
9
+ */
10
+ export declare function createReleaseOnly(tag: string, packageName?: string, configPath?: string): Promise<ReleaseResult>;
6
11
  export { loadConfig, validateConfig } from "./config";
7
12
  export { createGitVerseClient } from "./gitverse";
8
13
  export * from "./types";