Files
php-uuid/CHANGELOG.md
T
Ben Ramsey 4df546f5e4 Merge branch '2.8'
Conflicts:
	README.md
	apigen.neon
	composer.json
2015-07-23 19:06:41 +00:00

6.6 KiB

ramsey/uuid Changelog

3.0.0-alpha1

Released: 2015-07-16

The 3.0.0 release represents a significant step for the ramsey/uuid library. While the simple and familiar API used in previous versions remains intact, this release provides greater flexibility to integrators, including the ability to inject your own number generators, UUID codecs, node and time providers, and more.

  • BREAK: The root namespace for this package has changed from "Rhumsaa" to "Ramsey." In most cases, simply making this change in your applications is the only upgrade path you will need. Everything else should work as expected.
  • BREAK: The UUID Doctrine field type has been moved to ramsey/uuid-doctrine.
  • BREAK: The uuid console application has been moved to ramsey/uuid-console.
  • BREAK: The Uuid::VERSION package version constant has been removed.
  • NEW: The Uuid class is no longer marked as final. Everything is now based around interfaces and factories, allowing you to use this package as a base to implement other kinds of UUIDs with different dependencies.
  • NEW: Through setting dependencies on UuidFactory and/or extending FeatureSet, you may override any package defaults, injecting your own dependencies.
  • NEW: For random number generation, in addition to OpenSslGenerator (used if openssl_random_pseudo_bytes() is present) and the fallback MtRandGenerator, you may use the bundled CombGenerator for sequential UUIDs or the RandomLibAdapter if using ircmaxell/random-lib.
  • NEW: In addition to the default UUID generation, this library also supports GUID generation by configuring a FeatureSet to use GUIDs.
  • NEW: While the interface to create UUIDs hasn't changed, if using this package on a 32-bit system, you will now receive an object of type DegradedUuid (which extends Uuid, which implements UuidInterface).
  • NEW: All UUIDs are now JsonSerializable.

2.8.2

Released: 2015-07-23

  • Ensure the release tag makes it into the rhumsaa/uuid package.
  • Minor documentation changes.

2.8.1

Released: 2015-06-16

  • Use passthru() and output buffering in getIfconfig().
  • Cache the system node in a static variable so that we process it only once per runtime.
  • Set ramsey/uuid as a replacement for rhumsaa/uuid in composer.json.
  • Documentation updates and corrections.

2.8.0

Released: 2014-11-09

  • Added static fromInteger() method to create UUIDs from string integer or \Moontoast\Math\BigNumber.
  • Friendlier Doctrine conversion to Uuid or string.
  • Documentation fixes.

2.7.4

Released: 2014-10-29

  • Changed loop in generateBytes() from foreach to for; see #33
  • Use toString() in README examples to avoid confusion
  • Exclude build/development tools from releases using .gitattributes
  • Set timezone properly for tests

2.7.3

Released: 2014-08-27

  • Fixed upper range for mt_rand used in version 4 UUIDs

2.7.2

Released: 2014-07-28

  • Upgraded to PSR-4 autoloading
  • Testing upgrades:
    • Testing against PHP 5.6
    • Testing with PHPUnit 4
    • Using Coveralls.io to generate code coverage reports
  • Documentation fixes

2.7.1

Released: 2014-02-19

  • Moved moontoast/math and symfony/console to require-dev; fixes #20
  • Now supporting symfony/console for 2.3 (LTS version); fixes #21
  • Updated tests to run even when dev packages are not installed (skips tests if requirements are not met)

2.7.0

Released: 2014-01-31

  • Moved UUID validation regex pattern into constant for external use (Uuid::VALID_PATTERN)

2.6.1

Released: 2014-01-27

  • Fixed bug where uuid console application could not find the Composer autoloader when installed in another project

2.6.0

Released: 2014-01-17

  • Introduced uuid console application for generating and decoding UUIDs from CLI (run ./bin/uuid for details)
  • Added Uuid::getInteger() to retrieve a Moontoast\Math\BigNumber representation of the 128-bit integer representing the UUID
  • Added Uuid::getHex() to retrieve the hexadecimal representation of the UUID
  • Now using netstat on Linux to capture the node for a version 1 UUID
  • Now requiring Moontoast\Math as part of the regular package requirements, not just the dev requirements

2.5.0

Released: 2013-10-30

  • Using openssl_random_pseudo_bytes(), if available, to generate random bytes, by merging in PR #15 from @dfreudenberger
  • Fixed test for Rhumsaa\Uuid\Doctrine\UuidType, by merging in PR #17 from @dfreudenberger
  • Documentation fixes

2.4.0

Released: 2013-07-29

  • Uuid::getVersion() now returns null if the UUID isn't an RFC 4122 variant
  • Uuid::fromString() now supports a 128-bit integer formatted as a hexadecimal string (UUID without dashes)
  • Tests have been greatly enhanced, borrowing from the Python UUID library

2.3.0

Released: 2013-07-16

  • Added Uuid::fromBytes() by merging in PR #14 from @asm89

2.2.0

Released: 2013-07-04

  • Added Doctrine\UuidType::requiresSQLCommentHint() method by merging in PR #13 from @zerrvox
  • Removed "minimum-stability": "dev" from composer.json

2.1.2

Released: 2013-07-03

  • @ericthelin found cases where the system node was coming back with uppercase hexadecimal digits; this ensures that case in the node is converted to lowercase

2.1.1

Released: 2013-04-29

  • Fixed NIL bug in Uuid::isValid() method, reported by @ocubom in PR #11

2.1.0

Released: 2013-04-15

  • Added static Uuid::isValid() method for checking whether a string is a valid UUID

2.0.0

Released: 2013-02-11

  • Break: Uuid class is now marked as "final"
  • Break: Uuid::getLeastSignificantBits() no longer returns an integer on 64-bit platforms; it requires moontoast/math
  • Break: Uuid::getMostSignificantBits() no longer returns an integer on 64-bit platforms; it requires moontoast/math
  • Break: Moved UnsupportedOperationException to the Exception subnamespace
  • Added support for 32-bit platforms
  • Added generated API documentation to the repository

1.1.2

Released: 2012-11-29

  • Relaxed Doctrine type conversion rules

1.1.1

Released: 2012-08-27

  • Removed final keyword from Uuid class

1.1.0

Released: 2012-08-06

  • Added Doctrine\UuidType as a field mapping type for the Doctrine Database Abstraction Layer (DBAL)
  • Improved tests and code coverage

1.0.0

Released: 2012-07-19

  • Initial release