Releases: valorin/random
Releases · valorin/random
v1.0.1
What's Changed
- Allow string as input for useSymbols by @princejohnsantillan in #23
- Allow string input for all
use*()
methods.
New Contributors
- @princejohnsantillan made their first contribution in #23
Full Changelog: v1.0...v1.0.1
v1.0
What's Changed
- Finally tagged v1.0! 🎉
pick()
now only supportsarray
andCollection
, and$count = 1
still returnsarray
orCollection
. This is to make the behaviour more consistent, and it didn't make much sense to pick multiple random characters from a string.single()
replacespickOne()
and is used to pick a single item from an array, string, or Collection.- Added some parameter hints to make the code more readable.
- Added PHP 8.4 into testing versions list.
Full Changelog: v0.6...v1.0
v0.6
v0.5
- Bumped Laravel support to v11 - note, it's only for
require-dev
.
Full Changelog: v0.4...v0.5
v0.4
What's Changed
- Enhancement: Simplify
dashed
return by @shatterproof in #15 - Fix: Adjust
testUnexpectedSymbolsInput
for unfiltered symbols by @shatterproof in #17 - Enhancement: Include $lower attribute for
dashed
by @shatterproof in #16 - Rename
dashed
$lower to $mixedCase by @shatterproof in #18
New Contributors
- @shatterproof made their first contribution in #15
Full Changelog: v0.3...v0.4
v0.3
What's Changed
- Fix string
length
conflict withrequireAll
by @faissaloux in #9 - Enhancement: Extract trait by @localheinz in #3
- Fix typo in README by @szepeviktor in #4
- Normalize composer.json by @szepeviktor in #5
- Fix logic in Random::generator() by @szepeviktor in #8
- Enhancement: Use
--strict
option when validatingcomposer.json
andcomposer.lock
by @localheinz in #14 - Fix
pick($count)
by @faissaloux in #12 - Added
passcode()
alias forotp()
New Contributors
- @localheinz made their first contribution in #3
- @szepeviktor made their first contribution in #4
Full Changelog: v0.2...v0.3
v0.2
What's Changed
- Added
Random::dashed()
helper for dashed token strings. - Fix unexpected
use*
methods input by @faissaloux in #2
New Contributors
- @faissaloux made their first contribution in #2
Full Changelog: v0.1...v0.2
v0.1 - Initial Release!
Random finally has all the core features I wanted to include for the initial release, so I'm clicking the button and making it live!
This is definitely an early version, so method names and parameters may change as it starts being used and issues are identified.
Full Changelog: https://github.com/valorin/random/commits/v0.1