@eventcatalog/core 3.14.4 → 3.14.6
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-MWTP6BJH.js → chunk-6NRRWRLT.js} +1 -1
- package/dist/{chunk-FLQWMHKR.js → chunk-KWCAGR52.js} +1 -1
- package/dist/{chunk-JS25D22H.js → chunk-LNIPDPVB.js} +1 -1
- package/dist/{chunk-ULA5TBCY.js → chunk-NYVQSLA5.js} +1 -1
- package/dist/{chunk-5ILC43PQ.js → chunk-TERDXO46.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/pages/docs/[type]/[id]/[version]/asyncapi/[filename].astro +22 -1
- package/eventcatalog/src/utils/collections/util.ts +2 -11
- package/eventcatalog/src/utils/collections/version-compare.ts +12 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KWCAGR52.js";
|
|
4
|
+
import "../chunk-TERDXO46.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-NYVQSLA5.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.6";
|
|
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-KWCAGR52.js";
|
|
10
|
+
import "./chunk-TERDXO46.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-LNIPDPVB.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6NRRWRLT.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NYVQSLA5.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-LNIPDPVB.js";
|
|
4
|
+
import "./chunk-6NRRWRLT.js";
|
|
5
|
+
import "./chunk-NYVQSLA5.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
|
|
@@ -133,7 +133,7 @@ const pagefindAttributes =
|
|
|
133
133
|
</div>
|
|
134
134
|
)
|
|
135
135
|
}
|
|
136
|
-
<div id="asyncapi" class="md:pr-14" set:html={renderedComponent} />
|
|
136
|
+
<div id="asyncapi" class="not-prose md:pr-14" set:html={renderedComponent} />
|
|
137
137
|
</div>
|
|
138
138
|
</VerticalSideBarLayout>
|
|
139
139
|
|
|
@@ -171,4 +171,25 @@ const pagefindAttributes =
|
|
|
171
171
|
z-index: 8;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
+
|
|
175
|
+
/* Keep AsyncAPI markdown code blocks isolated from EventCatalog dark prose overrides. */
|
|
176
|
+
:root[data-theme='dark'] #asyncapi .aui-root .prose code {
|
|
177
|
+
color: #1a202c;
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
border-radius: 0;
|
|
180
|
+
padding: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:root[data-theme='dark'] #asyncapi .aui-root .prose pre {
|
|
184
|
+
color: #edf2f7;
|
|
185
|
+
background-color: #1a202c;
|
|
186
|
+
border: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:root[data-theme='dark'] #asyncapi .aui-root .prose pre code {
|
|
190
|
+
color: inherit;
|
|
191
|
+
background-color: transparent;
|
|
192
|
+
border-radius: 0;
|
|
193
|
+
padding: 0;
|
|
194
|
+
}
|
|
174
195
|
</style>
|
|
@@ -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
|
+
}
|