You've already forked wc-licensed-product-client
Add update-check endpoint documentation (v0.2.2)
- Add /update-check endpoint documentation to server-implementation.md - Add product_not_found error code to error codes table - Add handleUpdateCheck() handler example in WordPress plugin - Add findProduct() method stub for product lookups - Verified client implementation aligns with server documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
20
CLAUDE.md
20
CLAUDE.md
@@ -257,3 +257,23 @@ When editing CLAUDE.md or other markdown files, follow these rules to avoid lint
|
||||
- `UpdateInfo` DTO supports both `download_url` and `package` fields (WordPress compatibility)
|
||||
- Package hash format uses `sha256:hexstring` prefix for integrity verification
|
||||
- StringEncoder can generate encoded constants for obfuscated endpoint names
|
||||
|
||||
### 2026-01-28 - Version 0.2.2 (Server Documentation Alignment)
|
||||
|
||||
**Completed:**
|
||||
|
||||
- Fetched and compared remote server-implementation.md against client implementation
|
||||
- Verified client signature algorithm matches server exactly (HKDF, recursive key sorting, JSON flags)
|
||||
- Added `/update-check` endpoint documentation to `docs/server-implementation.md`
|
||||
- Added `product_not_found` error code to error codes table
|
||||
- Added `handleUpdateCheck()` handler example in WordPress plugin implementation
|
||||
- Added `findProduct()` method stub for product lookups
|
||||
- Added `getUpdateCheckArgs()` for request validation
|
||||
- All 66 tests pass
|
||||
|
||||
**Learnings:**
|
||||
|
||||
- Client implementation was already fully aligned with server documentation
|
||||
- Server-implementation.md needed update-check endpoint documentation (added in v0.2.1 client but not server docs)
|
||||
- Documentation alignment is as important as code alignment for maintainability
|
||||
- Remote server docs fetched successfully via WebFetch tool
|
||||
|
||||
Reference in New Issue
Block a user