@rspress/runtime 1.14.0 → 1.15.0

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/NoSSR.js CHANGED
@@ -8,9 +8,8 @@ function NoSSR(props) {
8
8
  }, []);
9
9
  if (!isMounted) {
10
10
  return null;
11
- } else {
12
- return /* @__PURE__ */ jsx(Fragment, { children });
13
11
  }
12
+ return /* @__PURE__ */ jsx(Fragment, { children });
14
13
  }
15
14
  export {
16
15
  NoSSR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/runtime",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "The Runtime of Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -29,11 +29,11 @@
29
29
  "react-dom": "^18.2.0",
30
30
  "react-helmet-async": "^1.3.0",
31
31
  "react-router-dom": "^6.8.1",
32
- "@rspress/shared": "1.14.0"
32
+ "@rspress/shared": "1.15.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@modern-js/tsconfig": "2.48.0",
36
- "@modern-js/types": "2.48.0",
35
+ "@modern-js/tsconfig": "2.48.1",
36
+ "@modern-js/types": "2.48.1",
37
37
  "@types/jest": "^26.0.9",
38
38
  "@types/react": "^18",
39
39
  "@types/react-dom": "^18",
package/src/NoSSR.tsx CHANGED
@@ -10,7 +10,7 @@ export function NoSSR(props: { children: React.ReactNode }) {
10
10
 
11
11
  if (!isMounted) {
12
12
  return null;
13
- } else {
14
- return <>{children}</>;
15
13
  }
14
+
15
+ return <>{children}</>;
16
16
  }