Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Latest commit

 

History

History
191 lines (102 loc) · 7.44 KB

File metadata and controls

191 lines (102 loc) · 7.44 KB

3.0.2 (2023-09-02)

Bug Fixes

  • Package has been discontinued (aeed917)

3.0.1 (2023-02-15)

Bug Fixes

  • security email regex (csharpsquid:S6444) (783ebc6)

3.0.0 (2022-11-19)

Code Refactoring

  • Removed deprecated methods (d89fbb6)
  • Removed deprecated methods (e74ffe7)
  • Removed deprecated methods (e850bfc)
  • Removed deprecated methods (574e5e5)
  • Removed deprecated methods (bdb04f8)

Features

  • Added new construction in exceptions to provide inner exceptions (dce51ac)

BREAKING CHANGES

  • Removed deprecated method NotEmail
  • Removed deprecated method IfLengthZero
  • Removed deprecated method IfLengthDifference
  • Removed deprecated method IfLengthLessThan
  • Removed deprecated method IfLengthGreaterThan

2.5.1 (2022-07-24)

Bug Fixes

2.5.0 (2022-07-24)

Features

  • Add support to debug in runtime Microsoft.SourceLink.GitHub (3b425c2)

2.4.0 (2022-04-08)

Enhancements

  • Removed PowerUtils.Text dependency;

Features

  • Added Guard Guard.Validate.IfOutOfRange() for dateTime;
  • Added Guard Guard.Validate.IfOutOfRange() for numbers;

2.3.0 (2022-04-05)

Features

  • Added Guard Guard.Validate.IfLengthOutOfRange();

2.2.1 (2022-04-04)

Fixed

  • Returned the same type as the input value for Guard.Validate.IfNull();
  • Added again the the specific Guard.Validate.IfNull() for strings;

2.2.0 (2022-04-03)

Enhancements

  • Added the return of the value to be validated in all Guard.Validate.*;

2.1.0 (2022-03-30)

Features

  • Added Guard Guard.Validate.IfLatitudeOutOfRange() and Guard.Validate.IfLongitudeOutOfRange();

2.0.0 (2022-03-26)

Features

  • Added Guard Guard.Validate.IfNull() for objects;
  • Added Guard Guard.Validate.IfEmpty() for Enumerables;
  • Added Guard Guard.Validate.IfNullOrEmpty() for Enumerables;
  • Added Guard Guard.Validate.IfNullOrEmpty() for Enumerables;
  • Added Guard Guard.Validate.IfCountGreaterThan() for Enumerables;
  • Added Guard Guard.Validate.IfCountLessThan() for Enumerables;

Updates

  • Updated nuget dependencies;

Breaking Changes

  • Interface IGuardClause named to IGuardValidationClause;

1.2.0 (2022-03-20)

Features

  • Added Guard Guard.Validate.IfEquals();
  • Added Guard Guard.Validate.IfDifferent();

Enhancements

  • Discontinued the validation string.IfLengthZero, Can use the string.IfEmpty because it does the same validation;
  • Discontinued the validation string.IfLengthDifference, Can use the string.IfLengthDifferent because the name is wrong;
  • Discontinued the validation string.IfLengthGreaterThan, Can use the string.IfLongerThan. Improved method name;
  • Discontinued the validation string.IfLengthLessThan, Can use the string.IfShorterThan. Improved method name;
  • Discontinued the validation string.NotEmail, Can use the string.IfNotEmail because the name is wrong;

1.1.0 (2022-03-16)

Features

  • Added Guard Guard.Validate.IfEmpty(string);
  • Added Guard Guard.Validate.IfEmpty(guid);
  • Added Guard Guard.Validate.NotEmail(email);
  • Added Guard Guard.Validate.IfLengthEquals(value, length);
  • Added Guard Guard.Validate.IfLengthDifference(value, length);
  • Added new constructor UnauthorizedException(property, errorCode, message);
  • Added new constructor ForbiddenException(property, errorCode, message);
  • Added new constructor NotFoundException(property, errorCode, message);
  • Added new constructor ConflictException(property, errorCode, message);
  • Added factory BadRequestException.Factory.CreateRequired(property);
  • Added factory PropertyException.Factory.CreateRequired(property);
  • Added factory UnauthorizedException.Factory.Create(property, errorCode);
  • Added factory ForbiddenException.Factory.Create(property, errorCode);
  • Added factory NotFoundException.Factory.Create(property, errorCode);
  • Added factory ConflictException.Factory.Create(property, errorCode);
  • Added Throw BadRequestException.ThrowRequired(property);
  • Added Throw PropertyException.ThrowRequired(property);
  • Added Throw UnauthorizedException.Throw(property, errorCode);
  • Added Throw ForbiddenException.Throw(property, errorCode);
  • Added Throw NotFoundException.Throw(property, errorCode);
  • Added Throw ConflictException.Throw(property, errorCode);

1.0.0 (2022-03-15)

  • Kickoff;
  • Moved the attributes from PowerUtils.Validations project to this one so it can be used individually;

Features

  • Added guard clauses;

Breaking Changes

  • BaseValidationException.Notifications named to BaseValidationException.Errors and the type changed from IReadOnlyCollection<ValidationNotification> to IReadOnlyDictionary<string, string>;
  • Removed constructor protected BaseValidationException(HttpStatusCode statusCode, string helpLink, SerializationInfo info, StreamingContext context);
  • Exception InvalidPropertyException named to PropertyException;
  • Removed constructor public UnauthorizedException(string property, string errorCode);
  • Removed constructor public UnauthorizedException(string property, string errorCode, string message);