dependencies: Upgrade JavaScript dependencies.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-10-06 15:56:00 -07:00 committed by Tim Abbott
parent 1bc544bde4
commit 762a2d8da4
8 changed files with 748 additions and 677 deletions

View File

@ -130,6 +130,7 @@
"unicorn/prefer-ternary": "off", "unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "off", "unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": "off", "unicorn/prevent-abbreviations": "off",
"unicorn/switch-case-braces": "off",
"valid-typeof": ["error", {"requireStringLiterals": true}], "valid-typeof": ["error", {"requireStringLiterals": true}],
"yoda": "error" "yoda": "error"
}, },

View File

@ -2,7 +2,7 @@
const {strict: assert} = require("assert"); 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 {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery"); const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params"); const {page_params} = require("../zjsunit/zpage_params");
@ -12,11 +12,13 @@ set_global("navigator", {
}); });
let uppy_stub; let uppy_stub;
function Uppy(options) { mock_esm("@uppy/core", {
Uppy: function Uppy(options) {
return uppy_stub.call(this, options); return uppy_stub.call(this, options);
} },
Uppy.UIPlugin = class UIPlugin {}; });
mock_cjs("@uppy/core", Uppy); 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_actions = mock_esm("../../static/js/compose_actions");
const compose_ui = mock_esm("../../static/js/compose_ui"); const compose_ui = mock_esm("../../static/js/compose_ui");

View File

@ -7,16 +7,15 @@
"main": "", "main": "",
"dependencies": { "dependencies": {
"@babel/core": "^7.5.5", "@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5", "@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.15.0", "@babel/preset-typescript": "^7.15.0",
"@babel/register": "^7.6.2", "@babel/register": "^7.6.2",
"@formatjs/intl": "^2.0.0", "@formatjs/intl": "^2.0.0",
"@giphy/js-components": "^5.0.5", "@giphy/js-components": "^5.0.5",
"@giphy/js-fetch-api": "^4.0.1", "@giphy/js-fetch-api": "^4.0.1",
"@uppy/core": "^2.1.6", "@uppy/core": "^3.0.2",
"@uppy/progress-bar": "^2.0.4", "@uppy/progress-bar": "^3.0.1",
"@uppy/xhr-upload": "^2.0.7", "@uppy/xhr-upload": "^3.0.2",
"@zxcvbn-ts/core": "^2.0.0", "@zxcvbn-ts/core": "^2.0.0",
"@zxcvbn-ts/language-common": "^2.0.0", "@zxcvbn-ts/language-common": "^2.0.0",
"@zxcvbn-ts/language-en": "^2.0.0", "@zxcvbn-ts/language-en": "^2.0.0",
@ -27,7 +26,7 @@
"blueimp-md5": "^2.10.0", "blueimp-md5": "^2.10.0",
"clean-css": "^5.1.0", "clean-css": "^5.1.0",
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"core-js": "^3.23.3", "core-js": "^3.25.5",
"css-loader": "^6.2.0", "css-loader": "^6.2.0",
"css-minimizer-webpack-plugin": "^4.0.0", "css-minimizer-webpack-plugin": "^4.0.0",
"date-fns": "^2.16.1", "date-fns": "^2.16.1",
@ -62,7 +61,7 @@
"postcss-loader": "^7.0.0", "postcss-loader": "^7.0.0",
"postcss-media-minmax": "https://codeload.github.com/andersk/postcss-media-minmax/tar.gz/92c4dd33b9add115ec436ef25243484cca0f7355", "postcss-media-minmax": "https://codeload.github.com/andersk/postcss-media-minmax/tar.gz/92c4dd33b9add115ec436ef25243484cca0f7355",
"postcss-mixins": "^9.0.1", "postcss-mixins": "^9.0.1",
"postcss-nested": "^5.0.0", "postcss-nested": "^6.0.0",
"postcss-prefixwrap": "^1.24.0", "postcss-prefixwrap": "^1.24.0",
"postcss-simple-vars": "^7.0.0", "postcss-simple-vars": "^7.0.0",
"regenerator-runtime": "^0.13.3", "regenerator-runtime": "^0.13.3",
@ -91,7 +90,7 @@
"@types/clean-css": "^4.2.2", "@types/clean-css": "^4.2.2",
"@types/jquery": "^3.3.31", "@types/jquery": "^3.3.31",
"@types/lodash": "^4.14.172", "@types/lodash": "^4.14.172",
"@types/node": "^16.11.6", "@types/node": "^18.8.3",
"@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0", "@typescript-eslint/parser": "^5.0.0",
"babel-plugin-rewire-ts": "^1.4.0", "babel-plugin-rewire-ts": "^1.4.0",
@ -109,7 +108,7 @@
"eslint-plugin-formatjs": "^4.0.2", "eslint-plugin-formatjs": "^4.0.2",
"eslint-plugin-import": "^2.22.0", "eslint-plugin-import": "^2.22.0",
"eslint-plugin-no-jquery": "^2.7.0", "eslint-plugin-no-jquery": "^2.7.0",
"eslint-plugin-unicorn": "^43.0.0", "eslint-plugin-unicorn": "^44.0.1",
"jsdom": "^20.0.0", "jsdom": "^20.0.0",
"mockdate": "^3.0.2", "mockdate": "^3.0.2",
"nyc": "^15.0.0", "nyc": "^15.0.0",
@ -125,7 +124,7 @@
"swagger-parser": "^10.0.0", "swagger-parser": "^10.0.0",
"ts-node": "^10.0.0", "ts-node": "^10.0.0",
"typescript": "^4.0.2", "typescript": "^4.0.2",
"vnu-jar": "^21.2.5", "vnu-jar": "^22.9.29",
"webpack-dev-server": "^4.2.0", "webpack-dev-server": "^4.2.0",
"xvfb": "^0.4.0", "xvfb": "^0.4.0",
"yaml": "^2.0.0-8", "yaml": "^2.0.0-8",

View File

@ -1,4 +1,4 @@
import Uppy from "@uppy/core"; import {Uppy} from "@uppy/core";
import ProgressBar from "@uppy/progress-bar"; import ProgressBar from "@uppy/progress-bar";
import XHRUpload from "@uppy/xhr-upload"; import XHRUpload from "@uppy/xhr-upload";
import $ from "jquery"; import $ from "jquery";

View File

@ -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\)\. 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\) 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\. 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\.
Document uses the Unicode Private Use Area\(s\), which should not be used in publicly exchanged documents\. \(Charmod C073\)
# Opinionated informational messages.
Self-closing tag syntax in text/html documents is widely discouraged; its unnecessary and interacts badly with other HTML features \(e\.g\., unquoted attribute values\)\. If youre 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\.

View File

@ -47,6 +47,8 @@ VNU_IGNORE = [
r"No “p” element in scope but a “p” end tag seen\.", 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"Element “div” not allowed as child of element “ul” in this context\. "
+ r"\(Suppressing further errors from this subtree\.\)", + r"\(Suppressing further errors from this subtree\.\)",
# Opinionated informational messages.
r"Self-closing tag syntax in text/html documents is widely discouraged; its unnecessary and interacts badly with other HTML features \(e\.g\., unquoted attribute values\)\. If youre 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)) VNU_IGNORE_REGEX = re.compile(r"|".join(VNU_IGNORE))

View File

@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 151
# historical commits sharing the same major version, in which case a # historical commits sharing the same major version, in which case a
# minor version bump suffices. # minor version bump suffices.
PROVISION_VERSION = (206, 0) PROVISION_VERSION = (207, 0)

1380
yarn.lock

File diff suppressed because it is too large Load Diff