Greg Bergé and GitHub
1058d91f6e
chore: upgrade deps ( #592 )
2021-09-12 12:10:33 +02:00
Greg Bergé
1f107af5aa
feat: upgrade to svgo v2
...
BREAKING CHANGE: config format of SVGO changes & SVGR does not merge SVGO config.
2021-09-05 23:09:18 +02:00
Greg Bergé
75dd79227c
chore: upgrade commander
2021-09-05 09:44:45 +02:00
Greg Bergé
ed14425d42
chore(deps): upgrade
2021-09-05 09:26:47 +02:00
Greg Bergé
b5920550bd
v5.5.0
2020-11-15 11:22:58 +01:00
Greg Bergé and GitHub
fe5cb21be5
chore: upgrade deps & test on Node.js v14 ( #508 )
2020-11-15 11:21:47 +01:00
0eb80853e5
fix: ensure a valid name for exports ( #489 )
...
Co-authored-by: Endika Intxaurtieta <endika@MacBook-Pro-de-Endika.local >
2020-11-15 09:33:38 +01:00
00e84ead96
fix: prevent removing the namespace by svgr ([ #475 ]( https://github.com/gregberge/svgr/issues/475 ) ( #498 )
...
Co-authored-by: Michael Gruben <michael.gruben@empiriecom.com >
2020-11-14 23:04:46 +01:00
Bogdan Chadkin and GitHub
af294ac3b8
perf(cli): use fs.promises ( #459 )
...
* Use fs.promises in svgr cli
Node v10 got fs.promises support with already promisified api. See here https://nodejs.org/docs/latest-v10.x/api/fs.html#fs_fs_promises_api
Also we get helpful mkdir recursive flag which replaces mkdirp and
make-dir packages.
In this diff I replaced util.promisify with fs.promises where possible
and output-file-sync with combination of promisified fs.mkdir and fs.writeFile.
2020-07-27 17:52:51 +02:00
Greg Bergé
e9c9d2fbfb
v5.4.0
2020-04-27 22:19:51 +02:00
Greg Bergé
8c6f7b560e
style: prettier format
2020-04-27 22:15:25 +02:00
Greg Bergé
a23a18675c
feat(cli): make all CLI options available in config
...
Related #431 , #437
2020-04-27 22:15:25 +02:00
Greg Bergé and GitHub
d0b59cd94e
chore(deps): upgrade ( #444 )
2020-04-27 21:19:44 +02:00
Greg Bergé and GitHub
7c46ad7369
fix(cli): fix index generation ( #443 )
...
Fixes #433
2020-04-27 21:10:09 +02:00
Katja Lutz and GitHub
a6de2dacb6
fix: wrap svg component directly with memo/forwardRef ( #440 ) ( #441 )
2020-04-27 21:01:54 +02:00
Greg Bergé
f30bb85925
v5.3.1
2020-04-05 09:59:25 +02:00
Greg Bergé and GitHub
00f0882f0d
chore(deps): upgrade ( #426 )
2020-04-05 09:58:53 +02:00
Ben Ilegbodu and GitHub
6e7e6b2e73
fix: fix typescript types (ref, title) ( #419 )
2020-03-26 08:09:03 +01:00
Greg Bergé
f02acb4a55
v5.3.0
2020-03-22 16:38:06 +01:00
Greg Bergé
0946faec94
test: fix flaky test
2020-03-22 16:31:36 +01:00
Greg Bergé
75d21e162e
chore: upgrade dependencies
2020-03-22 16:20:08 +01:00
Greg Bergé
30362dbb67
test: update snapshots
2020-03-22 16:02:14 +01:00
Greg Bergé
e0947c6f22
docs: document index template
...
Closes #386
2020-03-22 15:47:17 +01:00
Greg Bergé
4596d7bb47
feat: add typescript option
...
Also add support for JSX in templates (Close #373 ).
2020-03-22 15:39:40 +01:00
Greg Bergé and GitHub
c5430f97b0
fix(cli): remove confusion between {keep,ignore}-existing ( #413 )
...
Closes #390
2020-03-22 10:12:23 +01:00
Greg Bergé
8b2129b562
v5.2.0
2020-02-23 21:04:24 +01:00
Bogdan Chadkin and GitHub
388acea074
refactor: migrate to import * as React from 'react' ( #401 )
...
Ref https://github.com/facebook/react/pull/18102
2020-02-23 17:22:54 +01:00
Michael Altamirano and GitHub
96966ebaad
docs: update CLI options + small website fix ( #393 )
...
* Add --keeping-existing option to CLI
* Update CLI readme with up-to-date options
* Add CLI arg dashes for --title-prop to CLI website docs
2020-02-03 22:47:31 +01:00
Greg Bergé
1700dba8a6
v5.1.0
2020-01-20 16:33:43 +01:00
Bogdan Chadkin and Greg Bergé
fd120d11c8
feat: add Svg prefix to exports that starts with a number ( #383 )
...
Closes #379
2020-01-18 09:14:00 +01:00
Bogdan Chadkin and Greg Bergé
f734ddac8e
feat: allow to provide custom index.js template ( #378 )
...
New index.js generator does not cover my cases.
1. need to add `// @flow` on top of the file
2. need to use named export
Both can be easily solved with indexTemplate option.
```
function indexTemplate(files) {
const exportEntries = files.map(file => {
const basename = path.basename(file, path.extname(file))
return `export { ${basename} } from './${basename}'`
})
return '// @flow\n' + exportEntries.join('\n')
}
```
2020-01-17 14:11:51 +01:00
Greg Bergé
2c0863b682
v5.0.1
2019-12-29 10:29:39 +01:00
Greg Bergé
707af48389
chore: add homepage to package
2019-12-29 10:28:58 +01:00
Greg Bergé
420cc458d6
chore: smooth-code -> gregberge
2019-12-24 10:57:52 +01:00
Greg Bergé
a45d6fc8b4
fix: fix engines in package.json
2019-12-24 10:43:35 +01:00
Greg Bergé
cfc0fc2786
v5.0.0
2019-12-23 15:06:22 +01:00
Greg Bergé
21409ae5ac
feat: add titleId prop to enhance a11y
...
Closes #360
2019-12-23 11:55:22 +01:00
Greg Bergé
b56407edd6
fix(cli): fix "--out-dir" with single svg
...
Closes #304
2019-12-23 11:24:25 +01:00
Greg Bergé
64f9ec18ea
feat(cli): show help without any option
...
Closes #349
2019-12-23 10:23:11 +01:00
Greg Bergé
4a0135b9c3
docs: add --save-dev in install section
...
Closes #350
2019-12-23 10:06:48 +01:00
Greg Bergé
d800319194
feat(cli): allow multiple values in "--svg-props" and "--replace-attr-values"
...
Closes #233
2019-12-23 09:43:49 +01:00
Greg Bergé
f0e379320b
feat(core): add "memo" option
...
Closes #230
2019-12-23 09:25:10 +01:00
Greg Bergé
9d7fb34292
feat(cli): generate index.js when --out-dir is used
...
Closes #189
2019-12-22 18:54:54 +01:00
Greg Bergé
dcd824c829
feat(cli): add "--ignore-existing" option
...
Closes #182
2019-12-22 17:58:01 +01:00
Greg Bergé
86e07235a8
feat: use new default template with function
2019-12-18 17:16:37 +01:00
Greg Bergé
7f258ab3cf
feat: support file-loader v5
...
Fixes #367
2019-12-18 17:07:00 +01:00
everdimension and Greg Bergé
100147fd5d
feat: add "silent" option to cli ( #351 )
2019-12-18 17:06:42 +01:00
Greg Bergé
14a26644e7
v4.3.3
2019-09-24 09:42:20 +02:00
Sudhir Mitharwal and Greg Bergé
88b24c5a3b
fix(babel-plugin-svg-dynamic-title): dont render empty title ( #341 )
...
Currently when no title is passed and titleProp is set to `true`, we are
rendering an empty title element which is causing some issues. So we
have added a conditional statement for rendering the title element only
if the title props is not falsy. If we have an existing title, that will
rendered by default. Passing the `null` values as the title will cause
also cause the title element for not render even if a default title
exists on the svg
Fixes #333
2019-09-24 09:41:59 +02:00
Greg Bergé
8544611941
v4.3.2
2019-07-15 10:55:38 +02:00