mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
update to 16.18.4
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
ArduinoJson: change log
|
ArduinoJson: change log
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
v6.18.4 (2021-09-06)
|
||||||
|
-------
|
||||||
|
|
||||||
|
* Fixed error `'dummy' may be used uninitialized` on GCC 11
|
||||||
|
* Fixed error `expected unqualified-id before 'const'` on GCC 11 (issue #1622)
|
||||||
|
* Filter: exact match takes precedence over wildcard (issue #1628)
|
||||||
|
* Fixed deserialization of `\u0000` (issue #1646)
|
||||||
|
|
||||||
v6.18.3 (2021-07-27)
|
v6.18.3 (2021-07-27)
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
[](https://www.ardu-badge.com/ArduinoJson/6.18.3)
|
[](https://www.ardu-badge.com/ArduinoJson/6.18.4)
|
||||||
[](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A6.x)
|
[](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A6.x)
|
||||||
[](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
[](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
||||||
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
||||||
@@ -78,7 +78,7 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
|
|||||||
* [Unit test coverage close to 100%](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)
|
* [Unit test coverage close to 100%](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)
|
||||||
* Continuously tested on
|
* Continuously tested on
|
||||||
* [Visual Studio 2010, 2012, 2013, 2015, 2017, 2019](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
* [Visual Studio 2010, 2012, 2013, 2015, 2017, 2019](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
||||||
* [GCC 4.4, 4.6, 4.7, 4.8, 4.9, 5, 6, 7, 8, 9, 10](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22)
|
* [GCC 4.4, 4.6, 4.7, 4.8, 4.9, 5, 6, 7, 8, 9, 10, 11](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22)
|
||||||
* [Clang 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 6.0, 7, 8, 9, 10](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22)
|
* [Clang 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 6.0, 7, 8, 9, 10](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22)
|
||||||
* [Continuously fuzzed with Google OSS Fuzz](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
* [Continuously fuzzed with Google OSS Fuzz](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
||||||
* Passes all default checks of [clang-tidy](https://releases.llvm.org/10.0.0/tools/clang/tools/extra/docs/clang-tidy/)
|
* Passes all default checks of [clang-tidy](https://releases.llvm.org/10.0.0/tools/clang/tools/extra/docs/clang-tidy/)
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ class Filter {
|
|||||||
Filter operator[](const TKey& key) const {
|
Filter operator[](const TKey& key) const {
|
||||||
if (_variant == true) // "true" means "allow recursively"
|
if (_variant == true) // "true" means "allow recursively"
|
||||||
return *this;
|
return *this;
|
||||||
else
|
VariantConstRef member = _variant[key];
|
||||||
return Filter(_variant[key] | _variant["*"]);
|
return Filter(member.isNull() ? _variant["*"] : member);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ struct Reader {
|
|||||||
Reader(TSource& source) : _source(&source) {}
|
Reader(TSource& source) : _source(&source) {}
|
||||||
|
|
||||||
int read() {
|
int read() {
|
||||||
return _source->read();
|
return _source->read(); // Error here? You passed an unsupported input type
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t readBytes(char* buffer, size_t length) {
|
size_t readBytes(char* buffer, size_t length) {
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ template <typename TStringBuilder>
|
|||||||
inline void encodeCodepoint(uint32_t codepoint32, TStringBuilder& str) {
|
inline void encodeCodepoint(uint32_t codepoint32, TStringBuilder& str) {
|
||||||
// this function was optimize for code size on AVR
|
// this function was optimize for code size on AVR
|
||||||
|
|
||||||
|
if (codepoint32 < 0x80) {
|
||||||
|
str.append(char(codepoint32));
|
||||||
|
} else {
|
||||||
// a buffer to store the string in reverse
|
// a buffer to store the string in reverse
|
||||||
char buf[5];
|
char buf[5];
|
||||||
char* p = buf;
|
char* p = buf;
|
||||||
|
|
||||||
*(p++) = 0;
|
*(p++) = 0;
|
||||||
if (codepoint32 < 0x80) {
|
|
||||||
*(p++) = char((codepoint32));
|
|
||||||
} else {
|
|
||||||
*(p++) = char((codepoint32 | 0x80) & 0xBF);
|
*(p++) = char((codepoint32 | 0x80) & 0xBF);
|
||||||
uint16_t codepoint16 = uint16_t(codepoint32 >> 6);
|
uint16_t codepoint16 = uint16_t(codepoint32 >> 6);
|
||||||
if (codepoint16 < 0x20) { // 0x800
|
if (codepoint16 < 0x20) { // 0x800
|
||||||
@@ -36,11 +36,11 @@ inline void encodeCodepoint(uint32_t codepoint32, TStringBuilder& str) {
|
|||||||
*(p++) = char(codepoint16 | 0xF0);
|
*(p++) = char(codepoint16 | 0xF0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
while (*(--p)) {
|
while (*(--p)) {
|
||||||
str.append(*p);
|
str.append(*p);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} // namespace Utf8
|
} // namespace Utf8
|
||||||
} // namespace ARDUINOJSON_NAMESPACE
|
} // namespace ARDUINOJSON_NAMESPACE
|
||||||
|
|||||||
@@ -45,8 +45,7 @@ class StringAdapter< ::String> {
|
|||||||
template <>
|
template <>
|
||||||
class StringAdapter< ::StringSumHelper> : public StringAdapter< ::String> {
|
class StringAdapter< ::StringSumHelper> : public StringAdapter< ::String> {
|
||||||
public:
|
public:
|
||||||
StringAdapter< ::StringSumHelper>(const ::String& s)
|
StringAdapter(const ::String& s) : StringAdapter< ::String>(s) {}
|
||||||
: StringAdapter< ::String>(s) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ARDUINOJSON_NAMESPACE
|
} // namespace ARDUINOJSON_NAMESPACE
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class StringAdapter<const char*> {
|
|||||||
template <int N>
|
template <int N>
|
||||||
class StringAdapter<const char[N]> : public StringAdapter<const char*> {
|
class StringAdapter<const char[N]> : public StringAdapter<const char*> {
|
||||||
public:
|
public:
|
||||||
StringAdapter<const char[N]>(const char* s) : StringAdapter<const char*>(s) {}
|
StringAdapter(const char* s) : StringAdapter<const char*>(s) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ARDUINOJSON_NAMESPACE
|
} // namespace ARDUINOJSON_NAMESPACE
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ struct Converter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool checkJson(VariantConstRef src) {
|
static bool checkJson(VariantConstRef src) {
|
||||||
T dummy;
|
T dummy = T();
|
||||||
// clang-format off
|
// clang-format off
|
||||||
return canConvertFromJson(src, dummy); // Error here? See https://arduinojson.org/v6/unsupported-is/
|
return canConvertFromJson(src, dummy); // Error here? See https://arduinojson.org/v6/unsupported-is/
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
namespace ARDUINOJSON_NAMESPACE {
|
namespace ARDUINOJSON_NAMESPACE {
|
||||||
|
|
||||||
//
|
|
||||||
enum {
|
enum {
|
||||||
VALUE_MASK = 0x7F,
|
VALUE_MASK = 0x7F,
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define ARDUINOJSON_VERSION "6.18.3"
|
#define ARDUINOJSON_VERSION "6.18.4"
|
||||||
#define ARDUINOJSON_VERSION_MAJOR 6
|
#define ARDUINOJSON_VERSION_MAJOR 6
|
||||||
#define ARDUINOJSON_VERSION_MINOR 18
|
#define ARDUINOJSON_VERSION_MINOR 18
|
||||||
#define ARDUINOJSON_VERSION_REVISION 3
|
#define ARDUINOJSON_VERSION_REVISION 4
|
||||||
|
|||||||
Reference in New Issue
Block a user