@eventcatalog/core 2.7.0 → 2.7.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 2.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 29ccffc: fix(core): fixed changelogs path matching
8
+
3
9
  ## 2.7.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/core",
3
3
  "type": "module",
4
- "version": "2.7.0",
4
+ "version": "2.7.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -4,11 +4,11 @@ import { getCollection, type CollectionEntry } from 'astro:content';
4
4
  export type ChangeLog = CollectionEntry<'changelogs'>;
5
5
 
6
6
  export const getChangeLogs = async (item: CollectionEntry<CollectionTypes>): Promise<ChangeLog[]> => {
7
- const { collection, data } = item;
7
+ const { collection, data, slug } = item;
8
8
 
9
9
  // Get all logs for collection type and filter by given collection
10
10
  const logs = await getCollection('changelogs', (log) => {
11
- return log.id.includes(`${collection}/`) && log.id.includes(`/${data.id}/`);
11
+ return log.id.includes(`${collection}/`) && log.slug.includes(slug);
12
12
  });
13
13
 
14
14
  const hydratedLogs = logs.map((log) => {