Skip to content

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

Merged
tech-andgar merged 8 commits intoDartForge:mainfrom
tech-andgar:main
Feb 13, 2024
Merged

Supported Dart 2, HttpStatusCode Enhancements, CI/Coverage Integration & Deprecation of Uppercase Constants#1
tech-andgar merged 8 commits intoDartForge:mainfrom
tech-andgar:main

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