22
33All notable changes to this project will be documented in this file.
44
5-
65The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
76and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
87
8+ ## [ 1.3.0] - 2025-09-11
9+
10+ ### Added
11+
12+ - ** Promise/Async Support** - Full async/await API alongside callback methods
13+ - All CRUD methods now have async variants (createAsync, readAllAsync, etc.)
14+ - Automatic promisification wrapper for callback-based methods
15+ - Complete TypeScript definitions for async methods
16+ - New async usage examples and comprehensive test coverage
17+ - ** Enhanced Examples** - Added async/await usage demonstration
18+
919## [ 1.2.0] - 2025-07-08
1020
1121### Added
12- - ** TypeScript Definitions** - Bundled ` lib/json-file-crud.d.ts ` for IDE support
1322
23+ - ** TypeScript Definitions** - Bundled ` lib/json-file-crud.d.ts ` for IDE support
1424
1525## [ 1.1.0] - 2025-07-07
1626
1727### Added
28+
1829- ** Unique Fields Support** - Prevent duplicate values in specified fields
1930 - Configure unique fields via ` uniqueFields ` option
2031 - Automatic validation on create and update operations
@@ -33,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3344 - No need to manually create directories before using the library
3445
3546### Enhanced
47+
3648- ** Test Suite Reorganization** - Improved test structure
3749 - Split tests into logical files by functionality
3850 - ` test-basic.js ` - Basic functionality and convenience features
@@ -45,10 +57,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4557 - Backward compatible with existing code
4658
4759### Changed
60+
4861- Package description updated to reflect new features
4962- Test scripts updated for reorganized test structure
5063
5164### Technical Details
65+
5266- All new features maintain backward compatibility
5367- Thread-safe operations through existing queue system
5468- Comprehensive error handling for all new features
@@ -57,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5771## [ 1.0.0] - 2025-07-07
5872
5973### Added
74+
6075- Initial release of JsonFileCRUD
6176- Complete CRUD operations (Create, Read, Update, Delete)
6277- Auto-ID assignment with duplicate prevention
@@ -74,6 +89,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7489- Contributing guidelines with improvement ideas
7590
7691### Features
92+
7793- ** create(item, callback)** - Create new items with auto-ID
7894- ** readAll(callback)** - Read all items from file
7995- ** findById(id, callback)** - Find item by ID
@@ -84,12 +100,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84100- ** writeAll(items, callback)** - Replace all data
85101
86102### Performance
103+
87104- Optimized for small to medium datasets (up to ~ 10,000 items)
88105- Sequential operations prevent race conditions
89106- Automatic file creation on first write
90107- Memory-efficient data handling
91108
92109### Documentation
110+
93111- Complete README with API reference
94112- Multiple practical examples
95113- Error handling guide
@@ -99,6 +117,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99117## [ Unreleased]
100118
101119### Future Improvements
120+
102121- Promise-based API (async/await)
103122- Batch operations (createMany, updateMany, deleteMany)
104123- File locking for multi-process safety
0 commit comments