dependabot[bot]
91ef2e19aa
Bump path-parse from 1.0.5 to 1.0.7
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.5 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 18:23:47 +00:00
Jonas Jenwald
d0c87e13ce
Update the eslint-plugin-unicorn
package to the latest version
...
Also enables the `no-useless-spread` rule, see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md , which didn't require any code changes.
2021-08-08 10:49:57 +02:00
Jonas Jenwald
014d00e4fb
Update npm packages
2021-08-08 10:45:36 +02:00
dependabot[bot]
81a6ade590
Bump tar from 4.4.8 to 4.4.15
...
Bumps [tar](https://github.com/npm/node-tar ) from 4.4.8 to 4.4.15.
- [Release notes](https://github.com/npm/node-tar/releases )
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-tar/compare/v4.4.8...v4.4.15 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-03 19:41:11 +00:00
Jonas Jenwald
2a667b92d8
Update npm packages
2021-07-25 10:24:10 +02:00
Jonas Jenwald
46b6e57b7c
Update the eslint-plugin-unicorn
package to the latest version
2021-07-11 12:21:29 +02:00
Jonas Jenwald
689e5c54a7
Update the es-module-shims
package to the latest version
2021-07-11 12:16:47 +02:00
Jonas Jenwald
a926976e4d
Update npm packages
2021-07-11 12:14:47 +02:00
Jonas Jenwald
e4adde3462
Remove the version
field from the package.json
file
...
According to https://docs.npmjs.com/cli/v7/configuring-npm/package-json#version , the "version" field is not required[1]:
> If you don't plan to publish your package, the name and version fields are optional.
Hence it shouldn't be necessary to have a "dummy" `version` field in the `package.json` file, and it seems quite unfortunate to have an essentially meaningless entry in that file.[2]
Furthermore, I'd even go as far as suggesting that it's actually doing more harm than good in practice, since it's not uncommon for people to open issues where they simply quote the `package.json`-entry when filling out the ISSUE_TEMPLATE thus causing confusion as to which *exact* version is actually used.
Unless I'm misremembering, I believe that the only reason for adding the `version` field was that is was necessary in order for things to work back when testing was run on Travis.
Now we're using GitHub Actions instead, where things seem to work just find even without a `version` field; hence why I think it makes sense to remove this.
---
[1] Please note that this patch doesn't affect the `pdfjs-dist` package, since the `package.json` file used there is created in `gulpfile.js` during building.
[2] Trying to, automatically, update the `version` field on *every* commit really doesn't seem worth it to me.
2021-07-03 16:46:28 +02:00
Jonas Jenwald
b146c597b0
Fix (some) vulnerabilities reported by npm audit
...
This was done automatically, using the `npm audit fix` command.
2021-06-27 10:29:39 +02:00
Jonas Jenwald
e79ed27f2f
Update the es-module-shims
package to the latest version
2021-06-27 10:27:02 +02:00
Jonas Jenwald
f03d5b3ee7
Update npm packages
2021-06-27 10:25:40 +02:00
dependabot[bot]
f40c59c7b4
Bump color-string from 1.5.3 to 1.5.5
...
Bumps [color-string](https://github.com/Qix-/color-string ) from 1.5.3 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases )
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Qix-/color-string/commits/1.5.5 )
---
updated-dependencies:
- dependency-name: color-string
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-22 07:59:39 +00:00
Jonas Jenwald
1cfaf07b82
Add basic linting of JSON files using eslint-plugin-json
...
By adding basic linting of JSON files, we can ensure that they're actually valid and prevent e.g. test-failures caused by *accidental* errors when editing the `test/test_manifest.json` file (something that I've done *many* times myself).
For now this simply uses the `recommended` configuration, but we can obviously tweak this later if/when needed. Please find additional information at https://github.com/azeemba/eslint-plugin-json
2021-06-15 12:19:01 +02:00
Jonas Jenwald
014148b28a
Update the eslint-plugin-unicorn
package to the latest version
2021-06-13 10:35:58 +02:00
Jonas Jenwald
99dc7af590
Update npm packages
2021-06-13 09:59:44 +02:00
Jonas Jenwald
26011c65f4
Add a DOMMatrix
polyfill for Node.js environments (PR 13361 follow-up)
...
Given that `DOMMatrix` is, unsurprisingly, not supported in Node.js the `createMatrix` helper function in `src/display/pattern_helper.js` is most likely broken in Node.js environments. It will obviously try to fallback to the `DOMSVGFactory`, however that isn't intended for Node.js usage and errors will be thrown.
Rather than trying to implement a `NodeSVGFactory`, this patch takes the easier route of just adding a `DOMMatrix` polyfill using: https://www.npmjs.com/package/dommatrix
This isn't done only for simplicity, but it'll become necessary anyway since the `createMatrix` helper function is only temporary and will be removed in the future.
2021-06-10 21:08:23 +02:00
dependabot[bot]
0fad999fc9
Bump trim-newlines from 3.0.0 to 3.0.1
...
Bumps [trim-newlines](https://github.com/sindresorhus/trim-newlines ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sindresorhus/trim-newlines/releases )
- [Commits](https://github.com/sindresorhus/trim-newlines/commits )
---
updated-dependencies:
- dependency-name: trim-newlines
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-08 08:11:20 +00:00
Jonas Jenwald
bc17ac5a2f
Update Puppeteer to version 10
...
Hopefully the updated Chromium-version might help reduce the number of intermittent test failures.
Please find additional information at https://github.com/puppeteer/puppeteer/releases/tag/v10.0.0
2021-06-01 15:11:02 +02:00
dependabot[bot]
03d826affa
Bump ws from 7.4.5 to 7.4.6
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.5...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-30 10:58:18 +00:00
Jonas Jenwald
4ef538b19a
Update the yargs
package to the latest version
2021-05-30 07:51:30 +02:00
Jonas Jenwald
e7ab2d6eb5
Update the eslint-plugin-unicorn
package to the latest version
2021-05-30 07:50:12 +02:00
Jonas Jenwald
fd6d60935b
Update npm packages
2021-05-30 07:43:13 +02:00
dependabot[bot]
4f853f7669
Bump browserslist from 4.16.3 to 4.16.6
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 20:40:00 +00:00
Jonas Jenwald
c93958f901
Update npm packages
2021-05-16 10:05:58 +02:00
dependabot[bot]
83aa847e21
Bump hosted-git-info from 2.6.0 to 2.8.9
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.6.0 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.6.0...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 18:43:06 +00:00
dependabot[bot]
e361341449
Bump lodash from 4.17.19 to 4.17.21
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 10:54:18 +00:00
Jonas Jenwald
01e01e6389
Update the eslint-plugin-unicorn
package to the latest version
2021-05-02 09:31:44 +02:00
Jonas Jenwald
d1a18e84ea
Update npm packages
2021-05-02 09:30:09 +02:00
Jonas Jenwald
8538cdf845
Update Puppeteer to version 9 ( #13282 )
...
* Update Puppeteer to version 9
Hopefully the updated Chromium-version might help reduce the number of intermittent test failures.
Please find additional information at https://github.com/puppeteer/puppeteer/releases/tag/v9.0.0
* Update the `eslint-plugin-sort-exports`/`eslint-plugin-unicorn"` packages to their latest versions
Both of these ESLint plugins have increased their version numbers, however `npm update` doesn't handle this automatically.
https://www.npmjs.com/package/eslint-plugin-sort-exports
https://www.npmjs.com/package/eslint-plugin-unicorn
2021-04-22 11:35:16 +02:00
Jonas Jenwald
cfa42cb0f2
Fix (some) vulnerabilities reported by npm audit
...
This was done automatically, using the `npm audit fix` command.
2021-04-18 11:05:52 +02:00
Jonas Jenwald
fc007028a2
Update npm
packages
2021-04-18 11:02:42 +02:00
Jonas Jenwald
c988712bc5
Update the yargs
package to the latest version
...
While I wasn't able to figure out *exactly* why the old format didn't work, re-factoring the `parseOptions` function to use `yargs` differently "just worked" so that's hopefully good enough here.
With these changes everything related to a *particular* option now appears in one place, rather than being spread out, which aids readability in my opinion. Also, the options are now sorted alphabetically, to make it easier to find a particular one.
https://www.npmjs.com/package/yargs
2021-04-16 12:04:35 +02:00
Tim van der Meij
eddb9087a1
Merge pull request #13240 from Snuffleupagus/update-eslint-helpers
...
Update `eslint-config-prettier`/`eslint-plugin-unicorn` packages to their latest versions
2021-04-14 20:36:45 +02:00
Tim van der Meij
b9d87b8c0d
Merge pull request #13244 from Snuffleupagus/update-postcss-calc
...
Update the `postcss-calc` package to the latest version
2021-04-14 20:35:51 +02:00
Jonas Jenwald
3e113cd38f
Update the es-module-shims
package to the latest version
...
Beside the unit/font-test suites, this is primarily used in the development viewer (i.e. `gulp server`).
https://www.npmjs.com/package/es-module-shims
2021-04-14 15:40:41 +02:00
Jonas Jenwald
da93bd18cc
Update the postcss-calc
package to the latest version
...
I've successfully run `gulp mozcentral` and `gulp generic` locally, with/without this patch and diff-ed the *built* `web/viewer.css` files. There were no changes, in the build-output, caused by this update.
https://www.npmjs.com/package/postcss-calc
2021-04-14 15:32:38 +02:00
Jonas Jenwald
f2156fc0cf
Update eslint-config-prettier
/eslint-plugin-unicorn
packages to their latest versions
...
Both of these ESLint "helpers" has increased their *major* version numbers, which `npm update` doesn't handle automatically (since that could cause errors), hence this patch which updates them manually.
https://www.npmjs.com/package/eslint-config-prettier
https://www.npmjs.com/package/eslint-plugin-unicorn
2021-04-14 12:46:57 +02:00
Jonas Jenwald
f4727f0fec
Update npm
packages
2021-04-04 10:53:29 +02:00
dependabot[bot]
9e2572e4f8
Bump y18n from 3.2.1 to 3.2.2
...
Bumps [y18n](https://github.com/yargs/y18n ) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 11:50:58 +00:00
Jonas Jenwald
3eb7a6b66f
Update npm
packages
2021-03-21 11:00:02 +01:00
Jonas Jenwald
75eb2aedaa
Update npm
packages
2021-03-07 12:00:57 +01:00
dependabot[bot]
6312a321df
Bump pug-code-gen from 2.0.1 to 2.0.3
...
Bumps [pug-code-gen](https://github.com/pugjs/pug ) from 2.0.1 to 2.0.3.
- [Release notes](https://github.com/pugjs/pug/releases )
- [Commits](https://github.com/pugjs/pug/compare/pug-code-gen@2.0.1...pug@2.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-03 02:28:49 +00:00
Jonas Jenwald
bb155cea5d
Update Puppeteer to version 8
...
Hopefully the updated Chromium-version might help reduce the number of intermittent test failures.
Please find additional information at https://github.com/puppeteer/puppeteer/releases/tag/v8.0.0
2021-02-26 12:08:02 +01:00
Jonas Jenwald
385bf67bc9
Update npm
packages
2021-02-21 11:52:55 +01:00
Jonas Jenwald
70b62eec82
Update npm
packages
2021-02-07 12:04:22 +01:00
Jonas Jenwald
fd4e76a7e3
Update Puppeteer to version 7
...
Please see:
- https://github.com/puppeteer/puppeteer/releases/tag/v7.0.1
- https://github.com/puppeteer/puppeteer/releases/tag/v7.0.0
2021-02-04 18:03:11 +01:00
Jonas Jenwald
003965e1e8
Update Puppeteer to version 6 (issue 12945)
...
Please see https://github.com/puppeteer/puppeteer/releases/tag/v6.0.0
2021-02-02 13:18:22 +01:00
Jonas Jenwald
619e1d8bcf
Stop polyfilling CSS variables in GENERIC builds
...
At this point in time, all browsers that we support have native support for CSS variables; please see https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties#browser_compatibility and 9af8501e6c/gulpfile.js (L79-L91)
This reduces the size of the *built* `viewer.css` file, in GENERIC builds, from `93 814` to `55 285` bytes (~41 percent).
2021-01-30 15:38:07 +01:00
Jonas Jenwald
bc32515507
Update the eslint-plugin-unicorn
package to the latest version
...
Please see https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v27.0.0 for additional details.
2021-01-24 08:38:38 +01:00