@naturalcycles/js-lib 15.84.1 → 15.86.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
3
  "type": "module",
4
- "version": "15.84.1",
4
+ "version": "15.86.0",
5
5
  "dependencies": {
6
6
  "tslib": "^2"
7
7
  },
@@ -47,7 +47,8 @@
47
47
  "./semver": "./dist/semver.js",
48
48
  "./string": "./dist/string/index.js",
49
49
  "./string/*.js": "./dist/string/*.js",
50
- "./types": "./dist/types.js"
50
+ "./types": "./dist/types.js",
51
+ "./ua": "./dist/ua/ua.js"
51
52
  },
52
53
  "files": [
53
54
  "dist",
@@ -6,7 +6,7 @@ export * from './decorator.util.js'
6
6
  export * from './logMethod.decorator.js'
7
7
  export * from './memo.decorator.js'
8
8
  export * from './memo.util.js'
9
- export * from './memoFn.js'
10
- export * from './memoFnAsync.js'
9
+ export * from './memoized.js'
10
+ export * from './memoizedAsync.js'
11
11
  export * from './retry.decorator.js'
12
12
  export * from './timeout.decorator.js'
@@ -11,10 +11,8 @@ export interface MemoizedFunction {
11
11
  * Only supports Sync functions.
12
12
  * To support Async functions - use _memoFnAsync.
13
13
  * Technically, you can use it with Async functions, but it'll return the Promise without awaiting it.
14
- *
15
- * @experimental
16
14
  */
17
- export function _memoFn<FN extends AnyFunction>(
15
+ export function _memoized<FN extends AnyFunction>(
18
16
  fn: FN,
19
17
  opt: MemoOptions<FN> = {},
20
18
  ): FN & MemoizedFunction {
@@ -8,10 +8,7 @@ export interface MemoizedAsyncFunction {
8
8
  cache: AsyncMemoCache
9
9
  }
10
10
 
11
- /**
12
- * @experimental
13
- */
14
- export function _memoFnAsync<FN extends AnyAsyncFunction>(
11
+ export function _memoizedAsync<FN extends AnyAsyncFunction>(
15
12
  fn: FN,
16
13
  opt: AsyncMemoOptions<FN>,
17
14
  ): FN & MemoizedAsyncFunction {