Skip to content

Releases: m2osw/libtld

v2.0.5

05 Jan 05:52
Compare
Choose a tag to compare

Here is a version which also compiles and runs on the newest version g++ (On Ubuntu Hirsute, 21.04).

There was one additional warning to take care of.

There was also an issue with the code looking to merge tags. It now merges properly.

v2.0.1

02 Jan 05:30
Compare
Choose a tag to compare

I was a bit hasty, I suppose, since version 2.0.0 was not yet passing the coverage tests properly.

I have to say that since I converted to using the cmake/scripts/coverage script, it was not running for libtld anyway (even the old one). I still had the dev/coverage script, though, which has to go soon. I think I captured pretty much all the necessary information from that one.

v2.0.0

01 Jan 10:06
Compare
Choose a tag to compare

This is a new release which doesn't require Qt at all. Something I wanted to do for a while.

I've fixed a few TLDs which used invalid character numbers (5 hexadecimal digits, that was incorrect but worked with Qt...)

The main point, though, was to offer a way to compile the TLDs at any time, even after installation. So I added a new tool named tldc which can be used to recompile all the .ini files describing the TLDs—instead of the all-in-one tld_data.xml file. I'm sure some improvements will be required. Also by default I build a version of the tables in the library (through the tld_data.c file as before, only the format changed to an RIFF/TLDS file).

I've also made some clean up to the project as a whole. For example, I removed the package sub-directory, which targeted wpkg and I don't think anyone used that tool anymore (if ever).

I did not update the TLDs to the latest yet. I'll try to do that soon since it has been a little while since the last update.

Release 1.6.0

08 May 19:40
Compare
Choose a tag to compare

This version properly handles the asterisks in URLs (we have asterisks in the public_suffix_list.dat; see #4 for details).

  • Updated the public_suffix_list.dat to the latest; enhanced our test to support the file as is instead of having to edit it.
  • Added an mk script to easily rebuild the library and tools.
  • Allow the public_suffix_list.dat to be in the tests/... sub-folder.
  • Updated the tests to pass with the latest version.
  • Added a test to verify specific URLs (in tld_test.c).
  • Fixed file description at the top of two tests.
  • Added the .gitignore file.
  • Replaced many tabs with spaces so diffs work as expected.
  • Updated the copyright year.

Release 1.5.14

14 Jun 23:27
Compare
Choose a tag to compare

libtld is a small library that goes through a list of TLD (Top Level Domain names) to verify that it is valid.

This is useful for systems that need to verify that a TLD is indeed valid. All the tables get compiled in (as C-like sorted table so we can binary search the data) which makes the search pretty much as fast as can be.

The base library is in C. There is also a C++ interface (a class to access TLDs and emails) which makes it a lot easier to deal with strings and lists of emails. This allows us to verify email addresses because some scammers do use strings that are totally invalid.

You may find it easier to use the PPA version (i.e. binary packages for Ubuntu): https://launchpad.net/~snapcpp/+archive/ubuntu/ppa/+packages