Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: styled-components/polished
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.1.3
Choose a base ref
...
head repository: styled-components/polished
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.1.4
Choose a head ref
  • 12 commits
  • 8 files changed
  • 4 contributors

Commits on Jun 12, 2021

  1. Build(deps): Bump trim-newlines from 3.0.0 to 3.0.1

    Bumps [trim-newlines](https://github.com/sindresorhus/trim-newlines) from 3.0.0 to 3.0.1.
    - [Release notes](https://github.com/sindresorhus/trim-newlines/releases)
    - [Commits](https://github.com/sindresorhus/trim-newlines/commits)
    
    ---
    updated-dependencies:
    - dependency-name: trim-newlines
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and bhough committed Jun 12, 2021
    Copy the full SHA
    5920a43 View commit details

Commits on Aug 6, 2021

  1. Build(deps): Bump tar from 4.4.13 to 4.4.15

    Bumps [tar](https://github.com/npm/node-tar) from 4.4.13 to 4.4.15.
    - [Release notes](https://github.com/npm/node-tar/releases)
    - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
    - [Commits](isaacs/node-tar@v4.4.13...v4.4.15)
    
    ---
    updated-dependencies:
    - dependency-name: tar
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and bhough committed Aug 6, 2021
    Copy the full SHA
    65300f5 View commit details

Commits on Aug 13, 2021

  1. Build(deps): Bump path-parse from 1.0.6 to 1.0.7

    Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
    - [Release notes](https://github.com/jbgutierrez/path-parse/releases)
    - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: path-parse
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and bhough committed Aug 13, 2021
    Copy the full SHA
    0c0b9a7 View commit details

Commits on Sep 3, 2021

  1. Build(deps): Bump tar from 4.4.15 to 4.4.19

    Bumps [tar](https://github.com/npm/node-tar) from 4.4.15 to 4.4.19.
    - [Release notes](https://github.com/npm/node-tar/releases)
    - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
    - [Commits](isaacs/node-tar@v4.4.15...v4.4.19)
    
    ---
    updated-dependencies:
    - dependency-name: tar
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and bhough committed Sep 3, 2021
    Copy the full SHA
    69cd9ca View commit details

Commits on Sep 21, 2021

  1. Build(deps): Bump tmpl from 1.0.4 to 1.0.5

    Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
    - [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
    - [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)
    
    ---
    updated-dependencies:
    - dependency-name: tmpl
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and bhough committed Sep 21, 2021
    Copy the full SHA
    a8a46d2 View commit details

Commits on Oct 9, 2021

  1. Polish punctuation

    poeschko authored and bhough committed Oct 9, 2021
    Copy the full SHA
    86a08cd View commit details

Commits on Jan 22, 2022

  1. Build(deps): Bump shelljs from 0.8.4 to 0.8.5

    Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
    - [Release notes](https://github.com/shelljs/shelljs/releases)
    - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
    - [Commits](shelljs/shelljs@v0.8.4...v0.8.5)
    
    ---
    updated-dependencies:
    - dependency-name: shelljs
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and bhough committed Jan 22, 2022
    Copy the full SHA
    0a411b6 View commit details
  2. remove unnecessary division by 1

    These were probably remnants from taking the sass formula, where it describes the weight in a value of 0 to 100, and it was divided by 100.
    koenpunt authored and bhough committed Jan 22, 2022
    Copy the full SHA
    78dc682 View commit details
  3. Copy the full SHA
    dc0a310 View commit details
  4. Copy the full SHA
    725e636 View commit details
  5. Copy the full SHA
    c3d7869 View commit details
  6. Copy the full SHA
    bbad52d View commit details
Showing with 3,066 additions and 3,777 deletions.
  1. +2 −1 .eslintrc
  2. +1 −1 .github/workflows/main.yml
  3. +1 −1 .prettierrc
  4. +1 −1 README.md
  5. +74 −54 docs/assets/polished.js
  6. +26 −24 package.json
  7. +1 −1 src/color/mix.js
  8. +2,960 −3,694 yarn.lock
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
@@ -15,6 +15,7 @@
"rules": {
"arrow-parens": 0,
"class-methods-use-this": 0,
"default-param-last": 0,
"import/no-extraneous-dependencies": 0,
"linebreak-style": 0,
"no-confusing-arrow": 0,
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [14.x, 16.x, 17.x]

runs-on: ubuntu-latest

2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
"trailingComma": "all"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ You can optionally also use [`babel-plugin-polished`](https://github.com/styled-

### Object Spread Properties

In the documentation you will see examples using [object spread properties](https://github.com/tc39/proposal-object-rest-spread). (`{ ...other }`) To enable this syntax in your project add the [`transform-object-rest-spread` plugin](https://www.npmjs.com/package/babel-plugin-transform-object-rest-spread) (or the [`stage-3` preset](https://babeljs.io/docs/plugins/preset-stage-3/) to enable all stage three features) to your Babel configuration.
In the documentation you will see examples using [object spread properties](https://github.com/tc39/proposal-object-rest-spread) (`{ ...other }`). To enable this syntax in your project add the [`transform-object-rest-spread` plugin](https://www.npmjs.com/package/babel-plugin-transform-object-rest-spread) (or the [`stage-3` preset](https://babeljs.io/docs/plugins/preset-stage-3/) to enable all stage three features) to your Babel configuration.

## Why?

Loading