Skip to content

Commit

Permalink
5.0.0 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy authored Feb 18, 2019
1 parent e9e9dbd commit a9a3a94
Show file tree
Hide file tree
Showing 33 changed files with 769 additions and 4,375 deletions.
9 changes: 5 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"presets": [
"@babel/preset-react",
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-runtime"
["@babel/preset-env", {
"targets": {
"node": "current"
}
}]
]
}
6 changes: 0 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
12 changes: 6 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true
},
"extends": [
"airbnb",
"eslint-config-prettier"
],
"rules": {
"import/no-extraneous-dependencies": "off",
"jsx-a11y/href-no-hash": "off",
"no-continue": "off",
"react/jsx-filename-extension": "off",
"no-plusplus": "off",
"react/jsx-filename-extension": "off"
"no-continue": "off"
}
}
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Automatically normalize line endings for all text-based files
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion
# https://git-scm.com/docs/gitattributes#_end_of_line_conversion

* text=auto

# For the following file types, normalize line endings to LF on
# checkin and prevent conversion to CRLF when they are checked out
# (this is required in order to prevent newline related issues like,
# for example, after the build script is run)

.* text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.svg text eol=lf
*.txt text eol=lf
*.yml text eol=lf
31 changes: 25 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
# See https://help.github.com/ignore-files/ for more about ignoring files

coverage
lib
node_modules
npm-debug.log
# Dependencies
node_modules/
package-lock.json
yarn.lock

# Compiled output
dist/*
!dist/StyleContext*
!dist/withStyles*

# Test coverage
coverage/

# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editors and IDEs
.idea/
.vscode/

# Misc
.DS_Store
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "node tools/pre-commit"
}
}
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
28 changes: 22 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
sudo: false
# For more information about the configurations used
# in this file, please see the Travis CI documentation:
# https://docs.travis-ci.com/user/languages/javascript-with-nodejs

language: node_js

node_js:
- '6'
- '5'
- '4'
- "node"
- "lts/*"

cache:
directories:
- "node_modules"

before_install:
- npm install --global codecov

script:
- npm run lint
- npm run test:cover
- npm run test -- --coverage
- npm run build

after_success:
- npm run coveralls
- codecov

notifications:
email: false
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [v5.0.0] - 2019-02-18

- Migration to new [Context API](https://reactjs.org/docs/context.html) introduced in React.js
[16.3.0](https://github.com/facebook/react/blob/master/CHANGELOG.md#1630-march-29-2018)
([#141](https://github.com/kriasoft/isomorphic-style-loader/pull/141))
```diff
- import withStyles from 'isomorphic-style-loader/lib/withStyles';
+ import withStyles from 'isomorphic-style-loader/withStyles';
```
- Allow to override style id prefix with `_insertCss({ prefix: 's' })`
([#124](https://github.com/kriasoft/isomorphic-style-loader/pull/124))
- Update [hoist-non-react-statics](https://github.com/mridgway/hoist-non-react-statics) from v2 to v3
- Remove `babel-runtime` dependency

## [v4.0.0] - 2017-08-14

- Bump hoist-non-react-statics and babel-runtime
Expand Down Expand Up @@ -38,7 +55,8 @@ All notable changes to this project will be documented in this file.

- Fix style not getting removed for multiple instance ([#23](https://github.com/kriasoft/isomorphic-style-loader/pull/23))

[unreleased]: https://github.com/kriasoft/isomorphic-style-loader/compare/v4.0.0...HEAD
[unreleased]: https://github.com/kriasoft/isomorphic-style-loader/compare/v5.0.0...HEAD
[v5.0.0]: https://github.com/kriasoft/isomorphic-style-loader/compare/v4.0.0...v5.0.0
[v4.0.0]: https://github.com/kriasoft/isomorphic-style-loader/compare/v3.0.0...v4.0.0
[v3.0.0]: https://github.com/kriasoft/isomorphic-style-loader/compare/v2.0.0...v3.0.0
[v2.0.0]: https://github.com/kriasoft/isomorphic-style-loader/compare/v1.1.0...v2.0.0
Expand Down
Loading

0 comments on commit a9a3a94

Please sign in to comment.