Skip to content

Commit da39172

Browse files
committed
CHANGELOG update
1 parent 88bc7df commit da39172

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
1.0.0 (on master)
22
-------
33

4-
Changes to basic_json::operator[]:
4+
- API Changes
55

6-
- Removed `basic_json` proxy type. The rationale for this change is given in #315.
7-
8-
- The new behavior for the non-const overload of operator[](const string_view_type&) will follow the standard library
9-
`std::map` behavior, that is, return a reference to the value that is associated with the key, inserting a default
6+
- Non-const `basic_json::operator[]` no longer returns a proxy type. The rationale for this change is given in #315.
7+
The new behavior for the non-const overload of `operator[](const string_view_type& key)` is consistent with the standard library
8+
`std::map` behavior, that is, return a reference to the value that is associated with `key`, inserting a default
109
constructed value with the key if no such key already exists.
11-
12-
- The new behavior for the const overload of operator[](const string_view_type&) will be to return
13-
a const reference to the value that is associated with key, returning a const reference to a default
10+
The new behavior for the const overload of `operator[](const string_view_type& key)` is to return
11+
a const reference to the value that is associated with `key`, returning a const reference to a default
1412
constructed value with static storage duration if no such key already exists.
1513

16-
Changes to basic_json_parser:
17-
18-
Until 1.0.0, a buffer of text is supplied to the parser with a call to `update()`
14+
- Until 1.0.0, a buffer of text is supplied to `basic_json_parser` with a call to `update()`
1915
followed by a call to `parse_some()`. Once the parser reaches the end of the buffer,
2016
additional JSON text can be supplied to the parser with another call to `update()`,
2117
followed by another call to `parse_some()`. See [Incremental parsing (until 1.0.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-until-01790).
22-
2318
Since 0.179, an initial buffer of text is supplied to the parse with a call to
2419
`set_buffer`, and parsing commences with a call to `parse_some`. The parser can be
2520
constructed with a user provided chunk reader to obtain additional JSON text
2621
as needed. See [Incremental parsing (since 1.0.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-since-01790).
2722

23+
- enum `bigint_chars_format` is replaced by `bignum_format_kind`, and for backwards compatability, `bigint_chars_format`
24+
is aliased to `bignum_format_kind`. Added `bignum_format` getter and setter functions to `basic_json_options`,
25+
and deprecated `bigint_format` getter and setter functions. Changed default `bignum_format` to `bignum_format_kind::raw`.
26+
Rationale: `bigint_chars_format` was misnamed, as it applied to big decimal as well as big integer numbers, and
27+
a default of `bignum_format_kind::raw` makes more sense than a string in base10 format.
28+
2829
Fixed bugs:
2930

3031
- Git Issue #554: [jsonpath] evaluation throws on json containing json_const_pointer
@@ -40,7 +41,7 @@ Fixed other issues:
4041
- Fixed a number of issues in `uri::resolve`, used in jsonschema, related to abnormal references,
4142
particulay ones containing dots in path segments.
4243

43-
Removed deprecated jsonschema classes and functions
44+
Removed deprecated jsonschema classes and functions:
4445

4546
- The jsonschema function `make_schema`, classes `json_validator` and `validation_output`,
4647
header file `json_validator.hpp` and example `legacy_jsonschema_examples.cpp`,

0 commit comments

Comments
 (0)