Skip to content

Commit

Permalink
Merge pull request #1555 from proddy/dev
Browse files Browse the repository at this point in the history
routine updates
  • Loading branch information
proddy authored Jan 13, 2024
2 parents 8c2aba8 + 48de155 commit bbfdb0f
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 241 deletions.
2 changes: 1 addition & 1 deletion interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"preact": "^10.19.3",
"prettier": "^3.1.1",
"prettier": "^3.2.1",
"rollup-plugin-visualizer": "^5.12.0",
"terser": "^5.26.0",
"vite": "^5.0.11",
Expand Down
10 changes: 5 additions & 5 deletions interface/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ __metadata:
lodash-es: "npm:^4.17.21"
mime-types: "npm:^2.1.35"
preact: "npm:^10.19.3"
prettier: "npm:^3.1.1"
prettier: "npm:^3.2.1"
react: "npm:latest"
react-dom: "npm:latest"
react-dropzone: "npm:^14.2.3"
Expand Down Expand Up @@ -7091,12 +7091,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.1.1":
version: 3.1.1
resolution: "prettier@npm:3.1.1"
"prettier@npm:^3.2.1":
version: 3.2.1
resolution: "prettier@npm:3.2.1"
bin:
prettier: bin/prettier.cjs
checksum: 26a249f321b97d26c04483f1bf2eeb22e082a76f4222a2c922bebdc60111691aad4ec3979610e83942e0b956058ec361d9e9c81c185172264eb6db9aa678082b
checksum: a26d26a74ba5cbf23a9741074ceef4f53a08ced03c42449dc9615ecd08ada9d19d5247ad2b0dfb15b2c8e57ec9f516074627b85b9f03270b08c184c64e7d8f64
languageName: node
linkType: hard

Expand Down
12 changes: 0 additions & 12 deletions lib/ArduinoJson/.clang-format

This file was deleted.

1 change: 0 additions & 1 deletion lib/ArduinoJson/.prettierignore

This file was deleted.

7 changes: 7 additions & 0 deletions lib/ArduinoJson/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
ArduinoJson: change log
=======================

v7.0.1 (2024-01-10)
------

* Fix "no matching function" with `JsonObjectConst::operator[]` (issue #2019)
* Remove unused files in the PlatformIO package
* Fix `volatile bool` serialized as `1` or `0` instead of `true` or `false` (issue #2029)

v7.0.0 (2024-01-03)
------

Expand Down
10 changes: 0 additions & 10 deletions lib/ArduinoJson/CONTRIBUTING.md

This file was deleted.

155 changes: 0 additions & 155 deletions lib/ArduinoJson/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions lib/ArduinoJson/SUPPORT.md

This file was deleted.

4 changes: 2 additions & 2 deletions lib/ArduinoJson/src/ArduinoJson/Array/JsonArrayConst.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class JsonArrayConst : public detail::VariantOperators<JsonArrayConst> {
}

operator JsonVariantConst() const {
return JsonVariantConst(collectionToVariant(data_), resources_);
return JsonVariantConst(getData(), resources_);
}

// Returns true if the reference is unbound.
Expand All @@ -69,7 +69,7 @@ class JsonArrayConst : public detail::VariantOperators<JsonArrayConst> {
// Returns the depth (nesting level) of the array.
// https://arduinojson.org/v7/api/jsonarrayconst/nesting/
FORCE_INLINE size_t nesting() const {
return detail::VariantData::nesting(collectionToVariant(data_), resources_);
return detail::VariantData::nesting(getData(), resources_);
}

// Returns the number of elements in the array.
Expand Down
9 changes: 5 additions & 4 deletions lib/ArduinoJson/src/ArduinoJson/Object/JsonObjectConst.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JsonObjectConst : public detail::VariantOperators<JsonObjectConst> {
: data_(data), resources_(resources) {}

operator JsonVariantConst() const {
return JsonVariantConst(collectionToVariant(data_), resources_);
return JsonVariantConst(getData(), resources_);
}

// Returns true if the reference is unbound.
Expand All @@ -45,7 +45,7 @@ class JsonObjectConst : public detail::VariantOperators<JsonObjectConst> {
// Returns the depth (nesting level) of the object.
// https://arduinojson.org/v7/api/jsonobjectconst/nesting/
FORCE_INLINE size_t nesting() const {
return detail::VariantData::nesting(collectionToVariant(data_), resources_);
return detail::VariantData::nesting(getData(), resources_);
}

// Returns the number of members in the object.
Expand Down Expand Up @@ -101,8 +101,9 @@ class JsonObjectConst : public detail::VariantOperators<JsonObjectConst> {
FORCE_INLINE typename detail::enable_if<detail::IsString<TChar*>::value,
JsonVariantConst>::type
operator[](TChar* key) const {
return JsonVariantConst(
detail::ObjectData::getMember(data_, detail::adaptString(key)));
return JsonVariantConst(detail::ObjectData::getMember(
data_, detail::adaptString(key), resources_),
resources_);
}

// DEPRECATED: always returns zero
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ VariantRefBase<TDerived>::operator[](const TString& key) const {
template <typename TDerived>
template <typename T>
inline bool VariantRefBase<TDerived>::set(const T& value) const {
Converter<T>::toJson(value, getOrCreateVariant());
Converter<typename detail::remove_cv<T>::type>::toJson(value,
getOrCreateVariant());
auto resources = getResourceManager();
return resources && !resources->overflowed();
}
Expand Down
6 changes: 3 additions & 3 deletions lib/ArduinoJson/src/ArduinoJson/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#define ARDUINOJSON_VERSION "7.0.0"
#define ARDUINOJSON_VERSION "7.0.1"
#define ARDUINOJSON_VERSION_MAJOR 7
#define ARDUINOJSON_VERSION_MINOR 0
#define ARDUINOJSON_VERSION_REVISION 0
#define ARDUINOJSON_VERSION_MACRO V700
#define ARDUINOJSON_VERSION_REVISION 1
#define ARDUINOJSON_VERSION_MACRO V701
2 changes: 1 addition & 1 deletion mock-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@msgpack/msgpack": "^2.8.0",
"busboy": "^1.6.0",
"itty-router": "^4.0.26"
"itty-router": "^4.0.27"
},
"packageManager": "[email protected]",
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions mock-api/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ __metadata:
"@msgpack/msgpack": "npm:^2.8.0"
"@types/multer": "npm:^1.4.11"
busboy: "npm:^1.6.0"
itty-router: "npm:^4.0.26"
itty-router: "npm:^4.0.27"
languageName: unknown
linkType: soft

Expand All @@ -142,10 +142,10 @@ __metadata:
languageName: node
linkType: hard

"itty-router@npm:^4.0.26":
version: 4.0.26
resolution: "itty-router@npm:4.0.26"
checksum: 6bd64bdd89a3508e7dd806fafcd86e0887daf306a83149d34c12443de0e518da83f76598f02caff375120aae8e40eae2234c9885e0bb3c3aaa0273a807eb4dd2
"itty-router@npm:^4.0.27":
version: 4.0.27
resolution: "itty-router@npm:4.0.27"
checksum: ebb959388b1033f3d80ba2575c2d90fa649c1d5370d977879513cc46e8fd78159b7140d2a66853af6be98f7d740f8609a2c5aa7381506eaa1f1a46268fd2a95f
languageName: node
linkType: hard

Expand Down
Loading

0 comments on commit bbfdb0f

Please sign in to comment.