Greg Bergé
2536e19eca
v6.1.0
2021-12-01 22:50:16 +01:00
Greg Bergé
af9a6cbd43
v6.0.0
2021-11-28 23:16:11 +01:00
Greg Bergé
a5effba173
v6.0.0-alpha.4
2021-11-13 09:40:49 +01:00
Greg Bergé
3c0b7793af
feat: allow to specify icon size
...
BREAKING CHANGE: using --icon as latest arg now requires "--"
Fix #571
2021-11-13 09:29:30 +01:00
Greg Bergé
f61c8ba7c2
chore: fix ref following refactoring
2021-11-13 08:53:09 +01:00
Greg Bergé
261e1b545c
v6.0.0-alpha.3
2021-11-12 09:43:40 +01:00
Greg Bergé
9ea5da421e
refactor(core): use exportName transform ( #616 )
...
BREAKING CHANGE: @svgr/core now exposes { transform } instead of default export.
2021-11-11 11:47:47 +01:00
Greg Bergé
f729efaad6
v6.0.0-alpha.2
2021-11-01 10:10:17 +01:00
Greg Bergé
aa9feb2b1c
feat(cli): allow all CLI options in config ( #615 )
...
Also run Prettier on index.js file.
Closes #570
2021-11-01 10:06:43 +01:00
Greg Bergé
3700aba837
feat: support jsxRuntime ( #613 )
...
It default to "classic", the old behaviour. But it can be "automatic" (the recommended) or "classic-preact".
2021-11-01 08:39:18 +01:00
Greg Bergé
22e2736665
v6.0.0-alpha.1
2021-10-31 09:58:13 +01:00
Greg Bergé
16664327ab
feat(typescript): add types everywhere ( #611 )
...
The whole codebase has been rewritten to TypeScript.
BREAKING CHANGE: template signature has changed
2021-10-31 09:49:38 +01:00
Francisco Morais
5decc9448e
fix: formatExportName for single names ( #548 )
2021-10-30 10:48:17 +02:00
Filipe Marins
4978610f82
feat: add "index" option ( #607 )
...
Thanks!
2021-10-12 23:11:37 +02:00
Greg Bergé
1e36ead767
chore(ci): use npm instead of yarn ( #603 )
2021-10-03 08:39:42 +02:00
Greg Bergé
4ab46a3a4f
v6.0.0-alpha.0
2021-09-24 23:54:36 +02:00
Greg Bergé
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é
fe5cb21be5
chore: upgrade deps & test on Node.js v14 ( #508 )
2020-11-15 11:21:47 +01:00
Endika Intxaurtieta
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
Michael Gruben
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
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é
d0b59cd94e
chore(deps): upgrade ( #444 )
2020-04-27 21:19:44 +02:00
Greg Bergé
7c46ad7369
fix(cli): fix index generation ( #443 )
...
Fixes #433
2020-04-27 21:10:09 +02:00
Katja Lutz
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é
00f0882f0d
chore(deps): upgrade ( #426 )
2020-04-05 09:58:53 +02:00
Ben Ilegbodu
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é
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
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
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
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
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