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

Release a new version #11495

Closed
3 tasks done
timvandermeij opened this issue Jan 9, 2020 · 13 comments
Closed
3 tasks done

Release a new version #11495

timvandermeij opened this issue Jan 9, 2020 · 13 comments
Labels

Comments

@timvandermeij
Copy link
Contributor

timvandermeij commented Jan 9, 2020

The following blockers are identified for this:

timvandermeij referenced this issue Jan 20, 2020
… dependency: ...` warnings from Webpack

Since bundlers, such as Webpack, cannot be told to leave `require` statements alone we are thus forced to jump through hoops in order to prevent these warnings in third-party deployments of the PDF.js library; please see [Webpack issue 8826](https://github.com/webpack/webpack) and libraries such as [require-fool-webpack](https://github.com/sindresorhus/require-fool-webpack).

*Please note:* This is based on the assumption that code running in Node.js won't ever be affected by e.g. Content Security Policies that prevent use of `eval`. If that ever occurs, we should revert to a normal `require` statement and simply document the Webpack warnings instead.
Janaka-Steph pushed a commit to bitcoin-studio/bitcoin-studio.com that referenced this issue Jan 24, 2020
@Carlosf96
Copy link

Hello,
Just wondering if this is currently being worked on.
@timvandermeij

Thanks.

@timvandermeij
Copy link
Contributor Author

I would say that only the third point really needs fixing to avoid manual work in the release process. If that is fixed, we can make the release.

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Feb 15, 2020

@Snuffleupagus
Copy link
Collaborator

Fix #11203 to avoid manual work during the release.

Once the above point is the only thing remaining, and depending on the complexity/time needed to actually address it (since it probably requires Brendan's help), should/could we consider doing the required clean-up manually (for this release too) such that the new release isn't unnecessarily delayed?

@timvandermeij
Copy link
Contributor Author

Yes, I'm fine with that if @brendandahl can do the fixup afterwards like last time.

@Snuffleupagus
Copy link
Collaborator

After this release[1], the following diff ought to fix the https://mozilla.github.io/pdf.js/getting_started/ page:

diff --git a/docs/contents/getting_started/index.md b/docs/contents/getting_started/index.md
index 02618e82..eb49e4c8 100644
--- a/docs/contents/getting_started/index.md
+++ b/docs/contents/getting_started/index.md
@@ -49,6 +49,9 @@ Before downloading PDF.js please take a moment to understand the different layer
       <a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-dist.zip">Beta (vBETA_VERSION)</a>
     </span>
     -->
+    <span class="GROUP_CLASS">
+      <a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-dist.zip">Beta (vBETA_VERSION)</a>
+    </span>
   </div>
   <div class="col-md-4">
     <h3>Prebuilt (ES5-compatible)</h3>
@@ -63,7 +66,7 @@ Before downloading PDF.js please take a moment to understand the different layer
     -->
     <span class="GROUP_CLASS">
       <a type="button" class="btn btn-primary" href="https://github.com/mozilla/pdf.js/releases/download/vSTABLE_VERSION/pdfjs-STABLE_VERSION-dist.zip">Stable (vSTABLE_VERSION)</a>
-      <a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-dist.zip">Beta (vBETA_VERSION)</a>
+      <a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-es5-dist.zip">Beta (vBETA_VERSION)</a>
     </span>
   </div>
   <div class="col-md-4">

[1] Eventually, these hacks can be removed and the code reduced to only the commented-out sections.

@hgbao-eastagile
Copy link

Hi @timvandermeij,
Just wondering if this is going to be released soon after skipping the third point

Fix #11203 to avoid manual work during the release.

Once the above point is the only thing remaining, and depending on the complexity/time needed to actually address it (since it probably requires Brendan's help), should/could we consider doing the required clean-up manually (for this release too) such that the new release isn't unnecessarily delayed?

@timvandermeij
Copy link
Contributor Author

The new release is made.

@Snuffleupagus
Copy link
Collaborator

The new release is made.

@timvandermeij Thanks a lot for pushing this over the line!
Also, nice comment about the translated/non-translated builds on the release page :-)

@timvandermeij
Copy link
Contributor Author

You're welcome! It's a nice release and I'm glad that the release process worked better this time; pdfjs-dist no longer has a duplicate commit. I'm only waiting for NPM to update the latest version number and then it all worked.

@felixhageloh
Copy link

any updates on when the latest version will be available on NPM (I still see 2.3.200)

@timvandermeij
Copy link
Contributor Author

2.3.200 is the latest version. The 2.4 release is a beta. You can use the next tag to test it.

@felixhageloh
Copy link

thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants