Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the cache work in not-a-browser #72

Merged
merged 4 commits into from
Mar 15, 2018
Merged

Make the cache work in not-a-browser #72

merged 4 commits into from
Mar 15, 2018

Conversation

onbjerg
Copy link
Contributor

@onbjerg onbjerg commented Mar 12, 2018

So, the primary issue with working in both the browser and outside the browser right now is to make sure that we do not require the filesystem specific adapters for lowdb in the browser, as that will break.

Rather than spend a lot of time on fixing this right now (which I have already done), we're just going to use the memory adapter.

This works fine for things like Aragon CLI, but will be a pain when we start using Electron, unless Electron also supports localStorage (which I think it does).

Closes #69

@onbjerg onbjerg added bug Something isn't working component: cache labels Mar 12, 2018
@onbjerg onbjerg mentioned this pull request Mar 12, 2018
@onbjerg onbjerg added this to the aragon.js 2.0.0 milestone Mar 12, 2018
@onbjerg
Copy link
Contributor Author

onbjerg commented Mar 12, 2018

Erhh, this needs a bit more work. I need to build a non-browser bundle as well (in #71)

So, the primary issue with working in both the browser
and outside the browser right now is to make sure that
we do not require the filesystem specific adapters for lowdb
in the browser, as that will break.

Rather than spend a lot of time on fixing this right now
(which I have already done), we're just going to use the
memory adapter.

This works fine for things like Aragon CLI, but will be a pain
when we start using Electron, unless Electron also supports
localStorage (which I think it does).
@onbjerg onbjerg requested review from izqui and sohkai March 14, 2018 18:16
@onbjerg
Copy link
Contributor Author

onbjerg commented Mar 14, 2018

This works now (pivoted from original solution, pls give me feedback on this new short-term one)

Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@onbjerg onbjerg merged commit 0135442 into master Mar 15, 2018
@onbjerg onbjerg deleted the browser-cache branch March 15, 2018 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix cache for non-browser environments
2 participants