@rspress/plugin-rss 0.0.0-next-20240407073144 → 0.0.0-next-20240408090346

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-rss",
3
- "version": "0.0.0-next-20240407073144",
3
+ "version": "0.0.0-next-20240408090346",
4
4
  "description": "A plugin for rss generation for rspress",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  "module": "./dist/index.mjs",
16
16
  "exports": {
17
17
  ".": {
18
- "import": "./dist/index.mjs",
19
18
  "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.mjs",
20
20
  "default": "./dist/index.cjs"
21
21
  },
22
22
  "./FeedsAnnotations": "./static/global-components/FeedsAnnotations"
@@ -25,20 +25,19 @@
25
25
  "node": ">=14.17.6"
26
26
  },
27
27
  "dependencies": {
28
- "feed": "^4.2.2"
28
+ "feed": "^4.2.2",
29
+ "@rspress/shared": "0.0.0-next-20240408090346"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@types/node": "^18.11.17",
32
33
  "@types/react": "^18",
33
34
  "react": "^18",
34
35
  "typescript": "^5",
35
- "@rspress/shared": "0.0.0-next-20240407073144",
36
- "@rspress/runtime": "0.0.0-next-20240407073144"
36
+ "@rspress/runtime": "0.0.0-next-20240408090346"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=17.0.0",
40
- "@types/react": ">=17.0.0",
41
- "@rspress/runtime": "0.0.0-next-20240407073144"
40
+ "rspress": "0.0.0-next-20240408090346"
42
41
  },
43
42
  "files": [
44
43
  "dist",
@@ -53,15 +52,6 @@
53
52
  "dev": "modern build -w",
54
53
  "build": "modern build",
55
54
  "reset": "rimraf ./**/node_modules",
56
- "lint": "modern lint",
57
- "change": "modern change",
58
- "bump": "modern bump",
59
- "pre": "modern pre",
60
- "change-status": "modern change-status",
61
- "gen-release-note": "modern gen-release-note",
62
- "release": "modern release",
63
- "new": "modern new",
64
- "test": "vitest run --passWithNoTests",
65
- "upgrade": "modern upgrade"
55
+ "test": "vitest run --passWithNoTests"
66
56
  }
67
57
  }
@@ -1,5 +1,5 @@
1
1
  import type { PageFeedData } from '@rspress/plugin-rss';
2
- import { Helmet, usePageData } from '@rspress/runtime';
2
+ import { Helmet, usePageData } from 'rspress/runtime';
3
3
  import { LinkHTMLAttributes } from 'react';
4
4
 
5
5
  export default function FeedsAnnotations() {
@@ -10,7 +10,7 @@ export default function FeedsAnnotations() {
10
10
  <Helmet>
11
11
  {feeds.map(({ language, url, mime }) => {
12
12
  const props: LinkHTMLAttributes<HTMLLinkElement> = {
13
- rel: 'alternative',
13
+ rel: 'alternate',
14
14
  type: mime,
15
15
  href: url,
16
16
  };