Skip to content

Releases: taylornetwork/laravel-username-generator

v2.8

29 Jul 11:46
f076107
Compare
Choose a tag to compare

What's Changed

  • Retry makeUnique until unique username found by @timothyasp in #63
  • Apply fixes from StyleCI by @samueljtaylor in #64
  • v2.8 by @samueljtaylor in #65

New Contributors

Full Changelog: 2.7.0...2.8.0

CHANGELOG

v2.7

07 Jul 15:27
5b02474
Compare
Choose a tag to compare

Changed

  • FindSimilarUsernames no longer needs a usernameColumn property in the parent model if the column is different than 'username' and the config file is not directly changed.

Added

  • Missing types for some properties.
  • Driver and HandlesConfig contracts.
  • getDriver() method in Generator class.

v2.6.2 - Security Fix

21 Feb 16:48
23d08b2
Compare
Choose a tag to compare

[Fixed]

  • Possible SQL injection vulnerability, see #54
  • Bug where findSimilarUsernames would return an incorrect number of similarities when using the REGEXP function with a separator.

[Changed]

  • prefer_regexp config option by default is now false

v2.6.1

02 Jan 21:42
0a8bdd5
Compare
Choose a tag to compare
  • Added support for PHP 8.1
  • Set minimum PHP version to 7.4

v2.6

17 Aug 18:36
5a71943
Compare
Choose a tag to compare

This release addresses issues relating to other character sets. See the readme for a full change log.

v2.5.1

05 Aug 20:44
3a1f24e
Compare
Choose a tag to compare

Fixes issue where dictionary nouns and adjectives were not being respected

v2.5

02 Dec 18:18
0d28179
Compare
Choose a tag to compare
  • Added maximum length check.
  • Added ability for pre-filled usernames to go through generate process to allow for consistent username styles.
  • Added checking for similar usernames using REGEXP or LIKE (LIKE is a fallback if REGEXP fails).
  • Added a check if a username is unique as is before checking for similar ones.
  • Added checkMinLength and checkMaxLength hooks on base driver.
  • Updated composer.json to support PHP 7.2 and above
  • Updated readme for better Laravel 8+ quickstart

v2.4

11 Nov 16:14
f939d7f
Compare
Choose a tag to compare
  • This is a minor change but if you're using older versions of Laravel you may need to update your config file.
  • Changed default User model from App\User to App\Models\User to mirror new Laravel versions (8.0+).
  • Moved the adjective and noun word lists from the config file to a separate file, making the published config smaller and allowing you to create your own word lists if you wish.

Bug Fix

10 Nov 23:29
cb569e0
Compare
Choose a tag to compare

Fixed bug in #25 where a model using the GeneratesUsernames without the specified column would throw an error rather than return a random username

Bug Fix

31 Oct 20:17
Compare
Choose a tag to compare

Bug fix that was preventing username generation on unique usernames, using the FindSimilarUsernames trait when the username had found nothing similar.

As per #23