@xexr/blog-platform 0.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,61 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add automated semantic versioning and publishing workflow
8
+
9
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
10
+
11
+ ## [0.1.2] - 2025-01-06
12
+
13
+ ### 🚀 Features
14
+
15
+ - Theme inheritance via semantic Tailwind classes - blog now automatically inherits consumer's colors, fonts, and dark mode
16
+ - Guest author badges and bio display on article pages
17
+ - Improved version compatibility checking with proper semantic versioning
18
+ - Author bio passthrough in publish payload for rich author cards
19
+
20
+ ### 🔒 Security
21
+
22
+ - **SECURITY**: Changed default authentication to fail-closed (was fail-open) - all requests now rejected until `initBlogPlatform()` called
23
+ - **SECURITY**: Added authentication requirement to `/api/blog/version` endpoint (was unprotected)
24
+ - **SECURITY**: Added comprehensive security headers to all API endpoints (CORS on 401/OPTIONS responses)
25
+ - **SECURITY**: Added page-level security headers via middleware (CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy)
26
+
27
+ ### 🐛 Fixes
28
+
29
+ - Version endpoint now correctly reports both Bloggy and platform versions
30
+ - Incompatible versions now return HTTP 200 with compatibility details (was 409)
31
+ - Removed tone adjectives from UI and JSON-LD to avoid exposing writing style data
32
+
33
+ ### 📝 Documentation
34
+
35
+ - Added comprehensive publishing workflow guide
36
+ - Added theme customization and styling documentation
37
+
38
+ ## [0.1.1] - 2025-01-05
39
+
40
+ ### 💥 Breaking
41
+
42
+ - **BREAKING**: Replaced `next-mdx-remote` with `next-mdx-remote-client` for React 19 compatibility
43
+
44
+ ### 🐛 Fixes
45
+
46
+ - Fixed property mangling issue in build configuration that was breaking `dangerouslySetInnerHTML`
47
+ - Improved React 19 fiber reconciliation compatibility
48
+ - Enhanced error handling for MDX rendering
49
+
50
+ ## [0.1.0] - 2025-01-04
51
+
52
+ ### 🎉 Initial Release
53
+
54
+ - Blog page components with MDX rendering
55
+ - Publishing API with idempotency support
56
+ - Rate limiting with Upstash Redis
57
+ - SEO optimization features
58
+ - TypeScript declarations
59
+ - Drizzle storage adapter for persistence
60
+ - Authentication middleware
61
+ - CORS and security headers
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Poyzer Tech Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.