Changelog for @signaldb/devtools
Changed
- Importing this package calls
Collection.enableDebugMode(), which in@signaldb/corev2 also switches onCollection.reportLargeQueries()at 500 rows. You will therefore see console output naming each live query that holds more than 500 rows, together with the stack that registered it. That report is the point — such a query keeps its cost for the lifetime of the application and is otherwise invisible — but it is new output where there was none. CallCollection.reportLargeQueries(null)after the import to switch it off, or a different number to pick your own threshold. reactandreact-domare now required at^19.3.0instead of^19.2.3, andstyled-componentsat^6.5.3instead of^6.2.0. An application that pins older versions has to update them, or it ends up with a second copy of each in its bundle.
Fixed
import '@signaldb/devtools'is no longer removed by bundlers. The package declared"sideEffects": false, although importing it is the only way to use it, so a bundler that honours the flag — esbuild, Rollup, webpack in production mode — dropped the import and the devtools never loaded.- The Mutations tab now lists
replaceOnecalls, with the replacement document in the Modifier column. They were not recorded at all before. - The Data tab works with
@signaldb/corev2 again. It read the items from the collection'smemoryoption, which v2 removed, and crashed the devtools as soon as a collection was selected. It now shows the collection through a live query, so it works with every data adapter — including theAsyncDataAdapterand theWorkerDataAdapter— and a write only costs the devtools the size of the change. While the tab shows a collection of more than 500 items, that query is itself reported byCollection.reportLargeQueries().
[1.0.0-beta.4] - 2025-02-18
Added
- Added logic to load developer tools to this package. To load the developer tools, you now need to import
@signaldb/devtoolssomewhere in your frontend code. Make sure that it doesn't get imported when running your code in production mode.
[1.0.0-beta.3] - 2025-01-23
Changed
- Deactivate tracking queries, mutation and performance by default
[1.0.0-beta.2] - 2025-01-13
Fixed
- Fixed version range for
@signaldb/corepeer dependency
[1.0.0-beta.1] - 2025-01-10
Changed
- Improved tables in the UI