@code-pushup/models 0.53.1 → 0.54.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
@@ -106,7 +106,6 @@ var fileNameSchema = z.string().trim().regex(filenameRegex, {
106
106
  message: `The filename has to be valid`
107
107
  }).min(1, { message: "file name is invalid" });
108
108
  var positiveIntSchema = z.number().int().positive();
109
- var nonnegativeIntSchema = z.number().int().nonnegative();
110
109
  var nonnegativeNumberSchema = z.number().nonnegative();
111
110
  function packageVersionSchema(options) {
112
111
  const { versionDescription = "NPM version of the package", required } = options ?? {};
@@ -660,7 +659,7 @@ var auditDiffSchema = scorableWithPluginDiffSchema.merge(
660
659
  z16.object({
661
660
  values: makeComparisonSchema(auditValueSchema).merge(
662
661
  z16.object({
663
- diff: z16.number().int().describe("Value change (`values.after - values.before`)")
662
+ diff: z16.number().describe("Value change (`values.after - values.before`)")
664
663
  })
665
664
  ).describe("Audit `value` comparison"),
666
665
  displayValues: makeComparisonSchema(auditDisplayValueSchema).describe(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.53.1",
3
+ "version": "0.54.0",
4
4
  "license": "MIT",
5
5
  "description": "Model definitions and validators for the Code PushUp CLI",
6
6
  "homepage": "https://github.com/code-pushup/cli/tree/main/packages/models#readme",
package/src/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { type AuditDetails, type AuditOutput, type AuditOutputs, auditDetailsSch
5
5
  export { type CategoryConfig, type CategoryRef, categoryConfigSchema, categoryRefSchema, } from './lib/category-config';
6
6
  export { type Commit, commitSchema } from './lib/commit';
7
7
  export { type CoreConfig, coreConfigSchema } from './lib/core-config';
8
- export { type Group, type GroupRef, groupRefSchema, groupSchema, } from './lib/group';
8
+ export { type Group, type GroupRef, type GroupMeta, groupRefSchema, groupSchema, } from './lib/group';
9
9
  export { CONFIG_FILE_NAME, SUPPORTED_CONFIG_FILE_FORMATS, } from './lib/implementation/configuration';
10
10
  export { DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants';
11
11
  export { MAX_DESCRIPTION_LENGTH, MAX_ISSUE_MESSAGE_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits';