Compare commits

...

11 Commits

Author SHA1 Message Date
Matthew Mogford 2079bdc8b4 updated CHANGELOG.md 2024-07-31 14:31:15 +01:00
Matthew Mogford c01f8c6a06 0.1.14 2024-07-31 14:28:21 +01:00
Matthew Mogford aa454b058d updated CHANGELOG.md 2024-07-31 14:28:21 +01:00
Millroy Fernandes 14ba80fed5
Merge pull request #158 from Alcumus/readd-pdfjs-dist
fix: readded missing library
2024-07-31 08:36:45 +01:00
Millroy Fernandes bd833cd530 fix: readded missing library 2024-07-30 15:09:23 +01:00
Millroy Fernandes 3a444d289b
Merge pull request #155 from Alcumus/revert-154-cjs_fix
Revert "fix: possible fix for cjs support"
2024-06-25 12:43:33 +01:00
Millroy Fernandes 89b674c513
Revert "fix: possible fix for cjs support" 2024-06-25 12:43:21 +01:00
Millroy Fernandes 57d7ba6ce3
Merge pull request #154 from Alcumus/cjs_fix
fix: possible fix for cjs support
2024-06-25 12:37:55 +01:00
Millroy Fernandes d69a91111c fix: possible fix for cjs support 2024-06-25 12:33:19 +01:00
Matthew Mogford b6588b7079 0.1.13 2024-06-21 16:25:30 +01:00
Matthew Mogford e129617119 updated CHANGELOG.md 2024-06-21 16:25:29 +01:00
3 changed files with 21 additions and 5 deletions

View File

@ -1,3 +1,18 @@
#### 0.1.15 (2024-07-31)
#### 0.1.14 (2024-07-31)
##### Bug Fixes
* readded missing library ([bd833cd5](https://github.com/Alcumus/react-doc-viewer/commit/bd833cd53083a634f3aa685608b733119cb87f92))
* possible fix for cjs support ([d69a9111](https://github.com/Alcumus/react-doc-viewer/commit/d69a91111cd65abf8865a9beabeda1b292e3fc0c))
##### Other Changes
* possible fix for cjs support" ([89b674c5](https://github.com/Alcumus/react-doc-viewer/commit/89b674c513a8733d2fe30adf893b2879dfa26a23))
#### 0.1.13 (2024-06-21)
#### 0.1.12 (2024-06-21)
#### 0.1.11 (2024-05-14)

View File

@ -1,6 +1,6 @@
{
"name": "react-doc-viewer",
"version": "0.1.12",
"version": "0.1.14",
"description": "Document viewer for react. Renders online/local documents.",
"author": "Matthew Mogford",
"license": "ISC",
@ -10,6 +10,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"pdfjs-dist": "^4.5.136",
"react-pdf": "9.0.0",
"styled-components": "^5.3.11",
"wl-msg-reader": "^0.2.0"
@ -18,6 +19,8 @@
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/babel__core": "7.1.19",
"@types/babel__traverse": "7.17.1",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/react": "^16.9.46",
@ -27,9 +30,7 @@
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "4.0.3",
"typescript": "^4.0.0",
"@types/babel__core": "7.1.19",
"@types/babel__traverse": "7.17.1"
"typescript": "^4.0.0"
},
"scripts": {
"start": "react-scripts start",

View File

@ -8,7 +8,7 @@ import PDFPages from "./components/pages/PDFPages";
import { PDFProvider } from "./state";
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
"pdfjs-dist/build/pdf.worker.min.js",
"pdfjs-dist/build/pdf.worker.min.mjs",
getMetaURL()
).toString();