@rspress/plugin-rss 2.0.0-beta.20 → 2.0.0-beta.21

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
@@ -2,9 +2,9 @@ import type { Author } from 'feed';
2
2
  import type { Feed } from 'feed';
3
3
  import type { FeedOptions } from 'feed';
4
4
  import type { Item } from 'feed';
5
- import type { PageIndexInfo } from '@rspress/shared';
6
- import type { RspressPlugin } from '@rspress/shared';
7
- import type { UserConfig } from '@rspress/shared';
5
+ import type { PageIndexInfo } from 'rspress/core';
6
+ import type { RspressPlugin } from 'rspress/core';
7
+ import type { UserConfig } from 'rspress/core';
8
8
 
9
9
  export declare function createFeed(options: Omit<FeedChannel, 'test' | 'item' | 'output'> & {
10
10
  item?: unknown;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import node_path, { dirname } from "node:path";
2
2
  import { resolve } from "node:url";
3
- import { getIconUrlPath } from "@rspress/shared/node-utils";
4
3
  import { Feed } from "feed";
4
+ import { getIconUrlPath } from "rspress/core";
5
5
  import { promises } from "node:fs";
6
6
  function notNullish(n) {
7
7
  return null != n;
package/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import type { PageFeedData } from './dist'
2
+
3
+ declare module 'rspress/core' {
4
+ interface PageIndexInfo {
5
+ feeds?: PageFeedData[];
6
+ }
7
+ }
8
+
9
+ export * from './dist'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-rss",
3
- "version": "2.0.0-beta.20",
3
+ "version": "2.0.0-beta.21",
4
4
  "description": "A plugin for rss generation for rspress",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -12,32 +12,31 @@
12
12
  "type": "module",
13
13
  "exports": {
14
14
  ".": {
15
- "types": "./dist/index.d.ts",
15
+ "types": "./index.d.ts",
16
16
  "default": "./dist/index.js"
17
17
  },
18
18
  "./FeedsAnnotations": "./static/global-components/FeedsAnnotations.tsx"
19
19
  },
20
20
  "module": "./dist/index.js",
21
- "types": "./dist/index.d.ts",
21
+ "types": "./index.d.ts",
22
22
  "files": [
23
23
  "dist",
24
- "static"
24
+ "static",
25
+ "index.d.ts"
25
26
  ],
26
27
  "dependencies": {
27
- "feed": "^4.2.2",
28
- "@rspress/shared": "2.0.0-beta.20"
28
+ "feed": "^4.2.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@rslib/core": "0.10.4",
31
+ "@rslib/core": "0.10.5",
32
32
  "@types/node": "^22.8.1",
33
33
  "@types/react": "^19.1.8",
34
34
  "react": "^19.1.0",
35
35
  "rsbuild-plugin-publint": "^0.3.2",
36
- "typescript": "^5.8.2",
37
- "@rspress/runtime": "2.0.0-beta.20"
36
+ "typescript": "^5.8.2"
38
37
  },
39
38
  "peerDependencies": {
40
- "rspress": "^2.0.0-beta.20"
39
+ "rspress": "^2.0.0-beta.21"
41
40
  },
42
41
  "engines": {
43
42
  "node": ">=18.0.0"