Changelog for @signaldb/core
[1.7.1] - 2025-08-25
Fixed
- Fixed index info for
$orqueries with mixed indexed and non-indexed fields
[1.7.0] - 2025-07-08
Added
- Type safety for modifiers in
updateOne,updateMany, andreplaceOnemethods
Fixed
- Fixed a bug where nested array parts where not resolved correctly
- Removed non-working
$textoperator from query selector type - Fixed function signature for
$whereoperator
[1.6.0] - 2025-05-12
Added
- Introduced
primaryKeyGenerator. A function that generates a unique ID for the item. If not provided, a default generator will be used (thanks @signalize!)
Fixed
- Improve performance of checking id index
- Export
Cursortype
Changed
- Leverage null and undefined values for indexing
[1.5.4] - 2025-05-02
Fixed
- Fixed a bug where the index wasn't filtered correctly when it was outdated
[1.5.3] - 2025-05-02
Changed
- deep clone items before modifying them
[1.5.2] - 2025-04-04
Changed
- Export
DotNotationandGetTypetypes (thanks @maxfriedmann!)
[1.5.1] - 2025-04-01
Fixed
- Add missing scope check for internal signals
[1.5.0] - 2025-03-26
Added
- Introduce
validationevent to allow schema validation of items in collections.
[1.4.0] - 2025-03-19
Added
- Implemented
{ upsert: true }option forupdateOneandupdateManymethods. - Implemented
replaceOnemethod.
Changed
- Check for already existing ids in
updateMany
Fixed
- Fixed checking for existing ids in
updateOneandupdateMany. There was a bug that made it impossible to update the id of an item.
[1.3.1] - 2025-02-19
Changed
- Improved index query performance
[1.3.0] - 2025-02-18
Added
- Implement exclusion of specific items when querying indices (when a selector contains
$ninor$ne)
Fixed
- Emit
getItemsevent on collections regardless of an index hit
Removed
- Removed auto-loading of developer tools and moved the loading to the
@signaldb/devtoolspackage. 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.2.4] - 2025-02-17
Changed
- Improved type checking of selectors
[1.2.3] - 2025-02-11
Changed
- Replace EventTarget-based emitter with a native implementation (thanks @Jordan-Mysten)
[1.2.2] - 2025-02-03
Fixed
- Fixed check if
@signaldb/devtoolspackage is available for some environments (addition to #1359)
[1.2.1] - 2025-02-01
Fixed
- Fixed a bug where the build environment was complaining about missing
@signaldb/devtoolspackage (#1359)
Added
- Enabled type checking in query selectors
[1.2.0] - 2025-01-13
Added
isReadymethod onCollectionto wait for the collection to be ready
Changed
- Don't load developer tools automatically in production (thanks @lorof)
[1.1.0] - 2025-01-10
Added
- Support for @signaldb/devtools
- Allow specifying a name for a collection
- Added
Collections.onCreationmethod to listen for collection creation - Added
Collections.onDisposemethod to listen for collection disposal - Added
Collections.getCollectionsmethod to get all collections
Changed
- Switched from native EventEmitter to custom class that is based on EventTarget
- Remove all listeners when disposing a collection
[1.0.0] - 2024-12-16
Added
- Added JSDoc comments to all public APIs
- Added method to globally configure field tracking
- Added method for configuring field tracking on a collection
- Allow configuring field tracking in collection options
Removed
- BREAKING:
createLocalStorageAdapterwas moved to@signaldb/localstorage - BREAKING:
createOPFSAdapterwas moved to@signaldb/opfs - BREAKING:
createFilesystemAdapterwas moved to@signaldb/fs - BREAKING:
PersistentCollectionwas removed entirely - BREAKING:
SyncManagerwas moved to@signaldb/sync - BREAKING:
ReplicatedCollectionwas removed entirely - BREAKING:
optionsparameter was removed fromcombinePersistenceAdapters - BREAKING: support for old
IndexProviderswas removed