Repository: nfl/react-helmet Branch: master Commit: 1b57ddb1524b Files: 21 Total size: 328.4 KB Directory structure: gitextract_v89gdlt3/ ├── .babelrc ├── .editorconfig ├── .eslintrc ├── .gitignore ├── .npmignore ├── .nvmrc ├── .travis.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── LICENSE ├── README.md ├── karma.config.js ├── package.json ├── rollup.config.js ├── src/ │ ├── Helmet.js │ ├── HelmetConstants.js │ └── HelmetUtils.js └── test/ ├── HelmetDeclarativeTest.js └── HelmetTest.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .babelrc ================================================ { "presets": [ ["env", { "targets": { "browsers": ["last 1 versions", "ie >= 10"] }, "modules": false, "loose": true }], "react" ], "plugins": [ "transform-class-properties", "transform-object-rest-spread", "external-helpers" ] } ================================================ FILE: .editorconfig ================================================ # editorconfig.org root = true [*] indent_style = space indent_size = 4 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [package.json] indent_style = space indent_size = 2 [.travis.yml] indent_style = space indent_size = 2 ================================================ FILE: .eslintrc ================================================ { "extends": ["nfl", "prettier"], "env": { "browser": true, "mocha": true, "es6": true }, "globals": { "expect": false, "sinon": false }, "plugins": [ "prettier" ], "rules": { "prettier/prettier": ["error", { "printWidth": 80, "tabWidth": 4, "singleQuote": false, "trailingComma": "none", "bracketSpacing": false, "semi": true, "useTabs": false, "parser": "babylon", "jsxBracketSameLine": false } ] } } ================================================ FILE: .gitignore ================================================ .DS_Store .eslintcache .idea coverage es lib node_modules npm-debug.log ================================================ FILE: .npmignore ================================================ .arcconfig .babelrc .editorconfig .eslintrc .nvmrc *.yml CHANGELOG.md CONTRIBUTING.md coverage karma.config.js test/ node_modules src travis.yml rollup.config.js ================================================ FILE: .nvmrc ================================================ v6.6.0 ================================================ FILE: .travis.yml ================================================ language: node_js services: - xvfb addons: apt: packages: - google-chrome-stable node_js: - "node" - 12 - 11 - 10 - 8 before_install: - export CHROME_BIN=/usr/bin/google-chrome cache: yarn: true directories: - node_modules after_success: codecov ================================================ FILE: CHANGELOG.md ================================================ # [6.1.0](https://github.com/nfl/react-helmet/compare/6.0.0...6.1.0) (2020-06-08) ### Features - Re-add Helmet as a default export [(#547)](https://github.com/nfl/react-helmet/pull/547) - Note: You may now choose `import Helmet` or `import {Helmet}` - Updates react-fast-compare to get support for Preact [(#559)](https://github.com/nfl/react-helmet/pull/559) # [6.0.0](https://github.com/nfl/react-helmet/compare/5.2.0...6.0.0) (2020-04-09) ### Features - Bundle with Rollup instead of Webpack - As a result, the default export was removed and Helmet must now be imported as a named component - `import {Helmet} from "react-helmet"` [(#395)](https://github.com/nfl/react-helmet/pull/395) - Replace deepEqual with isEqual [(#402)](https://github.com/nfl/react-helmet/pull/402) # [6.0.0-beta.2](https://github.com/nfl/react-helmet/compare/6.0.0-beta...6.0.0-beta.2) (2020-01-27) # [6.0.0-beta](https://github.com/nfl/react-helmet/compare/5.2.0...6.0.0-beta) (2018-12-07) # [5.2.0](https://github.com/nfl/react-helmet/compare/5.1.3...5.2.0) (2017-08-29) ### Features - Adds support for synchronously updated tags ([#297](https://github.com/nfl/react-helmet/pull/297)) ([6a3d3bf](https://github.com/nfl/react-helmet/commit/6a3d3bf)), closes [#291](https://github.com/nfl/react-helmet/issues/291) ### Bug Fixes - Remove unexpected comma in server-rendered title ([#289](https://github.com/nfl/react-helmet/pull/289)) ([66b8212](https://github.com/nfl/react-helmet/commit/66b8212)), closes [#286](https://github.com/nfl/react-helmet/issues/286) - Replace requestIdleCallback with requestAnimationFrame for a more consistent DOM write cycle. ([#307](https://github.com/nfl/react-helmet/issues/307)) ([a2323ad](https://github.com/nfl/react-helmet/commit/a2323ad)) ## [5.1.3](https://github.com/nfl/react-helmet/compare/5.0.3...5.1.3) (2017-05-18) ### Bug Fixes - Add support for renderable Arrays of strings ([#275](https://github.com/nfl/react-helmet/issues/275)) ([aad5457](https://github.com/nfl/react-helmet/commit/aad5457)), closes [#272](https://github.com/nfl/react-helmet/issues/272) ## [5.0.3](https://github.com/nfl/react-helmet/compare/5.0.2...5.0.3) (2017-04-10) ### Bug Fixes - React.propTypes -> PropTypes ([#265](https://github.com/nfl/react-helmet/issues/265)) ([68ece0c](https://github.com/nfl/react-helmet/commit/68ece0c)) ## [5.0.2](https://github.com/nfl/react-helmet/compare/5.0.1...5.0.2) (2017-03-28) ### Bug Fixes - prevent clearing existing title ([#259](https://github.com/nfl/react-helmet/issues/259)) ([549b603](https://github.com/nfl/react-helmet/commit/549b603)) ## [5.0.1](https://github.com/nfl/react-helmet/compare/5.0.0...5.0.1) (2017-03-24) ### Bug Fixes - handle falsy children values ([#256](https://github.com/nfl/react-helmet/issues/256)) ([4a60765](https://github.com/nfl/react-helmet/commit/4a60765)) # [5.0.0](https://github.com/nfl/react-helmet/compare/4.0.0...5.0.0) (2017-03-21) ### Features - New Simplified API (fully backward-compatible) - Helmet now takes plain HTML tags for the majority of the API with just a few remaining props for Helmet - retaining `titleTemplate`, `defaultTitle`, `onChangeClientState`, and one new - `encodeSpecialCharacters` - refer to README for details. Directly passing Helmet props will be deprecated in the future. [(#246)](https://github.com/nfl/react-helmet/pull/246) - `requestIdleCallback` utilized to consolidate DOM changes and makes these non-blocking for things like animations. Fixes first client-side render not matching server-side render. Maintains one DOM change between route changes on the client-side as well. [(#248)](https://github.com/nfl/react-helmet/pull/248) - On server-side, `Helmet.renderStatic()` aliased to `Helmet.rewind()` for more clarity. `rewind` will be deprecated in the future. - Yarn support # 4.0.0 ### Features - Replacing PlainComponent with stateless functional component `NullComponent`, with a hard requirement to use React 15 or higher. # 3.3.2 ### Bugfixes - Removed stateless functional component `NullComponent` because of it's incompatibility with React 14 and reverted back to PlainComponent. # 3.3.1 [BROKEN] ### Bugfixes - README updates - npm badge and helmet image - Bump react-side-effect to 1.1.0 - Removing PlainComponent, replaced with NullComponent defined within Helmet.js - Refactored code - cut lines of code and used `reduce` to simplify functions - Replaced PlainComponent with NullComponent (now within Helmet.js) # 3.3.0 ### Features - `itemprop` available in meta tags - New API - `titleAttributes` to add attributes to the title tag - `class` support for html tag # 3.2.3 ### Bugfixes - applied previous fix (undefined value for primary attribute key) to base tag - fix htmlAttributes fallback value when calling rewind() on blank Helmet - Removed unneeded dependencies - shallowequal, warning - babel configuration moved into .babelrc - eslint configuration moved into .eslintrc # 3.2.2 ### Bugfixes - Removed breaking changes `jsnext:main` and `module` from package.json. `es` version required special babel configuration for end users and needs to be re-thought for major release. - Reverted `canUseDOM` setter in `Helmet.js`, as this was a breaking change for some users. - [fix] runtime error when providing undefined value for primary attribute key (applies to meta, link, script, noscript, style) # 3.2.1 [BROKEN] ### Bugfixes - Removing "engines" field in package.json. # 3.2.0 [BROKEN] ### Features - `