Skip to content

Commit 4e0cf0d

Browse files
committed
docs: add advanced guides and changelog for release 0.0.4
1 parent 9339d38 commit 4e0cf0d

9 files changed

Lines changed: 3477 additions & 2941 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install Dependencies
27+
run: npm ci
28+
29+
- name: Lint
30+
run: npm run lint
31+
32+
- name: Build
33+
run: npm run build
34+
35+
- name: Test
36+
run: npm test

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.0.4] - 2024-01-26
9+
10+
### Fixed
11+
- **SSR state leak**: Removed unsafe global state variables `renderedMetaTags` and `__REACT_META_TITLE_RENDERED__`.
12+
- **Schema Safety**: Added error boundary around `JSON.stringify` to prevent crashes from circular references in Schema data.
13+
- **Example App**: Fixed infinite loop in `SocialPreview` during development.
14+
15+
### Added
16+
- **Validation**: New `validateSchema` helper for better dev-time warnings.
17+
- **Infrastructure**: Added `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, and GitHub templates.
18+
19+
## [0.0.3] - 2024-01-25
20+
21+
### Fixed
22+
- **Social Preview**: Added `forceVisible` prop to allow usage in production/demo environments.
23+
24+
## [0.0.2] - 2024-01-25
25+
26+
### Fixed
27+
- **Infinite Loop**: Fixed critical infinite re-render loop in `SocialPreview`.
28+
29+
## [0.0.1] - 2024-01-25
30+
31+
### Added
32+
- Initial release of `react-meta-seo`.
33+
- Core components: `<Title>`, `<Meta>`, `<Link>`, `<Preload>`, `<Robots>`.
34+
- JSON-LD Support: `<Schema>` with presets for Product, Article.
35+
- CLI: Sitemap generator `react-meta-seo generate-sitemap`.

0 commit comments

Comments
 (0)