{"action":"closed","issue":{"url":"https://api.github.com/repos/sindresorhus/meow/issues/76","repository_url":"https://api.github.com/repos/sindresorhus/meow","labels_url":"https://api.github.com/repos/sindresorhus/meow/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/meow/issues/76/comments","events_url":"https://api.github.com/repos/sindresorhus/meow/issues/76/events","html_url":"https://github.com/sindresorhus/meow/issues/76","id":294498618,"number":76,"title":"fix v4.0.0 release notes","user":{"login":"zaynv","id":8627403,"avatar_url":"https://avatars1.githubusercontent.com/u/8627403?v=4","gravatar_id":"","url":"https://api.github.com/users/zaynv","html_url":"https://github.com/zaynv","followers_url":"https://api.github.com/users/zaynv/followers","following_url":"https://api.github.com/users/zaynv/following{/other_user}","gists_url":"https://api.github.com/users/zaynv/gists{/gist_id}","starred_url":"https://api.github.com/users/zaynv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaynv/subscriptions","organizations_url":"https://api.github.com/users/zaynv/orgs","repos_url":"https://api.github.com/users/zaynv/repos","events_url":"https://api.github.com/users/zaynv/events{/privacy}","received_events_url":"https://api.github.com/users/zaynv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-05T18:39:39Z","updated_at":"2018-02-10T04:14:34Z","closed_at":"2018-02-10T04:14:34Z","author_association":"NONE","body":"sorry for opening an issue about this, but not sure how else to inform. \r\n\r\nThe release notes showed this:\r\n\r\n---\r\n\r\n#### Before\r\n\r\n```js\r\nconst cli = meow(\r\n\t`\r\n\t\tHelp text\r\n\t`,\r\n\tboolean: [\r\n\t\t'unicorn'\r\n\t],\r\n\tstring: [\r\n\t\t'fooBar'\r\n\t],\r\n\talias: {\r\n\t\tu: 'unicorn'\r\n\t},\r\n\tdefault: {\r\n\t\tfoobar: 'foo'\r\n\t}\r\n});\r\n```\r\n\r\n#### After\r\n\r\n```js\r\nconst cli = meow(\r\n\t`\r\n\t\tHelp text\r\n\t`,\r\n\tflags: {\r\n\t\tunicorn: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\talias: 'u'\r\n\t\t},\r\n\t\tfooBar: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'foo'\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n---\r\n\r\nHowever, I think the the outer object is missing.\r\n\r\nFor example,\r\n\r\n```js\r\nconst cli = meow(\r\n\t`\r\n\t\tHelp text\r\n\t`,\r\n\tboolean: [\r\n\t\t'unicorn'\r\n\t],\r\n\tstring: [\r\n\t\t'fooBar'\r\n\t],\r\n\talias: {\r\n\t\tu: 'unicorn'\r\n\t},\r\n\tdefault: {\r\n\t\tfoobar: 'foo'\r\n\t}\r\n});\r\n```\r\n\r\nshould be\r\n\r\n```js\r\nconst cli = meow(\r\n\t`\r\n\t\tHelp text\r\n\t`,\r\n        {\r\n\t\tboolean: [\r\n\t\t\t'unicorn'\r\n\t\t],\r\n\t\tstring: [\r\n\t\t\t'fooBar'\r\n\t\t],\r\n\t\talias: {\r\n\t\t\tu: 'unicorn'\r\n\t\t},\r\n\t\tdefault: {\r\n\t\t\tfoobar: 'foo'\r\n\t\t}\r\n        }\r\n});\r\n```\r\n\r\nand same for the other place. i got a bit confused by this so thought it was worth mentioning"}}
{"actor":{"display_login":"sindresorhus"}}