Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wojtekmaj/react-pdf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.0.1
Choose a base ref
...
head repository: wojtekmaj/react-pdf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.2
Choose a head ref
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 8, 2022

  1. Update dependencies

    wojtekmaj committed Nov 8, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    55501ce View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    b063961 View commit details

Commits on Nov 9, 2022

  1. Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    ced009a View commit details
  2. v6.0.2

    wojtekmaj committed Nov 9, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    dd74e14 View commit details
Showing with 6 additions and 8 deletions.
  1. +1 −1 README.md
  2. +1 −1 package.json
  3. +3 −3 sample/vite/yarn.lock
  4. +1 −3 src/entry.vite.js
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -121,9 +121,9 @@ import { Document, Page } from 'react-pdf/dist/esm/entry.webpack5';
| --------- | ----------------------------------- |
| Parcel 1 | `react-pdf/dist/esm/entry.parcel` |
| Parcel 2 | `react-pdf/dist/esm/entry.parcel2` |
| Vite | `react-pdf/dist/esm/entry.vite` |
| Webpack 4 | `react-pdf/dist/esm/entry.webpack` |
| Webpack 5 | `react-pdf/dist/esm/entry.webpack5` |
| Vite | `react-pdf/dist/esm/entry.vite` |

#### Webpack 4

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-pdf",
"version": "6.0.1",
"version": "6.0.2",
"description": "Display PDFs in your React app as easily as if they were images.",
"main": "dist/cjs/entry.js",
"module": "dist/esm/entry.js",
6 changes: 3 additions & 3 deletions sample/vite/yarn.lock
Original file line number Diff line number Diff line change
@@ -3380,8 +3380,8 @@ __metadata:
linkType: soft

"react-pdf@npm:latest":
version: 6.0.0
resolution: "react-pdf@npm:6.0.0"
version: 6.0.1
resolution: "react-pdf@npm:6.0.1"
dependencies:
"@babel/runtime": ^7.0.0
clsx: ^1.2.1
@@ -3399,7 +3399,7 @@ __metadata:
peerDependenciesMeta:
file-loader:
optional: true
checksum: cc7751036397755186ac1a1b8c9fd7dfc30bbb899493b36cbde394358bca0768415fb1ab1db90bafb028a993b3de47900c31be24f93a21330f903e6254f09cb9
checksum: 0975d675abc71ee5ce29b2955b6af89297511ec53d837f37075526cb87367a503da15f58a947671e1ae74d2b222f52f9a5b32de36c4316818368a4cdab18970f
languageName: node
linkType: hard

4 changes: 1 addition & 3 deletions src/entry.vite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import * as pdfjs from 'pdfjs-dist/build/pdf';
// eslint-disable-next-line import/no-unresolved
import pdfjsWorker from './pdf.worker.entry?url';

import Document from './Document';
import Outline from './Outline';
@@ -10,6 +8,6 @@ import { displayWorkerWarning } from './shared/utils';

displayWorkerWarning();

pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorker;
pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker.js', import.meta.url);

export { pdfjs, Document, Outline, Page };