Skip to content

Conversation

@silvanocerza
Copy link
Contributor

Similar approach to other libraries. I added IPinfoLiteSpring that work in the same way of IPinfoSpring, the only difference is that it uses IPinfoLite internally instead of IPinfo.

I also bumped the dependencies versions and added tests for both middlewares.

I had to add some methods to the AttributeStrategy interface since IPinfo and IPinfoLite return different types of response, I'm not sure this is the best approach but it's the fastest to implement. In hindisight I should have probably made IPResponse and IPResponseLite inherit from the same interface or class, that way I could have used generics in AttributeStrategy.

@silvanocerza silvanocerza requested a review from max-ipinfo August 1, 2025 16:24
@silvanocerza silvanocerza self-assigned this Aug 1, 2025
@linear
Copy link

linear bot commented Aug 1, 2025

@silvanocerza silvanocerza merged commit 0f440ac into master Sep 3, 2025
1 check passed
@silvanocerza silvanocerza deleted the silvano/eng-296-add-lite-api-support-to-ipinfospring branch September 10, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants