Skip to content

Commit

Permalink
dependencies: Upgrade JavaScript dependencies.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and timabbott committed Oct 11, 2022
1 parent 1bc544b commit 762a2d8
Show file tree
Hide file tree
Showing 8 changed files with 748 additions and 677 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/switch-case-braces": "off",
"valid-typeof": ["error", {"requireStringLiterals": true}],
"yoda": "error"
},
Expand Down
14 changes: 8 additions & 6 deletions frontend_tests/node_tests/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const {strict: assert} = require("assert");

const {mock_cjs, mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
Expand All @@ -12,11 +12,13 @@ set_global("navigator", {
});

let uppy_stub;
function Uppy(options) {
return uppy_stub.call(this, options);
}
Uppy.UIPlugin = class UIPlugin {};
mock_cjs("@uppy/core", Uppy);
mock_esm("@uppy/core", {
Uppy: function Uppy(options) {
return uppy_stub.call(this, options);
},
});
mock_esm("@uppy/xhr-upload", {default: class XHRUpload {}});
mock_esm("@uppy/progress-bar", {default: class ProgressBar {}});

const compose_actions = mock_esm("../../static/js/compose_actions");
const compose_ui = mock_esm("../../static/js/compose_ui");
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
"main": "",
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.15.0",
"@babel/register": "^7.6.2",
"@formatjs/intl": "^2.0.0",
"@giphy/js-components": "^5.0.5",
"@giphy/js-fetch-api": "^4.0.1",
"@uppy/core": "^2.1.6",
"@uppy/progress-bar": "^2.0.4",
"@uppy/xhr-upload": "^2.0.7",
"@uppy/core": "^3.0.2",
"@uppy/progress-bar": "^3.0.1",
"@uppy/xhr-upload": "^3.0.2",
"@zxcvbn-ts/core": "^2.0.0",
"@zxcvbn-ts/language-common": "^2.0.0",
"@zxcvbn-ts/language-en": "^2.0.0",
Expand All @@ -27,7 +26,7 @@
"blueimp-md5": "^2.10.0",
"clean-css": "^5.1.0",
"clipboard": "^2.0.4",
"core-js": "^3.23.3",
"core-js": "^3.25.5",
"css-loader": "^6.2.0",
"css-minimizer-webpack-plugin": "^4.0.0",
"date-fns": "^2.16.1",
Expand Down Expand Up @@ -62,7 +61,7 @@
"postcss-loader": "^7.0.0",
"postcss-media-minmax": "https://codeload.github.com/andersk/postcss-media-minmax/tar.gz/92c4dd33b9add115ec436ef25243484cca0f7355",
"postcss-mixins": "^9.0.1",
"postcss-nested": "^5.0.0",
"postcss-nested": "^6.0.0",
"postcss-prefixwrap": "^1.24.0",
"postcss-simple-vars": "^7.0.0",
"regenerator-runtime": "^0.13.3",
Expand Down Expand Up @@ -91,7 +90,7 @@
"@types/clean-css": "^4.2.2",
"@types/jquery": "^3.3.31",
"@types/lodash": "^4.14.172",
"@types/node": "^16.11.6",
"@types/node": "^18.8.3",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"babel-plugin-rewire-ts": "^1.4.0",
Expand All @@ -109,7 +108,7 @@
"eslint-plugin-formatjs": "^4.0.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-no-jquery": "^2.7.0",
"eslint-plugin-unicorn": "^43.0.0",
"eslint-plugin-unicorn": "^44.0.1",
"jsdom": "^20.0.0",
"mockdate": "^3.0.2",
"nyc": "^15.0.0",
Expand All @@ -125,7 +124,7 @@
"swagger-parser": "^10.0.0",
"ts-node": "^10.0.0",
"typescript": "^4.0.2",
"vnu-jar": "^21.2.5",
"vnu-jar": "^22.9.29",
"webpack-dev-server": "^4.2.0",
"xvfb": "^0.4.0",
"yaml": "^2.0.0-8",
Expand Down
2 changes: 1 addition & 1 deletion static/js/upload.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Uppy from "@uppy/core";
import {Uppy} from "@uppy/core";
import ProgressBar from "@uppy/progress-bar";
import XHRUpload from "@uppy/xhr-upload";
import $ from "jquery";
Expand Down
7 changes: 5 additions & 2 deletions tools/documentation.vnufilter
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@

Consider using the “h1” element as a top-level heading only \(all “h1” elements are treated as top-level headings by many screen readers and other tools\)\.
Document uses the Unicode Private Use Area\(s\), which should not be used in publicly exchanged documents\. \(Charmod C073\)
Section lacks heading\. Consider using “h2”-“h6” elements to add identifying headings to all sections\.
Document uses the Unicode Private Use Area\(s\), which should not be used in publicly exchanged documents\. \(Charmod C073\)
Section lacks heading\. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed\.

# Opinionated informational messages.

Self-closing tag syntax in text/html documents is widely discouraged; it’s unnecessary and interacts badly with other HTML features \(e\.g\., unquoted attribute values\)\. If you’re using a tool that injects self-closing tag syntax into all void elements, without any option to prevent it from doing so, then consider switching to a different tool\.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
r"No “p” element in scope but a “p” end tag seen\.",
r"Element “div” not allowed as child of element “ul” in this context\. "
+ r"\(Suppressing further errors from this subtree\.\)",
# Opinionated informational messages.
r"Self-closing tag syntax in text/html documents is widely discouraged; it’s unnecessary and interacts badly with other HTML features \(e\.g\., unquoted attribute values\)\. If you’re using a tool that injects self-closing tag syntax into all void elements, without any option to prevent it from doing so, then consider switching to a different tool\.",
]
VNU_IGNORE_REGEX = re.compile(r"|".join(VNU_IGNORE))

Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
# historical commits sharing the same major version, in which case a
# minor version bump suffices.

PROVISION_VERSION = (206, 0)
PROVISION_VERSION = (207, 0)
Loading

0 comments on commit 762a2d8

Please sign in to comment.