-
-
Notifications
You must be signed in to change notification settings - Fork 596
Release 1.7 #136
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
Comments
This would be great. Thanks Andrew |
I ❤️ #115 |
Changelogs were not updated for the last several releases on the Downloads page. Is there a reason ? |
@mohnazemi the source of truth for changelogs will always be here on this repo: https://github.com/ParsePlatform/Parse-SDK-JS/releases I'll update the downloads page to include the last few releases |
@andrewimm Caching built into the JS SDK would be a very useful addition. App's built for the webview in IOS and Android platform would have a huge boost. In the docs you clearly say don't use REST API when you have native sdk for your platform. |
@srameshr we are working out a number of strategies for caching, but it will not be an official feature until at least 1.8. It will most likely end up being a plug-in that can be added to the SDK, rather than a change to the SDK itself. |
Any particular date on which, this would be available? |
@srameshr As a rule, we don't commit to dates for releases. Even less so for features where we're still unsure what to implement. As it is, it's trivial to implement your own cache in your own application. This is a simple implementation of one: updateCache(object) {
let identifier = object.className + ':' object.id;
let currentCache = JSON.parse(localStorage.get('cachedObjects') || '{}');
currentCache[identifier] = true;
// Store object to localStorage
localStorage.set(identifier, JSON.stringify(object._toFullJSON()));
// Store updated object index to localStorage
localStorage.set('cachedObjects', JSON.stringify(currentCache));
}
getCachedObjects() {
let objects = {};
let currentCache = JSON.parse(localStorage.get('cachedObjects') || '{}');
for (let identifier in currentCache) {
let objectString = localStorage.get(identifier);
if (objectString) {
try {
objects[identifier] = Parse.Object.fromJSON(JSON.parse(objectString));
} catch (e) { }
}
}
return objects;
} |
I am doing something similar to this ... |
@andrewimm Although I know you are not commiting to dates, I have to ask do you have at least a rough estimation of when version 1.7 with memory leak (when running in server environment) fix could be released? just to know if it worth to wait or we have to look for a new solution as we already have this issue on production for some time now? |
I'm aiming to get something out this week -- the changes involved are pretty significant, but I'm about 2/3 of the way through. In the meantime, I've posted a number of potential workaround ideas in other threads related to the issue. |
When #164 lands (hopefully later today), I'll be cutting a release as Once we're comfortable that there are no regressions or unintended changes, we'll cut an official 1.7.0 release for npm, our web CDN, and cloud code. |
The current master branch passes all unit and integration tests, so I've released |
Since there has been no negative feedback about the RC, I'll be releasing 1.7.0 to npm tomorrow morning, including the changes from #179 |
Yeah we've been running it in production since about 24 hours after the release. Seems to work well. Thanks for all the hard work. |
Planned changelog:
true
. See Proposal: The future of Parse.Promise #57 for more details. (landed in 96e211d)Parse.Promise
. See Proposal: The future of Parse.Promise #57 for more details. (landed in 5e5c444)when
argument corresponds withthen
arguments #115, changing the behavior ofParse.Promise.when()
. The response provided to the asynchronous callback will match the style of its arguments. (landed in 7da2856)revert()
instance method to ParseObject (landed in 7c16dee)When these changes have all been committed to master, and end-to-end tested, we'll release 1.7.0
The text was updated successfully, but these errors were encountered: