2049 Commits

Author SHA1 Message Date
2512993617 Replace problematic symbol in idf_component.yml
Fixes #2131
2024-09-26 09:18:23 +02:00
48ee4a178b Use a const reference in is_convertible() 2024-09-21 09:22:12 +02:00
cd4b2b2463 Set version to 7.2.0 v7.2.0 2024-09-18 10:48:50 +02:00
f806a42cc2 Add support for escape sequence \'
Fixes #2124
2024-09-17 10:33:47 +02:00
c1a507c158 Set ARDUINOJSON_POOL_CAPACITY from ARDUINOJSON_SLOT_ID_SIZE
This avoids the integer overflow when `ARDUINOJSON_SLOT_ID_SIZE=1` on 64-bit architectures.
2024-09-11 21:08:51 +02:00
a1809d0f31 Replace sizeof(VariantData) with sizeof(SlotData) 2024-09-10 18:26:58 +02:00
d92eee8736 Deprecate containsKey() in favor of doc["key"].is<T>()
See #2121
2024-09-06 17:32:09 +02:00
dd1d96e28f Group calls to getExtension()
This slightly reduces the code size.
2024-09-05 12:15:10 +02:00
3b64197869 MsgPackDeserializer: check extension allocation result 2024-09-04 14:34:02 +02:00
1f7a3f3174 JsonDeserializer: use float when the value has few digits 2024-09-04 14:33:14 +02:00
fd6314e132 Move some numbers tests to use_double_0.cpp 2024-09-04 14:29:19 +02:00
e4e2557b76 Move test of decomposeFloat() 2024-09-03 13:27:39 +02:00
3b6bf45b8a Serialize float with less decimal places than double 2024-09-03 11:44:35 +02:00
65ba36622c Add VariantType 2024-09-02 17:56:19 +02:00
33452c1f37 Test JsonVariant::as<T>() with extension slots 2024-08-27 16:08:47 +02:00
ee02c0d573 Test extension slot allocation failure 2024-08-27 16:08:47 +02:00
0278e94fce Set ARDUINOJSON_USE_DOUBLE to 0 by default on 8-bit architectures 2024-08-27 15:46:12 +02:00
7643dadaec WIP 2024-08-27 14:40:24 +02:00
c0bebe35f1 Improve message when user forgets third arg of serializeJson() et al.
See #1449, #1491, #1543, #1665, and #2122
2024-08-27 12:22:53 +02:00
b5bcb37657 Use enable_if_t instead of enable_if 2024-08-27 10:00:09 +02:00
b4a5b053ca Merge conf_test for linux and windows
This reverts commit 83516e1740.
2024-08-27 08:03:55 +02:00
e297932a98 Store 64-bit numbers (double and long long) in an additional slot
This change allows slots to be twices maller on 32-bit architectures.
See #1650 and #2103
2024-08-27 08:02:09 +02:00
e682337655 Release VariantData resources explicitly before setting value 2024-08-26 15:09:56 +02:00
4ada3f849c Decouple parseNumber() from VariantData 2024-08-25 16:46:55 +02:00
5dd203bca4 Rename SlotWithId to Slot 2024-08-25 15:04:39 +02:00
362201241f Make MemoryPool generic 2024-08-25 14:58:23 +02:00
2be24eded8 Rename SlotWithId::slot() and VariantWithId::data() to ptr() 2024-08-25 14:54:45 +02:00
4327f72140 Remove VariantSlot 2024-08-25 14:45:59 +02:00
f7f1b9745d Hide FreeSlot in MemoryPoolList 2024-08-25 14:39:18 +02:00
cec18177b0 Move sizeofArray() and sizeofObject() 2024-08-25 14:36:38 +02:00
f2894552f2 Rename VariantPool to MemoryPool 2024-08-25 14:36:38 +02:00
d3721cb122 Make VariantSlot a union. Include next slot id in VariantData 2024-08-24 19:20:39 +02:00
ab72bb8601 Rename flags_ to type_ 2024-08-24 11:18:21 +02:00
09c89dcacf Store object members with two slots: one for the key and one for the value 2024-08-24 10:45:51 +02:00
a2b09bfbd2 Remove unused code 2024-08-23 15:28:44 +02:00
386105be90 Allocate slot before key 2024-08-23 15:27:46 +02:00
83516e1740 Split conf_test between linux and windows 2024-08-23 15:24:45 +02:00
bf99aeedb1 Add @LArkema to the list of sponsors 💖 2024-07-02 10:27:36 +02:00
22dd4da3af Set version to 7.1.0 v7.1.0 2024-06-27 18:20:22 +02:00
55c3b9b3a7 CI: update macOS runner to macos-13 2024-06-18 13:51:40 +02:00
d83515dcda Add DevContainer files for Clang 13 to 17 2024-06-18 13:51:40 +02:00
e34c27723a Fix build on modern compilers 2024-06-18 13:51:40 +02:00
b23ff65b99 Reduce MsgPack deserializer size 2024-06-18 13:51:33 +02:00
556785dc1e Read MsgPack's 64-bit ints even if ARDUINOJSON_USE_LONG_LONG is 0 2024-06-18 13:50:50 +02:00
e9c87858d1 Remove files.associations from vscode settings 2024-06-18 09:31:39 +02:00
208e7a3304 Fix integer overflow in MsgPackDeserializer 2024-06-11 09:47:11 +02:00
45611924f3 Tests: add user-defined literal ""_s for std::string 2024-06-07 09:35:45 +02:00
5b88b2c1f6 Update GitHub actions 2024-06-06 18:43:10 +02:00
e4f3fd8c91 Add support for MsgPack extension 2024-06-06 18:33:48 +02:00
aec642be20 Rename tests in MixedConfiguration 2024-06-06 18:26:16 +02:00