Skip to content

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

Closed
5 tasks done
andrewimm opened this issue Dec 21, 2015 · 15 comments
Closed
5 tasks done

Release 1.7 #136

andrewimm opened this issue Dec 21, 2015 · 15 comments
Assignees

Comments

@andrewimm
Copy link
Contributor

Planned changelog:

When these changes have all been committed to master, and end-to-end tested, we'll release 1.7.0

@andrewimm andrewimm self-assigned this Dec 21, 2015
@TylerBrock
Copy link
Contributor

This would be great. Thanks Andrew

@grantland
Copy link

I ❤️ #115

@mohnazemi
Copy link

Changelogs were not updated for the last several releases on the Downloads page. Is there a reason ?

@andrewimm
Copy link
Contributor Author

@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

@srameshr
Copy link

@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.

@andrewimm
Copy link
Contributor Author

@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.

@srameshr
Copy link

Any particular date on which, this would be available?

@andrewimm
Copy link
Contributor Author

@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;
}

@srameshr
Copy link

I am doing something similar to this ...

@jmornar
Copy link

jmornar commented Jan 11, 2016

@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?

@andrewimm
Copy link
Contributor Author

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.

@andrewimm
Copy link
Contributor Author

When #164 lands (hopefully later today), I'll be cutting a release as 1.7.0-rc1. As npm goes, you'll be able to explicitly install this version for testing, but it won't show up in the normal version lists, and won't be included in any semver ranges.

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.

@andrewimm
Copy link
Contributor Author

The current master branch passes all unit and integration tests, so I've released 1.7.0-rc1. Download away!

@andrewimm
Copy link
Contributor Author

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

@TylerBrock
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants