Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helmet 5.0.0: requestIdleCallback support (#248)
* (feat) - new API to proved actual head tags as children to Helmet creating a more declarative API. Fully backwards compatible. * test: Update tests to use declarative API * Converting api -> title unit tests. * ESLint fix. * Duplicate prop * title attributes unit tests * Update tests to use declarative API * ESLint fixes. * ref -> rel * html Attributes unit tests * fix lang warning * test: Update onChangeClientState * test: Update script tags * test: Update noscript tags * Update baseTag + metaTag * test: Update style tags * partial link tag unit tests * more link tags * test: Update link tags * fix: Don't warn if no child props are provided. * (fix) title and titleAttribute unit tests * test: Fix html attributes tests * fix: Group array-type children into arrays. * fix: Bridge nested children into appropriate child props. * fix: Noscript test * (fix) server meta unit test - special character * (fix) convert html attributes to react keys when rewinding as a component * fix: Update describe name. * (fix) trailing comma * Bump to 5.0.0-beta * feat: Add {Helmet} export * feat: Add renderStatic alias * test: Update grammar * refactor: Organize new children to props code * 5.0.0-beta.2 * chore: Consolidate & organize Helmet constants. * feat: Support body attributes * fix: render body attributes on the server * chore: update README * feat: use requestIdleCallback to batch DOM updates * chore: move utilities into separate file * fix: correct scope for native requestIdleCallback * fix: add cancelIdleCallback polyfill * fix: clear pending callbacks to prevent multiple DOM writes * fix: export requestIdleCallback * fix: track attributes using attributeKeys * test: make tests asynchronous & update grammar * chore: improve warnings / errors * chore: update dev dependencies * fix: throw on invalid string as child * chore: update config * chore: update karma.config.js * test: fallback if mappedState is undefined * fix: avoid unnecessary DOM writes * feat: opt out of string encoding * chore: update documentation * chore: add note on backward compatibility * test: check for invalid self-closing tags
- Loading branch information