registry/tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 7b211a46d6
feat: implement server versioning approach with semantic versioning support (#296)
This implements the versioning approach agreed upon in issue #158:

## Key Changes

### Documentation
- Added comprehensive versioning guide (docs/versioning.md)
- Updated FAQ with versioning guidance and best practices 
- Enhanced schema description with SHOULD recommendations

### Schema Updates
- Added 255-character limit for version strings in schema.json
- Enhanced version field description with semantic versioning guidance

### Implementation 
- New isSemanticVersion() function for proper semver detection
- Enhanced compareSemanticVersions() with prerelease support
- Implemented compareVersions() strategy:
  * Both semver: use semantic comparison
  * Neither semver: use timestamp comparison
  * Mixed: semver versions always take precedence
- Updated publish logic to determine "latest" using new strategy
- Added version length validation (255 char max)

### Versioning Strategy
1. Version MUST be string up to 255 characters
2. SHOULD use semantic versioning for predictable ordering
3. SHOULD align with package versions to reduce confusion 
4. MAY use prerelease labels for registry-specific versions
5. Registry attempts semver parsing, falls back to timestamp ordering
6. Clients SHOULD follow same comparison logic

Resolves #158

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: adam jones <domdomegg@users.noreply.github.com>
2025-08-26 14:55:38 +01:00
..
migrate-seed Allow for vendor extensions on servers (#298) 2025-08-23 09:59:03 +01:00
publisher feat: implement server versioning approach with semantic versioning support (#296) 2025-08-26 14:55:38 +01:00
validate-examples Allow for vendor extensions on servers (#298) 2025-08-23 09:59:03 +01:00
validate-schemas Simplify seed data configuration by removing command line flags and renaming environment variable (#175) 2025-08-08 13:42:16 +01:00
validate-examples.sh Add validation tools for server.json schemas and examples (#176) 2025-07-15 11:32:54 -07:00
validate-schemas.sh Add validation tools for server.json schemas and examples (#176) 2025-07-15 11:32:54 -07:00