Comparing version 0.9.5 to 0.9.6
import { Slot } from '@wry/context'; | ||
export { bind as bindContext, noContext, setTimeout, asyncFromGen } from '@wry/context'; | ||
export { asyncFromGen, bind as bindContext, noContext, setTimeout } from '@wry/context'; | ||
@@ -63,6 +63,6 @@ function defaultDispose() { } | ||
while (this.oldest && this.map.size > this.max) { | ||
this["delete"](this.oldest.key); | ||
this.delete(this.oldest.key); | ||
} | ||
}; | ||
Cache.prototype["delete"] = function (key) { | ||
Cache.prototype.delete = function (key) { | ||
var entry = this.map.get(key); | ||
@@ -82,3 +82,3 @@ if (entry) { | ||
} | ||
this.map["delete"](key); | ||
this.map.delete(key); | ||
this.dispose(entry.value, key); | ||
@@ -305,3 +305,3 @@ return true; | ||
if (dc) { | ||
dc["delete"](child); | ||
dc.delete(child); | ||
if (dc.size === 0) { | ||
@@ -342,4 +342,4 @@ if (emptySetPool.length < POOL_TARGET_SIZE) { | ||
function forgetChild(parent, child) { | ||
child.parents["delete"](parent); | ||
parent.childValues["delete"](child); | ||
child.parents.delete(parent); | ||
parent.childValues.delete(child); | ||
removeDirtyChild(parent, child); | ||
@@ -458,3 +458,3 @@ } | ||
if (disposable) { | ||
entry.reportOrphan = function () { return cache["delete"](key); }; | ||
entry.reportOrphan = function () { return cache.delete(key); }; | ||
} | ||
@@ -487,3 +487,3 @@ } | ||
export { defaultMakeCacheKey, KeyTrie, wrap }; | ||
export { KeyTrie, defaultMakeCacheKey, wrap }; | ||
//# sourceMappingURL=bundle.esm.js.map |
{ | ||
"name": "optimism", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"author": "Ben Newman <ben@benjamn.com>", | ||
@@ -17,3 +17,3 @@ "description": "Composable reactive caching with efficient invalidation.", | ||
], | ||
"main": "lib/index.js", | ||
"main": "lib/bundle.cjs.js", | ||
"module": "lib/bundle.esm.js", | ||
@@ -31,5 +31,5 @@ "types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "npm run clean && tsc && rollup -c", | ||
"build": "npm run clean && tsc --emitDeclarationOnly && rollup -c", | ||
"clean": "rimraf lib", | ||
"mocha": "mocha --require source-map-support/register --reporter spec --full-trace lib/tests/index", | ||
"mocha": "mocha --require source-map-support/register --reporter spec --full-trace test.js", | ||
"prepublish": "npm run build", | ||
@@ -39,11 +39,13 @@ "test": "npm run build && npm run mocha" | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.13.0", | ||
"fibers": "^3.0.0", | ||
"mocha": "^5.0.0", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.6.0", | ||
"rollup-plugin-typescript2": "^0.20.1", | ||
"source-map-support": "^0.5.12", | ||
"typescript": "^3.3.3333" | ||
"@types/mocha": "5.2.7", | ||
"@types/node": "12.0.10", | ||
"fibers": "4.0.1", | ||
"mocha": "6.1.4", | ||
"reify": "0.20.6", | ||
"rimraf": "2.6.3", | ||
"rollup": "1.16.2", | ||
"rollup-plugin-typescript2": "0.21.2", | ||
"source-map-support": "0.5.12", | ||
"tslib": "1.10.0", | ||
"typescript": "3.5.2" | ||
}, | ||
@@ -50,0 +52,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106163
11
13
1