Skip to content

Commit 3711eb7

Browse files
authored
v 3.0.0
1 parent 26d9ad5 commit 3711eb7

33 files changed

+12773
-3520
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ jobs:
3939
run: dart analyze --fatal-infos
4040

4141
- name: Run tests
42-
run: dart test
42+
run: dart test -x benchmark
4343

4444
- name: Run tests with coverage
4545
if: matrix.os == 'ubuntu-latest' && matrix.sdk == 'stable'
4646
run: |
4747
dart pub global activate coverage
48-
dart pub global run coverage:test_with_coverage
48+
dart pub global run coverage:test_with_coverage -- -x benchmark
4949
5050
- name: Upload coverage to Codecov
5151
if: matrix.os == 'ubuntu-latest' && matrix.sdk == 'stable'

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
## 3.0.0
2+
3+
**Improvements:**
4+
5+
- **feat**: New methods and properties
6+
- `BinaryWriterPool` for reusing `BinaryWriter` instances
7+
- `getUtf8Length(String)` to calculate UTF-8 byte length without encoding
8+
- `writeVarString(String)` and `readVarString()` for variable-length string encoding
9+
- `writeBool` and `readBool` methods for boolean values
10+
- `writeVarUint` and `readVarUint` for variable-length unsigned integers
11+
- `writeVarInt` and `readVarInt` for variable-length signed integers
12+
- `writeVarBytes` and `readVarBytes` for variable-length byte arrays
13+
- Navigation methods in `BinaryReader`: `peekBytes()`, `skip()`, `seek()`, `rewind()`, and `reset()`
14+
- **docs**: Comprehensive documentation overhaul
15+
- Added detailed API documentation with usage examples for all methods
16+
- Documented `writeVarString()`, `readVarString()`, and `getUtf8Length()`
17+
- Included performance notes and best practices
18+
- Added inline comments explaining complex encoding algorithms
19+
- **test**: Expanded test suite
20+
- Coverage for all new methods and edge cases
21+
- Performance benchmarks for encoding/decoding functions
22+
- Validation tests for UTF-8 handling and error scenarios
23+
- **improvement**: Refactored internal codebase
24+
- Improved modularity and readability
25+
- Enhanced error handling with descriptive messages
26+
- Optimized buffer management for better performance
27+
28+
- **fix**: Resolved known issues
29+
130
## 2.2.0
231

332
**test**: Added integration tests for new error handling features

0 commit comments

Comments
 (0)