dependencies: Upgrade JavaScript dependencies.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-06-05 16:17:15 -07:00 committed by Tim Abbott
parent 954b44716f
commit 8a2086fb4c
6 changed files with 1717 additions and 1690 deletions

View File

@ -1,6 +1,6 @@
{
"private": true,
"packageManager": "pnpm@8.5.0+sha256.b013403809dc950d169f16423b74e9b6c749f6934adb067abe90e9a16b89935f",
"packageManager": "pnpm@8.6.1+sha256.5380612e01e0a3029991d3f329f07429313f4825de47b885b4bb3d1aec9e44e1",
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
@ -14,9 +14,9 @@
"@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",
"@zxcvbn-ts/core": "^3.0.1",
"@zxcvbn-ts/language-common": "^3.0.2",
"@zxcvbn-ts/language-en": "^3.0.1",
"autosize": "^5.0.2",
"babel-loader": "^9.1.0",
"babel-plugin-formatjs": "^10.2.6",
@ -31,9 +31,9 @@
"date-fns": "^2.16.1",
"date-fns-tz": "^2.0.0",
"email-addresses": "^5.0.0",
"emoji-datasource-google": "^14.0.0",
"emoji-datasource-google": "^15.0.1",
"emoji-datasource-google-blob": "npm:emoji-datasource-google@^3.0.0",
"emoji-datasource-twitter": "^14.0.0",
"emoji-datasource-twitter": "^15.0.1",
"error-stack-parser": "^2.0.2",
"expose-loader": "^4.0.0",
"flatpickr": "^4.5.7",
@ -80,7 +80,7 @@
"url-template": "2.0.8",
"webfonts-loader": "^8.0.0",
"webpack": "^5.61.0",
"webpack-bundle-tracker": "^1.2.0",
"webpack-bundle-tracker": "^2.0.0",
"webpack-cli": "^5.0.1",
"winchan": "^0.2.1",
"zod": "^3.21.4"
@ -122,7 +122,7 @@
"minimist": "^1.2.6",
"mockdate": "^3.0.2",
"nyc": "^15.0.0",
"openapi-examples-validator": "^4.0.0",
"openapi-examples-validator": "^5.0.0",
"openapi-types": "^12.0.0",
"prettier": "^2.8.4",
"puppeteer": "^20.1.2",

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -1,6 +1,6 @@
import {zxcvbn, zxcvbnOptions} from "@zxcvbn-ts/core";
import zxcvbnCommonPackage from "@zxcvbn-ts/language-common";
import zxcvbnEnPackage from "@zxcvbn-ts/language-en";
import * as zxcvbnCommonPackage from "@zxcvbn-ts/language-common";
import * as zxcvbnEnPackage from "@zxcvbn-ts/language-en";
import {$t} from "./i18n";
@ -59,5 +59,5 @@ export function password_warning(password: string, $password_field: JQuery): str
{length: min_length},
);
}
return zxcvbn(password).feedback.warning || $t({defaultMessage: "Password is too weak"});
return zxcvbn(password).feedback.warning ?? $t({defaultMessage: "Password is too weak"});
}

View File

@ -44,15 +44,15 @@ run_test("initialize", () => {
const zulip_emoji_count = 1;
assert_emoji_category(complete_emoji_catalog.pop(), "fa-car", 195);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-hashtag", 221);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-smile-o", 163);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-smile-o", 162);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-star-o", popular_emoji_count);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-thumbs-o-up", 361);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-lightbulb-o", 255);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-cutlery", 132);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-lightbulb-o", 257);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-cutlery", 131);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-flag", 269);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-cog", 1);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-leaf", 144);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-soccer-ball-o", 86);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-leaf", 145);
assert_emoji_category(complete_emoji_catalog.pop(), "fa-soccer-ball-o", 85);
// The popular emoji appear twice in the picker, and the zulip emoji is special
assert.equal(

View File

@ -202,9 +202,8 @@ export default (
}),
new DebugRequirePlugin(),
new BundleTracker({
filename: production
? "../webpack-stats-production.json"
: "../var/webpack-stats-dev.json",
path: path.join(__dirname, production ? ".." : "../var"),
filename: production ? "webpack-stats-production.json" : "webpack-stats-dev.json",
}),
// Extract CSS from files
new MiniCssExtractPlugin({