@react-pdf/renderer
Advanced tools
Comparing version 3.3.4 to 3.3.5
{ | ||
"name": "@react-pdf/renderer", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "description": "Create PDF files on the browser and server", | ||
"lint": "eslint src", | ||
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest" | ||
"test": "vitest && vitest --config vitest.browser.config.js" | ||
}, | ||
@@ -38,4 +38,4 @@ "dependencies": { | ||
"@react-pdf/font": "^2.4.2", | ||
"@react-pdf/layout": "^3.10.3", | ||
"@react-pdf/pdfkit": "^3.1.2", | ||
"@react-pdf/layout": "^3.10.4", | ||
"@react-pdf/pdfkit": "^3.1.3", | ||
"@react-pdf/primitives": "^3.1.1", | ||
@@ -51,9 +51,8 @@ "@react-pdf/render": "^3.4.1", | ||
"peerDependencies": { | ||
"react": "^16.8.6 || ^17.0.0 || ^18.0.0" | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"yarn run lint", | ||
"prettier --write", | ||
"git add" | ||
"yarn lint", | ||
"prettier --write" | ||
] | ||
@@ -60,0 +59,0 @@ }, |
@@ -24,2 +24,3 @@ <p align="center"> | ||
## How to install | ||
```sh | ||
@@ -38,3 +39,3 @@ yarn add @react-pdf/renderer | ||
flexDirection: 'row', | ||
backgroundColor: '#E4E4E4' | ||
backgroundColor: '#E4E4E4', | ||
}, | ||
@@ -44,4 +45,4 @@ section: { | ||
padding: 10, | ||
flexGrow: 1 | ||
} | ||
flexGrow: 1, | ||
}, | ||
}); | ||
@@ -65,2 +66,3 @@ | ||
### `Web.` Render in DOM | ||
```jsx | ||
@@ -80,2 +82,3 @@ import ReactDOM from 'react-dom'; | ||
### `Node.` Save in a file | ||
```jsx | ||
@@ -88,2 +91,3 @@ import ReactPDF from '@react-pdf/renderer'; | ||
## Examples | ||
For each example, try opening `output.pdf` to see the result. | ||
@@ -163,2 +167,3 @@ | ||
--- | ||
![](https://img.shields.io/npm/dt/@react-pdf/renderer.svg?style=flat) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163
2213273
22208
Updated@react-pdf/layout@^3.10.4
Updated@react-pdf/pdfkit@^3.1.3