astro-accelerator 5.0.1 → 5.0.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.1",
2
+ "version": "5.0.2",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -31,8 +31,8 @@
31
31
  "dts": "tsc ./tests/locate-content.js ./tests/locate-navigation.js ./tests/locate-search.js --allowJs --declaration --emitDeclarationOnly"
32
32
  },
33
33
  "dependencies": {
34
- "@astrojs/mdx": "^4.0.6",
35
- "astro": "^5.1.7",
34
+ "@astrojs/mdx": "^4.0.7",
35
+ "astro": "^5.1.9",
36
36
  "astro-accelerator-utils": "^0.3.35",
37
37
  "cspell": "^8.17.2",
38
38
  "csv": "^6.3.11",
@@ -41,11 +41,11 @@
41
41
  "html-to-text": "^9.0.5",
42
42
  "keyword-extractor": "^0.0.28",
43
43
  "optional": "^0.1.4",
44
- "remark-directive": "^3.0.0",
44
+ "remark-directive": "^3.0.1",
45
45
  "sharp": "^0.33.5"
46
46
  },
47
47
  "devDependencies": {
48
- "@playwright/test": "^1.49.1"
48
+ "@playwright/test": "^1.50.0"
49
49
  },
50
50
  "files": [
51
51
  ".npmrc",
@@ -42,7 +42,7 @@ const frontmatter: Frontmatter = {
42
42
 
43
43
  // Logic
44
44
  export async function getData() {
45
- const sourcePosts = await Astro.glob('./**/*.md*') as MarkdownInstance[];
45
+ const sourcePosts = Object.values(import.meta.glob('./**/*.md*', { eager: true })) satisfies MarkdownInstance[];
46
46
  const posts = sourcePosts
47
47
  .filter(PostFiltering.isListable)
48
48
  .sort(PostOrdering.sortByModDateDesc);
@@ -59,9 +59,10 @@ type AuthorData = {
59
59
  }
60
60
 
61
61
  export async function getData() {
62
- const sourcePosts = await Astro.glob(['../../**/*.md*']) satisfies MarkdownInstance[];
62
+ const sourcePosts = Object.values(import.meta.glob('../../**/*.md*', { eager: true })) satisfies MarkdownInstance[];
63
+
63
64
  const data: AuthorData = { posts: [], authors: []};
64
-
65
+
65
66
  data.posts = sourcePosts
66
67
  .filter(PostFiltering.isListable)
67
68
  .sort(PostOrdering.sortByPubDateDesc);
@@ -50,8 +50,7 @@ type CategoryData = {
50
50
  }
51
51
 
52
52
  export async function getData() {
53
- // TODO: Replace with call to Posts.all()
54
- const sourcePosts = await Astro.glob(['../../**/*.md*']) as MarkdownInstance[];
53
+ const sourcePosts = Object.values(import.meta.glob('../../**/*.md*', { eager: true })) satisfies MarkdownInstance[];
55
54
 
56
55
  const data: CategoryData = { posts: [], categories: []};
57
56
 
@@ -50,7 +50,7 @@ type CacheData = {
50
50
  }
51
51
 
52
52
  export async function getData() {
53
- const sourcePosts = await Astro.glob(['../../**/*.md*']) satisfies MarkdownInstance[];
53
+ const sourcePosts = Object.values(import.meta.glob('../../**/*.md*', { eager: true })) satisfies MarkdownInstance[];
54
54
 
55
55
  const data: CacheData = { posts: [], tags: []};
56
56