react-svg 5.0.19 → 5.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -3
  2. package/package.json +14 -14
package/README.md CHANGED
@@ -5,7 +5,11 @@
5
5
  [![npm version](https://img.shields.io/npm/v/react-svg.svg?style=flat-square)](https://www.npmjs.com/package/react-svg)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/react-svg.svg?style=flat-square)](https://www.npmjs.com/package/react-svg)
7
7
 
8
- > A React component that uses [SVGInjector](https://github.com/tanem/SVGInjector) to add SVG to the DOM.
8
+ > A React component that injects SVG into the DOM.
9
+
10
+ ## Background
11
+
12
+ Let's say you have an SVG and you'd like to inject it into the DOM [because reasons](https://github.com/tanem/svg-injector#why). This module will do the heavy lifting for you by delegating the process to [SVGInjector](https://github.com/tanem/svg-injector), which will make an AJAX request for the SVG and then swap in the SVG markup inline. The async loaded SVG is also cached so multiple uses of an SVG only require a single server request.
9
13
 
10
14
  ## Basic Usage
11
15
 
@@ -85,8 +89,7 @@ For the minified production version, make sure you have already included:
85
89
 
86
90
  ## Credits
87
91
 
88
- - [PrototypeAlex](https://github.com/PrototypeAlex) for authoring the original versions.
89
- - The [Atomic](https://github.com/atomic-app) crew for allowing me to take ownership of the repo.
92
+ Thanks to the author(s) of [the original SVGInjector](https://github.com/iconic/SVGInjector), without which none of this would have been possible :clap:
90
93
 
91
94
  ## License
92
95
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-svg",
3
- "version": "5.0.19",
4
- "description": "A React component that uses SVGInjector to add SVG to the DOM.",
3
+ "version": "5.0.23",
4
+ "description": "A React component that injects SVG into the DOM.",
5
5
  "main": "index.js",
6
6
  "module": "es/react-svg.js",
7
7
  "jsnext:main": "es/react-svg.js",
@@ -55,29 +55,29 @@
55
55
  "react-dom": "^15.5.4 || ^16.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@babel/runtime": "^7.0.0-rc.1",
58
+ "@babel/runtime": "^7.0.0-rc.2",
59
59
  "@tanem/svg-injector": "^1.2.1",
60
60
  "prop-types": "^15.6.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@babel/core": "^7.0.0-rc.1",
64
- "@babel/plugin-proposal-class-properties": "^7.0.0-rc.1",
65
- "@babel/plugin-transform-runtime": "^7.0.0-rc.1",
66
- "@babel/preset-env": "^7.0.0-rc.1",
67
- "@babel/preset-react": "^7.0.0-rc.1",
68
- "@babel/preset-typescript": "^7.0.0-rc.1",
63
+ "@babel/core": "^7.0.0-rc.2",
64
+ "@babel/plugin-proposal-class-properties": "^7.0.0-rc.2",
65
+ "@babel/plugin-transform-runtime": "^7.0.0-rc.2",
66
+ "@babel/preset-env": "^7.0.0-rc.2",
67
+ "@babel/preset-react": "^7.0.0-rc.2",
68
+ "@babel/preset-typescript": "^7.0.0-rc.2",
69
69
  "@types/enzyme": "^3.1.13",
70
- "@types/faker": "^4.1.2",
70
+ "@types/faker": "^4.1.3",
71
71
  "@types/jest": "^23.3.1",
72
72
  "@types/prop-types": "^15.5.5",
73
- "@types/react": "^16.4.9",
73
+ "@types/react": "^16.4.11",
74
74
  "@types/react-dom": "^16.0.7",
75
75
  "@types/sinon": "^5.0.1",
76
76
  "babel-core": "^6.26.3",
77
77
  "babel-plugin-transform-react-remove-prop-types": "^0.4.14",
78
78
  "codecov": "^3.0.4",
79
79
  "cross-env": "^5.2.0",
80
- "enzyme": "^3.4.1",
80
+ "enzyme": "^3.4.4",
81
81
  "enzyme-adapter-react-16": "^1.2.0",
82
82
  "faker": "^4.1.0",
83
83
  "jest": "^23.5.0",
@@ -98,9 +98,9 @@
98
98
  "rollup-plugin-sourcemaps": "^0.4.2",
99
99
  "rollup-plugin-uglify": "^4.0.0",
100
100
  "sinon": "^6.1.5",
101
- "ts-jest": "^23.1.3",
101
+ "ts-jest": "^23.1.4",
102
102
  "tslint": "^5.11.0",
103
- "tslint-config-prettier": "^1.14.0",
103
+ "tslint-config-prettier": "^1.15.0",
104
104
  "tslint-react": "^3.6.0",
105
105
  "typescript": "^3.0.1"
106
106
  }