Skip to content

Commit 3680455

Browse files
committed
chore: finalize repository state after v0.0.4 release and deployment
1 parent 133a1dd commit 3680455

File tree

9 files changed

+462
-25
lines changed

9 files changed

+462
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
- **JSON-LD**: Typed Schema.org components with **Dev Validation**.
2020
- **Social Preview**: Built-in development overlay.
2121

22-
## 🎯 Live Demo
22+
## 🎯 Website
2323

24-
**[See the Social Preview in action ](https://react-meta-seo-demo.vercel.app)**
24+
**[Visit the Website & Documentation ](https://react-meta-seo.vercel.app)**
2525

2626
Deploy the `example/` directory to see all features working live.
2727

SECURITY.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| 0.0.x | :white_check_mark: |
8+
9+
## Reporting a Vulnerability
10+
11+
Use this section to tell people how to report a vulnerability.
12+
13+
Tell them where to go, how often they can expect to get an update on a
14+
reported vulnerability, what to expect if the vulnerability is accepted or
15+
rejected, etc.
16+
17+
Please report vulnerabilities via email to ralegankaratharva@gmail.com.
18+
We aim to acknowledge receipt within 48 hours.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-meta-seo",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "The definitive SEO library for React 19. Zero-runtime overhead, compatible with RSC, type-safe JSON-LD, Sitemap generator, and Social Preview debugger.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -64,7 +64,7 @@
6464
"bugs": {
6565
"url": "https://github.com/atharva262005/react-meta/issues"
6666
},
67-
"homepage": "https://react-meta-seo-demo.vercel.app",
67+
"homepage": "https://react-meta-seo.vercel.app",
6868
"peerDependencies": {
6969
"react": "^19.0.0",
7070
"react-dom": "^19.0.0",

src/components/SocialPreview/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import { useSyncExternalStore, useState, memo } from 'react';
2+
import { useSyncExternalStore, useState, memo, useEffect } from 'react';
33

44
interface PreviewData {
55
title: string;
@@ -84,8 +84,18 @@ export const SocialPreview = memo(function SocialPreview({ forceVisible }: Socia
8484
getMetaSnapshot // Server snapshot (same as client for this use case)
8585
);
8686

87+
const [isMounted, setIsMounted] = useState(false);
8788
const [activeTab, setActiveTab] = useState<'google' | 'twitter'>('google');
8889

90+
// Fix Hydration Mismatch: Only render on client via useEffect
91+
useEffect(() => {
92+
setIsMounted(true);
93+
}, []);
94+
95+
if (!isMounted) {
96+
return null;
97+
}
98+
8999
return (
90100
<div className="social-preview-overlay">
91101
<div className="social-preview-container">

website/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ yarn-error.log*
3939
# typescript
4040
*.tsbuildinfo
4141
next-env.d.ts
42+
43+
.vercel

website/lib/docs.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)