Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 0 additions & 7 deletions .changeset/giant-pots-deny.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/plenty-buses-wear.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/puny-loops-guess.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @sv443-network/userutils

## 11.0.0

### Major Changes

- 7e2022f: Removed `deleteStorage()` implementation in `GMStorageEngine`, which would delete data from all other `DataStore`s in previous versions of UserUtils.
This means that calling `deleteData()` on a `DataStore` will now only delete the instance's own data (the three keys ending in `-dat`, `-ver` and `-enf`), and not affect any other `DataStore` instances.
If you relied on deleting all storage before, consider using a [`DataStoreSerializer`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#class-datastoreserializer) to manage all `DataStore` instances, and calling its [`deleteStoresData()` method](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#datastoreserializerdeletestoresdata) instead.

### Minor Changes

- 55894f2: Updated the included version of [CoreUtils to v3.8.0](https://github.com/Sv443-Network/CoreUtils/releases/tag/%40sv443-network%2Fcoreutils%403.8.0), which comes with the following changes:
- Added new `DataStore` engine `IndexedDBStorageEngine` for DOM environments with access to [`indexedDB`](https://developer.mozilla.org/en-US/docs/Web/API/Window/indexedDB).
This engine allows for larger storage limits and more complex data structures, including non-JSON-serializable and binary ([Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) / [File](https://developer.mozilla.org/en-US/docs/Web/API/File)) data.
- `DataStoreSerializer` now extends `PicoEmitter` and emits these events:
- `loadedAllStores`: Emitted once, whenever all contained DataStore instances have finished loading at least once. No arguments.
- `loadedStore`: Emitted once, whenever a contained DataStore instance has finished loading at least once. Gets passed the instance as the only argument.
- `resetStores`: Emitted whenever one or more stores have had their data reset to the default value. Gets passed an array of all instances that were reset.
- `deletedStores`: Emitted whenever one or more stores have had their persistent data cleared. Gets passed an array of all instances that were cleared.
- `NanoEmitterOptions.publicEmit` is no longer a required property in all CoreUtils and UserUtils classes that extend `NanoEmitter`.
- `createProgressBar()` now correctly uses the 25% and 75% characters.

### Patch Changes

- b7c508b: Fixed all translation transformation example code snippets in the documentation.
Previously, the examples showed transform functions that would wrongly return a modified RegExp match instead of transforming the actual `currentValue` property like the docs state.

## 10.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sv443-network/userutils",
"libName": "UserUtils",
"version": "10.6.0",
"version": "11.0.0",
"description": "General purpose DOM/GreaseMonkey library that allows you to register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and much more",
"main": "dist/UserUtils.mjs",
"module": "dist/UserUtils.mjs",
Expand Down