{"action":"closed","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/171","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/171/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/171/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-JS/issues/171","id":127262735,"number":171,"title":"How to check against major versions of Parse-SDK-JS (esp. for Cloud Code)","user":{"login":"fatuhoku","id":430233,"avatar_url":"https://avatars.githubusercontent.com/u/430233?v=3","gravatar_id":"","url":"https://api.github.com/users/fatuhoku","html_url":"https://github.com/fatuhoku","followers_url":"https://api.github.com/users/fatuhoku/followers","following_url":"https://api.github.com/users/fatuhoku/following{/other_user}","gists_url":"https://api.github.com/users/fatuhoku/gists{/gist_id}","starred_url":"https://api.github.com/users/fatuhoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatuhoku/subscriptions","organizations_url":"https://api.github.com/users/fatuhoku/orgs","repos_url":"https://api.github.com/users/fatuhoku/repos","events_url":"https://api.github.com/users/fatuhoku/events{/privacy}","received_events_url":"https://api.github.com/users/fatuhoku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T16:33:00Z","updated_at":"2016-01-19T18:21:56Z","closed_at":"2016-01-19T18:21:56Z","body":"Just as major iOS versions deprecate, or introduce functionality, Parse JS SDK is also seeing backward breaking changes as well as new functionality. For instance, the `Parse.Promise.when` behaviour introduced in 1.7 will break code targeting 1.6.14 (e.g.  #95).\r\n\r\nUsers have no say in when Cloud Code gets upgraded, so while developers like me build code against `1.7.0-rc`, we must expect to deploy to `1.6.14`. How can I write an `if` statement to help my code transition gracefully from one version to the next?"}}