@docusaurus/plugin-content-blog 3.9.2-canary-6444 → 3.9.2-canary-6445

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/lib/index.js CHANGED
@@ -41,7 +41,7 @@ async function pluginContentBlog(context, options) {
41
41
  })
42
42
  : undefined,
43
43
  };
44
- const pluginId = options.id ?? utils_1.DEFAULT_PLUGIN_ID;
44
+ const pluginId = options.id;
45
45
  const pluginDataDirRoot = path_1.default.join(generatedFilesDir, PluginName);
46
46
  const dataDir = path_1.default.join(pluginDataDirRoot, pluginId);
47
47
  // TODO Docusaurus v4 breaking change
package/lib/options.js CHANGED
@@ -13,6 +13,7 @@ const path_1 = tslib_1.__importDefault(require("path"));
13
13
  const utils_validation_1 = require("@docusaurus/utils-validation");
14
14
  const utils_1 = require("@docusaurus/utils");
15
15
  exports.DEFAULT_OPTIONS = {
16
+ id: utils_1.DEFAULT_PLUGIN_ID,
16
17
  feedOptions: {
17
18
  type: ['rss', 'atom'],
18
19
  copyright: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-blog",
3
- "version": "3.9.2-canary-6444",
3
+ "version": "3.9.2-canary-6445",
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-6444",
35
- "@docusaurus/logger": "3.9.2-canary-6444",
36
- "@docusaurus/mdx-loader": "3.9.2-canary-6444",
37
- "@docusaurus/theme-common": "3.9.2-canary-6444",
38
- "@docusaurus/types": "3.9.2-canary-6444",
39
- "@docusaurus/utils": "3.9.2-canary-6444",
40
- "@docusaurus/utils-common": "3.9.2-canary-6444",
41
- "@docusaurus/utils-validation": "3.9.2-canary-6444",
34
+ "@docusaurus/core": "3.9.2-canary-6445",
35
+ "@docusaurus/logger": "3.9.2-canary-6445",
36
+ "@docusaurus/mdx-loader": "3.9.2-canary-6445",
37
+ "@docusaurus/theme-common": "3.9.2-canary-6445",
38
+ "@docusaurus/types": "3.9.2-canary-6445",
39
+ "@docusaurus/utils": "3.9.2-canary-6445",
40
+ "@docusaurus/utils-common": "3.9.2-canary-6445",
41
+ "@docusaurus/utils-validation": "3.9.2-canary-6445",
42
42
  "cheerio": "1.0.0-rc.12",
43
43
  "feed": "^4.2.2",
44
44
  "fs-extra": "^11.1.1",
@@ -62,5 +62,5 @@
62
62
  "@total-typescript/shoehorn": "^0.1.2",
63
63
  "tree-node-cli": "^1.6.0"
64
64
  },
65
- "gitHead": "9cdcad8d8b49a44944612ec735b8957cfd11bd40"
65
+ "gitHead": "ce0bfb61b6924d2bb866fa96ff27a73d93af235e"
66
66
  }
package/src/index.ts CHANGED
@@ -17,7 +17,6 @@ import {
17
17
  createAbsoluteFilePathMatcher,
18
18
  getContentPathList,
19
19
  getDataFilePath,
20
- DEFAULT_PLUGIN_ID,
21
20
  resolveMarkdownLinkPathname,
22
21
  getLocaleConfig,
23
22
  } from '@docusaurus/utils';
@@ -83,7 +82,7 @@ export default async function pluginContentBlog(
83
82
  })
84
83
  : undefined,
85
84
  };
86
- const pluginId = options.id ?? DEFAULT_PLUGIN_ID;
85
+ const pluginId = options.id;
87
86
 
88
87
  const pluginDataDirRoot = path.join(generatedFilesDir, PluginName);
89
88
  const dataDir = path.join(pluginDataDirRoot, pluginId);
package/src/options.ts CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  RouteBasePathSchema,
16
16
  URISchema,
17
17
  } from '@docusaurus/utils-validation';
18
- import {GlobExcludeDefault} from '@docusaurus/utils';
18
+ import {DEFAULT_PLUGIN_ID, GlobExcludeDefault} from '@docusaurus/utils';
19
19
  import type {
20
20
  PluginOptions,
21
21
  Options,
@@ -25,6 +25,7 @@ import type {
25
25
  import type {OptionValidationContext} from '@docusaurus/types';
26
26
 
27
27
  export const DEFAULT_OPTIONS: PluginOptions = {
28
+ id: DEFAULT_PLUGIN_ID,
28
29
  feedOptions: {
29
30
  type: ['rss', 'atom'],
30
31
  copyright: '',
@@ -431,7 +431,7 @@ declare module '@docusaurus/plugin-content-blog' {
431
431
  export type PluginOptions = MDXOptions &
432
432
  TagsPluginOptions & {
433
433
  /** Plugin ID. */
434
- id?: string;
434
+ id: string;
435
435
  /**
436
436
  * Path to the blog content directory on the file system, relative to site
437
437
  * directory.
package/src/routes.ts CHANGED
@@ -71,7 +71,7 @@ export async function buildAllRoutes({
71
71
  postsPerPage,
72
72
  pageBasePath,
73
73
  } = options;
74
- const pluginId = options.id!;
74
+ const pluginId = options.id;
75
75
  const {createData} = actions;
76
76
  const {
77
77
  blogTitle,