From 8911320b3186be263be7bcc08ea44b7d062e7476 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Sun, 7 Jan 2024 21:51:57 -0800 Subject: [PATCH] Version 5.0.0 --- HISTORY | 14 ++++++++++++++ ext/libxml/ruby_xml_version.h | 10 +++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/HISTORY b/HISTORY index 23bd9c7e..18878c6a 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,19 @@ = Release History +== 5.0.0 / 2024-01-07 + +* This release is major version bump because it removes access to global parser options + that libxml2 version 2.12.0 deprecated (see https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.0) + In the unlikely event your code uses these options, then you will need to update it. + Specifically, instead of setting global parser options, pass them directly to either Parsers + or ParserContexts when creating them. Options are defined as constants in + LibXML::XML::Parser::Options and LibXML::HTML::Parser::Options +* Update Parser initialize methods to take named parameters instead of a hash table (you should *not* + have to update your code due to this change) +* Fix broken compiliation with libxml2 version 2.12.0 (due to libxml2 header changes) +* Add support for Ruby 3.3.* +* Remove support for Ruby 2.7.* (gem should still work but is no longer tested) + == 4.1.2 / 2023-11-04 * Fix Ruby warnings about undefined allocators (yuuji.yaginuma, Christopher Sahnwaldt) diff --git a/ext/libxml/ruby_xml_version.h b/ext/libxml/ruby_xml_version.h index 4255e9a7..004b2680 100644 --- a/ext/libxml/ruby_xml_version.h +++ b/ext/libxml/ruby_xml_version.h @@ -1,9 +1,9 @@ /* Don't nuke this block! It is used for automatically updating the * versions below. VERSION = string formatting, VERNUM = numbered * version for inline testing: increment both or none at all.*/ -#define RUBY_LIBXML_VERSION "4.1.2" -#define RUBY_LIBXML_VERNUM 400 -#define RUBY_LIBXML_VER_MAJ 4 -#define RUBY_LIBXML_VER_MIN 1 -#define RUBY_LIBXML_VER_MIC 2 +#define RUBY_LIBXML_VERSION "5.0.0" +#define RUBY_LIBXML_VERNUM 500 +#define RUBY_LIBXML_VER_MAJ 5 +#define RUBY_LIBXML_VER_MIN 0 +#define RUBY_LIBXML_VER_MIC 0 #define RUBY_LIBXML_VER_PATCH 0