Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1612b29
Add failing test for non-changing props
luisherranz Oct 15, 2025
6fef0ed
Add failing test for props that only exist in some pages
luisherranz Oct 15, 2025
d6b3298
Add failing test for non-changing props (context)
luisherranz Oct 15, 2025
6ea374c
Add failing test for props that only exist in some pages (context)
luisherranz Oct 15, 2025
fce2ff8
Fix existing tests (state)
luisherranz Oct 15, 2025
605869a
Fix getServerState tests
luisherranz Oct 15, 2025
68589e5
Remove deepImmutable in favor of deepReadOnly
luisherranz Oct 15, 2025
099b8f2
Export deepReadOnly in the private APIs
luisherranz Oct 15, 2025
d77cec5
Simplify signal logic
luisherranz Oct 15, 2025
e5e7b1c
Add failing test for resetting state on pages without state
luisherranz Oct 15, 2025
bcfee9c
Fix reset state test
luisherranz Oct 15, 2025
a7d014a
Add proper types for getServerState
luisherranz Oct 16, 2025
5d0a4ca
Trigger invalidations in the router
luisherranz Oct 16, 2025
7ac95cc
Add additional context test for resetting context
luisherranz Oct 16, 2025
07e4ca3
Add tests for getServerContext types
luisherranz Oct 16, 2025
4f8cb3f
Fix the context tests
luisherranz Oct 16, 2025
f6030ce
Add changelog
luisherranz Oct 16, 2025
2e98558
Don't execute type tests
luisherranz Oct 16, 2025
2835b49
Remove `readOnly` option from proxifyState
luisherranz Oct 16, 2025
4eda5eb
Fix PHP lint
luisherranz Oct 16, 2025
34d4af4
Rename types tests to types
luisherranz Oct 16, 2025
12ad535
Use `Record<string, unknown>` type for non-generic in getServerState
luisherranz Oct 16, 2025
de67848
Use `Record<string, unknown>` type for non-generic in getServerContext
luisherranz Oct 16, 2025
d894949
Update changelog
luisherranz Oct 16, 2025
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
Prev Previous commit
Next Next commit
Export deepReadOnly in the private APIs
  • Loading branch information
luisherranz committed Oct 15, 2025
commit 099b8f242b5720d1f4f83d795ec557ec1fdd7495
3 changes: 3 additions & 0 deletions packages/interactivity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { directive } from './hooks';
import { getNamespace } from './namespaces';
import { parseServerData, populateServerData } from './store';
import { proxifyState } from './proxies';
import { deepReadOnly } from './utils';

export {
store,
Expand All @@ -33,6 +34,7 @@ export {
useMemo,
splitTask,
withSyncEvent,
deepReadOnly,
} from './utils';

export { useState, useRef } from 'preact/hooks';
Expand All @@ -56,6 +58,7 @@ export const privateApis = ( lock ): any => {
populateServerData,
batch,
routerRegions,
deepReadOnly,
};
}

Expand Down