Skip to content

Commit 97c712b

Browse files
committed
🔖 release v1.2.0
## 1.2.0 * [FEAT] add `DecodeKind` enum to distinguish decoding context for keys and values * [FEAT] add `LegacyDecoder` typealias and deprecate legacy decoder support in `DecodeOptions` for backward compatibility * [FIX] protect encoded dots in key decoding to prevent premature conversion to '.' and ensure correct parsing * [FIX] handle lowercase '%2e' in key decoding and improve bracketed key parsing for accurate dot conversion * [FIX] fix key segment handling for depth 0 to preserve original key with encoded dots * [FIX] optimize `protectEncodedDotsForKeys` to skip processing when no encoded dots are present; update deprecation message for `getDecoder` to clarify removal timeline * [FIX] replace regex-based dot-to-bracket conversion with top-level parser to correctly handle encoded dots in key segments * [FIX] fix `allowDots` logic to ensure `decodeDotInKeys` requires `allowDots` not explicitly false * [CHORE] update deprecation annotation for indices option in `EncodeOptions` with message, replacement, and level * [CHORE] add tests for key coercion and `depth=0` behavior with `allowDots` in `decode` * [CHORE] update decoder tests to handle `DecodeKind` for selective key/value decoding * [CHORE] remove explicit `Decoder` type annotations in custom decoder test cases for improved readability * [CHORE] add tests for `defaultDecode` to verify encoded dot handling in keys with `allowDots` and `decodeDotInKeys` options * [CHORE] clarify deprecation message for legacy decoder adapter and document bracket handling in `protectEncodedDotsForKeys` * [CHORE] reformat deprecation and documentation comments for improved readability in `DecodeOptions` * [CHORE] add comprehensive tests for encoded dot handling in keys with `allowDots` and `decodeDotInKeys` options * [CHORE]️ deprecate `getDecoder` in favor of context-aware decode methods for value decoding * [CHORE] update `Decoder` interface documentation to use code formatting for parameter names * [CHORE] rename local variable for custom decoder in encoding test for clarity * [CHORE] add tests for dot-to-bracket conversion guardrails in decode with `allowDots` option
1 parent 1777121 commit 97c712b

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## 1.2.0
2+
3+
* [FEAT] add `DecodeKind` enum to distinguish decoding context for keys and values
4+
* [FEAT] add `LegacyDecoder` typealias and deprecate legacy decoder support in `DecodeOptions` for backward compatibility
5+
* [FIX] protect encoded dots in key decoding to prevent premature conversion to '.' and ensure correct parsing
6+
* [FIX] handle lowercase '%2e' in key decoding and improve bracketed key parsing for accurate dot conversion
7+
* [FIX] fix key segment handling for depth 0 to preserve original key with encoded dots
8+
* [FIX] optimize `protectEncodedDotsForKeys` to skip processing when no encoded dots are present; update deprecation message for `getDecoder` to clarify removal timeline
9+
* [FIX] replace regex-based dot-to-bracket conversion with top-level parser to correctly handle encoded dots in key segments
10+
* [FIX] fix `allowDots` logic to ensure `decodeDotInKeys` requires `allowDots` not explicitly false
11+
* [CHORE] update deprecation annotation for indices option in `EncodeOptions` with message, replacement, and level
12+
* [CHORE] add tests for key coercion and `depth=0` behavior with `allowDots` in `decode`
13+
* [CHORE] update decoder tests to handle `DecodeKind` for selective key/value decoding
14+
* [CHORE] remove explicit `Decoder` type annotations in custom decoder test cases for improved readability
15+
* [CHORE] add tests for `defaultDecode` to verify encoded dot handling in keys with `allowDots` and `decodeDotInKeys` options
16+
* [CHORE] clarify deprecation message for legacy decoder adapter and document bracket handling in `protectEncodedDotsForKeys`
17+
* [CHORE] reformat deprecation and documentation comments for improved readability in `DecodeOptions`
18+
* [CHORE] add comprehensive tests for encoded dot handling in keys with `allowDots` and `decodeDotInKeys` options
19+
* [CHORE]️ deprecate `getDecoder` in favor of context-aware decode methods for value decoding
20+
* [CHORE] update `Decoder` interface documentation to use code formatting for parameter names
21+
* [CHORE] rename local variable for custom decoder in encoding test for clarity
22+
* [CHORE] add tests for dot-to-bracket conversion guardrails in decode with `allowDots` option
23+
124
## 1.1.3
225

326
* [FIX] ensure consistent string key usage for maps and correct numeric key handling in `Decoder`

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88

99
allprojects {
1010
group = "io.github.techouse"
11-
version = "1.1.3"
11+
version = "1.2.0"
1212
repositories {
1313
google()
1414
mavenCentral()

0 commit comments

Comments
 (0)