@rspress/plugin-client-redirects 2.0.0-beta.21 → 2.0.0-beta.22

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/core';
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-client-redirects",
3
- "version": "2.0.0-beta.21",
3
+ "version": "2.0.0-beta.22",
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": {
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "devDependencies": {
32
32
  "@microsoft/api-extractor": "^7.52.8",
33
- "@rslib/core": "0.10.5",
33
+ "@rslib/core": "0.10.6",
34
34
  "@types/node": "^22.8.1",
35
35
  "@types/react": "^19.1.8",
36
36
  "@types/react-dom": "^19.1.6",
@@ -40,7 +40,7 @@
40
40
  "@rspress/config": "1.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "rspress": "^2.0.0-beta.21"
43
+ "@rspress/core": "^2.0.0-beta.22"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=18.0.0"
@@ -1,6 +1,6 @@
1
+ import { isExternalUrl } from '@rspress/core/runtime';
2
+ import { useLocation } from '@rspress/core/runtime';
1
3
  import { useEffect, useMemo } from 'react';
2
- import { isExternalUrl } from 'rspress/runtime';
3
- import { useLocation } from 'rspress/runtime';
4
4
 
5
5
  // these are types copied from src/types.ts
6
6
  type RedirectRule = {