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
23 changes: 21 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
### Changed

- **Vue 3 Integration**: Fixed reactivity for Set and Map collections when Vue directly observes iteration methods. Previously, when Vue tracked `Symbol.iterator` (via spread, `for...of`, `Array.from`), modifications via `add()`, `set()`, or `delete()` would not trigger re-renders. The fix tracks which iteration keys Vue has accessed per target and notifies only those keys on structural changes.
- Updated `@eslint/compat` from 1.4.0 to 2.0.0
- Updated `@eslint/eslintrc` from 3.3.1 to 3.3.3
- Updated `@eslint/js` from 9.37.0 to 9.39.2
- Updated `@stylistic/eslint-plugin` from 5.4.0 to 5.6.1
- Updated `@types/lodash` from 4.17.20 to 4.17.21
- Updated `@vitest/coverage-v8` from 3.2.4 to 4.0.16
- Updated `eslint` from 9.37.0 to 9.39.2
- Updated `eslint-plugin-unicorn` from 61.0.2 to 62.0.0
- Updated `globals` from 16.4.0 to 16.5.0
- Updated `happy-dom` from 20.0.0 to 20.0.11
- Updated `typedoc` from 0.28.14 to 0.28.15
- Updated `typescript-eslint` from 8.46.1 to 8.50.0
- Updated `vite` from 7.1.10 to 7.3.0
- Updated `vitest` from 3.2.4 to 4.0.16

### Added

- Added `check-updates` script to check for outdated packages
- Added `check-upgrade` script to interactively upgrade packages
- Comprehensive test coverage for nested Set/Map reactivity:
- `observer_nested_collections.spec.ts` - 35 tests for Observer with nested collections
- `decorateNestedCollections.spec.ts` - 34 tests for `@reactive`/`@computed` decorators with collections
- `testVueCollections.ts` - 32 Vue 3-specific integration tests for collections

### Fixed

- **Vue 3 Integration**: Fixed reactivity for Set and Map collections when Vue directly observes iteration methods. Previously, when Vue tracked `Symbol.iterator` (via spread, `for...of`, `Array.from`), modifications via `add()`, `set()`, or `delete()` would not trigger re-renders. The fix tracks which iteration keys Vue has accessed per target and notifies only those keys on structural changes.
4 changes: 4 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ Tests use Vitest and are colocated in `__spec__` directories:
- `src/__spec__/` - Tests for decorators, merge utility, examples
- `src/reactivity/__spec__/` - Tests for reactive, observer, watcher
- `src/integrations/__spec__/` - Tests for MadroneState and Vue3 integration

## Changelog

All notable changes are documented in `CHANGELOG.md` following the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
"cov": "CI=true NODE_ENV=test vitest run --coverage && open coverage/lcov-report/index.html",
"build": "vite build",
"build-types": "tsc -p ./tsconfig.types.json && tsc-alias -p tsconfig.types.json",
"build-all": "pnpm cleanup && pnpm build && pnpm build-types"
"build-all": "pnpm cleanup && pnpm build && pnpm build-types",
"check-updates": "pnpm -r -l outdated",
"check-upgrade": "pnpm -r -i --latest update"
},
"keywords": [
"reactivity",
Expand All @@ -62,24 +64,24 @@
"vue"
],
"devDependencies": {
"@eslint/compat": "~1.4.0",
"@eslint/eslintrc": "~3.3.1",
"@eslint/js": "~9.37.0",
"@stylistic/eslint-plugin": "~5.4.0",
"@types/lodash": "~4.17.20",
"@vitest/coverage-v8": "~3.2.4",
"eslint": "~9.37.0",
"@eslint/compat": "~2.0.0",
"@eslint/eslintrc": "~3.3.3",
"@eslint/js": "~9.39.2",
"@stylistic/eslint-plugin": "~5.6.1",
"@types/lodash": "~4.17.21",
"@vitest/coverage-v8": "~4.0.16",
"eslint": "~9.39.2",
"eslint-plugin-import": "~2.32.0",
"eslint-plugin-unicorn": "~61.0.2",
"globals": "~16.4.0",
"happy-dom": "~20.0.0",
"eslint-plugin-unicorn": "~62.0.0",
"globals": "~16.5.0",
"happy-dom": "~20.0.11",
"lodash": "~4.17.21",
"tsc-alias": "~1.8.16",
"typedoc": "~0.28.14",
"typedoc": "~0.28.15",
"typescript": "~5.9.3",
"typescript-eslint": "8.46.1",
"vite": "~7.1.10",
"vitest": "~3.2.4",
"typescript-eslint": "8.50.0",
"vite": "~7.3.0",
"vitest": "~4.0.16",
"vue3": "npm:vue@~3.5.13"
},
"engines": {
Expand Down
Loading
Loading