@eventcatalog/core 2.30.6 → 2.30.7
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/README.md +2 -1
- 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-LGRE6475.js → chunk-EFSBN3ZZ.js} +1 -1
- package/dist/{chunk-6UFFLZ4K.js → chunk-HINNLTBH.js} +1 -1
- package/dist/{chunk-2XYH6NJX.js → chunk-SUJLBNZK.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 +3 -3
- package/eventcatalog/src/utils/collections/changelogs.ts +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
|
|
35
35
|
|
|
36
36
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
37
|
-
[](#contributors-)
|
|
38
38
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
39
39
|
|
|
40
40
|
[Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
|
|
@@ -261,6 +261,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
261
261
|
</tr>
|
|
262
262
|
<tr>
|
|
263
263
|
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/ruudwelling/"><img src="https://avatars.githubusercontent.com/u/4014179?v=4?s=100" width="100px;" alt="Ruud Welling"/><br /><sub><b>Ruud Welling</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=WellingR" title="Code">💻</a></td>
|
|
264
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vienin"><img src="https://avatars.githubusercontent.com/u/2124283?v=4?s=100" width="100px;" alt="Kevin Pouget"/><br /><sub><b>Kevin Pouget</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=vienin" title="Code">💻</a></td>
|
|
264
265
|
</tr>
|
|
265
266
|
</tbody>
|
|
266
267
|
</table>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-HINNLTBH.js";
|
|
4
|
+
import "../chunk-EFSBN3ZZ.js";
|
|
5
|
+
import "../chunk-SUJLBNZK.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-UKJ7F5WR.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-HINNLTBH.js";
|
|
10
|
+
import "./chunk-EFSBN3ZZ.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-7SI5EVOX.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SUJLBNZK.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled
|
|
20
20
|
} from "./chunk-XMDPVKIJ.js";
|
|
@@ -10,8 +10,10 @@ export const getChangeLogs = async (item: CollectionEntry<CollectionTypes>): Pro
|
|
|
10
10
|
// Get all logs for collection type and filter by given collection
|
|
11
11
|
const logs = await getCollection('changelogs', (log) => {
|
|
12
12
|
const collectionDirectory = path.dirname(item?.filePath || '');
|
|
13
|
-
const isRootChangeLog = path.join(collectionDirectory, 'changelog.
|
|
14
|
-
|
|
13
|
+
const isRootChangeLog = path.join(collectionDirectory, 'changelog.mdx') === log.filePath;
|
|
14
|
+
// Ensure the path follows <collectionDirectory>/versioned/<version>/changelog.mdx
|
|
15
|
+
const versionedPathPattern = new RegExp(`${collectionDirectory}/versioned/[^/]+/changelog\\.mdx$`);
|
|
16
|
+
const isVersionedChangeLog = versionedPathPattern.test(log.filePath!);
|
|
15
17
|
return log.id.includes(`${collection}/`) && (isRootChangeLog || isVersionedChangeLog);
|
|
16
18
|
});
|
|
17
19
|
|
|
@@ -19,7 +21,7 @@ export const getChangeLogs = async (item: CollectionEntry<CollectionTypes>): Pro
|
|
|
19
21
|
// Check if there is a version in the url
|
|
20
22
|
const isVersioned = log.id.includes('versioned');
|
|
21
23
|
|
|
22
|
-
const parts = log.
|
|
24
|
+
const parts = log.filePath!.split('/');
|
|
23
25
|
// hack to get the version of the id (url)
|
|
24
26
|
const version = parts[parts.length - 2];
|
|
25
27
|
return {
|