Skip to content

Commit

Permalink
Helmet 5.0.0: requestIdleCallback support (#248)
Browse files Browse the repository at this point in the history
* (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
doctyper authored and cwelch5 committed Mar 21, 2017
1 parent 22f6806 commit 0ad7908
Show file tree
Hide file tree
Showing 13 changed files with 11,455 additions and 5,941 deletions.
75 changes: 51 additions & 24 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,28 +1,55 @@
{
"presets": [
[
"latest",
{
"es2015": {
"modules": false
}
"env": {
"commonjs": {
"presets": [
["env", {
"targets": {
"browsers": ["last 1 versions", "ie >= 10"]
},
"modules": "commonjs",
"loose": true,
"useBuiltIns": true
}]
],
"plugins": [
"transform-export-extensions",
"transform-class-properties",
"transform-object-rest-spread",
"transform-remove-strict-mode"
]
},
"test": {
"plugins": [
["istanbul", {
"exclude": [
"**/node_modules/**",
"**/packages/**",
"**/test/**",
"**/Test*"
]
}],
"transform-export-extensions",
"transform-class-properties",
"transform-object-rest-spread",
"transform-remove-strict-mode"
]
}
],
"react",
"stage-0"
},
"presets": [
["env", {
"targets": {
"browsers": ["last 1 versions", "ie >= 10"]
},
"modules": false,
"loose": true,
"useBuiltIns": true
}],
"react"
],
"env": {
"commonjs": {
"plugins": [
"add-module-exports",
[
"transform-es2015-modules-commonjs",
{
"loose": true,
"strict": false
}
]
]
}
}
"plugins": [
"transform-export-extensions",
"transform-class-properties",
"transform-object-rest-spread",
"transform-remove-strict-mode"
]
}
Loading

0 comments on commit 0ad7908

Please sign in to comment.