react-svg 14.1.16 → 14.1.19

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 +4 -3
  2. package/package.json +22 -23
package/README.md CHANGED
@@ -17,11 +17,12 @@ Let's say you have an SVG available at some URL, and you'd like to inject it int
17
17
  ## Basic Usage
18
18
 
19
19
  ```jsx
20
- import React from 'react'
21
- import { render } from 'react-dom'
20
+ import { createRoot } from 'react-dom/client'
22
21
  import { ReactSVG } from 'react-svg'
23
22
 
24
- render(<ReactSVG src="svg.svg" />, document.getElementById('root'))
23
+ const container = document.getElementById('root')
24
+ const root = createRoot(container)
25
+ root.render(<ReactSVG src="svg.svg" />)
25
26
  ```
26
27
 
27
28
  ## Live Examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-svg",
3
- "version": "14.1.16",
3
+ "version": "14.1.19",
4
4
  "description": "A React component that injects SVG into the DOM.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/react-svg.esm.js",
@@ -25,7 +25,7 @@
25
25
  "release": "tanem-scripts release",
26
26
  "test": "run-s check:* lint build test:*",
27
27
  "test:cjs": "jest --config ./scripts/jest/config.cjs.js",
28
- "test:cjsprod": "cross-env NODE_ENV=production jest --config ./scripts/jest/config.cjs.js",
28
+ "test:cjsprod": "jest --config ./scripts/jest/config.cjsprod.js",
29
29
  "test:es": "jest --config ./scripts/jest/config.es.js",
30
30
  "test:src": "jest --config ./scripts/jest/config.src.js",
31
31
  "test:umd": "jest --config ./scripts/jest/config.umd.js",
@@ -49,45 +49,44 @@
49
49
  "bugs": "https://github.com/tanem/react-svg/issues",
50
50
  "homepage": "https://github.com/tanem/react-svg",
51
51
  "peerDependencies": {
52
- "react": "^15.5.4 || ^16.0.0 || ^17.0.0",
53
- "react-dom": "^15.5.4 || ^16.0.0 || ^17.0.0"
52
+ "react": "^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0",
53
+ "react-dom": "^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0"
54
54
  },
55
55
  "dependencies": {
56
- "@babel/runtime": "^7.17.8",
56
+ "@babel/runtime": "^7.17.9",
57
57
  "@tanem/svg-injector": "^10.1.21",
58
- "@types/prop-types": "^15.7.4",
58
+ "@types/prop-types": "^15.7.5",
59
59
  "prop-types": "^15.8.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/core": "7.17.8",
62
+ "@babel/core": "7.17.9",
63
63
  "@babel/plugin-transform-runtime": "7.17.0",
64
64
  "@babel/preset-env": "7.16.11",
65
65
  "@babel/preset-react": "7.16.7",
66
- "@testing-library/react": "12.1.4",
66
+ "@testing-library/react": "13.1.1",
67
67
  "@types/faker": "5.5.9",
68
68
  "@types/jest": "27.4.1",
69
69
  "@types/jsdom": "16.2.14",
70
- "@types/react": "17.0.41",
71
- "@types/react-dom": "17.0.14",
72
- "@typescript-eslint/eslint-plugin": "5.16.0",
73
- "@typescript-eslint/parser": "5.16.0",
70
+ "@types/react": "17.0.44",
71
+ "@types/react-dom": "18.0.1",
72
+ "@typescript-eslint/eslint-plugin": "5.20.0",
73
+ "@typescript-eslint/parser": "5.20.0",
74
74
  "babel-core": "6.26.3",
75
75
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
76
- "cross-env": "7.0.3",
77
- "eslint": "8.11.0",
76
+ "eslint": "8.13.0",
78
77
  "eslint-config-prettier": "8.5.0",
79
78
  "eslint-plugin-react": "7.29.4",
80
- "eslint-plugin-react-hooks": "4.3.0",
79
+ "eslint-plugin-react-hooks": "4.4.0",
81
80
  "eslint-plugin-simple-import-sort": "7.0.0",
82
81
  "faker": "5.5.3",
83
82
  "jest": "27.5.1",
84
- "jest-prettyhtml-matchers": "1.10.4",
83
+ "jest-prettyhtml-matchers": "1.10.6",
85
84
  "nock": "13.2.4",
86
85
  "npm-run-all": "4.1.5",
87
- "prettier": "2.6.0",
88
- "react": "17.0.2",
89
- "react-dom": "17.0.2",
90
- "rollup": "2.70.1",
86
+ "prettier": "2.6.2",
87
+ "react": "18.0.0",
88
+ "react-dom": "18.0.0",
89
+ "rollup": "2.70.2",
91
90
  "rollup-plugin-babel": "4.4.0",
92
91
  "rollup-plugin-commonjs": "10.1.0",
93
92
  "rollup-plugin-node-resolve": "5.2.0",
@@ -95,8 +94,8 @@
95
94
  "rollup-plugin-sourcemaps": "0.6.3",
96
95
  "rollup-plugin-terser": "7.0.2",
97
96
  "shx": "0.3.4",
98
- "tanem-scripts": "6.0.44",
99
- "ts-jest": "27.1.3",
100
- "typescript": "4.6.2"
97
+ "tanem-scripts": "6.0.46",
98
+ "ts-jest": "27.1.4",
99
+ "typescript": "4.6.3"
101
100
  }
102
101
  }