-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Update all packages to the most recent version #8977
Conversation
/botio test |
@@ -152,7 +152,7 @@ function createWebpackConfig(defines, output) { | |||
loader: 'babel-loader', | |||
exclude: /src\/core\/(glyphlist|unicode)/, // babel is too slow | |||
options: { | |||
presets: pdfjsNext ? undefined : ['es2015'], | |||
presets: pdfjsNext ? undefined : ['env'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same change must be made at https://github.com/timvandermeij/pdf.js/blob/98b9d5ec37398bcd1eeb784f2b220f57bb9cabb8/gulpfile.js#L1002 as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in the new commit.
98b9d5e
to
3d4e48b
Compare
To support this, the following changes have to be made as well: - Ignore `package-lock.json` since NPM creates it, but we should not have it in the repository. - Switch from `babel-preset-es2015` to `babel-preset-env` to resolve the deprecation warning in the test logs. The latter is more recent and flexible, but should be the same functionality-wise. - `transform` now needs to have the `utf-8` encoding option provided. If not given, it will call the callback with a `Buffer` object, which results in an unhandled promise rejection since what is returned from the callback is a string, not a `Buffer`.
3d4e48b
to
0733b54
Compare
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/4339bc991ba5b35/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/4339bc991ba5b35/output.txt Total script time: 2.45 mins Published |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/865cbb83ac6b2dd/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/7f901872e0b8013/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/7f901872e0b8013/output.txt Total script time: 16.79 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/865cbb83ac6b2dd/output.txt Total script time: 22.85 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to work fine, when testing quickly locally.
r=me, with the following question answered:
Did you run a couple of different gulp
commands (e.g. generic/firefox/mozcentral/...) locally with/without this patch, just to check that nothing obvious broke with the new package versions?
I'm assuming that you did, but just wanted to double check :-)
Feel free to land this, thank you!
Thank you for the review! Yes, the different |
Update all packages to the most recent version
To support this, the following changes have to be made as well:
package-lock.json
since NPM creates it, but we should not have it in the repository.babel-preset-es2015
tobabel-preset-env
to resolve the deprecation warning in the test logs. The latter is more recent and flexible, but should be the same functionality-wise.transform
now needs to have theutf-8
encoding option provided. If not given, it will call the callback with aBuffer
object, which results in an unhandled promise rejection since what is returned from the callback is a string, not aBuffer
.Multiple test log warnings are resolved by this patch.
Fixes #8970