Releases: powersync-ja/powersync-js
Releases · powersync-ja/powersync-js
@powersync/[email protected]
Patch Changes
- Updated dependencies [319012e]
- Updated dependencies [c7d2b53]
- Updated dependencies [c7d2b53]
- Updated dependencies [6b38551]
- Updated dependencies [a1abb15]
- Updated dependencies [c7d2b53]
- @powersync/[email protected]
- @powersync/[email protected]
@powersync/[email protected]
Minor Changes
-
c7d2b53: - [Internal] Updated implementation to use shared
WatchedQuery
implementation. -
c7d2b53: - Added the ability to limit re-renders by specifying a
rowComparator
for query results. TheuseQuery
hook will only emitdata
changes when the data has changed.// The data here will maintain previous object references for unchanged items. const { data } = useQuery('SELECT * FROM lists WHERE name = ?', ['aname'], { rowComparator: { keyBy: (item) => item.id, compareBy: (item) => JSON.stringify(item) } });
- Added the ability to subscribe to an existing instance of a
WatchedQuery
import { useWatchedQuerySubscription } from '@powersync/react'; const listsQuery = powerSync .query({ sql: `SELECT * FROM lists` }) .differentialWatch(); export const ListsWidget = (props) => { const { data: lists } = useWatchedQuerySubscription(listsQuery); return ( <div> {lists.map((list) => ( <div key={list.id}>{list.name}</div> ))} </div> ); };
- Added the ability to subscribe to an existing instance of a
Patch Changes
@powersync/[email protected]
Patch Changes
- 319012e: Fixed bug where a WebSocket connection timeout could cause an uncaught exception.
- 6b38551: Fix a warning about raw tables being used when they're not.
- Updated dependencies [319012e]
- Updated dependencies [c7d2b53]
- Updated dependencies [c7d2b53]
- Updated dependencies [6b38551]
- Updated dependencies [a1abb15]
- Updated dependencies [c7d2b53]
- @powersync/[email protected]
- @powersync/[email protected]
@powersync/[email protected]
Patch Changes
- Updated dependencies [319012e]
- Updated dependencies [c7d2b53]
- Updated dependencies [6b38551]
- Updated dependencies [a1abb15]
- @powersync/[email protected]
@powersync/[email protected]
@powersync/[email protected]
Patch Changes
- Updated dependencies [319012e]
- Updated dependencies [79acd89]
- Updated dependencies [c7d2b53]
- Updated dependencies [6b38551]
- Updated dependencies [c7d2b53]
- Updated dependencies [c7d2b53]
- @powersync/[email protected]
- @powersync/[email protected]
@powersync/[email protected]
Minor Changes
- c7d2b53: - Added additional listeners for
closing
andclosed
events inAbstractPowerSyncDatabase
.- Added
query
andcustomQuery
APIs for enhanced watched queries. - Added
triggerImmediate
option to theonChange
API. This allows emitting an initial event which can be useful for downstream use cases.
- Added
- a1abb15: Added ControlledExecutor utility to exports.
Patch Changes
@powersync/[email protected]
@powersync/[email protected]
Minor Changes
-
ab33799: Add experimental support for raw tables, giving you full control over the table structure to sync into.
While PowerSync manages tables as JSON views by default, raw tables have to be created by the application
developer.For more information about raw tables, see the documentation.
-
810c6ad: Propagate logger from PowerSyncDatabase to streaming sync and remote implementations, and tweak some log messages.
Patch Changes
@powersync/[email protected]
Patch Changes
- Updated dependencies [ab33799]
- Updated dependencies [810c6ad]
- Updated dependencies [a1aa18c]
- Updated dependencies [9fb898d]
- @powersync/[email protected]
- @powersync/[email protected]