@rspress/plugin-client-redirects 2.0.0-beta.9 → 2.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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RspressPlugin } from '@rspress/shared';
1
+ import type { RspressPlugin } from '@rspress/core';
2
2
 
3
3
  /**
4
4
  * The plugin is used to add client redirect feature to the doc site.
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";
2
2
  import { dirname as __webpack_dirname__ } from "node:path";
3
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
+ import node_path from "node:path";
4
4
  var src_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
5
5
  function pluginClientRedirects(options = {}) {
6
6
  return {
7
7
  name: '@rspress/plugin-client-redirects',
8
8
  globalUIComponents: [
9
9
  [
10
- __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(src_dirname, '../static/Redirect.tsx'),
10
+ node_path.join(src_dirname, '../static/Redirect.tsx'),
11
11
  options
12
12
  ]
13
13
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-client-redirects",
3
- "version": "2.0.0-beta.9",
3
+ "version": "2.0.0-rc.1",
4
4
  "description": "A plugin for rspress to client redirect in docs.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -28,29 +28,25 @@
28
28
  "dist",
29
29
  "static"
30
30
  ],
31
- "dependencies": {
32
- "@rspress/shared": "2.0.0-beta.9"
33
- },
34
31
  "devDependencies": {
35
- "@microsoft/api-extractor": "^7.52.8",
36
- "@rslib/core": "0.8.0",
32
+ "@microsoft/api-extractor": "^7.55.0",
33
+ "@rslib/core": "0.17.2",
37
34
  "@types/node": "^22.8.1",
38
- "@types/react": "^18.3.22",
39
- "@types/react-dom": "^18.3.7",
40
- "react": "^19.1.0",
41
- "rsbuild-plugin-publint": "^0.3.2",
35
+ "@types/react": "^19.2.5",
36
+ "@types/react-dom": "^19.2.3",
37
+ "react": "^19.2.0",
38
+ "rsbuild-plugin-publint": "^0.3.3",
42
39
  "typescript": "^5.8.2",
43
40
  "@rspress/config": "1.0.0"
44
41
  },
45
42
  "peerDependencies": {
46
- "@rspress/runtime": "^2.0.0-beta.9"
43
+ "@rspress/core": "^2.0.0-rc.1"
47
44
  },
48
45
  "engines": {
49
46
  "node": ">=18.0.0"
50
47
  },
51
48
  "publishConfig": {
52
49
  "access": "public",
53
- "provenance": true,
54
50
  "registry": "https://registry.npmjs.org/"
55
51
  },
56
52
  "scripts": {
@@ -1,5 +1,4 @@
1
- import { useLocation } from '@rspress/runtime';
2
- import { isExternalUrl } from '@rspress/shared';
1
+ import { isExternalUrl, useLocation } from '@rspress/core/runtime';
3
2
  import { useEffect, useMemo } from 'react';
4
3
 
5
4
  // these are types copied from src/types.ts