@rspress/plugin-rss 2.0.0-beta.3 → 2.0.0-beta.4

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": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "A plugin for rss generation for rspress",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -25,19 +25,19 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "feed": "^4.2.2",
28
- "@rspress/shared": "2.0.0-beta.3"
28
+ "@rspress/shared": "2.0.0-beta.4"
29
29
  },
30
30
  "devDependencies": {
31
- "@rslib/core": "0.6.7",
31
+ "@rslib/core": "0.6.8",
32
32
  "@types/node": "^18.11.17",
33
- "@types/react": "^18.3.20",
33
+ "@types/react": "^18.3.21",
34
34
  "react": "^19.1.0",
35
35
  "rsbuild-plugin-publint": "^0.3.1",
36
36
  "typescript": "^5.8.2",
37
- "@rspress/runtime": "2.0.0-beta.3"
37
+ "@rspress/runtime": "2.0.0-beta.4"
38
38
  },
39
39
  "peerDependencies": {
40
- "rspress": "^2.0.0-beta.3"
40
+ "rspress": "^2.0.0-beta.4"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=18.0.0"
@@ -1,14 +1,14 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
 
3
3
  import type { LinkHTMLAttributes } from 'react';
4
- import { Helmet, usePageData } from 'rspress/runtime';
4
+ import { Head, usePageData } from 'rspress/runtime';
5
5
 
6
6
  export default function FeedsAnnotations() {
7
7
  const { page } = usePageData();
8
8
  const feeds = page.feeds || [];
9
9
 
10
10
  return (
11
- <Helmet>
11
+ <Head>
12
12
  {feeds.map(({ language, url, mime }) => {
13
13
  const props: LinkHTMLAttributes<HTMLLinkElement> = {
14
14
  rel: 'alternate',
@@ -21,6 +21,6 @@ export default function FeedsAnnotations() {
21
21
  // biome-ignore lint/correctness/useJsxKeyInIterable: no key props
22
22
  return <link {...props} />;
23
23
  })}
24
- </Helmet>
24
+ </Head>
25
25
  );
26
26
  }