@modern-js/plugin-changeset 2.41.0 → 2.42.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,8 +1,8 @@
1
1
  interface BumpOptions {
2
- snapshot: boolean | string;
3
- canary: boolean;
4
- preid: string;
5
- ignore: string[];
2
+ snapshot: boolean | string;
3
+ canary: boolean;
4
+ preid: string;
5
+ ignore: string[];
6
6
  }
7
7
  export declare function bump(options: BumpOptions): Promise<void>;
8
- export {};
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  interface ChangeOptions {
2
- empty: boolean;
3
- open: boolean;
2
+ empty: boolean;
3
+ open: boolean;
4
4
  }
5
5
  export declare function change(options: ChangeOptions): Promise<void>;
6
- export {};
6
+ export {};
@@ -3,4 +3,4 @@ export * from './bump';
3
3
  export * from './pre';
4
4
  export * from './release';
5
5
  export * from './status';
6
- export * from './releaseNote';
6
+ export * from './releaseNote';
@@ -1 +1 @@
1
- export declare function pre(type: 'enter' | 'exit', tag?: string): Promise<void>;
1
+ export declare function pre(type: 'enter' | 'exit', tag?: string): Promise<void>;
@@ -1,9 +1,9 @@
1
1
  interface ReleaseOptions {
2
- tag: string;
3
- ignoreScripts: boolean;
4
- gitChecks: boolean;
5
- otp: string;
6
- provenance: boolean;
2
+ tag: string;
3
+ ignoreScripts: boolean;
4
+ gitChecks: boolean;
5
+ otp: string;
6
+ provenance: boolean;
7
7
  }
8
8
  export declare function release(options: ReleaseOptions): Promise<void>;
9
- export {};
9
+ export {};
@@ -1,53 +1,53 @@
1
1
  export declare enum CommitType {
2
- Performance = "performance",
3
- Features = "features",
4
- BugFix = "bugFix",
5
- Doc = "doc",
6
- Other = "other",
2
+ Performance = "performance",
3
+ Features = "features",
4
+ BugFix = "bugFix",
5
+ Doc = "doc",
6
+ Other = "other"
7
7
  }
8
8
  export interface Commit {
9
- id: string;
10
- type: CommitType;
11
- repository?: string;
12
- pullRequestId?: string;
13
- author?: string;
14
- message: string;
15
- summary: string;
16
- summary_zh: string;
17
- [key: string]: string | undefined;
9
+ id: string;
10
+ type: CommitType;
11
+ repository?: string;
12
+ pullRequestId?: string;
13
+ author?: string;
14
+ message: string;
15
+ summary: string;
16
+ summary_zh: string;
17
+ [key: string]: string | undefined;
18
18
  }
19
19
  export interface Changes {
20
- en: Commit[];
21
- zh: Commit[];
20
+ en: Commit[];
21
+ zh: Commit[];
22
22
  }
23
23
  export type ReleaseNote = Record<CommitType, Changes>;
24
24
  interface ReleaseNoteOptions {
25
- repo?: string;
26
- custom?: string;
27
- authToken?: string;
25
+ repo?: string;
26
+ custom?: string;
27
+ authToken?: string;
28
28
  }
29
29
  export type CustomReleaseNoteFunction = {
30
- getReleaseInfo?: (commit: string, commitObj: Commit) => Commit | Promise<Commit>;
31
- getReleaseNoteLine?: (commit: Commit, lang?: 'en' | 'zh') => string | Promise<string>;
30
+ getReleaseInfo?: (commit: string, commitObj: Commit) => Commit | Promise<Commit>;
31
+ getReleaseNoteLine?: (commit: Commit, lang?: 'en' | 'zh') => string | Promise<string>;
32
32
  } | undefined;
33
33
  export declare const ChangesTitle = "What's Changed";
34
34
  export declare const ChangesZhTitle = "\u66F4\u65B0\u5185\u5BB9";
35
35
  export declare const CommitTypeTitle: {
36
- performance: string;
37
- features: string;
38
- bugFix: string;
39
- doc: string;
40
- other: string;
36
+ performance: string;
37
+ features: string;
38
+ bugFix: string;
39
+ doc: string;
40
+ other: string;
41
41
  };
42
42
  export declare const CommitTypeZhTitle: {
43
- performance: string;
44
- features: string;
45
- bugFix: string;
46
- doc: string;
47
- other: string;
43
+ performance: string;
44
+ features: string;
45
+ bugFix: string;
46
+ doc: string;
47
+ other: string;
48
48
  };
49
49
  export declare function getCommitType(message: string): CommitType;
50
50
  export declare function getReleaseInfo(commit: string, commitObj: Commit, repo?: string, authToken?: string): Promise<Commit>;
51
51
  export declare function getReleaseNoteLine(commit: Commit, customReleaseNoteFunction?: CustomReleaseNoteFunction, lang?: 'en' | 'zh'): string | Promise<string>;
52
52
  export declare function genReleaseNote(options: ReleaseNoteOptions): Promise<string>;
53
- export {};
53
+ export {};
@@ -1,7 +1,7 @@
1
1
  interface StatusOptions {
2
- verbose: boolean;
3
- output: string;
4
- since: string;
2
+ verbose: boolean;
3
+ output: string;
4
+ since: string;
5
5
  }
6
6
  export declare function status(options: StatusOptions): Promise<void>;
7
- export {};
7
+ export {};
@@ -1,4 +1,4 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
2
  export * from './commands';
3
3
  export declare const changesetPlugin: () => CliPlugin;
4
- export default changesetPlugin;
4
+ export default changesetPlugin;
@@ -1,39 +1,39 @@
1
1
  export declare const EN_LOCALE: {
2
- command: {
3
- change: {
4
- describe: string;
5
- empty: string;
6
- open: string;
7
- no_packages: string;
2
+ command: {
3
+ change: {
4
+ describe: string;
5
+ empty: string;
6
+ open: string;
7
+ no_packages: string;
8
+ };
9
+ bump: {
10
+ describe: string;
11
+ canary: string;
12
+ preid: string;
13
+ snapshot: string;
14
+ ignore: string;
15
+ };
16
+ pre: {
17
+ describe: string;
18
+ };
19
+ release: {
20
+ describe: string;
21
+ tag: string;
22
+ otp: string;
23
+ ignore_scripts: string;
24
+ no_git_checks: string;
25
+ provenance: string;
26
+ };
27
+ status: {
28
+ describe: string;
29
+ verbose: string;
30
+ output: string;
31
+ since: string;
32
+ };
33
+ gen_release_note: {
34
+ describe: string;
35
+ repo: string;
36
+ custom: string;
37
+ };
8
38
  };
9
- bump: {
10
- describe: string;
11
- canary: string;
12
- preid: string;
13
- snapshot: string;
14
- ignore: string;
15
- };
16
- pre: {
17
- describe: string;
18
- };
19
- release: {
20
- describe: string;
21
- tag: string;
22
- otp: string;
23
- ignore_scripts: string;
24
- no_git_checks: string;
25
- provenance: string;
26
- };
27
- status: {
28
- describe: string;
29
- verbose: string;
30
- output: string;
31
- since: string;
32
- };
33
- gen_release_note: {
34
- describe: string;
35
- repo: string;
36
- custom: string;
37
- };
38
- };
39
- };
39
+ };
@@ -1,80 +1,80 @@
1
1
  import { I18n } from '@modern-js/plugin-i18n';
2
2
  declare const i18n: I18n;
3
3
  declare const localeKeys: {
4
- command: {
5
- change: {
6
- describe: string;
7
- empty: string;
8
- open: string;
9
- no_packages: string;
4
+ command: {
5
+ change: {
6
+ describe: string;
7
+ empty: string;
8
+ open: string;
9
+ no_packages: string;
10
+ };
11
+ bump: {
12
+ describe: string;
13
+ canary: string;
14
+ preid: string;
15
+ snapshot: string;
16
+ ignore: string;
17
+ };
18
+ pre: {
19
+ describe: string;
20
+ };
21
+ release: {
22
+ describe: string;
23
+ tag: string;
24
+ otp: string;
25
+ ignore_scripts: string;
26
+ no_git_checks: string;
27
+ provenance: string;
28
+ };
29
+ status: {
30
+ describe: string;
31
+ verbose: string;
32
+ output: string;
33
+ since: string;
34
+ };
35
+ gen_release_note: {
36
+ describe: string;
37
+ repo: string;
38
+ custom: string;
39
+ };
10
40
  };
11
- bump: {
12
- describe: string;
13
- canary: string;
14
- preid: string;
15
- snapshot: string;
16
- ignore: string;
17
- };
18
- pre: {
19
- describe: string;
20
- };
21
- release: {
22
- describe: string;
23
- tag: string;
24
- otp: string;
25
- ignore_scripts: string;
26
- no_git_checks: string;
27
- provenance: string;
28
- };
29
- status: {
30
- describe: string;
31
- verbose: string;
32
- output: string;
33
- since: string;
34
- };
35
- gen_release_note: {
36
- describe: string;
37
- repo: string;
38
- custom: string;
39
- };
40
- };
41
41
  } | {
42
- command: {
43
- change: {
44
- describe: string;
45
- empty: string;
46
- open: string;
47
- no_packages: string;
48
- };
49
- bump: {
50
- describe: string;
51
- canary: string;
52
- preid: string;
53
- snapshot: string;
54
- ignore: string;
55
- };
56
- pre: {
57
- describe: string;
58
- };
59
- release: {
60
- describe: string;
61
- tag: string;
62
- otp: string;
63
- ignore_scripts: string;
64
- no_git_checks: string;
65
- provenance: string;
66
- };
67
- status: {
68
- describe: string;
69
- verbose: string;
70
- output: string;
71
- since: string;
72
- };
73
- gen_release_note: {
74
- describe: string;
75
- repo: string;
76
- custom: string;
42
+ command: {
43
+ change: {
44
+ describe: string;
45
+ empty: string;
46
+ open: string;
47
+ no_packages: string;
48
+ };
49
+ bump: {
50
+ describe: string;
51
+ canary: string;
52
+ preid: string;
53
+ snapshot: string;
54
+ ignore: string;
55
+ };
56
+ pre: {
57
+ describe: string;
58
+ };
59
+ release: {
60
+ describe: string;
61
+ tag: string;
62
+ otp: string;
63
+ ignore_scripts: string;
64
+ no_git_checks: string;
65
+ provenance: string;
66
+ };
67
+ status: {
68
+ describe: string;
69
+ verbose: string;
70
+ output: string;
71
+ since: string;
72
+ };
73
+ gen_release_note: {
74
+ describe: string;
75
+ repo: string;
76
+ custom: string;
77
+ };
77
78
  };
78
- };
79
79
  };
80
- export { i18n, localeKeys };
80
+ export { i18n, localeKeys };
@@ -1,39 +1,39 @@
1
1
  export declare const ZH_LOCALE: {
2
- command: {
3
- change: {
4
- describe: string;
5
- empty: string;
6
- open: string;
7
- no_packages: string;
2
+ command: {
3
+ change: {
4
+ describe: string;
5
+ empty: string;
6
+ open: string;
7
+ no_packages: string;
8
+ };
9
+ bump: {
10
+ describe: string;
11
+ canary: string;
12
+ preid: string;
13
+ snapshot: string;
14
+ ignore: string;
15
+ };
16
+ pre: {
17
+ describe: string;
18
+ };
19
+ release: {
20
+ describe: string;
21
+ tag: string;
22
+ otp: string;
23
+ ignore_scripts: string;
24
+ no_git_checks: string;
25
+ provenance: string;
26
+ };
27
+ status: {
28
+ describe: string;
29
+ verbose: string;
30
+ output: string;
31
+ since: string;
32
+ };
33
+ gen_release_note: {
34
+ describe: string;
35
+ repo: string;
36
+ custom: string;
37
+ };
8
38
  };
9
- bump: {
10
- describe: string;
11
- canary: string;
12
- preid: string;
13
- snapshot: string;
14
- ignore: string;
15
- };
16
- pre: {
17
- describe: string;
18
- };
19
- release: {
20
- describe: string;
21
- tag: string;
22
- otp: string;
23
- ignore_scripts: string;
24
- no_git_checks: string;
25
- provenance: string;
26
- };
27
- status: {
28
- describe: string;
29
- verbose: string;
30
- output: string;
31
- since: string;
32
- };
33
- gen_release_note: {
34
- describe: string;
35
- repo: string;
36
- custom: string;
37
- };
38
- };
39
- };
39
+ };
@@ -1,3 +1,3 @@
1
1
  import { execa } from '@modern-js/utils';
2
2
  export declare const CHANGESET_PATH: string;
3
- export declare function execaWithStreamLog(command: string, args: string[]): execa.ExecaChildProcess<string>;
3
+ export declare function execaWithStreamLog(command: string, args: string[]): execa.ExecaChildProcess<string>;
@@ -1 +1 @@
1
- export * from './changeset';
1
+ export * from './changeset';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.41.0",
18
+ "version": "2.42.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -52,17 +52,17 @@
52
52
  "resolve-from": "^5.0.0",
53
53
  "axios": "^1.6.0",
54
54
  "@swc/helpers": "0.5.3",
55
- "@modern-js/plugin-i18n": "2.41.0",
56
- "@modern-js/utils": "2.41.0"
55
+ "@modern-js/plugin-i18n": "2.42.0",
56
+ "@modern-js/utils": "2.42.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/jest": "^29",
60
60
  "@types/node": "^14",
61
61
  "typescript": "^5",
62
62
  "jest": "^29",
63
- "@modern-js/core": "2.41.0",
64
- "@scripts/build": "2.41.0",
65
- "@scripts/jest-config": "2.41.0"
63
+ "@scripts/build": "2.42.0",
64
+ "@modern-js/core": "2.42.0",
65
+ "@scripts/jest-config": "2.42.0"
66
66
  },
67
67
  "sideEffects": false,
68
68
  "publishConfig": {