@mintlify/prebuild 1.0.578 → 1.0.580

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.
@@ -1,4 +1,4 @@
1
- import { getNewContent, isUpdate, UPDATE_MAX } from '@mintlify/common';
1
+ import { isUpdate, processUpdateNode, UPDATE_MAX } from '@mintlify/common';
2
2
  import fse from 'fs-extra';
3
3
  import { docsConfigToRss } from '../rss/docsConfigToRss.js';
4
4
  import { pageToRss } from '../rss/pageToRss.js';
@@ -11,7 +11,11 @@ export const writeRssFiles = async (docsConfig, rssPages) => {
11
11
  const { title, description } = pageToRss(tree);
12
12
  const rssPath = pathToRss(targetPath);
13
13
  const pageUpdateComponents = tree.children.filter((child) => isUpdate(child));
14
- const updates = getNewContent(pageUpdateComponents);
14
+ const updates = [];
15
+ for (const update of pageUpdateComponents) {
16
+ const newUpdates = processUpdateNode({ updateNode: update, date: new Date().toISOString() });
17
+ updates.push(...newUpdates);
18
+ }
15
19
  const trimmedUpdates = updates.slice(0, UPDATE_MAX);
16
20
  return {
17
21
  rssPath,