Skip to content

Library overhaul, part 1 #2

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

Merged
merged 1 commit into from
Dec 22, 2024
Merged

Library overhaul, part 1 #2

merged 1 commit into from
Dec 22, 2024

Conversation

cmath10
Copy link
Contributor

@cmath10 cmath10 commented Dec 22, 2024

No description provided.

Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (dcf5727) to head (af74d94).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main        #2      +/-   ##
===========================================
+ Coverage   95.18%   100.00%   +4.81%     
===========================================
  Files          20         8      -12     
  Lines         187       167      -20     
  Branches       68        52      -16     
===========================================
- Hits          178       167      -11     
+ Misses          9         0       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* Added Predicate type
* Added Meta type
* Added Assert type for combining Predicate and Meta
* Added assertions for booleans, email, dates, null, number, string, symbol
* Added ValidationRunner type for running complex checks

BREAKING CHANGE: validator object replaced with validate function, containing sub method sync for synchronous validation
BREAKING CHANGE: Length constraint replaced with HasLength functional assertion
BREAKING CHANGE: Exists constraint replaced with IsDefined functional assertion
BREAKING CHANGE: Each object replaced with Each runner
BREAKING CHANGE: Collection object replaced with HasProperties runner
BREAKING CHANGE: Type "Key" replaced with in-box "PropertyKey"
BREAKING CHANGE: ConstraintCollection type was removed
BREAKING CHANGE: ConstraintValidator was renamed to Validator
BREAKING CHANGE: ConstraintViolation was renamed to Violation
BREAKING CHANGE: d.ts files for exported logic units are now generated and available in dist catalogue
@cmath10 cmath10 merged commit b829a1e into main Dec 22, 2024
6 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