@docusaurus/plugin-rsdoctor 3.10.2 → 4.0.0-canary-6808

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.
Files changed (2) hide show
  1. package/package.json +11 -11
  2. package/src/index.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-rsdoctor",
3
- "version": "3.10.2",
3
+ "version": "4.0.0-canary-6808",
4
4
  "description": "Rsdoctor plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,19 +18,19 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "3.10.2",
22
- "@docusaurus/types": "3.10.2",
23
- "@docusaurus/utils-validation": "3.10.2",
24
- "@rsdoctor/rspack-plugin": "^0.4.6",
25
- "@rsdoctor/webpack-plugin": "^0.4.6",
26
- "tslib": "^2.6.0"
21
+ "@docusaurus/core": "4.0.0-canary-6808",
22
+ "@docusaurus/types": "4.0.0-canary-6808",
23
+ "@docusaurus/utils-validation": "4.0.0-canary-6808",
24
+ "@rsdoctor/rspack-plugin": "^1.6.3",
25
+ "@rsdoctor/webpack-plugin": "^1.6.3",
26
+ "tslib": "^2.8.1"
27
27
  },
28
28
  "peerDependencies": {
29
- "react": "^18.0.0 || ^19.0.0",
30
- "react-dom": "^18.0.0 || ^19.0.0"
29
+ "react": "^19.3.0",
30
+ "react-dom": "^19.3.0"
31
31
  },
32
32
  "engines": {
33
- "node": ">=20.0"
33
+ "node": ">=24.14"
34
34
  },
35
- "gitHead": "f37f9035584917a97a260b91fc2842cba4f8b94f"
35
+ "gitHead": "91e445730a91fbe20dd5fefae560303a0c655aa7"
36
36
  }
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
 
8
8
  import {RsdoctorRspackMultiplePlugin} from '@rsdoctor/rspack-plugin';
9
9
  import {RsdoctorWebpackMultiplePlugin} from '@rsdoctor/webpack-plugin';
10
+ import type {ConfigureWebpackResult} from '@docusaurus/types/src/plugin';
10
11
  import type {CurrentBundler, LoadContext, Plugin} from '@docusaurus/types';
11
12
  import type {PluginOptions, Options} from './options';
12
13
 
@@ -24,10 +25,13 @@ function createRsdoctorBundlerPlugin({
24
25
  ? RsdoctorRspackMultiplePlugin
25
26
  : RsdoctorWebpackMultiplePlugin;
26
27
 
28
+ // Little type incompatibility?
29
+ type WebpackPlugin = NonNullable<ConfigureWebpackResult['plugins']>[number];
30
+
27
31
  return new RsdoctorPlugin({
28
32
  name: isServer ? 'server' : 'client',
29
33
  ...options.rsdoctorOptions,
30
- });
34
+ }) as WebpackPlugin;
31
35
  }
32
36
 
33
37
  export default (async function pluginRsdoctor(