Skip to content

Release/v0.2.1 - #7

Merged
dieselxxx merged 2 commits into
masterfrom
release/v0.2.1
Nov 3, 2026
Merged

dieselxxx merged 2 commits into
masterfrom
release/v0.2.1

Conversation

@dieselxxx

Copy link
Copy Markdown
Contributor

🔖 Release Pull Request

Version

  • Release version: v0.2.1

Related Branches

  • Release branch: `release/v0.2.1
  • Target branch:
    • develop
    • master

Description

Introduce Origin, InvalidOriginException, and default port resolution for URI schemes

Release Overview

Pre-release Verification

  • Changelog completed:
    • Yes
  • Documentation updated:
    • Yes

Testing & Validation

System Validation

  • All unit tests pass
  • All integration tests pass
  • Core modules verified
  • Adapter modules verified
  • CI/CD pipelines are successful

Release Readiness

  • No critical bugs open
  • No blocking issues remaining
  • Performance checks completed

Versioning

  • Semantic Versioning compliance:

    • Major
    • Minor
    • Patch
  • Tagging:

    • Release tag v0.2.1 will be created

Deployment

  • Target environment:

    • Staging
    • Production
  • Deployment notes:

    • ...

Checklist

  • CHANGELOG.md updated
  • README.md updated (if needed)
  • Version bumped correctly
  • All tests passing
  • CI/CD pipelines green
  • Release branch merged correctly
  • Release tag created

Risks / Impact

  • Risk level:
    • None
    • Low
    • Medium
    • High

Potential Risks

  • Breaking changes:

  • Deployment risks:

  • Rollback considerations:

Notes

Release Notes

Deployment Instructions

Known Issues

danijelgalic and others added 2 commits November 3, 2026 14:29
…tion for URI schemes

- **New Features**:
  - Added `Origin` class for immutable tuple-based origin representation:
    - Encapsulates `scheme`, `host`, and `port` components.
    - Supports serialization, comparison, and validation of origins.
    - Enables creation from existing URIs via `Origin::fromUri()`.
  - Introduced `InvalidOriginException` for invalid origin component handling.
  - Extended `KnownScheme` with `defaultPort()` for standard network port resolution.

- **Enhancements**:
  - Added `Scheme::known()` to map schemes to `KnownScheme` enums for improved type safety.
  - Enhanced `Origin` with robust constructor validation and normalization logic:
    - Ensures default ports are normalized.
    - Adheres to tuple-based origin principles by excluding user info, path, query, and fragments from identity.

- **Rationale**:
  - Establishes foundational support for origin handling in alignment with web security models and RFC 6454.
  - Simplifies port resolution for URI schemes while maintaining strict validation and immutability principles.
@dieselxxx dieselxxx self-assigned this Nov 3, 2026
@dieselxxx dieselxxx added the type: Maintenance Ongoing upkeep like dependencies, compatibility, and system health. label Nov 3, 2026
@dieselxxx dieselxxx moved this to Done in 🚩 Triage Nov 3, 2026
@dieselxxx
dieselxxx marked this pull request as ready for review November 3, 2026 13:50
@dieselxxx
dieselxxx requested a review from a team as a code owner November 3, 2026 13:50
@dieselxxx
dieselxxx merged commit 75c91ba into master Nov 3, 2026
9 checks passed
@dieselxxx
dieselxxx deleted the release/v0.2.1 branch November 3, 2026 13:50
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 74 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Uri/Origin.php 0.00% 57 Missing ⚠️
src/Uri/KnownScheme.php 0.00% 15 Missing ⚠️
src/Uri/Component/Scheme.php 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Maintenance Ongoing upkeep like dependencies, compatibility, and system health.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants