Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
babel: Use babel-plugin-polyfill-corejs3.
Anders Kaseorgae74175cf528
diff --git a/package.json b/package.jsonindex 60d5124cc84..380acad17e0 100644--- a/package.json+++ b/package.json@@ -27,6 +27,7 @@"autosize": "^5.0.2","babel-loader": "^10.0.0","babel-plugin-formatjs": "^11.0.8",+ "babel-plugin-polyfill-corejs3": "^1.0.0","blueimp-md5": "^2.10.0","browserslist-useragent-regexp": "^4.1.3","clean-css": "^5.1.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e16423e0f6c..a88c07ee92a 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -100,6 +100,9 @@ importers:babel-plugin-formatjs:specifier: ^11.0.8version: 11.3.7+ babel-plugin-polyfill-corejs3:+ specifier: ^1.0.0+ version: 1.0.0(@babel/[email protected])blueimp-md5:specifier: ^2.10.0version: 2.19.0@@ -769,6 +772,10 @@ packages:resolution: {integrity: sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-DOjnob/cXOUgDOozCDeq/aK2p5y8dUIVdf6tNhEV1HQRd6I8aQ4f4fbtHRVEvb6lP3BGomrKHiS8ICAASSVQSw==}+ engines: {node: ^22.18.0 || >=24.11.0}+'@babel/[email protected]':resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==}engines: {node: '>=6.9.0'}@@ -785,6 +792,10 @@ packages:resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-JwculLABZvyPvyLBpwU/E/IbH2uM3mnxNtIJpxnIfb24y1PrdVxK5Dqjle4DpgqpGRnwgC7G8IkzPdSXZrO1Ew==}+ engines: {node: ^22.18.0 || >=24.11.0}+'@babel/[email protected]':resolution: {integrity: sha512-RpLYy2sb51oNLjuu1iD3bwBqCBWUzjO0ocp+iaCP/lJtb2CPLcnC2Fftw+4sAzaMELGeWTgExSKADbdo0GFVzA==}engines: {node: '>=6.9.0'}@@ -802,6 +813,12 @@ packages:peerDependencies:'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0+ '@babel/[email protected]':+ resolution: {integrity: sha512-9jzVaTeZyXRDKTgUnNzcPQMO8y0ga3o+Z4fKjNet9Fcx7slgKa83qRbz0EwROSd6qO6CoEe/HQszqSPKb5lhkw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ peerDependencies:+ '@babel/core': ^7.4.0 || ^8.0.0+'@babel/[email protected]':resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}engines: {node: '>=6.9.0'}@@ -828,6 +845,12 @@ packages:resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-3PKFgjTyPlhFhorfP+SjKQxLViIL++zWjFOO4hGriYU+Bsm983DxEM1JmDRJVWXV0O9npu+xXRqz7Pbd3mh70g==}+ engines: {node: ^22.18.0 || >=24.11.0}+ peerDependencies:+ '@babel/core': ^8.0.0+'@babel/[email protected]':resolution: {integrity: sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==}engines: {node: '>=6.9.0'}@@ -856,6 +879,10 @@ packages:resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-U4Dybxh4WESWHt5XhBeExi4DrY0/DNK1aHpQbsrQXCUbFHuMweT0TpLEWKvaraV2Y6fS+ZXunsZ8zIuZIgvF2Q==}+ engines: {node: ^22.18.0 || >=24.11.0}+'@babel/[email protected]':resolution: {integrity: sha512-z+PwLziMNBeSQJonizz2AGnndLsP2DeGHIxDAn+wdHOGuo4Fo1x1HBPPXeE9TAOPHNNWQKCSlA2VZyYyyibDnQ==}engines: {node: '>=6.9.0'}@@ -2556,6 +2583,7 @@ packages:'@plotly/[email protected]':resolution: {integrity: sha512-sR3/Pe5LqT/fhYgp4rT4aSFf1rTsxMbGiH6Hojc7PH36ny5Bn17iVFUjpzycafETURuFbLZUfjODO8LvSI+5zQ==}engines: {node: '>=6.4.0'}+ deprecated: This package is deprecated as of August 2026. plotly.js v4 uses MapLibre for map traces — see https://github.com/maplibre/maplibre-gl-js.'@plotly/[email protected]':resolution: {integrity: sha512-MwaI6g9scKf68Orpr1pHZ597pYx9uP8UEFXLPbsCmuw3a84obwz6pnMXGc90VhgDNeNiLEdlmuK7CPo+5PIxXw==}@@ -3735,6 +3763,12 @@ packages:peerDependencies:'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0+ resolution: {integrity: sha512-yIkslVjbmml2Xjb6XhFW7lISXHsqk6cesxTdDsXoMom4Lnb99DbD3OQbSOoM5Z+ASh8YXYaLAsRQrU2Jeh3Qig==}+ engines: {node: ^20.19.0 || >=22.12.0}+ peerDependencies:+ '@babel/core': ^7.4.0 || ^8.0.0+resolution: {integrity: sha512-M762rNHfSF1EV3SLtnCJXFoQbbIIz0OyRwnCmV0KPC7qosSfCO0QLTSuJX3ayAebubhE6oYBAYPrBA5ljowaZg==}peerDependencies:@@ -10487,6 +10521,8 @@ snapshots:'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]':dependencies:'@babel/code-frame': 7.29.0@@ -10527,6 +10563,14 @@ snapshots:lru-cache: 5.1.1semver: 6.3.1+ '@babel/[email protected]':+ dependencies:+ '@babel/compat-data': 8.0.0+ '@babel/helper-validator-option': 8.0.0+ browserslist: 4.28.2+ lru-cache: 11.3.6+ semver: 7.8.0+'@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.29.0@@ -10558,6 +10602,13 @@ snapshots:transitivePeerDependencies:- supports-color+ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-compilation-targets': 8.0.0+ '@babel/helper-plugin-utils': 8.0.1(@babel/[email protected])+ lodash.debounce: 4.0.8+'@babel/[email protected]': {}'@babel/[email protected]':@@ -10589,6 +10640,10 @@ snapshots:'@babel/[email protected]': {}+ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+'@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.29.0@@ -10620,6 +10675,8 @@ snapshots:'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]':dependencies:'@babel/template': 7.28.6@@ -13808,6 +13865,12 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected](@babel/[email protected]):+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-define-polyfill-provider': 1.0.0(@babel/[email protected])+ core-js-compat: 3.49.0+[email protected](@babel/[email protected]):dependencies:'@babel/core': 7.29.0diff --git a/version.py b/version.pyindex a3e41da3611..dfa0681e196 100644--- a/version.py+++ b/version.py@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 507# historical commits sharing the same major version, in which case a# minor version bump suffices.-PROVISION_VERSION = (385, 1) # bumped 2026-07-28 to upgrade Node.js+PROVISION_VERSION = (385, 2) # bumped 2026-07-28 to add babel-plugin-polyfill-corejs3diff --git a/web/babel.config.js b/web/babel.config.jsindex 5093c17c762..0391249b75e 100644--- a/web/babel.config.js+++ b/web/babel.config.js@@ -12,15 +12,16 @@ const formatJsOptions = {/** @type {import("@babel/preset-env").Options} */const presetEnvOptions = {- corejs: "3.49",shippedProposals: true,- useBuiltIns: "usage",};/** @type {import("@babel/core").TransformOptions} */const config = {only: [new RegExp("^" + _.escapeRegExp(path.resolve(import.meta.dirname, "src") + path.sep))],- plugins: [["formatjs", formatJsOptions]],+ plugins: [+ ["formatjs", formatJsOptions],+ ["polyfill-corejs3", {method: "usage-global", version: "3.49"}],+ ],presets: [["@babel/preset-env", presetEnvOptions], "@babel/typescript"],env: {test: {