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

Supported Dart 2, HttpStatusCode Enhancements, CI/Coverage Integration & Deprecation of Uppercase Constants #1

Merged
merged 8 commits into from
Feb 13, 2024

Conversation

tech-andgar
Copy link
Contributor

Added

  • HttpStatusCode 103 earlyHints feature for more nuanced HTTP status code handling.
  • New checks for different categories of HTTP status codes: isInformationHttpStatusCode, isSuccessfulHttpStatusCode, isRedirectHttpStatusCode, isClientErrorHttpStatusCode, isServerErrorHttpStatusCode.
  • GitHub Actions CI integration to streamline development workflows.
  • Transition from codecov.io to Coveralls for enhanced code coverage analysis.
  • Repository badges for quick access to project status indicators.

Changed

  • HttpStatus Class Update:
    • New description Field: Added a required description field to provide more context around HTTP status codes.
    • Named Parameters: Transitioned from positional to named parameters in the constructor to improve code clarity and enforce parameter requirements.
    • Enhanced toString() Method: Updated to include description, offering a more comprehensive string representation.
  • Documentation Enhanced: Improved documentation for both HttpStatusCode and HttpStatus, offering clearer guidelines and usage examples.
  • Enabled additional lint rules: lints and dart_code_linter, for improved code quality and consistency.

Deprecated

  • Deprecated snake_uppercase constants in HttpStatus (e.g., HttpStatus.Not_Found) , adhering to the Dart effective style guide's recommendation: PREFER using lowerCamelCase for constant names. These uppercase items will be removed in the next version.
  • Deprecated snake_uppercase constants in HttpStatusCode (e.g., HttpStatusCode.Not_Found, HttpStatusCode.NOT_FOUND) in favor of lowercase versions (e.g., HttpStatusCode.notFound), adhering to the Dart effective style guide's recommendation: PREFER using lowerCamelCase for constant names. These uppercase items will be removed in the next version.

Removed

  • Dropped compatibility with Dart 1.x due to migration towards Dart 2.18 which includes support for extension methods, marking a significant change in the required development environment.

tech-andgar and others added 8 commits February 5, 2024 16:23
- Added description details for the new 'description' field in HttpStatus
- Documented the transition to named parameters in HttpStatus constructor
- Included changes to the toString() method in HttpStatus for a more comprehensive string representation
- Enhanced the documentation sections for HttpStatusCode and HttpStatus, aiming at improved user guidance and clarity
Supported Dart 2, HttpStatusCode Enhancements, CI/Coverage Integration & Deprecation of Uppercase Constants
@tech-andgar
Copy link
Contributor Author

@andcan

@tech-andgar tech-andgar merged commit 70165d8 into DartForge:main Feb 13, 2024
tech-andgar added a commit that referenced this pull request Feb 17, 2024
feat(http_status): Add methods to check HTTP status code ranges
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