0
0
mirror of https://github.com/zeux/pugixml.git synced 2025-01-13 01:08:00 +08:00

Update library version to 1.15 and update docs

This commit is contained in:
Arseny Kapoulkine 2025-01-10 08:48:52 -08:00
parent b299231ff7
commit e7ed748b02
11 changed files with 93 additions and 18 deletions

View File

@ -5,7 +5,7 @@ if(POLICY CMP0091)
cmake_policy(SET CMP0091 NEW) # Enables use of MSVC_RUNTIME_LIBRARY cmake_policy(SET CMP0091 NEW) # Enables use of MSVC_RUNTIME_LIBRARY
endif() endif()
project(pugixml VERSION 1.14 LANGUAGES CXX) project(pugixml VERSION 1.15 LANGUAGES CXX)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
include(CMakeDependentOption) include(CMakeDependentOption)

View File

@ -2203,6 +2203,25 @@ Because of the differences in document object models, performance considerations
:!numbered: :!numbered:
[[v1.15]]
=== v1.15 ^2024-01-10^
Maintenance release. Changes:
* Improvements:
. Many `xml_attribute::` and `xml_node::` functions now transparently support `std::string_view` and `std::string` when C++17 support is detected.
* CMake improvements:
. Improve `pkg-config` file generation for NixOS
. `PUGIXML_BUILD_APPLE_FRAMEWORK` CMake option can be used to build pugixml as `.xcframework`
. `PUGIXML_INSTALL` CMake option can be used to disable installation targets
* Compatibility improvements:
. Fix clang/gcc warnings `-Wzero-as-null-pointer-constant`, `-Wuseless-cast`, `-Wshorten-64-to-32`
. Fix unreferenced function warnings in `PUGIXML_NO_STL` configuration
. Fix CMake 3.31 deprecation warnings
. Stop using deprecated `throw()` when `noexcept` is available
[[v1.14]] [[v1.14]]
=== v1.14 ^2023-10-01^ === v1.14 ^2023-10-01^

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 2.0.20"> <meta name="generator" content="Asciidoctor 2.0.20">
<meta name="author" content="website, repository"> <meta name="author" content="website, repository">
<title>pugixml 1.14 manual</title> <title>pugixml 1.15 manual</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
<style> <style>
/*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */ /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
@ -508,7 +508,7 @@ pre.pygments .tok-il { color: #666666 } /* Literal.Number.Integer.Long */
</head> </head>
<body class="article toc2 toc-right"> <body class="article toc2 toc-right">
<div id="header"> <div id="header">
<h1>pugixml 1.14 manual</h1> <h1>pugixml 1.15 manual</h1>
<div class="details"> <div class="details">
<span id="author" class="author">website</span><br> <span id="author" class="author">website</span><br>
<span id="email" class="email"><a href="https://pugixml.org" class="bare">https://pugixml.org</a></span><br> <span id="email" class="email"><a href="https://pugixml.org" class="bare">https://pugixml.org</a></span><br>
@ -603,6 +603,7 @@ pre.pygments .tok-il { color: #666666 } /* Literal.Number.Integer.Long */
</li> </li>
<li><a href="#changes">9. Changelog</a> <li><a href="#changes">9. Changelog</a>
<ul class="sectlevel2"> <ul class="sectlevel2">
<li><a href="#v1.15">v1.15 <sup>2024-01-10</sup></a></li>
<li><a href="#v1.14">v1.14 <sup>2023-10-01</sup></a></li> <li><a href="#v1.14">v1.14 <sup>2023-10-01</sup></a></li>
<li><a href="#v1.13">v1.13 <sup>2022-11-01</sup></a></li> <li><a href="#v1.13">v1.13 <sup>2022-11-01</sup></a></li>
<li><a href="#v1.12">v1.12 <sup>2022-02-09</sup></a></li> <li><a href="#v1.12">v1.12 <sup>2022-02-09</sup></a></li>
@ -758,9 +759,9 @@ pugixml is Copyright (C) 2006-2025 Arseny Kapoulkine.</pre>
<p>You can download the latest source distribution as an archive:</p> <p>You can download the latest source distribution as an archive:</p>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p><a href="https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.zip">pugixml-1.14.zip</a> (Windows line endings) <p><a href="https://github.com/zeux/pugixml/releases/download/v1.15/pugixml-1.15.zip">pugixml-1.15.zip</a> (Windows line endings)
/ /
<a href="https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz">pugixml-1.14.tar.gz</a> (Unix line endings)</p> <a href="https://github.com/zeux/pugixml/releases/download/v1.15/pugixml-1.15.tar.gz">pugixml-1.15.tar.gz</a> (Unix line endings)</p>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p>The distribution contains library source, documentation (the manual you&#8217;re reading now and the quick start guide) and some code examples. After downloading the distribution, install pugixml by extracting all files from the compressed archive.</p> <p>The distribution contains library source, documentation (the manual you&#8217;re reading now and the quick start guide) and some code examples. After downloading the distribution, install pugixml by extracting all files from the compressed archive.</p>
@ -781,7 +782,7 @@ pugixml is Copyright (C) 2006-2025 Arseny Kapoulkine.</pre>
<div class="content"> <div class="content">
<pre class="pygments highlight"><code data-lang="bash">git clone https://github.com/zeux/pugixml <pre class="pygments highlight"><code data-lang="bash">git clone https://github.com/zeux/pugixml
cd pugixml cd pugixml
git checkout v1.14</code></pre> git checkout v1.15</code></pre>
</div> </div>
</div> </div>
<div class="paragraph"> <div class="paragraph">
@ -798,7 +799,7 @@ git checkout v1.14</code></pre>
</div> </div>
<div class="listingblock"> <div class="listingblock">
<div class="content"> <div class="content">
<pre class="pygments highlight"><code data-lang="bash">svn checkout https://github.com/zeux/pugixml/tags/v1.14 pugixml</code></pre> <pre class="pygments highlight"><code data-lang="bash">svn checkout https://github.com/zeux/pugixml/tags/v1.15 pugixml</code></pre>
</div> </div>
</div> </div>
</div> </div>
@ -4129,6 +4130,61 @@ If exceptions are disabled, then in the event of parsing failure the query is in
<h2 id="changes"><a class="anchor" href="#changes"></a><a class="link" href="#changes">9. Changelog</a></h2> <h2 id="changes"><a class="anchor" href="#changes"></a><a class="link" href="#changes">9. Changelog</a></h2>
<div class="sectionbody"> <div class="sectionbody">
<div class="sect2"> <div class="sect2">
<h3 id="v1.15"><a class="anchor" href="#v1.15"></a><a class="link" href="#v1.15">v1.15 <sup>2024-01-10</sup></a></h3>
<div class="paragraph">
<p>Maintenance release. Changes:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Improvements:</p>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Many <code>xml_attribute::</code> and <code>xml_node::</code> functions now transparently support <code>std::string_view</code> and <code>std::string</code> when C++17 support is detected.</p>
</li>
</ol>
</div>
</li>
<li>
<p>CMake improvements:</p>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Improve <code>pkg-config</code> file generation for NixOS</p>
</li>
<li>
<p><code>PUGIXML_BUILD_APPLE_FRAMEWORK</code> CMake option can be used to build pugixml as <code>.xcframework</code></p>
</li>
<li>
<p><code>PUGIXML_INSTALL</code> CMake option can be used to disable installation targets</p>
</li>
</ol>
</div>
</li>
<li>
<p>Compatibility improvements:</p>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Fix clang/gcc warnings <code>-Wzero-as-null-pointer-constant</code>, <code>-Wuseless-cast</code>, <code>-Wshorten-64-to-32</code></p>
</li>
<li>
<p>Fix unreferenced function warnings in <code>PUGIXML_NO_STL</code> configuration</p>
</li>
<li>
<p>Fix CMake 3.31 deprecation warnings</p>
</li>
<li>
<p>Stop using deprecated <code>throw()</code> when <code>noexcept</code> is available</p>
</li>
</ol>
</div>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="v1.14"><a class="anchor" href="#v1.14"></a><a class="link" href="#v1.14">v1.14 <sup>2023-10-01</sup></a></h3> <h3 id="v1.14"><a class="anchor" href="#v1.14"></a><a class="link" href="#v1.14">v1.14 <sup>2023-10-01</sup></a></h3>
<div class="paragraph"> <div class="paragraph">
<p>Maintenance release. Changes:</p> <p>Maintenance release. Changes:</p>
@ -6216,7 +6272,7 @@ If exceptions are disabled, then in the event of parsing failure the query is in
</div> </div>
<div id="footer"> <div id="footer">
<div id="footer-text"> <div id="footer-text">
Last updated 2025-01-10 07:29:37 -0800 Last updated 2025-01-10 08:48:45 -0800
</div> </div>
</div> </div>
</body> </body>

View File

@ -1,4 +1,4 @@
pugixml 1.14 - an XML processing library pugixml 1.15 - an XML processing library
Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
Report bugs and download new versions at https://pugixml.org/ Report bugs and download new versions at https://pugixml.org/

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata> <metadata>
<id>pugixml</id> <id>pugixml</id>
<version>1.14.0-appveyor</version> <version>1.15.0-appveyor</version>
<title>pugixml</title> <title>pugixml</title>
<authors>Arseny Kapoulkine</authors> <authors>Arseny Kapoulkine</authors>
<owners>Arseny Kapoulkine</owners> <owners>Arseny Kapoulkine</owners>

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "pugixml" s.name = "pugixml"
s.version = "1.14" s.version = "1.15"
s.summary = "C++ XML parser library." s.summary = "C++ XML parser library."
s.homepage = "https://pugixml.org" s.homepage = "https://pugixml.org"
s.license = "MIT" s.license = "MIT"

View File

@ -1,9 +1,9 @@
#include <winver.h> #include <winver.h>
#define PUGIXML_VERSION_MAJOR 1 #define PUGIXML_VERSION_MAJOR 1
#define PUGIXML_VERSION_MINOR 14 #define PUGIXML_VERSION_MINOR 15
#define PUGIXML_VERSION_PATCH 0 #define PUGIXML_VERSION_PATCH 0
#define PUGIXML_VERSION_NUMBER "1.14.0\0" #define PUGIXML_VERSION_NUMBER "1.15.0\0"
#if defined(GCC_WINDRES) || defined(__MINGW32__) || defined(__CYGWIN__) #if defined(GCC_WINDRES) || defined(__MINGW32__) || defined(__CYGWIN__)
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO

View File

@ -1,5 +1,5 @@
/** /**
* pugixml parser - version 1.14 * pugixml parser - version 1.15
* -------------------------------------------------------- * --------------------------------------------------------
* Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at https://pugixml.org/ * Report bugs and download new versions at https://pugixml.org/

View File

@ -1,5 +1,5 @@
/** /**
* pugixml parser - version 1.14 * pugixml parser - version 1.15
* -------------------------------------------------------- * --------------------------------------------------------
* Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at https://pugixml.org/ * Report bugs and download new versions at https://pugixml.org/

View File

@ -1,5 +1,5 @@
/** /**
* pugixml parser - version 1.14 * pugixml parser - version 1.15
* -------------------------------------------------------- * --------------------------------------------------------
* Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * Copyright (C) 2006-2025, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at https://pugixml.org/ * Report bugs and download new versions at https://pugixml.org/
@ -14,7 +14,7 @@
// Define version macro; evaluates to major * 1000 + minor * 10 + patch so that it's safe to use in less-than comparisons // Define version macro; evaluates to major * 1000 + minor * 10 + patch so that it's safe to use in less-than comparisons
// Note: pugixml used major * 100 + minor * 10 + patch format up until 1.9 (which had version identifier 190); starting from pugixml 1.10, the minor version number is two digits // Note: pugixml used major * 100 + minor * 10 + patch format up until 1.9 (which had version identifier 190); starting from pugixml 1.10, the minor version number is two digits
#ifndef PUGIXML_VERSION #ifndef PUGIXML_VERSION
# define PUGIXML_VERSION 1140 // 1.14 # define PUGIXML_VERSION 1150 // 1.15
#endif #endif
// Include user configuration file (this can define various configuration macros) // Include user configuration file (this can define various configuration macros)

View File

@ -1,5 +1,5 @@
#include "../src/pugixml.hpp" #include "../src/pugixml.hpp"
#if PUGIXML_VERSION != 1140 // 1.14 #if PUGIXML_VERSION != 1150 // 1.15
#error Unexpected pugixml version #error Unexpected pugixml version
#endif #endif