@fluentui-react-native/memo-cache
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
module.exports = require('@uifabricshared/build-native/babel.config'); | ||
module.exports = require('@fluentui-react-native/scripts/babel.config'); |
@@ -5,6 +5,66 @@ { | ||
{ | ||
"date": "Mon, 20 Dec 2021 22:51:36 GMT", | ||
"date": "Wed, 01 Feb 2023 22:30:11 GMT", | ||
"tag": "@fluentui-react-native/memo-cache_v1.1.8", | ||
"version": "1.1.8", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "30809111+acoates-ms@users.noreply.github.com", | ||
"package": "@fluentui-react-native/memo-cache", | ||
"commit": "2d0138c80d7512b905fcf32583760bec2b911910", | ||
"comment": "Enable @typescript-eslint/consistent-type-imports" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 18 Feb 2022 23:27:10 GMT", | ||
"tag": "@fluentui-react-native/memo-cache_v1.1.7", | ||
"version": "1.1.7", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "ruaraki@microsoft.com", | ||
"package": "@fluentui-react-native/memo-cache", | ||
"commit": "597b1e6bd7b3791df8fad2e0ec83810872261c54", | ||
"comment": "Remove web endpoint" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 16 Feb 2022 21:58:20 GMT", | ||
"tag": "@fluentui-react-native/memo-cache_v1.1.7", | ||
"version": "1.1.7", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "ruaraki@microsoft.com", | ||
"package": "@fluentui-react-native/memo-cache", | ||
"commit": "fc506e0ea21def220cd2e7b4fe36361446c5f8c6", | ||
"comment": "Update just" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 14 Jan 2022 01:00:03 GMT", | ||
"tag": "@fluentui-react-native/memo-cache_v1.1.7", | ||
"version": "1.1.7", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "sanajmi@microsoft.com", | ||
"package": "@fluentui-react-native/memo-cache", | ||
"commit": "163defba33412f6f44117750a540b8fdecd3bdca", | ||
"comment": "Remove references to uifabricshared" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 20 Dec 2021 22:56:01 GMT", | ||
"tag": "@fluentui-react-native/memo-cache_v1.1.7", | ||
"version": "1.1.7", | ||
"comments": { | ||
"patch": [ | ||
@@ -11,0 +71,0 @@ { |
# Change Log - @fluentui-react-native/memo-cache | ||
This log was last generated on Mon, 20 Dec 2021 22:51:36 GMT and should not be manually modified. | ||
This log was last generated on Wed, 01 Feb 2023 22:30:11 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.1.8 | ||
Wed, 01 Feb 2023 22:30:11 GMT | ||
### Patches | ||
- Enable @typescript-eslint/consistent-type-imports (30809111+acoates-ms@users.noreply.github.com) | ||
## 1.1.7 | ||
Mon, 20 Dec 2021 22:51:36 GMT | ||
Mon, 20 Dec 2021 22:56:01 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -1,3 +0,3 @@ | ||
const { preset } = require('@uifabricshared/build-native'); | ||
const { preset } = require('@fluentui-react-native/scripts'); | ||
preset(); |
@@ -1,2 +0,2 @@ | ||
export declare type CacheEntry<T, TGet = any> = { | ||
export type CacheEntry<T, TGet = any> = { | ||
/** stores the cached value if any */ | ||
@@ -3,0 +3,0 @@ value?: T; |
@@ -95,5 +95,5 @@ "use strict"; | ||
var target = (0, getCacheEntry_1.getCacheEntry)(subRoot, args2); | ||
expect((0, getCacheEntry_1.getCacheEntry)(base, (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], args1, true), args2, true))).toBe(target); | ||
expect((0, getCacheEntry_1.getCacheEntry)(base, tslib_1.__spreadArray(tslib_1.__spreadArray([], args1, true), args2, true))).toBe(target); | ||
}); | ||
}); | ||
//# sourceMappingURL=getCacheEntry.test.js.map |
@@ -1,4 +0,4 @@ | ||
export declare type ValueFactory<T> = () => T; | ||
export type ValueFactory<T> = () => T; | ||
/** signature for the cache function */ | ||
export declare type GetMemoValue<T, TGet = any> = (factory: T | ValueFactory<T>, keys: any[]) => [T, GetMemoValue<TGet>]; | ||
export type GetMemoValue<T, TGet = any> = (factory: T | ValueFactory<T>, keys: any[]) => [T, GetMemoValue<TGet>]; | ||
/** | ||
@@ -5,0 +5,0 @@ * Get a memo cache instance, this can either be completely self-contained or associated with a global key |
@@ -77,3 +77,3 @@ "use strict"; | ||
var val1 = getMemoValue(fn, keys2)[0]; | ||
var val2 = memoValue(fn, (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], keys1, true), keys2, true))[0]; | ||
var val2 = memoValue(fn, tslib_1.__spreadArray(tslib_1.__spreadArray([], keys1, true), keys2, true))[0]; | ||
expect(val2).toBe(val1); | ||
@@ -80,0 +80,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
export declare type CacheEntry<T, TGet = any> = { | ||
export type CacheEntry<T, TGet = any> = { | ||
/** stores the cached value if any */ | ||
@@ -3,0 +3,0 @@ value?: T; |
@@ -1,4 +0,4 @@ | ||
export declare type ValueFactory<T> = () => T; | ||
export type ValueFactory<T> = () => T; | ||
/** signature for the cache function */ | ||
export declare type GetMemoValue<T, TGet = any> = (factory: T | ValueFactory<T>, keys: any[]) => [T, GetMemoValue<TGet>]; | ||
export type GetMemoValue<T, TGet = any> = (factory: T | ValueFactory<T>, keys: any[]) => [T, GetMemoValue<TGet>]; | ||
/** | ||
@@ -5,0 +5,0 @@ * Get a memo cache instance, this can either be completely self-contained or associated with a global key |
{ | ||
"name": "@fluentui-react-native/memo-cache", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Layered memoization style cache helper", | ||
@@ -15,6 +15,4 @@ "repository": { | ||
"build": "fluentui-scripts build", | ||
"bundle": "fluentui-scripts bundle", | ||
"just": "fluentui-scripts", | ||
"clean": "fluentui-scripts clean", | ||
"code-style": "fluentui-scripts code-style", | ||
"depcheck": "fluentui-scripts depcheck", | ||
@@ -36,5 +34,5 @@ "lint": "fluentui-scripts eslint", | ||
"@types/node": "^10.3.5", | ||
"@uifabricshared/build-native": "^0.1.1", | ||
"@fluentui-react-native/scripts": "^0.1.1", | ||
"tslib": "^2.3.1" | ||
} | ||
} |
@@ -1,2 +0,3 @@ | ||
import { getCacheEntry, CacheEntry } from './getCacheEntry'; | ||
import type { CacheEntry } from './getCacheEntry'; | ||
import { getCacheEntry } from './getCacheEntry'; | ||
@@ -3,0 +4,0 @@ interface TestObj { |
@@ -1,2 +0,3 @@ | ||
import { CacheEntry, getCacheEntry } from './getCacheEntry'; | ||
import type { CacheEntry } from './getCacheEntry'; | ||
import { getCacheEntry } from './getCacheEntry'; | ||
@@ -3,0 +4,0 @@ export type ValueFactory<T> = () => T; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99764
1.97%1613
4%