Composable reactive caching with efficient invalidation.
benjamn / optimism Goto Github PK
View Code? Open in Web Editor NEWComposable reactive caching with efficient invalidation.
License: MIT License
Composable reactive caching with efficient invalidation.
License: MIT License
0.4.5
to 0.4.6
.This version is covered by your current version range and after updating it in your project the build failed.
immutable-tuple is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 6 commits.
b398c68
Add Node.js 10 to Travis CI rotation.
f39d4c7
Bump npm version to 0.4.6 in preparation for publishing.
3f71a7b
Avoid direct Object.defineProperty calls in hot code.
45269a7
Eliminate the internal intern(array) function.
50a6cc6
Add a test of tuple creation performance with objects.
9ec4d75
Add a test of tuple creation performance with strings.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
WARNING in ./node_modules/optimism/lib/local.js
Module not found: Error: Can't resolve 'fibers' in '/Users/***/node_modules/optimism/lib'
@ ./node_modules/optimism/lib/local.js
@ ./node_modules/optimism/lib/index.js
@ ./node_modules/apollo-cache-inmemory/lib/optimism.js
@ ./node_modules/apollo-cache-inmemory/lib/readFromStore.js
@ ./node_modules/apollo-cache-inmemory/lib/index.js
Per the conversation in apollographql/apollo-feature-requests#289, add getKey
& forgetKey
API's to OptimisticWrapperFunction
.
The motive here is to keep track of the cached entries without having to memoize the arguments and duplicate the logic for weakly tracking them. This will enable the creators of OptimisticWrapperFunction
to use the true keys for removing entries via the forgetKey
API.
Looks like there is a minor "leak" in optimism even with LRU enabled: entries of depsByKey
always stay in memory even after all optimism Entries
corresponding to the given key are cleared.
So this key
+ an empty dep
Set are "leaking":
Lines 31 to 35 in 4301eac
In my testing it also survives Apollo eviction / GC, even cache.gc({ resetResultCache: true })
In one of our projects we use @apollo/client
wich itself includes this package. After bundling as ES module, there is a top-level variable caches
that seems to collide with the one in the Browser's API.
So, using the optimism's ES module in a browser with type=module
doesn't work. Is that the correct behaviour?
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
This is an extremely popular node module, yet I have no idea what it does (beyond the one-line description), or how to use it. I think it might be what I need for a project based on this description, but it's very hard to tell given the lack of any information about it anywhere on the internet.
It seems to only have a few main functions that are widely used. Would it be possible for them to be documented?
0.4.9
to 0.4.10
.This version is covered by your current version range and after updating it in your project the build failed.
immutable-tuple is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 2 commits.
485b323
Bump npm version to 0.4.10 in preparation for publishing.
dff1503
Guard that Symbol.for is a function.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
1.14.2
to 1.14.3
.This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
2019-06-06
The new version differs by 4 commits.
c68bd95
1.14.3
d79aa57
Update changelog
7179390
Use browser relative path algorithm for chunks (#2902)
b1df517
Add funding button
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
1.9.0
to 1.9.1
.This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
2019-04-10
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.