@eventcatalog/core 3.14.4 → 3.14.5
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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-5ILC43PQ.js → chunk-ECUL7YIZ.js} +1 -1
- package/dist/{chunk-FLQWMHKR.js → chunk-HAM2SCXV.js} +1 -1
- package/dist/{chunk-MWTP6BJH.js → chunk-Q3SQOTXP.js} +1 -1
- package/dist/{chunk-JS25D22H.js → chunk-RBUQ5MZG.js} +1 -1
- package/dist/{chunk-ULA5TBCY.js → chunk-ZE5IIIEX.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +1 -1
- package/eventcatalog/src/components/Tables/Table.tsx +1 -1
- package/eventcatalog/src/utils/collections/util.ts +2 -11
- package/eventcatalog/src/utils/collections/version-compare.ts +12 -0
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-HAM2SCXV.js";
|
|
4
|
+
import "../chunk-ECUL7YIZ.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZE5IIIEX.js";
|
|
7
7
|
import "../chunk-5T63CXKU.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -115,7 +115,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
115
115
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
116
116
|
|
|
117
117
|
// package.json
|
|
118
|
-
var version = "3.14.
|
|
118
|
+
var version = "3.14.5";
|
|
119
119
|
|
|
120
120
|
// src/constants.ts
|
|
121
121
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-HAM2SCXV.js";
|
|
10
|
+
import "./chunk-ECUL7YIZ.js";
|
|
11
11
|
import "./chunk-4UVFXLPI.js";
|
|
12
12
|
import {
|
|
13
13
|
runMigrations
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-3KXCGYET.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RBUQ5MZG.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Q3SQOTXP.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZE5IIIEX.js";
|
|
32
32
|
import {
|
|
33
33
|
getEventCatalogConfigFile,
|
|
34
34
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RBUQ5MZG.js";
|
|
4
|
+
import "./chunk-Q3SQOTXP.js";
|
|
5
|
+
import "./chunk-ZE5IIIEX.js";
|
|
6
6
|
import "./chunk-5T63CXKU.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -13,7 +13,7 @@ import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, SearchX, X, Sea
|
|
|
13
13
|
import { UserIcon } from '@heroicons/react/24/outline';
|
|
14
14
|
import { useMemo, useState } from 'react';
|
|
15
15
|
import type { TableConfiguration } from '@types';
|
|
16
|
-
import { isSameVersion } from '@utils/collections/
|
|
16
|
+
import { isSameVersion } from '@utils/collections/version-compare';
|
|
17
17
|
import { FilterDropdown, CheckboxItem } from './FilterComponents';
|
|
18
18
|
import DebouncedInput from '../DebouncedInput';
|
|
19
19
|
import { getDiscoverColumns } from './columns';
|
|
@@ -16,7 +16,7 @@ import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, SearchX } from
|
|
|
16
16
|
import { getColumnsByCollection } from './columns';
|
|
17
17
|
import { useEffect, useMemo, useState } from 'react';
|
|
18
18
|
import type { CollectionMessageTypes, TableConfiguration } from '@types';
|
|
19
|
-
import { isSameVersion } from '@utils/collections/
|
|
19
|
+
import { isSameVersion } from '@utils/collections/version-compare';
|
|
20
20
|
|
|
21
21
|
declare module '@tanstack/react-table' {
|
|
22
22
|
// @ts-ignore
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CollectionTypes } from '@types';
|
|
2
2
|
import type { CollectionEntry } from 'astro:content';
|
|
3
|
-
import semver, { coerce, compare,
|
|
3
|
+
import semver, { coerce, compare, satisfies as satisfiesRange } from 'semver';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
|
|
6
6
|
// --- FILE PATH HELPERS ---
|
|
@@ -89,16 +89,7 @@ export const getVersions = (data: CollectionEntry<CollectionTypes>[]) => {
|
|
|
89
89
|
return sortStringVersions(versions);
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
export
|
|
93
|
-
const semverV1 = coerce(v1);
|
|
94
|
-
const semverV2 = coerce(v2);
|
|
95
|
-
|
|
96
|
-
if (semverV1 != null && semverV2 != null) {
|
|
97
|
-
return eq(semverV1, semverV2);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return v1 === v2;
|
|
101
|
-
}
|
|
92
|
+
export { isSameVersion } from './version-compare';
|
|
102
93
|
|
|
103
94
|
/**
|
|
104
95
|
* Sorts versioned items. Latest version first.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { coerce, eq } from 'semver';
|
|
2
|
+
|
|
3
|
+
export function isSameVersion(v1: string | undefined, v2: string | undefined) {
|
|
4
|
+
const semverV1 = coerce(v1);
|
|
5
|
+
const semverV2 = coerce(v2);
|
|
6
|
+
|
|
7
|
+
if (semverV1 != null && semverV2 != null) {
|
|
8
|
+
return eq(semverV1, semverV2);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return v1 === v2;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/event-catalog/eventcatalog.git"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
-
"version": "3.14.
|
|
9
|
+
"version": "3.14.5",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"update-notifier": "^7.3.1",
|
|
102
102
|
"uuid": "^10.0.0",
|
|
103
103
|
"zod": "^3.25.0",
|
|
104
|
-
"@eventcatalog/linter": "1.0.5",
|
|
105
104
|
"@eventcatalog/sdk": "2.14.1",
|
|
105
|
+
"@eventcatalog/linter": "1.0.5",
|
|
106
106
|
"@eventcatalog/visualiser": "^3.14.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|