Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/memory-leak-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"vue-pivottable": patch
---

Fix critical memory leak in VPivottableUi component (#270)

- Remove deep watch that created thousands of property watchers (80% of memory leak)
- Replace computed PivotData with shallowRef to prevent instance recreation on every access
- Add proper cleanup in onUnmounted lifecycle hook
- Results: 94% memory reduction (881MB → 53MB after 1000 refreshes)
- Fixes #270: Memory continuously increases when refreshing pivot chart
EOF < /dev/null
13 changes: 13 additions & 0 deletions .changeset/pivot-model-two-way-binding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"vue-pivottable": minor
---

feat: PivotModel 양방향 바인딩 기능 구현

- VPivottableUi 컴포넌트에 v-model:pivotModel 지원 추가
- PivotModel 인터페이스 정의 및 타입 시스템 구축
- 필터 변경사항이 즉시 PivotModel에 반영되도록 수정
- props 정의를 Partial<DefaultPropsType>로 변경하여 pivotModel 사용 시 개별 props를 선택적으로 만듦
- PivotModel 유틸리티 함수 추가 (비교, 생성, 복제)
- PivotModel 히스토리 관리를 위한 composable 추가 (usePivotModelHistory)
- PivotModel 직렬화/역직렬화 유틸리티 추가
Loading