michaeldyrynda / laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models
MIT License
451 stars 47 forks source link

Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead. #66

Closed Sammyjo20 closed 4 years ago

Sammyjo20 commented 4 years ago

Hey šŸ‘

Thanks for the great Laravel Package. Just noticed this composer error while installing my dependencies. Thought I'd let you know. šŸ˜Š

atymic commented 4 years ago

Looks like it's not a straight forward move: https://github.com/brick/math

michaeldyrynda commented 4 years ago

Happy to review a PR with the necessary changes!

I believe @ramsey is working on ramsey/uuid 4.0 at the moment, which makes this change for us upstream, so may be necessary for a final release there.

ramsey commented 4 years ago

Technically, it's not an error. It's a warning. šŸ˜‰

I'm also the maintainer of moontoast/math, and I'll no longer be developing it. There are better, more full-featured arbitrary precision math libraries available, such as brick/math. You may continue to use moontoast/math, but it won't receive any more updates.

The reason moontoast/math is required for Laravel is because Laravel uses the TimestampFirstCombCodec, which requires moontoast/math (see here).

Version 4 of ramsey/uuid no longer uses moontoast/math, and the upgrade should be seamless for most uses of ramsey/uuid (including Laravel'sā€”I've tested this thoroughly!). A pre-release version (4.0.0-alpha1) is available here: https://github.com/ramsey/uuid/releases/tag/4.0.0-alpha1

Cheers!