Socket
Socket
Sign inDemoInstall

@svgr/core

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svgr/core - npm Package Compare versions

Comparing version 5.3.1 to 5.4.0

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

# [5.4.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.3.1...v5.4.0) (2020-04-27)
### Bug Fixes
* wrap svg component directly with memo/forwardRef ([#440](https://github.com/gregberge/svgr/tree/master/packages/core/issues/440)) ([#441](https://github.com/gregberge/svgr/tree/master/packages/core/issues/441)) ([a6de2da](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a6de2dacb63e36572a2167b928418bdc39f3a9c2))
### Features
* **cli:** make all CLI options available in config ([a23a186](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a23a18675c0dd4a461d2fcbdc72a305cabd32a13)), closes [#431](https://github.com/gregberge/svgr/tree/master/packages/core/issues/431) [#437](https://github.com/gregberge/svgr/tree/master/packages/core/issues/437)
## [5.3.1](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.3.0...v5.3.1) (2020-04-05)

@@ -8,0 +24,0 @@

1

lib/config.js

@@ -16,3 +16,2 @@ "use strict";

const DEFAULT_CONFIG = {
h2xConfig: null,
dimensions: true,

@@ -19,0 +18,0 @@ expandProps: 'end',

{
"name": "@svgr/core",
"description": "Transform SVG into React Components.",
"version": "5.3.1",
"version": "5.4.0",
"main": "lib/index.js",

@@ -33,7 +33,7 @@ "repository": "https://github.com/gregberge/svgr/tree/master/packages/core",

"dependencies": {
"@svgr/plugin-jsx": "^5.3.1",
"camelcase": "^5.3.1",
"@svgr/plugin-jsx": "^5.4.0",
"camelcase": "^6.0.0",
"cosmiconfig": "^6.0.0"
},
"gitHead": "f30bb859254770c3507b55e53ed85607ed879ef6"
"gitHead": "e9c9d2fbfbce7a6879c90cd8522101caf2406d42"
}

@@ -26,5 +26,7 @@ # @svgr/core

svgr(svgCode, { icon: true }, { componentName: 'MyComponent' }).then(jsCode => {
console.log(jsCode)
})
svgr(svgCode, { icon: true }, { componentName: 'MyComponent' }).then(
(jsCode) => {
console.log(jsCode)
},
)
```

@@ -41,3 +43,3 @@

plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx', '@svgr/plugin-prettier'],
}).then(jsCode => {
}).then((jsCode) => {
console.log(jsCode)

@@ -44,0 +46,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc