I agree 100% with daloon. If this is something you have overcome, I don’t necessarily think you should tell your partner. But if this is something you still struggle with and it has shaped who you are today, sharing will only do good things, if your partner is the kind of partner they should be. You may not even realize it, but as daloon suggested, it might help bond you because it may be easier for your partner to understand certain aspects of your personality a lot better.
And if you do struggle with this still (as I think you probably do to some degree, otherwise this question probably wouldn’t have come up), give your partner the chance to help you. It will only bring you closer if your partner is a good person.
I wish you the best of luck.