Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update swift-crypto to 3.9.1 and Introduce Explicit 'Any' for Protocol Types #14

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

vamsii777
Copy link
Contributor

This PR includes two major updates:

  1. Dependency Update

    • Swift Crypto dependency bumped from 3.8.1 to 3.9.1.
  2. Explicit 'any' Keyword Usage

    • Updated the codebase to use the explicit any keyword for existential protocol types, in line with Swift's evolution towards explicit type erasure.
    • Applied changes include:
      • Adding the any keyword to protocol conformance declarations.
      • Updating function signatures and property declarations to explicitly mark protocol types.
      • Modifying Package.swift with new Swift settings to accommodate the ExistentialAny feature.

    These changes enhance type safety and future-proof the codebase as implicit existential types will be deprecated in future Swift versions. No functional modifications were made.

Key Areas Updated:

  • OAuth2 core types and protocols.
  • Route handlers and middleware.
  • Token management and authentication logic.
  • Client and server validators.

vamsii777 and others added 2 commits November 10, 2024 12:15
Updates the Swift Crypto dependency to the latest version 3.9.1
This commit updates the codebase to use explicit 'any' keywords for existential types in accordance with Swift's evolution towards more explicit type erasure. Changes include:

- Add 'any' keyword to protocol conformance declarations across the codebase
- Update function signatures to explicitly mark protocol types with 'any'
- Modify property declarations to include 'any' for protocol types
- Update Package.swift with new Swift settings including ExistentialAny feature

The changes improve type safety and prepare the codebase for future Swift versions where implicit existential types will be deprecated. No functional changes were made to the underlying implementation.

Key areas updated:
- OAuth2 core types and protocols
- Route handlers and middleware
- Token management and authentication
- Client and server validators
@vamsii777 vamsii777 merged commit 4d86fbf into 1.x.x Nov 10, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant