Skip to content

feat: add explicit none aliases and guard refinements - #21

Merged
rustpls merged 1 commit into
mainfrom
add-none-empty-whitespace-aliases
May 30, 2026
Merged

feat: add explicit none aliases and guard refinements#21
rustpls merged 1 commit into
mainfrom
add-none-empty-whitespace-aliases

Conversation

@rustpls

@rustpls rustpls commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add explicit isNoneOr... and isNotNoneOr... aliases for empty and whitespace helpers
  • Make isNone and isSome type predicates
  • Make reverse(array) return a reversed copy instead of mutating the input
  • Bump package version from 2.0.0 to 2.1.0
  • Fix the README sample to use isNoneOrWhitespace and document the None-safe alias naming

Verification

  • deno fmt README.md
  • deno fmt deno.json
  • deno fmt src/core.ts src/core_test.ts src/strings.ts src/strings_test.ts README.md
  • deno test src/core_test.ts src/strings_test.ts
  • deno check mod.ts

@rustpls
rustpls force-pushed the add-none-empty-whitespace-aliases branch from 1fbd1f0 to 96e6500 Compare May 30, 2026 17:06
@rustpls rustpls changed the title Add explicit none aliases and guard refinements feat!: add explicit none aliases and guard refinements May 30, 2026
@rustpls
rustpls force-pushed the add-none-empty-whitespace-aliases branch from 96e6500 to f7ca961 Compare May 30, 2026 17:07
@rustpls
rustpls force-pushed the add-none-empty-whitespace-aliases branch from f7ca961 to b4ce9d7 Compare May 30, 2026 17:07
@rustpls rustpls changed the title feat!: add explicit none aliases and guard refinements feat: add explicit none aliases and guard refinements May 30, 2026
@rustpls
rustpls merged commit 0b642ae into main May 30, 2026
1 check passed
@rustpls
rustpls deleted the add-none-empty-whitespace-aliases branch July 9, 2026 19:17
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