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

πŸŽ‰ unknownutil v4 #87

Merged
merged 22 commits into from
Aug 2, 2024
Merged

πŸŽ‰ unknownutil v4 #87

merged 22 commits into from
Aug 2, 2024

Conversation

lambdalisue
Copy link
Member

@lambdalisue lambdalisue commented Aug 1, 2024

βœ… TODO

  • Fix isReadonlyOf to support isTupleOf and isUniformTupleOf

πŸ’₯ Breaking changes

  • isBigInt is renamed to isBigint
  • isOptionalOf is renamed to asOptional and moved into as module
  • isUnwrapOptionalOf is renamed to asUnoptional and moved into as module
  • isOptional is renamed to hasOptional and moved into as module
  • isRecordLike is removed (Use isRecord instead)
  • isRecordLikeOf is removed (Use isRecordOf instead)
  • isReadonlyTupleOf is removed (Use isTupleOf with isReadonlyOf instead)
  • isReadonlyUniformTupleOf is removed (Use isUniformTupleOf with isReadonlyOf instead)
  • options of isObjectOf is removed (Use isObjectOf with isStrictOf instead)
  • isOneOf is removed (Use isUnionOf instead)
  • isAllOf is removed (Use isIntersectionOf instead)
  • isReadonly is removed
  • isUnwrapReadonlyOf is removed
  • getMetadata is removed
  • getPredicateFactoryMetadata is removed
  • setPredicateFactoryMetadata is removed
  • GetMetadata is removed
  • WithMetadata is removed
  • PredicateFactoryMetadata is removed

πŸ‘ Enhancements

  • Add asReadonly, asUnreadonly, and hasReadonly
  • All predicate functions are exported individually in is or as modules
  • All utility functions are exposed individually under the root module

- `isReadonly`
- `isReadonlyOf`
- `isUnwrapReadonlyOf`
- `is.OptionalOf` -> `as.Optional`
- `is.UnwrapOptionalOf` -> `as.Unoptional`
Additionally, the following breaking changes are included in this commit

- The default optional argument of `UniformTupleOf` is changed from
  `isAny` to `undefined`
- The `isBigInt` function is renamed to `isBigint`
- Some utility type functions are removed
@lambdalisue lambdalisue marked this pull request as draft August 1, 2024 21:19
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 97.86020% with 15 lines in your changes missing coverage. Please review.

Project coverage is 97.99%. Comparing base (cbe8323) to head (ea8956e).

Files Patch % Lines
as/readonly.ts 84.84% 5 Missing ⚠️
is/parameters_of.ts 91.42% 3 Missing ⚠️
is/tuple_of.ts 90.00% 3 Missing ⚠️
_testutil.ts 97.56% 1 Missing ⚠️
is/record_object_of.ts 95.00% 1 Missing ⚠️
is/record_of.ts 95.00% 1 Missing ⚠️
is/set_of.ts 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
- Coverage   99.41%   97.99%   -1.43%     
==========================================
  Files           5       50      +45     
  Lines         682      797     +115     
  Branches       87       88       +1     
==========================================
+ Hits          678      781     +103     
- Misses          4       16      +12     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@lambdalisue lambdalisue marked this pull request as ready for review August 2, 2024 21:24
@lambdalisue lambdalisue merged commit e4d587c into main Aug 2, 2024
4 of 6 checks passed
@lambdalisue lambdalisue deleted the next branch August 2, 2024 21:24
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