Skip to content

Commit aac502f

Browse files
committed
chore: update CoreUtils to v3.6.0
1 parent 52f0080 commit aac502f

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

.changeset/thirty-paws-judge.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@sv443-network/userutils": minor
3+
---
4+
5+
Updated to [CoreUtils v3.6.0](https://github.com/Sv443-Network/CoreUtils/releases/tag/%40sv443-network%2Fcoreutils%403.6.0), which comes with the following minor features:
6+
- Added `stringifyData` option to `DataStoreSerializer` for preventing any stringification when serializing with the `stringify` parameter set to `false` too.
7+
- Added optional `catchUpEvents` option to `NanoEmitter` and `NanoEmitterOptions`. When provided with a list of event names, the emitter remembers the last arguments of each listed event. Any listener attached via `on()` or `once()` after such an event has already fired will be immediately called / resolved with the cached arguments. Also added the protected `emitEvent()` method for subclasses - it behaves identically to `this.events.emit()` but additionally updates the catch-up cache and should thus be preferred over `this.events.emit()`.
8+
- Added function `getterifyObj()` to turn all own, enumerable properties of an object into getters.
9+
This is useful when logging large objects to the console.
10+
- Added optional `TFn` generic parameter to `ValueGen` and `StringGen` types, and a matching rest `...args` parameter to `consumeGen()` and `consumeStringGen()`, enabling parametrized function variants with full type safety.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"homepage": "https://github.com/Sv443-Network/UserUtils",
5151
"dependencies": {
52-
"@sv443-network/coreutils": "3.5.1",
52+
"@sv443-network/coreutils": "3.6.0",
5353
"nanoevents": "9.1.0"
5454
},
5555
"devDependencies": {

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)