Skip to content

Commit 595a806

Browse files
authored
Merge pull request #3 from Sv443-Network/changeset-release/main
2 parents 5e7196c + b5f56a9 commit 595a806

File tree

7 files changed

+20
-31
lines changed

7 files changed

+20
-31
lines changed

.changeset/fluffy-banks-clean.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/great-cups-buy.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pink-readers-rest.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/stale-pianos-enjoy.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tidy-needles-ask.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
# @sv443-network/coreutils
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- 273fa5a: Removed the boolean property `__ds-${id}-enc` from the `DataStore` and `DataStoreEngine` classes.
8+
Now the key `__ds-${id}-enf` will hold the encoding format identifier string, or `null` if not set (will get created on the next write call).
9+
This will make it possible to switch the encoding format without compatibility issues.
10+
This functionality is not officially supported yet, but can be achieved manually by calling the storage API methods of `storeInstance.engine`
11+
12+
### Minor Changes
13+
14+
- 29fb048: Added `overflowVal()` to conform a value to an over- & undeflowing range
15+
- 91cbe9c: Added optional abstract method `DataStoreEngine.deleteStorage()` for deleting the data storage container itself. If implemented in subclasses, it will be called from the method `DataStore.deleteData()`
16+
- 3cae1cb: Added `dataStoreOptions` constructor prop to the DataStoreEngine subclasses to enable them to be used standalone.
17+
- f6465b5: Added method `NanoEmitter.onMulti()` to listen to when multiple events have emitted, with fine grained options
18+
319
## 1.0.0
420

521
This is the initial release of CoreUtils. Most features have been originally ported from [version 9.4.1 of `@sv443-network/userutils`](https://github.com/Sv443-Network/UserUtils/tree/v9.4.1)
622
Parts of the code have been overhauled, and some features have been added:
23+
724
- Additions:
825
- Added [`capitalize()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-capitalize) to capitalize the first letter of a string.
9-
- Added [`setImmediateInterval()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-setimmediateinterval) to set an interval that runs immediately, then again on a fixed *interval.*
10-
- Added [`setImmediateTimeoutLoop()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-setimmediatetimeoutloop) to set a recursive `setTimeout()` loop with a fixed *delay.*
26+
- Added [`setImmediateInterval()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-setimmediateinterval) to set an interval that runs immediately, then again on a fixed _interval._
27+
- Added [`setImmediateTimeoutLoop()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-setimmediatetimeoutloop) to set a recursive `setTimeout()` loop with a fixed _delay._
1128
- Added [`takeRandomItemIndex()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-takerandomitemindex), as a mutating counterpart to [`randomItemIndex()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-randomitemindex)
1229
- Added [`truncStr()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-truncstr) to truncate a string to a given length, optionally adding an ellipsis.
1330
- Added [`valsWithin()`](https://github.com/Sv443-Network/CoreUtils/blob/main/docs.md#function-valswithin) to check if two values, rounded at the given decimal, are within a certain range of each other.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sv443-network/coreutils",
33
"libName": "@sv443-network/coreutils",
4-
"version": "1.0.0",
4+
"version": "2.0.0",
55
"description": "Cross-platform, general-purpose, JavaScript core library for Node, Deno and the browser. Intended to be used in conjunction with `@sv443-network/userutils` and `@sv443-network/djsutils`, but can be used independently as well.",
66
"main": "dist/CoreUtils.cjs",
77
"module": "dist/CoreUtils.mjs",

0 commit comments

Comments
 (0)