Skip to content

Commit

Permalink
v7.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 26, 2023
1 parent 28de4ec commit 389ecb0
Show file tree
Hide file tree
Showing 61 changed files with 64 additions and 70 deletions.
2 changes: 1 addition & 1 deletion Makefile.js

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions Makefile.source.mjs
Expand Up @@ -450,19 +450,14 @@ target["bootstrap-flow"] = function () {

target["new-version-checklist"] = function () {
// eslint-disable-next-line no-constant-condition
if (1) {
if (0) {
console.log(
`
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!! !!!!!!
!!!!!! - Update the version in the !!!!!!
!!!!!! syntax-import-attributes plugin and in !!!!!!
!!!!!! babel-preset-env/src/available-plugins.ts#L159 !!!!!!
!!!!!! - Update the version in the using and dispose !!!!!!
!!!!!! helpers !!!!!!
!!!!!! - Update the version in the !!!!!!
!!!!! proposal-explicit-resource-management plugin !!!!!!
!!!!!! Write any important message here, and change the !!!!!!
!!!!!! if (0) above to if (1) !!!!!!
!!!!!! !!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expand Down
2 changes: 1 addition & 1 deletion eslint/babel-eslint-shared-fixtures/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/eslint-shared-fixtures",
"version": "7.19.1",
"version": "7.22.0",
"description": "Shared fixtures for testing @babel/eslint-* packages",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "babel",
"version": "7.21.9",
"version": "7.22.0",
"version_babel8": "8.0.0-alpha",
"private": true,
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-compat-data/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/compat-data",
"version": "7.21.9",
"version": "7.22.0",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
"description": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-core/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/core",
"version": "7.21.8",
"version": "7.22.0",
"description": "Babel compiler core.",
"main": "./lib/index.js",
"author": "The Babel Team (https://babel.dev/team)",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-generator/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/generator",
"version": "7.21.9",
"version": "7.22.0",
"description": "Turns an AST into code.",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/helper-builder-binary-assignment-operator-visitor",
"version": "7.21.5",
"version": "7.22.0",
"description": "Helper function to build binary assignment operator visitors",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/helper-create-class-features-plugin",
"version": "7.21.8",
"version": "7.22.0",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
"description": "Compile class public and private fields, private methods and decorators to ES6",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/helper-create-regexp-features-plugin",
"version": "7.21.8",
"version": "7.22.0",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
"description": "Compile ESNext Regular Expressions to ES5",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/helper-member-expression-to-functions",
"version": "7.21.5",
"version": "7.22.0",
"description": "Helper function to replace certain member expressions with function calls",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helper-module-transforms/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/helper-module-transforms",
"version": "7.21.5",
"version": "7.22.0",
"description": "Babel helper functions for implementing ES6 module transformations",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-transforms",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/helper-transform-fixture-test-runner",
"version": "7.21.5",
"version": "7.22.0",
"description": "Transform test runner for @babel/helper-fixtures module",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-helper-transform-fixture-test-runner",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/helpers",
"version": "7.21.5",
"version": "7.22.0",
"description": "Collection of helper functions used by Babel transforms.",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-helpers",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-helpers/src/helpers-generated.ts
Expand Up @@ -62,7 +62,7 @@ export default Object.freeze({
"export default function _defineAccessor(type,obj,key,fn){var desc={configurable:!0,enumerable:!0};return desc[type]=fn,Object.defineProperty(obj,key,desc)}",
),
dispose: helper(
"7.0.0-beta.0",
"7.22.0",
'function dispose_SuppressedError(suppressed,error){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(suppressed,error){this.suppressed=suppressed,this.error=error,this.stack=(new Error).stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(suppressed,error)}export default function _dispose(stack,error,hasError){function next(){if(0!==stack.length){var r=stack.pop();if(r.a)return Promise.resolve(r.d.call(r.v)).then(next,err);try{r.d.call(r.v)}catch(e){return err(e)}return next()}if(hasError)throw error}function err(e){return error=hasError?new dispose_SuppressedError(e,error):e,hasError=!0,next()}return next()}',
),
iterableToArrayLimit: helper(
Expand Down Expand Up @@ -90,7 +90,7 @@ export default Object.freeze({
'export default function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}',
),
using: helper(
"7.0.0-beta.0",
"7.22.0",
'export default function _using(stack,value,isAwait){if(null==value)return value;if("object"!=typeof value)throw new TypeError("using decarations can only be used with objects, null, or undefined.");if(isAwait)var dispose=value[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==dispose&&(dispose=value[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof dispose)throw new TypeError("Property [Symbol.dispose] is not a function.");return stack.push({v:value,d:dispose,a:isAwait}),value}',
),
wrapRegExp: helper(
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/dispose.js
@@ -1,4 +1,4 @@
/* @minVersion 7.0.0-beta.0 */
/* @minVersion 7.22.0 */
function dispose_SuppressedError(suppressed, error) {
if (typeof SuppressedError !== "undefined") {
// eslint-disable-next-line no-undef
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/using.js
@@ -1,4 +1,4 @@
/* @minVersion 7.0.0-beta.0 */
/* @minVersion 7.22.0 */

export default function _using(stack, value, isAwait) {
if (value === null || value === void 0) return value;
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-node/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/node",
"version": "7.20.7",
"version": "7.22.0",
"description": "Babel command line",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-node",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/parser",
"version": "7.21.9",
"version": "7.22.0",
"description": "A JavaScript parser",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-parser",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining",
"version": "7.20.7",
"version": "7.22.0",
"description": "Transform optional chaining operators to workaround https://crbug.com/v8/11558",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-proposal-decorators/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-proposal-decorators",
"version": "7.21.0",
"version": "7.22.0",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
"publishConfig": {
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-proposal-duplicate-named-capturing-groups-regex",
"version": "7.20.5",
"version": "7.22.0",
"description": "Compile regular expressions using duplicate named groups to index-based groups.",
"homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-duplicate-named-capturing-groups-regex",
"license": "MIT",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-proposal-explicit-resource-management",
"version": "7.18.6",
"version": "7.22.0",
"description": "Compile `using` declarations to ES2015",
"repository": {
"type": "git",
Expand Down
Expand Up @@ -4,8 +4,7 @@ import { types as t, template, traverse, type PluginPass } from "@babel/core";
import type { NodePath, Visitor } from "@babel/traverse";

export default declare(api => {
// TODO: assert version 7.22.0
api.assertVersion(7);
api.assertVersion("^7.22.0");

const TOP_LEVEL_USING = new WeakSet();
const TOP_LEVEL_AWAIT_USING = new WeakSet();
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-proposal-import-attributes-to-assertions",
"version": "7.21.8",
"version": "7.22.0",
"description": "Transform the Import Attributes proposal (`import ... from '...' with { ... }`) to the previous version known as Import Assertions (`import ... from '...' assert { ... }`).",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-syntax-decorators/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-syntax-decorators",
"version": "7.21.0",
"version": "7.22.0",
"description": "Allow parsing of decorators",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-syntax-import-attributes",
"version": "7.20.0",
"version": "7.22.0",
"description": "Allow parsing of the module attributes in the import statement",
"repository": {
"type": "git",
Expand Down
Expand Up @@ -5,7 +5,7 @@ export interface Options {
}

export default declare((api, { deprecatedAssertSyntax }: Options) => {
api.assertVersion("^7.21.0");
api.assertVersion("^7.22.0");

if (
deprecatedAssertSyntax != null &&
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-async-generator-functions",
"version": "7.20.7",
"version": "7.22.0",
"description": "Turn async generator functions into ES2015 generators",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-class-properties",
"version": "7.18.6",
"version": "7.22.0",
"description": "This plugin transforms static class properties as well as properties declared with the property initializer syntax",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-class-static-block",
"version": "7.21.0",
"version": "7.22.0",
"description": "Transform class static blocks",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-dynamic-import",
"version": "7.18.6",
"version": "7.22.0",
"description": "Transform import() expressions",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-export-namespace-from",
"version": "7.18.9",
"version": "7.22.0",
"description": "Compile export namespace to ES2015",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-json-strings/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-json-strings",
"version": "7.18.6",
"version": "7.22.0",
"description": "Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-logical-assignment-operators",
"version": "7.20.7",
"version": "7.22.0",
"description": "Transforms logical assignment operators into short-circuited assignments",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-modules-systemjs",
"version": "7.20.11",
"version": "7.22.0",
"description": "This plugin transforms ES2015 modules to SystemJS",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-named-capturing-groups-regex",
"version": "7.20.5",
"version": "7.22.0",
"description": "Compile regular expressions using named groups to ES5.",
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-named-capturing-groups-regex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-new-target/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-new-target",
"version": "7.18.6",
"version": "7.22.0",
"description": "Transforms new.target meta property",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-nullish-coalescing-operator",
"version": "7.18.6",
"version": "7.22.0",
"description": "Remove nullish coalescing operator",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-numeric-separator",
"version": "7.18.6",
"version": "7.22.0",
"description": "Remove numeric separators from Decimal, Binary, Hex and Octal literals",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-object-rest-spread",
"version": "7.20.7",
"version": "7.22.0",
"description": "Compile object rest and spread to ES5",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-optional-catch-binding",
"version": "7.18.6",
"version": "7.22.0",
"description": "Compile optional catch bindings",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-optional-chaining",
"version": "7.21.0",
"version": "7.22.0",
"description": "Transform optional chaining operators into a series of nil checks",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-parameters/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-parameters",
"version": "7.21.3",
"version": "7.22.0",
"description": "Compile ES2015 default and rest parameters to ES5",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-private-methods",
"version": "7.18.6",
"version": "7.22.0",
"description": "This plugin transforms private class methods",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-private-property-in-object",
"version": "7.21.0",
"version": "7.22.0",
"description": "This plugin transforms checks for a private property in an object",
"repository": {
"type": "git",
Expand Down
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-react-constant-elements",
"version": "7.21.3",
"version": "7.22.0",
"description": "Treat React JSX elements as value types and hoist them to the highest scope",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-react-jsx/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-react-jsx",
"version": "7.21.5",
"version": "7.22.0",
"description": "Turn JSX into React function calls",
"repository": {
"type": "git",
Expand Down

0 comments on commit 389ecb0

Please sign in to comment.