{"action":"published","release":{"url":"https://api.github.com/repos/sh0ji/inflect/releases/5364945","assets_url":"https://api.github.com/repos/sh0ji/inflect/releases/5364945/assets","upload_url":"https://uploads.github.com/repos/sh0ji/inflect/releases/5364945/assets{?name,label}","html_url":"https://github.com/sh0ji/inflect/releases/tag/2.0.0-alpha.1","id":5364945,"tag_name":"2.0.0-alpha.1","target_commitish":"2.0","name":"v2.0.0-alpha.1","draft":false,"author":{"login":"sh0ji","id":7939037,"avatar_url":"https://avatars.githubusercontent.com/u/7939037?v=3","gravatar_id":"","url":"https://api.github.com/users/sh0ji","html_url":"https://github.com/sh0ji","followers_url":"https://api.github.com/users/sh0ji/followers","following_url":"https://api.github.com/users/sh0ji/following{/other_user}","gists_url":"https://api.github.com/users/sh0ji/gists{/gist_id}","starred_url":"https://api.github.com/users/sh0ji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh0ji/subscriptions","organizations_url":"https://api.github.com/users/sh0ji/orgs","repos_url":"https://api.github.com/users/sh0ji/repos","events_url":"https://api.github.com/users/sh0ji/events{/privacy}","received_events_url":"https://api.github.com/users/sh0ji/received_events","type":"User","site_admin":false},"prerelease":true,"created_at":"2017-02-05T19:38:02Z","published_at":"2017-02-05T20:09:23Z","assets":[{"url":"https://api.github.com/repos/sh0ji/inflect/releases/assets/3130409","id":3130409,"name":"html-inflect.js","label":null,"uploader":{"login":"sh0ji","id":7939037,"avatar_url":"https://avatars.githubusercontent.com/u/7939037?v=3","gravatar_id":"","url":"https://api.github.com/users/sh0ji","html_url":"https://github.com/sh0ji","followers_url":"https://api.github.com/users/sh0ji/followers","following_url":"https://api.github.com/users/sh0ji/following{/other_user}","gists_url":"https://api.github.com/users/sh0ji/gists{/gist_id}","starred_url":"https://api.github.com/users/sh0ji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh0ji/subscriptions","organizations_url":"https://api.github.com/users/sh0ji/orgs","repos_url":"https://api.github.com/users/sh0ji/repos","events_url":"https://api.github.com/users/sh0ji/events{/privacy}","received_events_url":"https://api.github.com/users/sh0ji/received_events","type":"User","site_admin":false},"content_type":"application/javascript","state":"uploaded","size":258622,"download_count":0,"created_at":"2017-02-05T20:03:37Z","updated_at":"2017-02-05T20:03:38Z","browser_download_url":"https://github.com/sh0ji/inflect/releases/download/2.0.0-alpha.1/html-inflect.js"},{"url":"https://api.github.com/repos/sh0ji/inflect/releases/assets/3130411","id":3130411,"name":"html-inflect.min.js","label":null,"uploader":{"login":"sh0ji","id":7939037,"avatar_url":"https://avatars.githubusercontent.com/u/7939037?v=3","gravatar_id":"","url":"https://api.github.com/users/sh0ji","html_url":"https://github.com/sh0ji","followers_url":"https://api.github.com/users/sh0ji/followers","following_url":"https://api.github.com/users/sh0ji/following{/other_user}","gists_url":"https://api.github.com/users/sh0ji/gists{/gist_id}","starred_url":"https://api.github.com/users/sh0ji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh0ji/subscriptions","organizations_url":"https://api.github.com/users/sh0ji/orgs","repos_url":"https://api.github.com/users/sh0ji/repos","events_url":"https://api.github.com/users/sh0ji/events{/privacy}","received_events_url":"https://api.github.com/users/sh0ji/received_events","type":"User","site_admin":false},"content_type":"application/javascript","state":"uploaded","size":108995,"download_count":0,"created_at":"2017-02-05T20:03:41Z","updated_at":"2017-02-05T20:03:42Z","browser_download_url":"https://github.com/sh0ji/inflect/releases/download/2.0.0-alpha.1/html-inflect.min.js"}],"tarball_url":"https://api.github.com/repos/sh0ji/inflect/tarball/2.0.0-alpha.1","zipball_url":"https://api.github.com/repos/sh0ji/inflect/zipball/2.0.0-alpha.1","body":"Significant redesign to improve modularity and separation of concerns.\r\n\r\n## Changes\r\n* Mutations simplified:\r\n * `changeTag(el, newTag)`: change an element's tagName without altering anything else.\r\n * `removeAttributes(el, ...attributes)`: remove any number of attributes from the element.\r\n * `removeElement(el, keepChildren)`: remove an element. By default it removes the element and all its descendants (just like `el.remove()`). Set `keepChildren = true` to retain all descendants.\r\n * `setSemantics(el, attr, ...values)`: set attribute values. Used by the `setRole` and `setEpubType` functions.\r\n* Mutation functions moved to `./fp` directory as standalone modules.\r\n* Inflect class now only accepts a document. No config.\r\n * Will use `document` if it's available (in the browser).\r\n* Methods must be run in order for the Inflect class to do anything:\r\n * `runTask(task)`: runs the task.\r\n * `runTask(tasks)`: runs all the tasks in the tasks array.\r\n* Task API has changed to use three properties:\r\n * `selector` (string): same as v1.0 (CSS selector).\r\n * `function` (string|function): the name of an existing mutation function (e.g. \"changeTag\"), or a function using the current element as its parameter.\r\n * `parameter` (variable): if using an existing mutation function, provide the parameter here (e.g. `...attributes` for `removeAttribute`).\r\n\r\n## Example\r\n```javascript\r\nconst Inflect = require('html-inflect');\r\nlet inflect = new Inflect(window.document);\r\nlet task = {\r\n  selector: '.h2',\r\n  function: 'changeTag',\r\n  parameter: 'h2'\r\n};\r\ninflect.runTask(task);\r\n// all tags with class=\"h2\" will now be <h2 class=\"h2\">...</h2>\r\n```\r\n"}}
{"actor":{"display_login":"sh0ji"}}