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: gregberge/svgr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8683967eba69079e1ce0fde9de340a6bb16cf433
Choose a base ref
...
head repository: gregberge/svgr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f02acb4a55cb201e1aea1639900f8b9aff70b7ae
Choose a head ref

Commits on Sep 23, 2018

  1. chore: add open collective

    gregberge committed Sep 23, 2018
    Copy the full SHA
    0829d93 View commit details
  2. Merge pull request #180 from smooth-code/open-collective

    chore: add open collective
    gregberge authored Sep 23, 2018
    Copy the full SHA
    88c82d4 View commit details

Commits on Sep 26, 2018

  1. Copy the full SHA
    cc3d056 View commit details
  2. chore: add backers

    gregberge committed Sep 26, 2018
    Copy the full SHA
    c0fb4ef View commit details
  3. Copy the full SHA
    6596710 View commit details
  4. chore: fix donate links

    gregberge committed Sep 26, 2018
    Copy the full SHA
    49b26fb View commit details
  5. Copy the full SHA
    4300b79 View commit details

Commits on Sep 28, 2018

  1. docs(readme): fix typo (#193)

    nucleartux authored and gregberge committed Sep 28, 2018
    Copy the full SHA
    4e2e494 View commit details
  2. Copy the full SHA
    069a763 View commit details

Commits on Sep 29, 2018

  1. chore: update yarn.lock

    gregberge committed Sep 29, 2018
    Copy the full SHA
    b687c9e View commit details

Commits on Sep 30, 2018

  1. feat(config): improve runtime config

    - Add "runtimeConfig" option to enable or disable runtime configuration
    
    BREAKING CHANGE:
    
    - Runtime configuration is always loaded (even with Node API `convert`)
    - In CLI, "--config" is now "--config-file"; this new option can be used
    everywhere
    
    Closes #192
    gregberge committed Sep 30, 2018
    Copy the full SHA
    e52cdce View commit details
  2. fix(webpack): forward filePath in webpack loader

    This will fix all SVGO issues.
    
    BREAKING CHANGE: runtime configuration is now loaded using webpack
    loader.
    
    Fixes #177.
    Fixes #188.
    gregberge committed Sep 30, 2018
    Copy the full SHA
    b7a108e View commit details
  3. fix(rollup): forward filePath in rollup plugin

    This will fix all SVGO issues.
    
    BREAKING CHANGE: runtime configuration is now loaded using rollup plugin.
    
    Fixes #177
    Fixes #188
    gregberge committed Sep 30, 2018
    Copy the full SHA
    461492b View commit details
  4. Copy the full SHA
    f71aa7a View commit details
  5. feat: do not remove style tag

    Removing style tag is an optimization, SVGO can do it better than us.
    
    BREAKING CHANGE:
    
    Style tag will no longer be automatically removed. SVGO should handle it
    correctly using "inlineStyles" plugin. If you want to remove them,
    enable "removeStyleElement" plugin in your SVGO config.
    
    Closes #191
    gregberge committed Sep 30, 2018
    Copy the full SHA
    a4ce09a View commit details
  6. feat(template): expose getProps util for template

    Also improve template documentation.
    
    Closes #187
    gregberge committed Sep 30, 2018
    Copy the full SHA
    5cb238e View commit details
  7. feat: use React.forwardRef

    BREAKING CHANGE:
    
    "ref" option now uses `React.forwardRef`. You don't have to use "svgRef"
    prop, just use "ref" and it will work. `React.forwardRef` requires React
    > 16.3.
    
    Closes #184
    gregberge committed Sep 30, 2018
    Copy the full SHA
    cbee51c View commit details
  8. feat: remove "svgAttributes" option

    BREAKING CHANGE: `svgAttributes` has been removed, please use `svgProps` instead.
    
    Closes #173
    gregberge committed Sep 30, 2018
    Copy the full SHA
    4e46a5d View commit details
  9. chore: enable now at deploy

    gregberge committed Sep 30, 2018
    Copy the full SHA
    d51da18 View commit details
  10. Copy the full SHA
    9869055 View commit details
  11. Copy the full SHA
    b0a3cd0 View commit details
  12. feat: new "expandProps" option

    BREAKING CHANGE:
    
    "--no-expand-props" is now replaced by "--expand-props none". You can now specify a position "start" or "end" for "expandProps"
    property.
    
    Closes #170
    gregberge committed Sep 30, 2018
    Copy the full SHA
    bb95828 View commit details
  13. feat: add synchronous API

    You can now use `svgr.sync` to call svgr synchronously!
    
    Closes #185
    gregberge committed Sep 30, 2018
    Copy the full SHA
    169eb2f View commit details
  14. fix: fix expandProps when position is not allowed

    Also fix option in website.
    gregberge committed Sep 30, 2018
    Copy the full SHA
    45522fc View commit details
  15. fix: fix --icon + --no-dimensions

    This fix incompatible options, "--no-dimensions" will be prioritary.
    
    Fixes #141
    gregberge committed Sep 30, 2018
    Copy the full SHA
    7535693 View commit details

Commits on Oct 1, 2018

  1. Copy the full SHA
    4bdd989 View commit details
  2. Copy the full SHA
    a29f45a View commit details
  3. 1
    Copy the full SHA
    42a4524 View commit details
  4. 1
    Copy the full SHA
    81cf9ef View commit details
  5. v3.0.0

    gregberge committed Oct 1, 2018
    1
    Copy the full SHA
    a4e63f0 View commit details
  6. 1
    Copy the full SHA
    37205b7 View commit details

Commits on Oct 2, 2018

  1. docs(website): drag & drop (#198)

    sanohin authored and gregberge committed Oct 2, 2018
    1
    Copy the full SHA
    e6772d7 View commit details

Commits on Oct 5, 2018

  1. 1
    Copy the full SHA
    0256bc0 View commit details
  2. fix: style & custom SVG properties (#203)

    Closes #199 
    Closes #201
    gregberge authored Oct 5, 2018
    1
    Copy the full SHA
    f8b2212 View commit details
  3. v3.1.0

    gregberge committed Oct 5, 2018
    1
    Copy the full SHA
    62c7815 View commit details

Commits on Oct 13, 2018

  1. 1
    Copy the full SHA
    514d43d View commit details

Commits on Oct 16, 2018

  1. chore: upgrade deps (#209)

    gregberge authored Oct 16, 2018
    1
    Copy the full SHA
    a125679 View commit details

Commits on Nov 4, 2018

  1. Copy the full SHA
    c922e2e View commit details
  2. feat(v4): new architecture

    - Replace h2x by rehype + babel
    - Move jsx, prettier and svgo into separated plugins
    
    BREAKING CHANGE:
    
    - `template` option must now returns a Babel AST
    - `@svgr/core` does not include svgo & prettier by default
    gregberge committed Nov 4, 2018
    Copy the full SHA
    ac8b8ca View commit details
  3. feat(svgo): prefix ids by default

    Closes #210
    gregberge committed Nov 4, 2018
    Copy the full SHA
    06c338d View commit details
  4. Copy the full SHA
    a48ba7b View commit details
  5. Copy the full SHA
    15f55fe View commit details
  6. docs(website): update it

    gregberge committed Nov 4, 2018
    Copy the full SHA
    d1e727f View commit details
  7. Merge pull request #217 from smooth-code/v4

    V4: Lighter, Better, Faster, Stronger
    gregberge authored Nov 4, 2018
    1
    Copy the full SHA
    01b194c View commit details
  8. 1
    Copy the full SHA
    ec1accc View commit details
  9. v4.0.0

    gregberge committed Nov 4, 2018
    1
    Copy the full SHA
    d6beada View commit details
  10. 1
    Copy the full SHA
    925f6ed View commit details

Commits on Nov 6, 2018

  1. docs: fix relative URLs to other SVGR Babel plugins (#222)

    The relative URLs contained a `/packages` one path segment too much which has been removed to match the parent folder.
    arcticicestudio authored and gregberge committed Nov 6, 2018
    1
    Copy the full SHA
    d3ada55 View commit details

Commits on Nov 8, 2018

  1. Copy the full SHA
    99711c4 View commit details
  2. Copy the full SHA
    00a2625 View commit details
Showing 312 changed files with 34,458 additions and 11,436 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -4,4 +4,6 @@ __fixtures__/
__fixtures_build__/
coverage/
examples/
website/
svgr.now.sh/
/website/.cache/
/website/public/
18 changes: 0 additions & 18 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"root": true,
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/react"],
"env": {
"jest": true
},
"rules": {
"no-plusplus": "off",
"no-shadow": "off",
"class-methods-use-this": "off",
"no-param-reassign": "off",
"no-use-before-define": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"react/jsx-wrap-multilines": "off",
"react/no-unused-state": "off",
"react/destructuring-assignment": "off",
"react/prop-types": "off",
"react/sort-comp": "off",
"react/jsx-props-no-spreading": "off",
"react/state-in-constructor": "off"
}
}
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: gregberge
open_collective: svgr
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 👉 [Please follow one of these issue templates](https://github.com/smooth-code/svgr/issues/new/choose) 👈
## 👉 [Please follow one of these issue templates](https://github.com/gregberge/svgr/issues/new/choose) 👈

<!-- Love SVGR? Please consider supporting our collective: 👉 https://opencollective.com/svgr/donate -->

15 changes: 15 additions & 0 deletions .github/opencollective.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
collective: svgr
tiers:
- tiers: '*'
labels: ['backer']
message: |
Hey <author> :wave:,
Thank you so much for supporting us on [Open Collective](<link>) :heart:.
We'll give a special attention to this issue.
<link>
invitation: |
Hey <author> :wave:,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on [Open Collective](<link>). We give a special attention to issues opened by backers.
If you use SVGR at work, you can also ask your company to sponsor us :heart:.
<link>
11 changes: 11 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
lib/
!svgr.now.sh/lib/
__fixtures_build__/
src/__fixtures__/dist/
coverage/
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -4,5 +4,6 @@ CHANGELOG.md
package.json
lerna.json
lib/
website/
.next/
.next/
/website/.cache/
/website/public/
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
language: node_js

node_js:
- 8
- 10
- 12

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
- curl -o- -L https://yarnpkg.com/install.sh
- export PATH="$HOME/.yarn/bin:$PATH"

script:
- yarn ci

notifications:
email: false

cache:
yarn: true
directories:
- ".eslintcache"
- "node_modules"
29 changes: 29 additions & 0 deletions BACKERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Sponsors & Backers

<p class="description">Support SVGR’s development through donations.</p>

SVGR is an MIT-licensed open source project. Even if it has been created at Smooth Code, SVGR is an independent project with ongoing development made possible thanks to the support of these awesome backers. If you'd like to join them, please consider:

- [Become a backer or sponsor on OpenCollective](https://opencollective.com/svgr).

## Gold Sponsors

Gold Sponsors are those who have pledged \$100/month and more to SVGR.

[![gold-sponsors](https://opencollective.com/svgr/tiers/gold-sponsors.svg?avatarHeight=120&width=600)](https://opencollective.com/svgr/order/6010)

## Silver Sponsors

Silver Sponsors are those who have pledged $50/month to$100/month to SVGR.

[![silver-sponsors](https://opencollective.com/svgr/tiers/silver-sponsors.svg?avatarHeight=120&width=600)](https://opencollective.com/svgr/order/6008)

## Bronze Sponsors

Bronze Sponsors are those who have pledged $50/month to$100/month to SVGR.

[![bronze-sponsors](https://opencollective.com/svgr/tiers/bronze-sponsors.svg?avatarHeight=80&width=600)](https://opencollective.com/svgr/order/6009)

## Backers

[![backers](https://opencollective.com/svgr/tiers/backer.svg?avatarHeight=50&width=600)](https://opencollective.com/svgr/order/6007)
Loading