Commit Graph

628 Commits

Author SHA1 Message Date
lion 8c7c83cf7f deprecated the old nodejs and typescript binding 2025-10-15 11:36:17 +08:00
lion fbadc7cca0 new javascript binding is Ready with IPv4 and IPv6 supported 2025-10-15 11:27:10 +08:00
lion f03d33e5fe publish the ip2region.js package and update the doc for it 2025-10-15 11:10:47 +08:00
lion c809c072bc add search test demo docs 2025-10-15 10:18:45 +08:00
lion 5c1522fce4 search test app is ready 2025-10-15 10:13:10 +08:00
lion a3eedc5438 rm unnecessary brackets 2025-10-15 10:12:52 +08:00
lion 4f8cdb05c9 remove the unused code 2025-10-15 09:30:32 +08:00
lion 008bbbe4d7 bench script is ready and bench test passed 2025-10-14 21:44:07 +08:00
lion d35a7b9120 bench script 2025-10-14 14:20:19 +08:00
lion 4d71b47e05 merge the tests to util or searcher 2025-10-14 11:25:12 +08:00
lion 40ea8a267f remove the debug checks 2025-10-13 22:35:51 +08:00
lion 2dcccf22a3 verify impl and verify the xdb files 2025-10-13 22:21:30 +08:00
lion e073e26f52 fix the bug of ipToString with tailing double colon 2025-10-13 18:42:20 +08:00
lion ed42fd0fba adjust the export order 2025-10-13 18:13:55 +08:00
lion 9959117d92 ReadMe for basic usage 2025-10-13 18:06:54 +08:00
lion 3cab1bae2e add ts type define and api exports 2025-10-13 15:28:30 +08:00
lion 5a8d7c4152 use the ESM standard 2025-10-13 14:35:45 +08:00
lion 4507c2f706 javascript is Ready for IPv6 2025-10-13 12:05:20 +08:00
lion ad78dbe547 searcher with ipv4 tests passed 2025-10-12 13:48:26 +08:00
lion e924a7c17d version ip compare is ready 2025-10-12 11:07:22 +08:00
lion 6c463282d0 merge the header/version to util.js 2025-10-11 23:57:55 +08:00
lion bb19c7110a mi = max-index 2025-10-11 23:45:05 +08:00
lion 5fce4eaa01 ipv6 parse and toString beta version 2025-10-11 23:43:37 +08:00
lion 01bd749d4a ipv6 parse and to string alpha version 2025-10-11 19:34:24 +08:00
lion 3693eb47a8 Merge branch 'master' into fr_javascript_ipv6 2025-10-11 15:53:47 +08:00
lion e39ac2d6d1 optimize the type define 2025-10-11 15:53:09 +08:00
lion d97967d565 ip parse and to string util implementing 2025-10-11 15:49:24 +08:00
lion ccf7f323c2 header/vector/content load util funcs is ready 2025-10-11 13:28:20 +08:00
lion d6345bc015 ignore the package-lock.json 2025-10-10 16:07:45 +08:00
lion 086250c666 javascript binding with IPv4 and IPv6 supports 2025-10-10 16:03:33 +08:00
lion 54a160e230 ignore the test_util binary 2025-10-10 10:31:22 +08:00
lion 2d71241a3b for msvc 2025-09-30 09:36:52 +08:00
gongzhengyang 1f1ad5aaf6 Style: fmt binding rust code 2025-09-28 15:51:54 +08:00
gongzhengyang df6004b42e Feat: add rust maker for ipv4 and ipv6 2025-09-28 15:27:11 +08:00
gongzhengyang 05c7c17af0 Docs: add bench result for rust binding in readme 2025-09-28 15:27:11 +08:00
lion a137813509 enable all standard warnings & fix all the warnings 2025-09-25 22:24:01 +08:00
lion 0179edc3a8 auto manager the region buffer & remove the unused vars 2025-09-25 22:11:52 +08:00
狮子的魂 1ac2113afc
Merge pull request #382 from gongzhengyang/master
Rust binding supports multi cache policies and IPv6
2025-09-24 15:03:32 +08:00
gongzhengyang 139972dfb8 Fix: rust code fmt 2025-09-24 14:55:08 +08:00
gongzhengyang 379ab6ce73 Fix: rust binding bench count error 2025-09-24 14:50:09 +08:00
gongzhengyang d3592eb7cd Feat: improve bench query code in rust example, add usage at Readme 2025-09-24 14:35:42 +08:00
gongzhengyang b6410e16d0 Docs: improve rust binding usage in Readme 2025-09-24 10:42:12 +08:00
gongzhengyang d7f4ef5a07 Feat: limit bench IPv6 range 2025-09-24 10:41:47 +08:00
gongzhengyang 7a4bd4ed2b Fix: binary search ip unneccessary repeat call 2025-09-24 10:40:53 +08:00
gongzhengyang a6931ce31b Docs: improve binding rust readme docs, basic usage 2025-09-23 19:51:56 +08:00
gongzhengyang 32e005e1e6 Feat: rust binding support IPv6 search 2025-09-23 19:51:51 +08:00
gongzhengyang b5b00aeb87 Feat: improve rust binding example read file 2025-09-23 19:51:44 +08:00
gongzhengyang b16fe21506 Feat: add file and vector index cache search 2025-09-23 19:51:34 +08:00
lion 931fb9e67b use the local stack region_buffer instead of heap allocation 2025-09-23 18:15:46 +08:00
lion 7576daa6cc empty input ignore 2025-09-23 11:09:23 +08:00
lion 75893f0331 include time.h for windows struture tm 2025-09-22 23:47:38 +08:00
lion 355c0d8673 default lua version to 5.4 2025-09-21 13:06:25 +08:00
lion 29fa8e25ab lua c ext is ready for IPv6 2025-09-21 12:56:42 +08:00
lion 46f56f0eca remove the unused defines 2025-09-21 00:51:19 +08:00
lion 2fe0d1f59e Ipv6 search is ready 2025-09-21 00:45:45 +08:00
lion b01253e6b3 ip parse and binary ip bytes use 2025-09-20 17:29:11 +08:00
lion 6712ee9504 calling the latest xdb api 2025-09-20 14:37:22 +08:00
lion 5fa69300ad lua_c ipv6 supporting 2025-09-20 14:03:09 +08:00
lion 7e599e05a0 print the error tip if region_buffer init failed 2025-09-19 16:16:19 +08:00
lion 48c2b395bc c binding is ready for IPv6 2025-09-19 13:08:47 +08:00
lion dff3084b93 C binding is ready for IPv6 2025-09-18 23:09:19 +08:00
lion 8fbdf82797 IPv6 search and docs is ready 2025-09-18 15:53:48 +08:00
lion 73c8b20d3a apply the bytes ip to the whole search process 2025-09-17 23:10:42 +08:00
lion 69b9f062e4 directly compare the ip from the buffer 2025-09-17 14:45:03 +08:00
lion 1575e581cd try to apply the bytes_ip_t for the search 2025-09-17 14:43:28 +08:00
lion 4cff9eb6ee ip parse / to_string / compare util function is ready 2025-09-17 13:07:35 +08:00
lion 0fd0bc59d0 bytes ip utils prototype 2025-09-16 22:09:49 +08:00
lion c64837db67 ip util function update for IPv6 2025-09-16 15:29:55 +08:00
lion eb80b89c0e ipv6 supporting for clang 2025-09-16 14:46:34 +08:00
lion 9a14e32736 add xdb file verify util and call it before the search/bench test 2025-09-16 12:35:22 +08:00
lion 4c1b0362c8 fix the typo 2025-09-16 12:34:50 +08:00
lion 7bbe7d681d PHP binding IPv6 supports is ready 2025-09-15 15:22:49 +08:00
lion 95c129c7d1 PHP IPv6 supporting 2025-09-14 23:14:42 +08:00
lion 537077279a Java IPv6 support is ready 2025-09-13 00:21:25 +08:00
lion a91fdd38bc updatet the pom desc 2025-09-12 15:48:20 +08:00
lion 9af9c927fe IPv6 impl for java binding is ready 2025-09-12 15:43:37 +08:00
lion f226ef1f79 update the comments 2025-09-12 15:31:12 +08:00
lion e8b6049584 resource defer close and some optimizations 2025-09-12 12:52:15 +08:00
lion 6db9654c7d IPv6 supporting for Java searcher 2025-09-12 12:41:00 +08:00
lion fdec88605f update the cli search demo 2025-09-08 11:52:34 +08:00
lion 0623fee57a update the ReadMe for IPv6 supports 2025-09-08 11:13:09 +08:00
lion beb0e452ce xdb verify desc and docs 2025-09-07 18:09:57 +08:00
lion 7cc7d4d9cf add verify func and call it on the test program to make sure the searcher would work properly 2025-09-07 10:47:01 +08:00
lion a8a17b0f98 show the normalized ipv4 region 2025-09-06 10:35:57 +08:00
lion 03eef4a75e IPv4 and IPv6 search test and bench demo 2025-09-06 10:14:23 +08:00
lion 6b2e18e551 update the Doc for the latest API call (IPv4 & IPv6) 2025-09-06 10:07:13 +08:00
lion 0307a3df14 IPv6 RC verison with IPv4 compatible with the old implementation 2025-09-06 00:36:10 +08:00
lion ae69123857 add IPv6 supports for golang binding 2025-09-05 17:15:01 +08:00
lion 4996c0ff6a add in-memory search supports when the xdb file size exceeds 2^31 - 1 2025-08-22 19:10:51 +08:00
lion 73e4e6047f add batch test script 2025-06-19 15:08:52 +08:00
lion da47234738 java binding 2.8.0 with vectorIndex/file policy search support xdb size exceeds INT.max bytes 2025-06-10 23:42:21 +08:00
lion 1d32d5e6aa a Temporary solution for xdb size exceeds the INT.max which will cause nagetive array index 2025-06-10 23:37:40 +08:00
lion ec1ae9504e fix the bug of undefined:io 2025-05-05 19:46:13 +08:00
Jellyfish 39a806695e 增加LoadContentFromFS函数,提供了一个通用的方法来从 embed.FS 中加载文件内容。 2025-04-21 10:07:38 +08:00
Alan e49a076dee update: add ts-ip2region client 2024-12-17 16:36:29 +08:00
Alan c376ccd72b v0.1.1 2024-12-17 16:34:30 +08:00
Alan 37dc606a59 update: remove @types/ip2region 2024-12-17 16:24:32 +08:00
Alan 1a11c91061 docs: update readme 2024-12-17 15:26:13 +08:00
Alan e481fea2b9 feat: add typescript client 2024-12-17 13:59:20 +08:00
Alan 3a2d02923e feat: initialize TypeScript library project 2024-12-16 14:40:46 +08:00
eliauk-code 40f2cdfcd9
Update ReadMe.md
spelling mistake
2024-05-09 14:24:57 +08:00
Yunbin Liu 3b7cc3d477 fix python search 2024-03-22 07:23:55 +00:00
Yunbin Liu 19c2aa8199 add binding maker and editor for C++ 2024-03-21 06:59:50 +00:00
kaifulee 6943aae2d0 chore: fix typo
Signed-off-by: kaifulee <cuishuang@outlook.com>
2024-03-13 20:38:52 +08:00
Lion 27b5efde55 regen the xdb and remove the -g for c binding default compile flag 2024-02-28 10:35:24 +08:00
Lion 3066d243cd Compatible with windows system 2023-10-13 11:07:45 +08:00
Lion aa834af535 use the old charset.forName instead of standart to avoid JDK level set 2023-10-13 10:49:43 +08:00
Lion 86553fba20 remove the level setting 2023-10-13 09:21:34 +08:00
Lion 7256345713 force the reader default charset to UTF_8 to compita 2023-10-13 09:15:57 +08:00
Alan 4c87a3b71e fix:issue #320 2023-10-02 21:02:26 +08:00
Alan b8fc536521 docs:support netstandard2.0 2023-07-30 17:54:14 +08:00
Alan 769f708b16 feat: support netstandard2.0 2023-07-30 17:52:08 +08:00
Alan edaca47635 docs:add file query instructions 2023-07-26 21:35:17 +08:00
Alan df1252345b test:concurrent query ip 2023-07-26 21:30:34 +08:00
Alan 7f5ec337d0 feat:support for concurrent file-based queries 2023-07-26 21:25:34 +08:00
lion a5b42e32fe convert length type to compitatible with the old std 2023-04-03 09:50:23 +08:00
Wu Jian Ping 4697640fbc cleanup 2023-03-31 18:22:54 +08:00
Wu Jian Ping 4e588db3de 移除LICENSE 2023-03-31 18:19:25 +08:00
Wu Jian Ping a406f0e636 1. c binding 支持MAC构建 2. c binding 支持构建静态库(nginx模块需要用到) 2023-03-31 18:14:24 +08:00
Wu Jian Ping 4ddd785bf0 cleanup 2023-03-31 00:32:05 +08:00
Wu Jian Ping fed6788fe4 enhance readme 2023-03-31 00:28:13 +08:00
Wu Jian Ping 09b05a6026 . 2023-03-30 22:19:42 +08:00
Wu Jian Ping 885c4d815f . 2023-03-30 22:16:56 +08:00
Wu Jian Ping 6607c9e61c . 2023-03-30 22:15:41 +08:00
Wu Jian Ping 0b5148be76 优化文档 2023-03-30 22:13:03 +08:00
Wu Jian Ping e8595bf525 优化文档 2023-03-30 22:12:37 +08:00
Wu Jian Ping a8571d4a99 优化文档 2023-03-30 22:11:55 +08:00
Wu Jian Ping 0bc0d9ea87 优化文档 2023-03-30 22:08:49 +08:00
Wu Jian Ping d96d54bbaa 优化代码 2023-03-30 21:58:40 +08:00
Wu Jian Ping 9578720cd1 优化代码 2023-03-30 21:34:06 +08:00
Wu Jian Ping 1d09953acb nginx implementation first cut 2023-03-30 21:03:53 +08:00
Wu Jian Ping b04e477b99 nginx-impl init 2023-03-30 17:46:38 +08:00
lion 138eea8849 upgrade maven version to 2.7.0 2023-02-05 19:05:31 +08:00
lion 3fef2a2fad fix the bug of getInt2 reported by https://github.com/lionsoul2014/ip2region/issues/287 2023-02-05 18:52:40 +08:00
LeiHua f053e97b23 1.查询接口模块名为xdb;2.查询接口返回字符串;3.增加 apache 授权信息;4.调整基准测试数据来源 2023-01-17 11:57:45 +08:00
LeiHua 0a4d16b434 add priv directory 2023-01-14 10:40:12 +08:00
LeiHua 4803a7ecfb add priv directory 2023-01-14 10:37:53 +08:00
LeiHua ab9d5a443a rename util module to ip2region_util 2023-01-14 10:32:54 +08:00
LeiHua 6ae8e496a3 rename util module to ip2region_util 2023-01-14 10:31:47 +08:00
LeiHua 2f647b955c rename util module to ip2region_util 2023-01-14 10:17:21 +08:00
LeiHua de4f5c0c22 增加单元测试及基准测试 2023-01-13 21:41:43 +08:00
LeiHua 4efa1b36b2 增加erlang语言xdb查询客户端 2023-01-13 14:10:59 +08:00
LeiHua 18abb9d999 增加erlang语言xdb查询客户端 2023-01-13 13:42:44 +08:00
gongzhengyang 3c88e7a12f feat: change the ip2region2 -> xdb 2022-12-28 14:20:35 +08:00
gongzhengyang 42a3370e65 docs: add some infos 2022-12-24 14:21:32 +08:00
gongzhengyang c4b722f74b docs: fix docs error 2022-12-24 13:34:21 +08:00
gongzhengyang 8d606affff docs: finish the binding/rust Readme.md 2022-12-24 13:17:29 +08:00
gongzhengyang 6c9fdc5d26 feat: add bench and update tracing version 2022-12-24 10:39:39 +08:00
gongzhengyang f10b8971e1 feat: add example subcommands 2022-12-23 18:39:58 +08:00
gongzhengyang 654080b1d0 feat: change searcher fn 2022-12-23 17:06:14 +08:00
gongzhengyang 7e7a612437 feat: 调整search的整体接口 2022-12-23 12:02:12 +08:00
gongzhengyang 5702ca9259 feat: change package name 2022-12-22 18:27:01 +08:00
gongzhengyang 76345e67b0 perf(add more benchmark and change function calls): 2022-12-21 16:38:37 +08:00
gongzhengyang e57adde491 feat: finish all jobs 2022-12-20 14:58:10 +08:00
gongzhengyang 102b128c0d feat: add loop test ip 2022-12-20 13:55:52 +08:00
gongzhengyang 95b822ac38 refactor: change searcher to global 2022-12-20 12:01:43 +08:00
gongzhengyang c48150216e feat: add miss depens 2022-12-20 09:58:43 +08:00
gongzhengyang a5f0837bb5 feat: add ToUIntIP for types ip value 2022-12-20 09:56:51 +08:00
gongzhengyang 09c05be3f2 feat: 完成IP搜索 2022-12-19 15:49:13 +08:00
gongzhengyang cb84133da8 feat: 初始化增加rust查询 2022-12-19 14:36:09 +08:00
Lion 61788530fd some optimizations 2022-12-06 20:16:44 +08:00
Lion 3e6440f1dd load segments while editor init 2022-12-02 18:29:39 +08:00
lion 27612f871a update the maven version to 2.6.6 2022-11-18 08:38:53 +08:00
lion 2084878935 update the version number to 2.6.6 for maven upgrade 2022-11-18 08:36:07 +08:00
lion fe0605224e shoule be VectorIndexSize 2022-11-18 08:33:37 +08:00
lisb 8cb9aeb29e java:移除无用导包
Signed-off-by: lisb <shangshili@hotmail.com>
2022-10-16 11:36:56 +00:00
cenguoping b071019afd fs.close不写回调函数时,在14.x及以上版本中报错 2022-10-13 14:04:04 +08:00
Alan bdab0d8c6d feat(csharp): 2.0 xdb csharp client implementation 2022-09-06 18:21:23 +08:00
Alan 7d22a7d6ae feat(csharp): csharp 2.0 xdb client implementation 2022-09-06 18:18:43 +08:00
Lion b299e9eaf1 fix the doc erors 2022-08-27 13:37:39 +08:00
lion 3641d130d0 use rb mode reported at https://github.com/lionsoul2014/ip2region/issues/255 2022-08-13 11:51:30 +08:00
lion 67eb391a5a remove the unused ptr reported at https://github.com/lionsoul2014/ip2region/issues/254 2022-08-13 11:49:18 +08:00
Lion c80d2ffb82 Merge pull request #245 from wujjpp/v2.0-for-nodejs
xdb searcher for nodejs
2022-07-25 13:23:52 +08:00
Wu Jian Ping f2a7485a56 移除主代码中的关于逻辑说明注释 2022-07-25 12:37:18 +08:00
Wu Jian Ping e434554864 修改ReadMe.md的一处错误 2022-07-25 12:33:53 +08:00
Wu Jian Ping a1879c3d29 移除package-lock.json 2022-07-25 12:32:30 +08:00
weideguo e8bbe27e42 fix error for xdbSearcher.py 2022-07-25 11:33:21 +08:00
Wu Jian Ping f3df96ef30 . 2022-07-22 16:29:18 +08:00
Wu Jian Ping 8c92ed33f4 . 2022-07-22 15:45:45 +08:00
Wu Jian Ping 1a2e327e22 更新readme 2022-07-22 15:10:44 +08:00
Wu Jian Ping 5110cefc47 优化bench程序 2022-07-22 14:57:38 +08:00
Wu Jian Ping 6af5789fc4 优化bench程序 2022-07-22 14:28:14 +08:00
Wu Jian Ping bd084c0a5d bench程序增加对sip、eip合法性检测 2022-07-22 14:05:04 +08:00
Wu Jian Ping 609e7749ee bench程序: 增加单个IP段,检查5个IP,与其它语言保持一致 2022-07-22 13:57:31 +08:00
Wu Jian Ping f6bf9baf1e bench程序: 增加单个IP段,检查5个IP,与其它语言保持一致 2022-07-22 13:56:56 +08:00
Wu Jian Ping e57db724d3 更新bench app,增加比对结果 2022-07-22 13:44:23 +08:00
Wu Jian Ping 142ded8db5 update readme 2022-07-22 13:26:19 +08:00
Wu Jian Ping b601b19d91 增加bench测试程序 2022-07-22 13:24:10 +08:00
Wu Jian Ping 6d42c45c12 增加bench测试程序 2022-07-22 13:22:18 +08:00
Wu Jian Ping 607fbcdde7 add test app 2022-07-22 11:03:10 +08:00
Wu Jian Ping e761381d0e update readme 2022-07-21 22:35:46 +08:00
Wu Jian Ping 4fde2363fa 查询返回对象增加took(us)和ioCount 2022-07-21 22:31:44 +08:00
Wu Jian Ping 743bbd204b . 2022-07-21 18:12:36 +08:00
Wu Jian Ping 0ffa58b592 . 2022-07-21 18:09:08 +08:00
Wu Jian Ping 12aee0894d 集成单元测试&覆盖率报告 2022-07-21 17:33:47 +08:00
Wu Jian Ping 7f6cac9e09 nodejs实现 2022-07-21 16:27:04 +08:00
Lion fd0a6e09f4 auto close the handle after buffer loaded 2022-07-20 16:38:43 +08:00
Lion c5fad74d95 auto close the handle after buffer loaded 2022-07-20 16:24:21 +08:00
Lion 680624db65 auto close the handle after buffer loaded 2022-07-20 16:15:42 +08:00
Lion c15be8c7b5 auto close the handle after loaded the buffer 2022-07-20 16:06:37 +08:00