Commit Graph

  • f9fe8557f1 Set version to 7.2.1 v7.2.1 Benoit Blanchon 2024-11-15 09:05:29 +01:00
  • e007d71b4f Fix operator[](variant) ignoring NUL characters Benoit Blanchon 2024-11-14 14:56:47 +01:00
  • 67a512a923 Clean up tests of adaptString() Benoit Blanchon 2024-11-14 14:20:35 +01:00
  • 9cf4f3871d Remove unused overload of stringCompare() and stringEquals() Benoit Blanchon 2024-11-14 14:17:13 +01:00
  • 31253dbe13 Add more tests with VLAs Benoit Blanchon 2024-11-07 14:19:47 +01:00
  • 1110d62128 Fix VLA support in JsonDocument::set() Benoit Blanchon 2024-11-07 14:20:33 +01:00
  • c6c0649d70 Replace typedef with using Benoit Blanchon 2024-10-23 15:54:08 +02:00
  • 61ec2c4f95 Reduce boilerplate for failing build tests Benoit Blanchon 2024-10-23 15:47:59 +02:00
  • 0dd6231b3f Forbid deserializeJson(JsonArray|JsonObject, ...) Benoit Blanchon 2024-10-23 15:20:42 +02:00
  • 20219d74f0 Tests: don't link FailingBuilds with catch Benoit Blanchon 2024-10-23 15:04:52 +02:00
  • 64cbaa6ff7 Remove the workaround for particle-iot/particle-cli#716 Benoit Blanchon 2024-09-28 09:58:48 +02:00
  • 617c0329df Replace problematic symbols in idf_component.yml 6.x Benoit Blanchon 2024-09-26 09:21:51 +02:00
  • 2512993617 Replace problematic symbol in idf_component.yml Benoit Blanchon 2024-09-26 09:18:23 +02:00
  • 48ee4a178b Use a const reference in is_convertible() Benoit Blanchon 2024-09-21 09:22:12 +02:00
  • cd4b2b2463 Set version to 7.2.0 v7.2.0 Benoit Blanchon 2024-09-18 10:48:50 +02:00
  • f806a42cc2 Add support for escape sequence \' Benoit Blanchon 2024-09-17 10:25:25 +02:00
  • c1a507c158 Set ARDUINOJSON_POOL_CAPACITY from ARDUINOJSON_SLOT_ID_SIZE Benoit Blanchon 2024-09-11 21:08:51 +02:00
  • a1809d0f31 Replace sizeof(VariantData) with sizeof(SlotData) Benoit Blanchon 2024-09-10 18:26:58 +02:00
  • d92eee8736 Deprecate containsKey() in favor of doc["key"].is<T>() Benoit Blanchon 2024-09-06 17:32:09 +02:00
  • dd1d96e28f Group calls to getExtension() Benoit Blanchon 2024-09-05 12:15:10 +02:00
  • 3b64197869 MsgPackDeserializer: check extension allocation result Benoit Blanchon 2024-09-04 14:34:02 +02:00
  • 1f7a3f3174 JsonDeserializer: use float when the value has few digits Benoit Blanchon 2024-09-04 14:33:14 +02:00
  • fd6314e132 Move some numbers tests to use_double_0.cpp Benoit Blanchon 2024-09-03 19:18:32 +02:00
  • e4e2557b76 Move test of decomposeFloat() Benoit Blanchon 2024-09-03 13:27:39 +02:00
  • 3b6bf45b8a Serialize float with less decimal places than double Benoit Blanchon 2024-09-03 11:44:35 +02:00
  • 65ba36622c Add VariantType Benoit Blanchon 2024-09-02 17:56:19 +02:00
  • 33452c1f37 Test JsonVariant::as<T>() with extension slots Benoit Blanchon 2024-08-27 16:06:38 +02:00
  • ee02c0d573 Test extension slot allocation failure Benoit Blanchon 2024-08-27 14:51:22 +02:00
  • 0278e94fce Set ARDUINOJSON_USE_DOUBLE to 0 by default on 8-bit architectures Benoit Blanchon 2024-08-27 14:53:28 +02:00
  • 7643dadaec WIP Benoit Blanchon 2024-08-27 14:40:24 +02:00
  • c0bebe35f1 Improve message when user forgets third arg of serializeJson() et al. Benoit Blanchon 2024-08-27 10:15:43 +02:00
  • b5bcb37657 Use enable_if_t instead of enable_if Benoit Blanchon 2024-08-27 10:00:09 +02:00
  • b4a5b053ca Merge conf_test for linux and windows Benoit Blanchon 2024-08-27 08:03:55 +02:00
  • e297932a98 Store 64-bit numbers (double and long long) in an additional slot Benoit Blanchon 2024-08-27 08:02:09 +02:00
  • e682337655 Release VariantData resources explicitly before setting value Benoit Blanchon 2024-08-26 15:09:56 +02:00
  • 4ada3f849c Decouple parseNumber() from VariantData Benoit Blanchon 2024-08-25 16:40:12 +02:00
  • 5dd203bca4 Rename SlotWithId to Slot Benoit Blanchon 2024-08-25 15:04:39 +02:00
  • 362201241f Make MemoryPool generic Benoit Blanchon 2024-08-25 14:57:35 +02:00
  • 2be24eded8 Rename SlotWithId::slot() and VariantWithId::data() to ptr() Benoit Blanchon 2024-08-25 14:51:59 +02:00
  • 4327f72140 Remove VariantSlot Benoit Blanchon 2024-08-25 14:42:41 +02:00
  • f7f1b9745d Hide FreeSlot in MemoryPoolList Benoit Blanchon 2024-08-25 14:39:18 +02:00
  • cec18177b0 Move sizeofArray() and sizeofObject() Benoit Blanchon 2024-08-25 14:33:36 +02:00
  • f2894552f2 Rename VariantPool to MemoryPool Benoit Blanchon 2024-08-25 11:44:38 +02:00
  • d3721cb122 Make VariantSlot a union. Include next slot id in VariantData Benoit Blanchon 2024-08-24 18:18:28 +02:00
  • ab72bb8601 Rename flags_ to type_ Benoit Blanchon 2024-08-24 10:53:29 +02:00
  • 09c89dcacf Store object members with two slots: one for the key and one for the value Benoit Blanchon 2024-08-23 15:31:47 +02:00
  • a2b09bfbd2 Remove unused code Benoit Blanchon 2024-08-23 15:28:44 +02:00
  • 386105be90 Allocate slot before key Benoit Blanchon 2024-08-23 15:27:46 +02:00
  • 83516e1740 Split conf_test between linux and windows Benoit Blanchon 2024-08-23 15:24:45 +02:00
  • bf99aeedb1 Add @LArkema to the list of sponsors 💖 Benoit Blanchon 2024-07-02 10:27:36 +02:00
  • 22dd4da3af Set version to 7.1.0 v7.1.0 Benoit Blanchon 2024-06-27 18:20:22 +02:00
  • 55c3b9b3a7 CI: update macOS runner to macos-13 Benoit Blanchon 2024-06-17 13:54:43 +02:00
  • d83515dcda Add DevContainer files for Clang 13 to 17 Benoit Blanchon 2024-06-17 17:44:04 +02:00
  • e34c27723a Fix build on modern compilers Benoit Blanchon 2024-06-17 17:43:44 +02:00
  • b23ff65b99 Reduce MsgPack deserializer size Benoit Blanchon 2024-06-18 13:51:33 +02:00
  • 556785dc1e Read MsgPack's 64-bit ints even if ARDUINOJSON_USE_LONG_LONG is 0 Benoit Blanchon 2024-06-18 13:50:50 +02:00
  • e9c87858d1 Remove files.associations from vscode settings Benoit Blanchon 2024-06-18 09:22:24 +02:00
  • 208e7a3304 Fix integer overflow in MsgPackDeserializer Benoit Blanchon 2024-06-08 18:49:42 +02:00
  • 45611924f3 Tests: add user-defined literal ""_s for std::string Benoit Blanchon 2024-06-07 09:35:45 +02:00
  • 5b88b2c1f6 Update GitHub actions Benoit Blanchon 2024-06-06 18:41:17 +02:00
  • e4f3fd8c91 Add support for MsgPack extension Benoit Blanchon 2024-06-06 18:33:48 +02:00
  • aec642be20 Rename tests in MixedConfiguration Benoit Blanchon 2024-06-06 18:26:16 +02:00
  • 5a60c55be7 Don't add partial objects when allocation fails Benoit Blanchon 2024-05-23 18:36:24 +02:00
  • f99b2d63f9 Make error message more readable in case of an invalid conversion Benoit Blanchon 2024-05-23 14:01:30 +02:00
  • 1db803bcd3 Add helpers for type traits, such as enable_if_t Benoit Blanchon 2024-05-22 09:59:12 +02:00
  • 04326d2655 Allow Converter<T>::toJson() to return a boolean as an optimization Benoit Blanchon 2024-05-22 09:22:53 +02:00
  • 9e0c56acc3 Replace ConverterNeedsWriteableRef with function_traits Benoit Blanchon 2024-05-22 09:25:46 +02:00
  • 60f9f7eff6 Move CollectionData::releaseSlot() to ResourceManager::freeSlot() Benoit Blanchon 2024-05-17 16:32:39 +02:00
  • 0fe202af03 CI: don't build fuzzers with Clang 11 Benoit Blanchon 2024-05-16 15:15:40 +02:00
  • c41e8cc634 Add dev container for Clang 11 Benoit Blanchon 2024-05-16 14:31:54 +02:00
  • d486157a9e CMake: fix detection of GCC 4.8 Benoit Blanchon 2024-05-16 10:23:05 +02:00
  • 91aad55412 CI: set cancel-in-progress to true Benoit Blanchon 2024-05-16 09:48:19 +02:00
  • 98fca74f66 Fix undefined reference to VariantPool::usage() Benoit Blanchon 2024-05-16 09:41:16 +02:00
  • 60fb268d9a Fix UBSAN error "member call does not point to an object of type" Benoit Blanchon 2024-05-15 20:56:25 +02:00
  • f1899d3049 Fix error resources_ may be used uninitialized Benoit Blanchon 2024-05-16 09:30:41 +02:00
  • 4b779a7c1d Fix wrong build flags when COVERAGE is not defined Benoit Blanchon 2024-05-15 20:41:21 +02:00
  • 5d1aa04e21 CI: add Valgrind log to step summary Benoit Blanchon 2024-05-15 13:31:55 +02:00
  • 2f6db1edb0 CI: remove step summary Benoit Blanchon 2024-05-16 17:47:06 +02:00
  • aeb30ef307 Support ElementProxy and MemberProxy in JsonDocument's constructor Benoit Blanchon 2024-05-15 09:33:30 +02:00
  • 1c5e5db071 Test JsonDocument constructor with a JsonVariantConst argument Benoit Blanchon 2024-05-15 09:30:22 +02:00
  • 68a13117dc Allow using a JsonVariant as a key or index Benoit Blanchon 2024-05-14 21:06:02 +02:00
  • 071f718473 MsgPack: test failing string allocation Benoit Blanchon 2024-05-06 11:23:20 +02:00
  • 00949f8276 Remove redundant test Benoit Blanchon 2024-05-06 11:16:55 +02:00
  • 2c670e0148 Implement MsgPackBinary using raw strings and converters Benoit Blanchon 2024-05-01 19:27:23 +02:00
  • 002b07f0c5 Reduce the size of deserializeMsgPack() Benoit Blanchon 2024-05-02 20:29:00 +02:00
  • 5f5f927693 Add tests of as<MsgPackBinary>() Benoit Blanchon 2024-05-01 19:24:06 +02:00
  • 4d074840da Optimize deserializeMsgPack() Benoit Blanchon 2024-05-01 17:58:51 +02:00
  • 82de20ee14 Make string support even more generic David Gauchard 2024-05-01 13:59:55 +02:00
  • 57354de831 Make string support even more generic David Gauchard 2024-05-01 13:59:55 +02:00
  • c99af48e97 CI: update runner for the lint job Benoit Blanchon 2024-04-29 19:30:44 +02:00
  • ece4d030a8 CI: update runner for the lint job Benoit Blanchon 2024-04-29 19:30:44 +02:00
  • 4d5c17b5f6 Remove unused #include statements Benoit Blanchon 2024-04-29 18:30:14 +02:00
  • 18a9a5b590 Add MsgPack bin8/bin16/bin32 support Aubrey (Sanae) 2024-04-29 14:47:40 +02:00
  • cd4bf33132 Fix error "pasting X and Y does not give a valid preprocessing token" Benoit Blanchon 2024-04-18 14:39:05 +02:00
  • 2cfefe22ac Add ARDUINOJSON_STRING_LENGTH_SIZE to the namespace name Benoit Blanchon 2024-04-18 14:19:43 +02:00
  • 0741bd9e68 Fix typo in "endianness" RoboSchmied 2024-03-25 19:18:34 +01:00
  • 0d43e51d48 Fix typo in "endianness" RoboSchmied 2024-03-25 19:18:34 +01:00
  • ef28064317 CI: merge the two "amalgamate" jobs Benoit Blanchon 2024-03-18 10:35:31 +01:00
  • 7c62cdb264 CI: update GitHub Actions Benoit Blanchon 2024-03-17 21:30:35 +01:00
  • 0ab4bdd691 CI: add a workaround for actions/runner-images#9491 Benoit Blanchon 2024-03-17 21:22:52 +01:00