Skip to content

Releases: DartForge/http_status

[3.3.3] - 2024-05-03

03 May 05:26
760e852
Compare
Choose a tag to compare

What's Changed

  • chore: updated CODEOWNERS file to reflect changes in GitHub usernames for code owners. #14
  • chore(workflows): Update workflow for Dart setup and analysis #15
    by @tech-andgar

Full Changelog: 3.3.2...3.3.3

[3.3.2] - 2024-05-02

03 May 04:41
6176867
Compare
Choose a tag to compare

What's Changed

  • Updated the Dart setup version to v1.6.4, very_good_coverage to v3 in workflows and dev dependencies versions for dart_code_linter to v1.1.3 and test to v1.25.4,
  • Fixed some typos
  • Added comments of class
    by @andgar2010 in #12

Full Changelog: 3.3.0...3.3.2

[3.3.0] - 2024-02-24

24 Feb 05:08
464d546
Compare
Choose a tag to compare

What's Changed

  • Improved error messaging for unrecognized HTTP status codes and added verification test case.
  • Added @ immutable annotation to HttpStatus class for enhanced immutability.
    by @andgar2010 in #11

Full Changelog: 3.2.0...3.3.0

[3.2.0] - 2024-02-17

17 Feb 17:26
4654164
Compare
Choose a tag to compare

What's Changed

  • feat(http_status_code): replace HttpStatus constants with direct values for support web by @andgar2010 in #10

Full Changelog: 3.1.0...3.2.0

[3.1.0] - 2024-02-17

17 Feb 17:02
0a4fe1e
Compare
Choose a tag to compare

What's Changed

Added - 3.1.0

  • Added new methods to the HttpStatus class for checking HTTP status code ranges. Includes isInformationHttpStatusCode, isSuccessfulHttpStatusCode, isRedirectHttpStatusCode, isClientErrorHttpStatusCode, and isServerErrorHttpStatusCode. These methods facilitate categorizing HTTP status codes without manual comparisons. by @andgar2010 in #9

Fixed - 3.1.0

  • Added earlyHints 103 in HttpStatus.fromCode for this missing element. by @andgar2010 in #9

Changed - 3.1.0

  • Documentation Enhanced: Improved documentation for readme.md, offering clearer guidelines and usage examples.

Full Changelog: 3.0.0...3.1.0

[3.0.0] - 2024-02-12

17 Feb 17:00
8c70bb0
Compare
Choose a tag to compare

What's Changed

  • Remove deprecated HTTP status codes and minimum support Dart 3.0 in HttpStatus by @andgar2010 in #5

Removed - 3.0.0

  • Deprecated HTTP status code constants: Capitalized and underscored versions are no longer available.

Changed - 3.0.0

  • Dropped compatibility with Dart 2.x due to migration towards Dart 3.0 which includes support for records, marking a significant change in the required development environment.

  • HttpStatus class:

    • Refactored equality and hashCode methods for more robust object comparisons using code, name, and description.
  • Example Code Updates

Code Http Status Name Http Status (v1.x - v2.x Removed) Http Status (v2.x - v3.x)
100 Continue Continue / CONTINUE continue_
101 Switching Protocols Switching_Protocols / SWITCHING_PROTOCOLS switchingProtocols
102 Processing Processing / PROCESSING processing
103 Early Hints - earlyHints
200 OK Ok / OK ok
201 Created Created / CREATED created
202 Accepted Accepted / ACCEPTED accepted
203 Non Authoritative Information NonAuthoritative_Information / NON_AUTHORITATIVE_INFORMATION nonAuthoritativeInformation
204 No Content No_Content / NO_CONTENT noContent
205 Reset Content Reset_Content / RESET_CONTENT resetContent
206 Partial Content Partial_Content / PARTIAL_CONTENT partialContent
207 Multi-Status MultiStatus / MULTISTATUS multiStatus
208 Already Reported Already_Reported / ALREADY_REPORTED alreadyReported
226 I'M Used IM_Used / IM_USED imUsed
300 Multiple Choices Multiple_Choices / MULTIPLE_CHOICES multipleChoices
301 Moved Permanently Moved_Permanently / MOVED_PERMANENTLY movedPermanently
302 Found / Moved Temporarily Found / Moved_Temporarily / FOUND / MOVED_TEMPORARILY found / movedTemporarily
303 See Other See_Other / SEE_OTHER seeOther
304 Not Modified Not_Modified / NOT_MODIFIED notModified
305 Use Proxy Use_Proxy / USE_PROXY useProxy
307 Temporary Redirect Temporary_Redirect / TEMPORARY_REDIRECT temporaryRedirect
308 Permanent Redirect Permanent_Redirect / PERMANENT_REDIRECT permanentRedirect
400 Bad Request Bad_Request / BAD_REQUEST badRequest
401 Unauthorized Unauthorized / UNAUTHORIZED unauthorized
402 Payment Required Payment_Required / PAYMENT_REQUIRED paymentRequired
403 Forbidden Forbidden / FORBIDDEN forbidden
404 Not Found Not_Found / NOT_FOUND notFound
405 Method Not Allowed Method_Not_Allowed / METHOD_NOT_ALLOWED methodNotAllowed
406 Not Acceptable Not_Acceptable / NOT_ACCEPTABLE notAcceptable
407 Proxy Authentication Required Proxy_Authentication_Required / PROXY_AUTHENTICATION_REQUIRED proxyAuthenticationRequired
408 Request Timeout Request_Timeout / REQUEST_TIMEOUT requestTimeout
409 Conflict Conflict / CONFLICT conflict
410 Gone Gone / GONE gone
411 Length Required Length_Required / LENGTH_REQUIRED lengthRequired
412 Precondition Failed Precondition_Failed / PRECONDITION_FAILED preconditionFailed
413 Request Entity Too Large Payload_Too_Large / PAYLOAD_TOO_LARGE / Request_Entity_Too_Large / REQUEST_ENTITY_TOO_LARGE requestEntityTooLarge
414 Request-URI Too Long RequestURI_Too_Long / REQUESTURI_TOO_LONG / Request_Uri_Too_Long / REQUEST_URI_TOO_LONG requestUriTooLong
415 Unsupported Media Type Unsupported_Media_Type / UNSUPPORTED_MEDIA_TYPE unsupportedMediaType
416 Requested Range Not Satisfiable Requested_Range_Not_Satisfiable / REQUESTED_RANGE_NOT_SATISFIABLE requestedRangeNotSatisfiable
417 Expectation Failed Expectation_Failed / EXPECTATION_FAILED expectationFailed
418 I'm a teapot - imATeapot
419 Insufficient Space on Resource - insufficientSpaceOnResource
420 Method Failure - methodFailure
421 Misdirected Request Misdirected_Request / MISDIRECTED_REQUEST misdirectedRequest
422 Unprocessable Entity Unprocessable_Entity / UNPROCESSABLE_ENTITY unprocessableEntity
423 Locked Locked / LOCKED locked
424 Failed Dependency Failed_Dependency / FAILED_DEPENDENCY failedDependency
426 Upgrade Required Upgrade_Required / UPGRADE_REQUIRED upgradeRequired
428 Precondition Required Precondition_Required / PRECONDITION_REQUIRED preconditionRequired
429 Too Many Requests Too_Many_Requests / TOO_MANY_REQUESTS tooManyRequests
431 R...
Read more

[2.1.0] - 2024-02-10

13 Feb 20:32
42c6377
Compare
Choose a tag to compare

What's Changed

  • feat: expanded the Dart SDK compatibility range to '<4.0.0' by @andgar2010 in #3

Full Changelog: 2.0.1...2.1.0

[2.0.1] - 2024-02-10

13 Feb 20:15
5471929
Compare
Choose a tag to compare
  • Refactor operator == method in HttpStatus class
  • Refactor HTTP status code extension for better clarity and consistency
  • Fixed url updated of package

Full Changelog: 2.0.0...2.0.1

[2.0.0] - 2024-02-06

13 Feb 19:14
70165d8
Compare
Choose a tag to compare

What's Changed

  • Supported Dart 2, HttpStatusCode Enhancements, CI/Coverage Integration & Deprecation of Uppercase Constants by @andgar2010 in #1

Details:

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.

Full Changelog: 1.0.1+1...2.0.0

1.0.1+1

13 Feb 19:13
Compare
Choose a tag to compare