@docusaurus/plugin-client-redirects 0.0.0-5990 → 0.0.0-5993

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.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  */
7
7
  import type { LoadContext, Plugin } from '@docusaurus/types';
8
8
  import type { PluginOptions, Options } from './options';
9
- export default function pluginClientRedirectsPages(context: LoadContext, options: PluginOptions): Plugin<void>;
9
+ export default function pluginClientRedirectsPages(context: LoadContext, options: PluginOptions): Plugin<void> | null;
10
10
  export { validateOptions } from './options';
11
11
  export type { PluginOptions, Options };
package/lib/index.js CHANGED
@@ -19,7 +19,7 @@ function pluginClientRedirectsPages(context, options) {
19
19
  const router = context.siteConfig.future.experimental_router;
20
20
  if (router === 'hash') {
21
21
  logger_1.default.warn(`${PluginName} does not support the Hash Router and will be disabled.`);
22
- return { name: PluginName };
22
+ return null;
23
23
  }
24
24
  return {
25
25
  name: PluginName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-client-redirects",
3
- "version": "0.0.0-5990",
3
+ "version": "0.0.0-5993",
4
4
  "description": "Client redirects plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,18 +18,18 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "0.0.0-5990",
22
- "@docusaurus/logger": "0.0.0-5990",
23
- "@docusaurus/utils": "0.0.0-5990",
24
- "@docusaurus/utils-common": "0.0.0-5990",
25
- "@docusaurus/utils-validation": "0.0.0-5990",
21
+ "@docusaurus/core": "0.0.0-5993",
22
+ "@docusaurus/logger": "0.0.0-5993",
23
+ "@docusaurus/utils": "0.0.0-5993",
24
+ "@docusaurus/utils-common": "0.0.0-5993",
25
+ "@docusaurus/utils-validation": "0.0.0-5993",
26
26
  "eta": "^2.2.0",
27
27
  "fs-extra": "^11.1.1",
28
28
  "lodash": "^4.17.21",
29
29
  "tslib": "^2.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@docusaurus/types": "0.0.0-5990"
32
+ "@docusaurus/types": "0.0.0-5993"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^18.0.0",
@@ -38,5 +38,5 @@
38
38
  "engines": {
39
39
  "node": ">=18.0"
40
40
  },
41
- "gitHead": "2de345260f1a6ff1e5f0f9e0b3c72b3cd49fc05a"
41
+ "gitHead": "0ad0160fc910803276cb4b5fe34254b7ec372bd4"
42
42
  }
package/src/index.ts CHANGED
@@ -21,7 +21,7 @@ const PluginName = 'docusaurus-plugin-client-redirects';
21
21
  export default function pluginClientRedirectsPages(
22
22
  context: LoadContext,
23
23
  options: PluginOptions,
24
- ): Plugin<void> {
24
+ ): Plugin<void> | null {
25
25
  const {trailingSlash} = context.siteConfig;
26
26
  const router = context.siteConfig.future.experimental_router;
27
27
 
@@ -29,7 +29,7 @@ export default function pluginClientRedirectsPages(
29
29
  logger.warn(
30
30
  `${PluginName} does not support the Hash Router and will be disabled.`,
31
31
  );
32
- return {name: PluginName};
32
+ return null;
33
33
  }
34
34
 
35
35
  return {