Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pdfjs to version 4 -- On hold till better browser support exists #18

Merged
merged 17 commits into from
Mar 25, 2024

Conversation

SuttonKyle
Copy link
Contributor

Upgrades pdfjs-dist to version 4. This includes building to ESNext instead of ES2015 and removing the CommonJS build entirely. Also includes the following changes for development (shouldn't impact library usage):

  • the example/local dev case is now served locally on an express webserver (can be accessed by running npm run serve-example and navigating to http://localhost:8080/viewer.html
  • tests are now run using end to end testing with Playwright.

}
overrides: [{
files: ["*.ts", "*.tsx"],
parserOptions: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its hard to tell whats going on in this file since so much was moved around but previously we were setting parserOptions for the whole linting project and now its only in this overrides section?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically since we have a couple regular .js files and our entire linting architecture was set up to only lint typescript, I moved the ts specific stuff to overrides so that we could lint the whole project including files that weren't in the tsconfig files (including js files in the tsconfig can lead to some messy issues)

Comment on lines +9 to +12
/playwright-report/
/blob-report/
/playwright/.cache/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be relative

@@ -8,9 +8,9 @@
"jsx": "react",
"lib": [
"dom",
"es2015"
"ESNext"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you confirm that pdfjs is building for this ES level?

@jleider jleider changed the title Upgrade pdfjs to version 4 Upgrade pdfjs to version 4 -- On hold till better browser support exists Mar 25, 2024
@SuttonKyle SuttonKyle merged commit adec4e6 into main Mar 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants