{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/1915","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1915/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1915/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1915/events","html_url":"https://github.com/angular-ui/ui-router/issues/1915","id":70733133,"number":1915,"title":"0.2.14 Caused a breaking change","user":{"login":"OverZealous","id":965719,"avatar_url":"https://avatars.githubusercontent.com/u/965719?v=3","gravatar_id":"","url":"https://api.github.com/users/OverZealous","html_url":"https://github.com/OverZealous","followers_url":"https://api.github.com/users/OverZealous/followers","following_url":"https://api.github.com/users/OverZealous/following{/other_user}","gists_url":"https://api.github.com/users/OverZealous/gists{/gist_id}","starred_url":"https://api.github.com/users/OverZealous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OverZealous/subscriptions","organizations_url":"https://api.github.com/users/OverZealous/orgs","repos_url":"https://api.github.com/users/OverZealous/repos","events_url":"https://api.github.com/users/OverZealous/events{/privacy}","received_events_url":"https://api.github.com/users/OverZealous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nateabele","id":18288,"avatar_url":"https://avatars.githubusercontent.com/u/18288?v=3","gravatar_id":"","url":"https://api.github.com/users/nateabele","html_url":"https://github.com/nateabele","followers_url":"https://api.github.com/users/nateabele/followers","following_url":"https://api.github.com/users/nateabele/following{/other_user}","gists_url":"https://api.github.com/users/nateabele/gists{/gist_id}","starred_url":"https://api.github.com/users/nateabele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateabele/subscriptions","organizations_url":"https://api.github.com/users/nateabele/orgs","repos_url":"https://api.github.com/users/nateabele/repos","events_url":"https://api.github.com/users/nateabele/events{/privacy}","received_events_url":"https://api.github.com/users/nateabele/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-04-24T16:27:30Z","updated_at":"2015-04-28T23:45:33Z","closed_at":null,"body":"I (accidentally) just upgraded to the latest release, and suddenly my tests won't pass with this error:\r\n\r\n```plain\r\n Error: Default value (false) for parameter 'error' is not an instance of Type (any)\r\n          at $$getDefaultValue (./vendor/angular-ui-router/release/angular-ui-router.js:1628)\r\n          at $value (./vendor/angular-ui-router/release/angular-ui-router.js:1643)\r\n          at ./vendor/angular-ui-router/release/angular-ui-router.js:1686\r\n          at forEach (./vendor/angular/angular.js:323)\r\n          at ./vendor/angular-ui-router/release/angular-ui-router.js:1687\r\n          at transitionTo (./vendor/angular-ui-router/release/angular-ui-router.js:3148)\r\n          at go (./vendor/angular-ui-router/release/angular-ui-router.js:3069)\r\n          at ./build/connect/js/app/routes/error/error.route.js:5:0 <- null:0:0\r\n          at check (./vendor/angular-ui-router/release/angular-ui-router.js:2008)\r\n          at update (./vendor/angular-ui-router/release/angular-ui-router.js:2020)\r\n          at ./vendor/angular/angular.js:14712\r\n          at ./src/connect/app/routes/routes.spec.js:30\r\n```\r\n\r\nI don't mind fixing the issue (it worked without error on 0.2.13), but this is a breaking change on a what should be a patch release.\r\n\r\nThe faulty code in question looks like this:\r\n```js\r\n$stateProvider.state('error', {\r\n    params: {\r\n        error: false,\r\n        fromState: {},\r\n        fromParams: {},\r\n        toState: {},\r\n        toParams: {},\r\n    },\r\n   //...\r\n```\r\n\r\n-----\r\n\r\nActually, on reading through the docs again, this seems like it should be an acceptable format, so this might actually be a legitimate bug."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/97264902","html_url":"https://github.com/angular-ui/ui-router/issues/1915#issuecomment-97264902","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1915","id":97264902,"user":{"login":"spencerwi","id":2829379,"avatar_url":"https://avatars.githubusercontent.com/u/2829379?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerwi","html_url":"https://github.com/spencerwi","followers_url":"https://api.github.com/users/spencerwi/followers","following_url":"https://api.github.com/users/spencerwi/following{/other_user}","gists_url":"https://api.github.com/users/spencerwi/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerwi/subscriptions","organizations_url":"https://api.github.com/users/spencerwi/orgs","repos_url":"https://api.github.com/users/spencerwi/repos","events_url":"https://api.github.com/users/spencerwi/events{/privacy}","received_events_url":"https://api.github.com/users/spencerwi/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T23:45:33Z","updated_at":"2015-04-28T23:45:33Z","body":"@nateabele If I had a personal Angular project, mosdef. Company product needs to stay pretty stable, though. \r\n\r\nOtaK raises a good point: unit tests. That might be a good alternative way to dive in and help.\r\n\r\nBig fan of the work you've done already -- UI-Router is *the* de-facto router for Angular, to the point that the Angular core team itself is basing from it. That's no small feat."}}