Skip to content

Commit

Permalink
Update version to 0.178.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Oct 31, 2024
1 parent 66f7158 commit 2c4338c
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ assignees: ''

**What jsoncons library version?**

- [ ] Latest release 0.177.0
- [ ] Latest release 0.178.0
- [ ] Other release ______
- [ ] master
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
0.178.0 (on master)
-------

Defect fixes:

- Fixed issue with `jmespath::join function` through PR #546

- Fixed issue with the path for cmake config files through PR #547

- Made the basic_json constructor `basic_json(const Allocator&)`
consistent with `basic_json(json_object_arg_t, const Allocator& alloc = Allocator())`.

- `basic_json` copy construction now applies allocator traits `select_on_container_copy_construction`
to the allocator obtained from `other`. For pmr allocators, this gives a default constructed pmr allocator rather
than a copy of the allocator in `other`.

Enhancements:

- Improved the implementation of `basic_json` swap. Previously in
some cases it would allocate.

- Improved the implementation of `basic_json` copy assignment.
Reduced allocations when assigning from array to array and object to
object.

- Documented the rules for `basic_json` allocators
[here](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/json/allocators.md),
and added numerous tests for conformance to the rules.

0.177.0
-------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ _"really good"_ _"awesome project"_ _"very solid and very dependable"_ _"my team

[Get started with HealthImaging image sets and image frames using an AWS SDK](https://docs.aws.amazon.com/healthimaging/latest/devguide/example_medical-imaging_Scenario_ImageSetsAndFrames_section.html)

[RubyGems.org](https://rubygems.org/gems/jsoncons/versions/0.1.3?locale=en)   [rjsoncons](https://cran.rstudio.com/web/packages/rjsoncons/index.html)   [coppeliarobotics](https://manual.coppeliarobotics.com/en/zmqRemoteApiOverview.htm)
[RubyGems.org](https://rubygems.org/gems/jsoncons/versions/0.1.3?locale=en)   [rjsoncons](https://cran.rstudio.com/web/packages/rjsoncons/index.html)   [Coppelia Robotics](https://manual.coppeliarobotics.com/en/zmqRemoteApiOverview.htm)

## Get jsoncons

Expand Down
2 changes: 1 addition & 1 deletion doc/ref/corelib/basic_json.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ for their storage, otherwise attempts to return a default constructed allocator.
<table border="0">
<tr>
<td><code>bool contains(const string_view_type& key) const noexcept</code></td>
<td>bool contains(const string_view_type& key) const noexcept</td>
<td>Returns <code>true</code> if an object has a member with the given <code>key</code> , otherwise <code>false</code></td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion doc/ref/corelib/json_type_traits/custom-specializations.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ using jsoncons::json;

int main()
{
json j(json::object_arg, {{"1",2},{"3",4}});
json j(json_object_arg, {{"1",2},{"3",4}});
assert(j.is<own_vector>());
auto v = j.as<own_vector>();
json j2 = v;
Expand Down
8 changes: 1 addition & 7 deletions include/jsoncons/basic_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,7 @@ namespace jsoncons {
: storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
{
}
/*
long_string_storage(const char_type* data, std::size_t length, semantic_tag tag, const Allocator& alloc)
: storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag)
{
ptr_ = heap_string_factory_type::create(data, length, null_type(), alloc);
}
*/

long_string_storage(const long_string_storage& other)
: storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
{
Expand Down
2 changes: 1 addition & 1 deletion include/jsoncons/config/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <iostream>

#define JSONCONS_VERSION_MAJOR 0
#define JSONCONS_VERSION_MINOR 177
#define JSONCONS_VERSION_MINOR 178
#define JSONCONS_VERSION_PATCH 0

namespace jsoncons {
Expand Down

0 comments on commit 2c4338c

Please sign in to comment.