@code-pushup/models 0.27.1 → 0.28.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/index.js CHANGED
@@ -496,9 +496,9 @@ var CONFIG_FILE_NAME = "code-pushup.config";
496
496
  var SUPPORTED_CONFIG_FILE_FORMATS = ["ts", "mjs", "js"];
497
497
 
498
498
  // packages/models/src/lib/implementation/constants.ts
499
- var PERSIST_OUTPUT_DIR = ".code-pushup";
500
- var PERSIST_FORMAT = ["json"];
501
- var PERSIST_FILENAME = "report";
499
+ var DEFAULT_PERSIST_OUTPUT_DIR = ".code-pushup";
500
+ var DEFAULT_PERSIST_FILENAME = "report";
501
+ var DEFAULT_PERSIST_FORMAT = ["json", "md"];
502
502
 
503
503
  // packages/models/src/lib/report.ts
504
504
  import { z as z13 } from "zod";
@@ -654,13 +654,13 @@ var reportsDiffSchema = z14.object({
654
654
  );
655
655
  export {
656
656
  CONFIG_FILE_NAME,
657
+ DEFAULT_PERSIST_FILENAME,
658
+ DEFAULT_PERSIST_FORMAT,
659
+ DEFAULT_PERSIST_OUTPUT_DIR,
657
660
  MAX_DESCRIPTION_LENGTH,
658
661
  MAX_ISSUE_MESSAGE_LENGTH,
659
662
  MAX_SLUG_LENGTH,
660
663
  MAX_TITLE_LENGTH,
661
- PERSIST_FILENAME,
662
- PERSIST_FORMAT,
663
- PERSIST_OUTPUT_DIR,
664
664
  SUPPORTED_CONFIG_FILE_FORMATS,
665
665
  auditDetailsSchema,
666
666
  auditDiffSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.27.1",
3
+ "version": "0.28.0",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "zod": "^3.22.1",
package/src/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { Commit, commitSchema } from './lib/commit';
5
5
  export { CoreConfig, coreConfigSchema } from './lib/core-config';
6
6
  export { Group, GroupRef, groupRefSchema, groupSchema } from './lib/group';
7
7
  export { CONFIG_FILE_NAME, SUPPORTED_CONFIG_FILE_FORMATS, } from './lib/implementation/configuration';
8
- export { PERSIST_FILENAME, PERSIST_FORMAT, PERSIST_OUTPUT_DIR, } from './lib/implementation/constants';
8
+ export { DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants';
9
9
  export { MAX_DESCRIPTION_LENGTH, MAX_ISSUE_MESSAGE_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits';
10
10
  export { MaterialIcon, materialIconSchema } from './lib/implementation/schemas';
11
11
  export { exists } from './lib/implementation/utils';
@@ -1,4 +1,4 @@
1
1
  import { Format } from '../persist-config';
2
- export declare const PERSIST_OUTPUT_DIR = ".code-pushup";
3
- export declare const PERSIST_FORMAT: Format[];
4
- export declare const PERSIST_FILENAME = "report";
2
+ export declare const DEFAULT_PERSIST_OUTPUT_DIR = ".code-pushup";
3
+ export declare const DEFAULT_PERSIST_FILENAME = "report";
4
+ export declare const DEFAULT_PERSIST_FORMAT: Format[];