-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: recode in typescript #5
base: main
Are you sure you want to change the base?
Conversation
b52bc35
to
40c7ac6
Compare
60b1738
to
06c10ab
Compare
55111c7
to
8329375
Compare
Hey @sapics, Could you take a look at it locally, and see if everything works like you expect it to? Currently, all packages have tests and work. To test it out:
Let me know if you spot any issues or if there's anything else you'd like me to adjust. |
92fd1b6
to
2ef21e5
Compare
Thank you @Bas950 for great works! |
I will fix the failing tests later today or tomorrow. In my version this won't occur anymore as these versions are published to NPM but not to GitHub. |
ac2dca2
to
96aa007
Compare
@sapics Could you test with a custom |
96aa007
to
ebbde10
Compare
Thanks @Bas950 for your great work! However I cannot understand well how to work ;) I guess that some users need to change codes after this PR, thus above method looks better for users also (ex. users need to change urls for browser version). Are these proposals acceptable for you? |
Sorry, I cannot understand well about your system, thus, I cannot make a test to create database. |
Hey @sapics, I would love to help maintain or even take over the package, but taking it over from you may be difficult as I don't have a MaxMind account/token. So maintaining it would be difficult as I can't check compatibility with MaxMind myself. If you prefer, I can walkthrough the code with you, so I can explain what I changed. Let me know how you feel about it. |
I have only free account too. And I also could not success to download with free account. - const shaText = await ky.get(shaUrl).text()
+ const shaText = await ky(shaUrl).text() Could you try with this change? |
I understand roughly how it works, and I think it is possible to respond to other people's PRs and issues as they arise. However, I guess that there are some problems with operating in this repository.
Therefore, I consider that maintained in you repository would be better option for everyone. ( Sorry, I am not good at English, thus, I use translation site ;) ) |
It actually works fine, I emailed MaxMind, I had a wrong type of |
I have made an organization (https://github.com/ip-lookup). If we do the same thing on NPM by adding me as a maintainer on the ip-location-api package (https://www.npmjs.com/package/ip-location-api/access) and on the organization (https://www.npmjs.com/settings/iplookup/members), that way I can update the original package with the new version, so users only have to update and not install a new package. I will probably remake the redistribution (https://github.com/sapics/node-geolite2-redist) on that organization as well, so we have all the IP lookup repositories in 1 place. |
I feels few benefits to transfer the packages and repository. npm packageThe most of
repositoryYour ip-location-api is basically the same code as mine, but the structure itself has changed so much that I feel that override committing to my code would only increase the git size and get in the way. Also, I would like to keep this repository in its current state if possible, as it cannot be undone once transfer is executed. |
Alright, I see the issues. I will probably start work on it all this coming week. And in preparation of supporting multiple DB providers like suggested in #13, I will probably rename the main package to I will keep in touch with you, if you don't mind, so we can insure a smooth transition for users of the package, and add clear deprecation warnings to the old ones. I will also be sure to give the appropriate credits to you as the creator of the packages, and that my maintained version is a continuation of yours. |
Looks great! Yours will get more users!
Thank you for your kind attention! |
Heya, It’s been a while! I’ve been busy with work and took a short vacation, but I thought it was time to share an update. UpdatesI’ve created two new repositories: The core, country, and geocode packages have already been transferred to the Geocode UpdatesThe To simplify updates, I plan to host and distribute the indexes for the country and geocode packages directly through the Do you agree with this approach for the country and geocode packages? |
It makes sense. Looks good!
For browser system, each end user downloads database partially. |
Exactly, each user will download it from, for example: That way they always have the latest version (to comply with privacy regulations). |
@sapics please correct me if I am wrong tho lol |
I started a recode of your monorepo using modern tools, like Vite, Vitest, and Typescript.
TODO:
If you want, you can check out the branch, and feel free to leave some feedback!