@sv443-network/coreutils 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @sv443-network/coreutils
2
2
 
3
+ ## 3.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4af3dda: `DataStore` now extends `NanoEmitter` to allow for much better event-driven programming using the methods `on()`, `once()`, `onMulti()`, etc.
8
+ Currently, the following events are emitted by the `DataStore` class:
9
+
10
+ | Name | Description |
11
+ | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
12
+ | `loadData` | Whenever the data is loaded from persistent storage with `DataStore.loadData()`. |
13
+ | `updateData` | When the data is updated with `DataStore.setData()` or `DataStore.runMigrations()`. |
14
+ | `updateDataSync` | When the memory cache was updated with `DataStore.setData()`, before the data is saved to persistent storage. Not emitted if `memoryCache` is set to `false`. |
15
+ | `migrateData` | For every called migration function with the resulting data. |
16
+ | `migrateId` | For every successfully migrated old ID. Gets passed the old and new ID. |
17
+ | `setDefaultData` | Whenever the data is reset to the default value with `DataStore.saveDefaultData()` (will not be called on the initial population of persistent storage with the default data in `DataStore.loadData()`). |
18
+ | `deleteData` | After the data was deleted from persistent storage with `DataStore.deleteData()`. |
19
+ | `error` | When an error occurs at any point. |
20
+ | `migrationError` | Only when an error occurs during a migration function. |
21
+
22
+ ### Patch Changes
23
+
24
+ - f7dbacf: Fixed DataStore error handling inconsistencies.
25
+
26
+ ## 3.2.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 65dccf4: Added DataStore options property `keyPrefix` to modify the default storage engine key prefix (`__ds-`) or to remove it.
31
+
3
32
  ## 3.1.0
4
33
 
5
34
  ### Minor Changes