@docusaurus/plugin-content-blog 3.9.2-canary-6540 → 3.9.2-canary-6546

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-blog",
3
- "version": "3.9.2-canary-6540",
3
+ "version": "3.9.2-canary-6546",
4
4
  "description": "Blog plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-content-blog.d.ts",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@docusaurus/core": "3.9.2-canary-6540",
35
- "@docusaurus/logger": "3.9.2-canary-6540",
36
- "@docusaurus/mdx-loader": "3.9.2-canary-6540",
37
- "@docusaurus/theme-common": "3.9.2-canary-6540",
38
- "@docusaurus/types": "3.9.2-canary-6540",
39
- "@docusaurus/utils": "3.9.2-canary-6540",
40
- "@docusaurus/utils-common": "3.9.2-canary-6540",
41
- "@docusaurus/utils-validation": "3.9.2-canary-6540",
34
+ "@docusaurus/core": "3.9.2-canary-6546",
35
+ "@docusaurus/logger": "3.9.2-canary-6546",
36
+ "@docusaurus/mdx-loader": "3.9.2-canary-6546",
37
+ "@docusaurus/theme-common": "3.9.2-canary-6546",
38
+ "@docusaurus/types": "3.9.2-canary-6546",
39
+ "@docusaurus/utils": "3.9.2-canary-6546",
40
+ "@docusaurus/utils-common": "3.9.2-canary-6546",
41
+ "@docusaurus/utils-validation": "3.9.2-canary-6546",
42
42
  "cheerio": "1.0.0-rc.12",
43
43
  "combine-promises": "^1.1.0",
44
44
  "feed": "^4.2.2",
@@ -63,5 +63,5 @@
63
63
  "@total-typescript/shoehorn": "^0.1.2",
64
64
  "tree-node-cli": "^1.6.0"
65
65
  },
66
- "gitHead": "ea9c92d1468cd3e809c8b920253e16893d36d410"
66
+ "gitHead": "eb7beffb7d59fed123e29def7bb826c7cc5d9f8e"
67
67
  }
@@ -1,7 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- export {};
@@ -1,43 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { groupBlogSidebarItemsByYear } from './sidebarUtils';
8
- describe('groupBlogSidebarItemsByYear', () => {
9
- const post1 = {
10
- title: 'post1',
11
- permalink: '/post1',
12
- date: '2024-10-03',
13
- unlisted: false,
14
- };
15
- const post2 = {
16
- title: 'post2',
17
- permalink: '/post2',
18
- date: '2024-05-02',
19
- unlisted: false,
20
- };
21
- const post3 = {
22
- title: 'post3',
23
- permalink: '/post3',
24
- date: '2022-11-18',
25
- unlisted: false,
26
- };
27
- it('can group items by year', () => {
28
- const items = [post1, post2, post3];
29
- const entries = groupBlogSidebarItemsByYear(items);
30
- expect(entries).toEqual([
31
- ['2024', [post1, post2]],
32
- ['2022', [post3]],
33
- ]);
34
- });
35
- it('always returns result in descending chronological order', () => {
36
- const items = [post3, post1, post2];
37
- const entries = groupBlogSidebarItemsByYear(items);
38
- expect(entries).toEqual([
39
- ['2024', [post1, post2]],
40
- ['2022', [post3]],
41
- ]);
42
- });
43
- });