boringdesigners / boring-avatars

Boring avatars is an open source React library that generates custom, SVG-based avatars from any username and color palette.
https://boringavatars.com
MIT License
5.7k stars 200 forks source link

Noisy warning about using the deprecated defaultProps API #84

Closed quirkles closed 1 month ago

quirkles commented 1 month ago

Describe the bug I get a warning about default props being deprecated in the future in the console.

To Reproduce Seems to be on any use of the Component with a recent version of react, i am using the following:

  "dependencies": {
    ...
    "boring-avatars": "^1.11.1",
    "react": "^18",
    "react-dom": "^18",
    "react-redux": "^9.1.2",
    ...
  }

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Screenshot 2024-09-05 at 7 19 28 PM

Additional context Add any other context about the problem here.

quirkles commented 1 month ago

I have a PR for this https://github.com/boringdesigners/boring-avatars/pull/86/files

cdedreuille commented 1 month ago

I have the same issue on Next.js 14 and boring-avatars 1.11.1. Any chance this one could be solved soon?

CleanShot 2024-09-16 at 10 18 13

josepmartins commented 1 month ago

Hey @cdedreuille @quirkles, this should be fixed with the latest v1.11.2!

cdedreuille commented 1 month ago

Thanks a lot for the fast update. I can confirm that this is now working with the latest version.

josepmartins commented 1 month ago

Closing this one as fixed 👍