@docusaurus/theme-classic 3.0.0-rc.0 → 3.0.0-rc.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.
@@ -44,7 +44,7 @@ function YearsSection({years}) {
44
44
  );
45
45
  }
46
46
  function listPostsByYears(blogPosts) {
47
- const postsByYear = blogPosts.reduceRight((posts, post) => {
47
+ const postsByYear = blogPosts.reduce((posts, post) => {
48
48
  const year = post.metadata.date.split('-')[0];
49
49
  const yearPosts = posts.get(year) ?? [];
50
50
  return posts.set(year, [post, ...yearPosts]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "3.0.0-rc.0",
3
+ "version": "3.0.0-rc.1",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -20,19 +20,19 @@
20
20
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@docusaurus/core": "3.0.0-rc.0",
24
- "@docusaurus/mdx-loader": "3.0.0-rc.0",
25
- "@docusaurus/module-type-aliases": "3.0.0-rc.0",
26
- "@docusaurus/plugin-content-blog": "3.0.0-rc.0",
27
- "@docusaurus/plugin-content-docs": "3.0.0-rc.0",
28
- "@docusaurus/plugin-content-pages": "3.0.0-rc.0",
29
- "@docusaurus/theme-common": "3.0.0-rc.0",
30
- "@docusaurus/theme-translations": "3.0.0-rc.0",
31
- "@docusaurus/types": "3.0.0-rc.0",
32
- "@docusaurus/utils": "3.0.0-rc.0",
33
- "@docusaurus/utils-common": "3.0.0-rc.0",
34
- "@docusaurus/utils-validation": "3.0.0-rc.0",
35
- "@mdx-js/react": "^2.1.5",
23
+ "@docusaurus/core": "3.0.0-rc.1",
24
+ "@docusaurus/mdx-loader": "3.0.0-rc.1",
25
+ "@docusaurus/module-type-aliases": "3.0.0-rc.1",
26
+ "@docusaurus/plugin-content-blog": "3.0.0-rc.1",
27
+ "@docusaurus/plugin-content-docs": "3.0.0-rc.1",
28
+ "@docusaurus/plugin-content-pages": "3.0.0-rc.1",
29
+ "@docusaurus/theme-common": "3.0.0-rc.1",
30
+ "@docusaurus/theme-translations": "3.0.0-rc.1",
31
+ "@docusaurus/types": "3.0.0-rc.1",
32
+ "@docusaurus/utils": "3.0.0-rc.1",
33
+ "@docusaurus/utils-common": "3.0.0-rc.1",
34
+ "@docusaurus/utils-validation": "3.0.0-rc.1",
35
+ "@mdx-js/react": "^3.0.0",
36
36
  "clsx": "^1.2.1",
37
37
  "copy-text-to-clipboard": "^3.2.0",
38
38
  "infima": "0.2.0-alpha.43",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=18.0"
64
64
  },
65
- "gitHead": "e66dfe04d2972edce66f431908470c61340f8ffc"
65
+ "gitHead": "a51cc6fd7660d47ea08349f723cec9c017af0b4e"
66
66
  }
@@ -54,7 +54,7 @@ function YearsSection({years}: {years: YearProp[]}) {
54
54
  }
55
55
 
56
56
  function listPostsByYears(blogPosts: readonly ArchiveBlogPost[]): YearProp[] {
57
- const postsByYear = blogPosts.reduceRight((posts, post) => {
57
+ const postsByYear = blogPosts.reduce((posts, post) => {
58
58
  const year = post.metadata.date.split('-')[0]!;
59
59
  const yearPosts = posts.get(year) ?? [];
60
60
  return posts.set(year, [post, ...yearPosts]);