# v0.2.0 Release Notes

> v0.1.0 -> v0.2.0

## Summary

Add document field operations (get/set/del/incr with dot-notation), KEYS glob matching, INCR numeric increment, AOF compaction on close, and shared utility package.
<details>
<summary>翻譯</summary>
新增文件欄位操作（dot-notation 的 get/set/del/incr）、KEYS glob 匹配、INCR 數值遞增、關閉時 AOF 壓縮，以及共用工具套件。
</details>

## Changes

### FEAT
- Add dot-notation nested field access for GET/SET/DEL/INCR commands
- Add KEYS command with glob pattern matching
- Add INCR command supporting both standalone keys and nested JSON fields
- Add AOF compaction on close with atomic file writes

<details>
<summary>翻譯</summary>

- 新增 dot-notation 巢狀欄位存取，支援 GET/SET/DEL/INCR 指令
- 新增 KEYS 指令，支援 glob 模式匹配
- 新增 INCR 指令，支援獨立 key 與巢狀 JSON 欄位數值遞增
- 新增關閉時 AOF 壓縮，採用 atomic file write

</details>

### FIX
- Fix AOF compaction skipped when no writes occur in current session

<details>
<summary>翻譯</summary>

- 修正當前 session 無寫入時 AOF compaction 被跳過的問題

</details>

### REFACTOR
- Extract WriteFile, Atov, Vtoa, Vtof to core/utils package as shared utilities

<details>
<summary>翻譯</summary>

- 將 WriteFile、Atov、Vtoa、Vtof 抽至 core/utils 套件作為共用工具

</details>

***

## Files Changed

| File | Status | Tag |
|------|--------|-----|
| `core/store/getField.go` | Added | FEAT |
| `core/store/setField.go` | Added | FEAT |
| `core/store/delField.go` | Added | FEAT |
| `core/store/incr.go` | Added | FEAT |
| `core/store/incrField.go` | Added | FEAT |
| `core/store/keys.go` | Added | FEAT |
| `core/store/compact.go` | Added | FEAT |
| `core/store/exec.go` | Modified | FEAT |
| `core/store/set.go` | Modified | REFACTOR |
| `core/store/store.go` | Modified | FIX |
| `core/utils/utils.go` | Added | REFACTOR |
| `cmd/test/main.go` | Modified | FIX |

***

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
