diff --git a/packages/babel-helpers/src/helpers-generated.ts b/packages/babel-helpers/src/helpers-generated.ts index 2e7b65512ceb..315f79c0a61b 100644 --- a/packages/babel-helpers/src/helpers-generated.ts +++ b/packages/babel-helpers/src/helpers-generated.ts @@ -37,9 +37,9 @@ export default Object.freeze({ "7.21.0", 'import checkInRHS from"checkInRHS";function applyDecs2301Factory(){function createAddInitializerMethod(initializers,decoratorFinishedRef){return function(initializer){!function(decoratorFinishedRef,fnName){if(decoratorFinishedRef.v)throw new Error("attempted to call "+fnName+" after decoration was finished")}(decoratorFinishedRef,"addInitializer"),assertCallable(initializer,"An initializer"),initializers.push(initializer)}}function assertInstanceIfPrivate(has,target){if(!has(target))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(dec,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand){var kindStr;switch(kind){case 1:kindStr="accessor";break;case 2:kindStr="method";break;case 3:kindStr="getter";break;case 4:kindStr="setter";break;default:kindStr="field"}var get,set,ctx={kind:kindStr,name:isPrivate?"#"+name:name,static:isStatic,private:isPrivate},decoratorFinishedRef={v:!1};if(0!==kind&&(ctx.addInitializer=createAddInitializerMethod(initializers,decoratorFinishedRef)),isPrivate||0!==kind&&2!==kind)if(2===kind)get=function(target){return assertInstanceIfPrivate(hasPrivateBrand,target),desc.value};else{var t=0===kind||1===kind;(t||3===kind)&&(get=isPrivate?function(target){return assertInstanceIfPrivate(hasPrivateBrand,target),desc.get.call(target)}:function(target){return desc.get.call(target)}),(t||4===kind)&&(set=isPrivate?function(target,value){assertInstanceIfPrivate(hasPrivateBrand,target),desc.set.call(target,value)}:function(target,value){desc.set.call(target,value)})}else get=function(target){return target[name]},0===kind&&(set=function(target,v){target[name]=v});var has=isPrivate?hasPrivateBrand.bind():function(target){return name in target};ctx.access=get&&set?{get:get,set:set,has:has}:get?{get:get,has:has}:{set:set,has:has};try{return dec(value,ctx)}finally{decoratorFinishedRef.v=!0}}function assertCallable(fn,hint){if("function"!=typeof fn)throw new TypeError(hint+" must be a function")}function assertValidReturnValue(kind,value){var type=typeof value;if(1===kind){if("object"!==type||null===value)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==value.get&&assertCallable(value.get,"accessor.get"),void 0!==value.set&&assertCallable(value.set,"accessor.set"),void 0!==value.init&&assertCallable(value.init,"accessor.init")}else if("function"!==type){var hint;throw hint=0===kind?"field":10===kind?"class":"method",new TypeError(hint+" decorators must return a function or void 0")}}function curryThis2(fn){return function(value){fn(this,value)}}function applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand){var desc,init,value,fn,newValue,get,set,decs=decInfo[0];if(isPrivate?desc=0===kind||1===kind?{get:(fn=decInfo[3],function(){return fn(this)}),set:curryThis2(decInfo[4])}:3===kind?{get:decInfo[3]}:4===kind?{set:decInfo[3]}:{value:decInfo[3]}:0!==kind&&(desc=Object.getOwnPropertyDescriptor(base,name)),1===kind?value={get:desc.get,set:desc.set}:2===kind?value=desc.value:3===kind?value=desc.get:4===kind&&(value=desc.set),"function"==typeof decs)void 0!==(newValue=memberDec(decs,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand))&&(assertValidReturnValue(kind,newValue),0===kind?init=newValue:1===kind?(init=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue);else for(var i=decs.length-1;i>=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5,hasPrivateBrand=instanceBrand;if(isStatic?(base=Class,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i=0;i-=inc){var newInit;if(void 0!==(newValue=memberDec(decs[i],decoratorsHaveThis?decs[i-1]:void 0,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,decoratorsHaveThis=16&kind,isStatic=!!(8&kind),hasPrivateBrand=instanceBrand;if(kind&=7,isStatic?(base=Class,0!==kind&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);existingNonFields.set(name,!(!existingKind&&kind>2)||kind)}applyMemberDec(ret,base,decInfo,decoratorsHaveThis,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i=0;i-=inc){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i].call(decoratorsHaveThis?classDecs[i-1]:void 0,newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(5,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i=0;i-=inc){var newInit;if(void 0!==(newValue=memberDec(decs[i],decoratorsHaveThis?decs[i-1]:void 0,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,decoratorsHaveThis=16&kind,isStatic=!!(8&kind),hasPrivateBrand=instanceBrand;if(kind&=7,isStatic?(base=Class,0!==kind&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);existingNonFields.set(name,!(!existingKind&&kind>2)||kind)}applyMemberDec(ret,base,decInfo,decoratorsHaveThis,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i=0;i-=inc){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i].call(decoratorsHaveThis?classDecs[i-1]:void 0,newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(5,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i { version === "2021-12" || version === "2022-03" || version === "2023-01" || - version === "2023-03" + version === "2023-05" ) { - return transformer2022_03(api, options, version); + return transformer2023_05(api, options, version); } else if (!process.env.BABEL_8_BREAKING) { api.assertVersion("^7.0.2"); return createClassFeaturePlugin({ diff --git a/packages/babel-plugin-proposal-decorators/src/transformer-2023-03.ts b/packages/babel-plugin-proposal-decorators/src/transformer-2023-05.ts similarity index 98% rename from packages/babel-plugin-proposal-decorators/src/transformer-2023-03.ts rename to packages/babel-plugin-proposal-decorators/src/transformer-2023-05.ts index 1460b824cf0f..df457dd239a0 100644 --- a/packages/babel-plugin-proposal-decorators/src/transformer-2023-03.ts +++ b/packages/babel-plugin-proposal-decorators/src/transformer-2023-05.ts @@ -20,7 +20,7 @@ type ClassElement = | t.TSIndexSignature | t.StaticBlock; -type DecoratorVersionKind = "2023-03" | "2023-01" | "2022-03" | "2021-12"; +type DecoratorVersionKind = "2023-05" | "2023-01" | "2022-03" | "2021-12"; function incrementId(id: number[], idx = id.length - 1): void { // If index is -1, id needs an additional character, unshift A @@ -175,7 +175,7 @@ function addProxyAccessorsFor( const { static: isStatic } = element.node; const thisArg = - version === "2023-03" && isStatic ? className : t.thisExpression(); + version === "2023-05" && isStatic ? className : t.thisExpression(); const getterBody = t.blockStatement([ t.returnStatement( @@ -238,7 +238,7 @@ function extractProxyAccessorsFor( targetKey: t.PrivateName, version: DecoratorVersionKind, ): (t.FunctionExpression | t.ArrowFunctionExpression)[] { - if (version !== "2023-03" && version !== "2023-01") { + if (version !== "2023-05" && version !== "2023-01") { return [ template.expression.ast` function () { @@ -269,7 +269,7 @@ const METHOD = 2; const GETTER = 3; const SETTER = 4; -const STATIC_OLD_VERSION = 5; // Before 2023-03 +const STATIC_OLD_VERSION = 5; // Before 2023-05 const STATIC = 8; // 1 << 3 const DECORATORS_HAVE_THIS = 16; // 1 << 3 @@ -355,7 +355,7 @@ function generateDecorationList( const hasOneThis = decoratorsThis.some(Boolean); const decs: t.Expression[] = []; for (let i = 0; i < decsCount; i++) { - if (version === "2023-03" && hasOneThis) { + if (version === "2023-05" && hasOneThis) { decs.push( decoratorsThis[i] || t.unaryExpression("void", t.numericLiteral(0)), ); @@ -380,7 +380,7 @@ function generateDecorationExprs( let flag = el.kind; if (el.isStatic) { - flag += version === "2023-03" ? STATIC : STATIC_OLD_VERSION; + flag += version === "2023-05" ? STATIC : STATIC_OLD_VERSION; } if (hasThis) flag += DECORATORS_HAVE_THIS; @@ -589,7 +589,7 @@ function transformClass( const decoratorsThis = new Map(); const maybeExtractDecorator = (decorator: t.Decorator) => { const { expression } = decorator; - if (version === "2023-03" && t.isMemberExpression(expression)) { + if (version === "2023-05" && t.isMemberExpression(expression)) { let object; if ( t.isSuper(expression.object) || @@ -1132,7 +1132,7 @@ function createLocalsAssignment( ); } else { // TODO(Babel 8): Only keep the if branch - if (version === "2023-03") { + if (version === "2023-05") { if (maybePrivateBranName || classDecorationsFlag.value !== 0) { args.push(classDecorationsFlag); } @@ -1143,7 +1143,7 @@ function createLocalsAssignment( ` as t.ArrowFunctionExpression, ); } - rhs = t.callExpression(state.addHelper("applyDecs2303"), args); + rhs = t.callExpression(state.addHelper("applyDecs2305"), args); } else if (version === "2023-01") { if (maybePrivateBranName) { args.push( @@ -1180,9 +1180,9 @@ function createLocalsAssignment( export default function ( { assertVersion, assumption }: PluginAPI, { loose }: Options, - version: "2023-03" | "2023-01" | "2022-03" | "2021-12", + version: "2023-05" | "2023-01" | "2022-03" | "2021-12", ): PluginObject { - if (version === "2023-03" || version === "2023-01") { + if (version === "2023-05" || version === "2023-01") { assertVersion("^7.21.0"); } else if (version === "2021-12") { assertVersion("^7.16.0"); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/options.json deleted file mode 100644 index 0127175ed0d1..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/options.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]], - "assumptions": { - "constantSuper": true - } -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/options.json deleted file mode 100644 index b48aa6db604e..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/options.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]], - "minNodeVersion": "16.11.0" -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/options.json deleted file mode 100644 index 78dfc85292c5..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/options.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], - "proposal-class-properties", - "proposal-private-methods", - "proposal-class-static-block" - ] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/options.json deleted file mode 100644 index 3878fe79a69c..000000000000 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["proposal-decorators", { "version": "2023-03" }]] -} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/options.json similarity index 68% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/options.json index 78dfc85292c5..90031fe8187a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/options.json +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/options.json @@ -1,6 +1,6 @@ { "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], + ["proposal-decorators", { "version": "2023-05" }], "proposal-class-properties", "proposal-private-methods", "proposal-class-static-block" diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/output.js similarity index 95% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/output.js index f5afadf80683..e2db1b0bc267 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/private/output.js @@ -36,4 +36,4 @@ function _set_b2(v) { function _get_b2() { return _get_b(this); } -[_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 1, "a", o => babelHelpers.classPrivateFieldGet(o, _A), (o, v) => babelHelpers.classPrivateFieldSet(o, _A, v)], [dec, 1, "b", o => babelHelpers.classPrivateFieldGet(o, _B), (o, v) => babelHelpers.classPrivateFieldSet(o, _B, v)]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; +[_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 1, "a", o => babelHelpers.classPrivateFieldGet(o, _A), (o, v) => babelHelpers.classPrivateFieldSet(o, _A, v)], [dec, 1, "b", o => babelHelpers.classPrivateFieldGet(o, _B), (o, v) => babelHelpers.classPrivateFieldSet(o, _B, v)]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/output.js similarity index 94% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/output.js index 22dc762cb4e8..2ed94c89dfff 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/public/output.js @@ -38,4 +38,4 @@ class Foo { babelHelpers.classPrivateFieldSet(this, _C, v); } } -[_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 1, "a"], [dec, 1, "b"], [dec, 1, _computedKey]], []).e; +[_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 1, "a"], [dec, 1, "b"], [dec, 1, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/output.js similarity index 94% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/output.js index 85e5b6909c33..8d398c811a40 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-private/output.js @@ -27,7 +27,7 @@ function _get_b2() { return _get_b(this); } (() => { - [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 9, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _A), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _A, v)], [dec, 9, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _B), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _B, v)]], []).e; + [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 9, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _A), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _A, v)], [dec, 9, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _B), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _B, v)]], []).e; _initStatic(Foo); })(); var _A = { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public-this/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public-this/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public-this/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public-this/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/output.js similarity index 93% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/output.js index 9289a1a1890b..f124a7035620 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/static-public/output.js @@ -22,7 +22,7 @@ class Foo { } } (() => { - [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 9, "a"], [dec, 9, "b"], [dec, 9, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 9, "a"], [dec, 9, "b"], [dec, 9, _computedKey]], []).e; _initStatic(Foo); })(); var _A = { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-private/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-private/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-public/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-public/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-private/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-private/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-public/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/undecorated-static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors--to-es2015/undecorated-static-public/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/private/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/private/output.js index 7e6aca54de41..158762fa3071 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/private/output.js @@ -2,7 +2,7 @@ var _init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto; const dec = () => {}; class Foo { static { - [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 1, "a", o => o.#A, (o, v) => o.#A = v], [dec, 1, "b", o => o.#B, (o, v) => o.#B = v]], [], 0, _ => #a in _).e; + [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 1, "a", o => o.#A, (o, v) => o.#A = v], [dec, 1, "b", o => o.#B, (o, v) => o.#B = v]], [], 0, _ => #a in _).e; } #A = (_initProto(this), _init_a(this)); set #a(v) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/public/output.js similarity index 89% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/public/output.js index c8dd2991237c..d1cc1e1f991e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 1, "a"], [dec, 1, "b"], [dec, 1, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 1, "a"], [dec, 1, "b"], [dec, 1, _computedKey]], []).e; } #A = (_initProto(this), _init_a(this)); get a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-private/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-private/output.js index 2521ca9eceaa..8857eade379f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-private/output.js @@ -2,7 +2,7 @@ var _init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic; const dec = () => {}; class Foo { static { - [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 9, "a", o => o.#A, (o, v) => o.#A = v], [dec, 9, "b", o => o.#B, (o, v) => o.#B = v]], []).e; + [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2305(this, [[dec, 9, "a", o => o.#A, (o, v) => o.#A = v], [dec, 9, "b", o => o.#B, (o, v) => o.#B = v]], []).e; _initStatic(this); } static #A = _init_a(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public-inherited/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public-inherited/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public-inherited/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public-inherited/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public-inherited/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public-inherited/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public-inherited/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public-inherited/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public/output.js similarity index 90% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public/output.js index aa2dca77ccc4..f05e361a640b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 9, "a"], [dec, 9, "b"], [dec, 9, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2305(this, [[dec, 9, "a"], [dec, 9, "b"], [dec, 9, _computedKey]], []).e; _initStatic(this); } static #A = _init_a(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-private/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-private/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-public/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-public/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-private/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-private/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-public/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/undecorated-static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-accessors/undecorated-static-public/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/options.json new file mode 100644 index 000000000000..369462b1233d --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/options.json @@ -0,0 +1,6 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]], + "assumptions": { + "constantSuper": true + } +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-nested-constructor-expression/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-nested-constructor-expression/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-nested-constructor-expression/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/output.js similarity index 73% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-nested-constructor-expression/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/output.js index da70eb6e4869..267564aaae78 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-nested-constructor-expression/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/output.js @@ -3,7 +3,7 @@ const dec = () => {}; let _Foo; class Foo extends Bar { static { - [_Foo, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } constructor() { let foo = super(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-accessor/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-accessor/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-accessor/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-accessor/output.js index df619e2fc0bb..b69e2ce5e1bb 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-accessor/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 3, "x", function () { return Bar.prototype.foo.call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-method/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-method/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-method/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-method/output.js index 147825dd468b..e41db00e1d7b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-private-method/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "x", function () { return Bar.prototype.foo.call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/output.js index 7e214c498427..fa8ae7a79338 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-fields/output.js @@ -14,5 +14,5 @@ class C { ({ e: [_init_m], c: [_C, _initClass] -} = babelHelpers.applyDecs2303(C, [[memberDec, 0, "m"]], [classDec])); +} = babelHelpers.applyDecs2305(C, [[memberDec, 0, "m"]], [classDec])); _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/output.js index b20c78d9814b..87662878affd 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/decorator-access-modified-methods/output.js @@ -15,5 +15,5 @@ class C { ({ e: [_initProto], c: [_C, _initClass] -} = babelHelpers.applyDecs2303(C, [[memberDec, 2, "m"]], [classDec])); +} = babelHelpers.applyDecs2305(C, [[memberDec, 2, "m"]], [classDec])); _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions-static-blocks/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions-static-blocks/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions-static-blocks/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions-static-blocks/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions-static-blocks/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions-static-blocks/output.js similarity index 78% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions-static-blocks/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions-static-blocks/output.js index 99799da63d68..f4b047570ac4 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions-static-blocks/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions-static-blocks/output.js @@ -6,7 +6,7 @@ const A = (new (_temp = class extends babelHelpers.identity { } }, (() => { class A {} - [_A, _initClass] = babelHelpers.applyDecs2303(A, [], [dec]).c; + [_A, _initClass] = babelHelpers.applyDecs2305(A, [], [dec]).c; })(), _temp)(), _A); const B = (new (_temp2 = class extends babelHelpers.identity { constructor() { @@ -14,7 +14,7 @@ const B = (new (_temp2 = class extends babelHelpers.identity { } }, (() => { class C {} - [_C, _initClass2] = babelHelpers.applyDecs2303(C, [], [dec]).c; + [_C, _initClass2] = babelHelpers.applyDecs2305(C, [], [dec]).c; })(), _temp2)(), _C); const D = (new (_temp3 = class extends babelHelpers.identity { constructor() { @@ -22,32 +22,32 @@ const D = (new (_temp3 = class extends babelHelpers.identity { } }, (() => { class D {} - [_D, _initClass3] = babelHelpers.applyDecs2303(D, [], [dec]).c; + [_D, _initClass3] = babelHelpers.applyDecs2305(D, [], [dec]).c; })(), _temp3)(), _D); const E = ((new (_temp4 = class extends babelHelpers.identity { constructor() { super(_decorated_class), (() => {})(), _initClass4(); } -}, (_class2 = class {}, [_decorated_class, _initClass4] = babelHelpers.applyDecs2303(_class2, [], [dec]).c), _temp4)(), _decorated_class), 123); +}, (_class2 = class {}, [_decorated_class, _initClass4] = babelHelpers.applyDecs2305(_class2, [], [dec]).c), _temp4)(), _decorated_class), 123); const F = [(new (_temp5 = class extends babelHelpers.identity { constructor() { super(_G), (() => {})(), _initClass5(); } }, (() => { class G {} - [_G, _initClass5] = babelHelpers.applyDecs2303(G, [], [dec]).c; + [_G, _initClass5] = babelHelpers.applyDecs2305(G, [], [dec]).c; })(), _temp5)(), _G), (new (_temp6 = class extends babelHelpers.identity { constructor() { super(_decorated_class2), (() => {})(), _initClass6(); } -}, (_class3 = class {}, [_decorated_class2, _initClass6] = babelHelpers.applyDecs2303(_class3, [], [dec]).c), _temp6)(), _decorated_class2)]; +}, (_class3 = class {}, [_decorated_class2, _initClass6] = babelHelpers.applyDecs2305(_class3, [], [dec]).c), _temp6)(), _decorated_class2)]; const H = (new (_temp7 = class extends babelHelpers.identity { constructor() { super(_H), (() => {})(), _initClass7(); } }, (() => { class H extends I {} - [_H, _initClass7] = babelHelpers.applyDecs2303(H, [], [dec]).c; + [_H, _initClass7] = babelHelpers.applyDecs2305(H, [], [dec]).c; })(), _temp7)(), _H); const J = (new (_temp8 = class extends babelHelpers.identity { constructor() { @@ -55,7 +55,7 @@ const J = (new (_temp8 = class extends babelHelpers.identity { } }, (() => { class K extends L {} - [_K, _initClass8] = babelHelpers.applyDecs2303(K, [], [dec]).c; + [_K, _initClass8] = babelHelpers.applyDecs2305(K, [], [dec]).c; })(), _temp8)(), _K); function classFactory() { var _initClass9, _decorated_class3, _temp9, _class5; @@ -63,5 +63,5 @@ function classFactory() { constructor() { super(_decorated_class3), (() => {})(), _initClass9(); } - }, (_class5 = class {}, [_decorated_class3, _initClass9] = babelHelpers.applyDecs2303(_class5, [], [dec]).c), _temp9)(), _decorated_class3; + }, (_class5 = class {}, [_decorated_class3, _initClass9] = babelHelpers.applyDecs2305(_class5, [], [dec]).c), _temp9)(), _decorated_class3; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions/output.js similarity index 63% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions/output.js index 0fba5b7a4a85..39492606f0e3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/expressions/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/expressions/output.js @@ -1,13 +1,13 @@ var _initClass, _A, _class, _initClass2, _C, _class2, _initClass3, _D, _class3, _initClass4, _decorated_class, _class4, _initClass5, _G, _class5, _initClass6, _decorated_class2, _class6, _initClass7, _H, _class7, _initClass8, _K, _class8; const dec = () => {}; -const A = ((_class = class A {}, [_A, _initClass] = babelHelpers.applyDecs2303(_class, [], [dec]).c, _initClass()), _A); -const B = ((_class2 = class C {}, [_C, _initClass2] = babelHelpers.applyDecs2303(_class2, [], [dec]).c, _initClass2()), _C); -const D = ((_class3 = class D {}, [_D, _initClass3] = babelHelpers.applyDecs2303(_class3, [], [dec]).c, _initClass3()), _D); -const E = (((_class4 = class {}, [_decorated_class, _initClass4] = babelHelpers.applyDecs2303(_class4, [], [dec]).c, _initClass4()), _decorated_class), 123); -const F = [((_class5 = class G {}, [_G, _initClass5] = babelHelpers.applyDecs2303(_class5, [], [dec]).c, _initClass5()), _G), ((_class6 = class {}, [_decorated_class2, _initClass6] = babelHelpers.applyDecs2303(_class6, [], [dec]).c, _initClass6()), _decorated_class2)]; -const H = ((_class7 = class H extends I {}, [_H, _initClass7] = babelHelpers.applyDecs2303(_class7, [], [dec]).c, _initClass7()), _H); -const J = ((_class8 = class K extends L {}, [_K, _initClass8] = babelHelpers.applyDecs2303(_class8, [], [dec]).c, _initClass8()), _K); +const A = ((_class = class A {}, [_A, _initClass] = babelHelpers.applyDecs2305(_class, [], [dec]).c, _initClass()), _A); +const B = ((_class2 = class C {}, [_C, _initClass2] = babelHelpers.applyDecs2305(_class2, [], [dec]).c, _initClass2()), _C); +const D = ((_class3 = class D {}, [_D, _initClass3] = babelHelpers.applyDecs2305(_class3, [], [dec]).c, _initClass3()), _D); +const E = (((_class4 = class {}, [_decorated_class, _initClass4] = babelHelpers.applyDecs2305(_class4, [], [dec]).c, _initClass4()), _decorated_class), 123); +const F = [((_class5 = class G {}, [_G, _initClass5] = babelHelpers.applyDecs2305(_class5, [], [dec]).c, _initClass5()), _G), ((_class6 = class {}, [_decorated_class2, _initClass6] = babelHelpers.applyDecs2305(_class6, [], [dec]).c, _initClass6()), _decorated_class2)]; +const H = ((_class7 = class H extends I {}, [_H, _initClass7] = babelHelpers.applyDecs2305(_class7, [], [dec]).c, _initClass7()), _H); +const J = ((_class8 = class K extends L {}, [_K, _initClass8] = babelHelpers.applyDecs2305(_class8, [], [dec]).c, _initClass8()), _K); function classFactory() { var _initClass9, _decorated_class3, _class9; - return (_class9 = class {}, [_decorated_class3, _initClass9] = babelHelpers.applyDecs2303(_class9, [], [dec]).c, _initClass9()), _decorated_class3; + return (_class9 = class {}, [_decorated_class3, _initClass9] = babelHelpers.applyDecs2305(_class9, [], [dec]).c, _initClass9()), _decorated_class3; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/output.js similarity index 57% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/output.js index d975b8c90b39..209979bb08ca 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/inheritance/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/inheritance/output.js @@ -3,9 +3,9 @@ const dec1 = () => {}; const dec2 = () => {}; let _Bar; class Bar {} -[_Bar, _initClass] = babelHelpers.applyDecs2303(Bar, [], [dec1]).c; +[_Bar, _initClass] = babelHelpers.applyDecs2305(Bar, [], [dec1]).c; _initClass(); let _Foo; class Foo extends _Bar {} -[_Foo, _initClass2] = babelHelpers.applyDecs2303(Foo, [], [dec2]).c; +[_Foo, _initClass2] = babelHelpers.applyDecs2305(Foo, [], [dec2]).c; _initClass2(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/output.js index 0da569b21815..1e98b9b425e5 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/initializers/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/initializers/output.js @@ -7,7 +7,7 @@ new (_temp = class extends babelHelpers.identity { } }, (() => { class Foo {} - [_Foo, _initClass] = babelHelpers.applyDecs2303(Foo, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(Foo, [], [dec]).c; })(), _temp)(); let _Bar; new (_temp2 = class extends babelHelpers.identity { @@ -18,5 +18,5 @@ new (_temp2 = class extends babelHelpers.identity { } }, (() => { class Bar extends _Foo {} - [_Bar, _initClass2] = babelHelpers.applyDecs2303(Bar, [], [dec]).c; + [_Bar, _initClass2] = babelHelpers.applyDecs2305(Bar, [], [dec]).c; })(), _temp2)(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/options.json similarity index 68% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/options.json index 78dfc85292c5..90031fe8187a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/options.json +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/options.json @@ -1,6 +1,6 @@ { "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], + ["proposal-decorators", { "version": "2023-05" }], "proposal-class-properties", "proposal-private-methods", "proposal-class-static-block" diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/output.js similarity index 91% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/output.js index b640a010c1a9..e6413e032983 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-installed-on-correct-class/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-installed-on-correct-class/output.js @@ -16,6 +16,6 @@ new (_x = /*#__PURE__*/new WeakMap(), _m = /*#__PURE__*/new WeakSet(), (_temp = class Foo { static m() {} } - [_Foo, _initClass] = babelHelpers.applyDecs2303(Foo, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(Foo, [], [dec]).c; })(), _temp))(); function _m2() {} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/output.js index 3e9c496a2f5b..4c7f4fae492d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-static-this/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-static-this/output.js @@ -11,5 +11,5 @@ new (_temp = class extends babelHelpers.identity { } }, (() => { class Foo {} - [_Foo, _initClass] = babelHelpers.applyDecs2303(Foo, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(Foo, [], [dec]).c; })(), _temp)(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/output.js similarity index 77% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/output.js index ba5b7da737a3..6f91424929d4 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement-with-expr/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement-with-expr/output.js @@ -4,5 +4,5 @@ const Foo = ((_class = class Bar { constructor() { babelHelpers.defineProperty(this, "bar", new _Bar()); } -}, [_Bar, _initClass] = babelHelpers.applyDecs2303(_class, [], [dec]).c, _initClass()), _Bar); +}, [_Bar, _initClass] = babelHelpers.applyDecs2305(_class, [], [dec]).c, _initClass()), _Bar); const foo = new Foo(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/output.js index ea526413bad4..636e8ad68440 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/replacement/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes--to-es2015/replacement/output.js @@ -7,6 +7,6 @@ new (_temp = class extends babelHelpers.identity { } }, (() => { class Foo {} - [_Foo, _initClass] = babelHelpers.applyDecs2303(Foo, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(Foo, [], [dec]).c; })(), _temp)(); const foo = new _Foo(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/output.js index 439521f4f065..f280a7062001 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-fields/output.js @@ -11,7 +11,7 @@ class C { ({ e: [_init_m], c: [_C, _initClass] - } = babelHelpers.applyDecs2303(this, [[memberDec, 0, "m"]], [classDec])); + } = babelHelpers.applyDecs2305(this, [[memberDec, 0, "m"]], [classDec])); } m = _init_m(this); static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/output.js similarity index 84% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/output.js index e9b3ade00991..79e6ff7facb3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/decorator-access-modified-methods/output.js @@ -11,7 +11,7 @@ class C { ({ e: [_initProto], c: [_C, _initClass] - } = babelHelpers.applyDecs2303(this, [[memberDec, 2, "m"]], [classDec])); + } = babelHelpers.applyDecs2305(this, [[memberDec, 2, "m"]], [classDec])); } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions-static-blocks/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions-static-blocks/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions-static-blocks/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions-static-blocks/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions-static-blocks/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions-static-blocks/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions-static-blocks/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions-static-blocks/output.js index 3c1e27d025f1..ec19f58026e5 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions-static-blocks/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions-static-blocks/output.js @@ -4,7 +4,7 @@ const A = (new class extends babelHelpers.identity { static { class A { static { - [_A, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_A, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -16,7 +16,7 @@ const B = (new class extends babelHelpers.identity { static { class C { static { - [_C, _initClass2] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_C, _initClass2] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -28,7 +28,7 @@ const D = (new class extends babelHelpers.identity { static { class D { static { - [_D, _initClass3] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_D, _initClass3] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -40,7 +40,7 @@ const E = ((new class extends babelHelpers.identity { static { (class { static { - [_decorated_class, _initClass4] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_decorated_class, _initClass4] = babelHelpers.applyDecs2305(this, [], [dec]).c; } }); } @@ -52,7 +52,7 @@ const F = [(new class extends babelHelpers.identity { static { class G { static { - [_G, _initClass5] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_G, _initClass5] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -63,7 +63,7 @@ const F = [(new class extends babelHelpers.identity { static { (class { static { - [_decorated_class2, _initClass6] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_decorated_class2, _initClass6] = babelHelpers.applyDecs2305(this, [], [dec]).c; } }); } @@ -75,7 +75,7 @@ const H = (new class extends babelHelpers.identity { static { class H extends I { static { - [_H, _initClass7] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_H, _initClass7] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -87,7 +87,7 @@ const J = (new class extends babelHelpers.identity { static { class K extends L { static { - [_K, _initClass8] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_K, _initClass8] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -101,7 +101,7 @@ function classFactory() { static { (class { static { - [_decorated_class3, _initClass9] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_decorated_class3, _initClass9] = babelHelpers.applyDecs2305(this, [], [dec]).c; } }); } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions/output.js similarity index 71% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions/output.js index 29db6d8050d3..9391b1e2597f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/expressions/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/expressions/output.js @@ -2,7 +2,7 @@ var _initClass, _A, _initClass2, _C, _initClass3, _D, _initClass4, _decorated_cl const dec = () => {}; const A = (class A { static { - [_A, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_A, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass(); @@ -10,7 +10,7 @@ const A = (class A { }, _A); const B = (class C { static { - [_C, _initClass2] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_C, _initClass2] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass2(); @@ -18,7 +18,7 @@ const B = (class C { }, _C); const D = (class D { static { - [_D, _initClass3] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_D, _initClass3] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass3(); @@ -26,7 +26,7 @@ const D = (class D { }, _D); const E = ((class { static { - [_decorated_class, _initClass4] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_decorated_class, _initClass4] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass4(); @@ -34,14 +34,14 @@ const E = ((class { }, _decorated_class), 123); const F = [(class G { static { - [_G, _initClass5] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_G, _initClass5] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass5(); } }, _G), (class { static { - [_decorated_class2, _initClass6] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_decorated_class2, _initClass6] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass6(); @@ -49,7 +49,7 @@ const F = [(class G { }, _decorated_class2)]; const H = (class H extends I { static { - [_H, _initClass7] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_H, _initClass7] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass7(); @@ -57,7 +57,7 @@ const H = (class H extends I { }, _H); const J = (class K extends L { static { - [_K, _initClass8] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_K, _initClass8] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass8(); @@ -67,7 +67,7 @@ function classFactory() { var _initClass9, _decorated_class3; return class { static { - [_decorated_class3, _initClass9] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_decorated_class3, _initClass9] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static { _initClass9(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/inheritance/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/inheritance/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/inheritance/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/inheritance/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/inheritance/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/inheritance/output.js similarity index 67% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/inheritance/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/inheritance/output.js index aa47aff8ef04..5ee04e699f16 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/inheritance/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/inheritance/output.js @@ -4,7 +4,7 @@ let _Bar; _dec = dec1; class Bar { static { - [_Bar, _initClass] = babelHelpers.applyDecs2303(this, [], [_dec]).c; + [_Bar, _initClass] = babelHelpers.applyDecs2305(this, [], [_dec]).c; } static { _initClass(); @@ -14,7 +14,7 @@ let _Foo; _dec2 = dec2; class Foo extends _Bar { static { - [_Foo, _initClass2] = babelHelpers.applyDecs2303(this, [], [_dec2]).c; + [_Foo, _initClass2] = babelHelpers.applyDecs2305(this, [], [_dec2]).c; } static { _initClass2(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/initializers/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/initializers/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/initializers/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/initializers/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/initializers/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/initializers/output.js similarity index 79% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/initializers/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/initializers/output.js index eecf942bf26e..23906884f271 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/initializers/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/initializers/output.js @@ -5,7 +5,7 @@ new class extends babelHelpers.identity { static { class Foo { static { - [_Foo, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } @@ -19,7 +19,7 @@ new class extends babelHelpers.identity { static { class Bar extends _Foo { static { - [_Bar, _initClass2] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Bar, _initClass2] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-installed-on-correct-class/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-installed-on-correct-class/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-installed-on-correct-class/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-installed-on-correct-class/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-installed-on-correct-class/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-installed-on-correct-class/output.js similarity index 84% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-installed-on-correct-class/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-installed-on-correct-class/output.js index 32335a927df2..7216dda60846 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-installed-on-correct-class/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-installed-on-correct-class/output.js @@ -6,7 +6,7 @@ new class extends babelHelpers.identity { static { class Foo { static { - [_Foo, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } static m() {} } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-this/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-this/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-this/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-this/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-this/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-this/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-this/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-this/output.js index e187fdb62453..66c8ef5979ee 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-static-this/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-static-this/output.js @@ -5,7 +5,7 @@ new class extends babelHelpers.identity { static { class Foo { static { - [_Foo, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-with-expr/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-with-expr/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-with-expr/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-with-expr/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-with-expr/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-with-expr/output.js similarity index 73% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-with-expr/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-with-expr/output.js index 771c60816010..73da860bd0ed 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement-with-expr/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement-with-expr/output.js @@ -2,7 +2,7 @@ var _initClass, _Bar; const dec = () => {}; const Foo = (class Bar { static { - [_Bar, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Bar, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } bar = new _Bar(); static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement/output.js similarity index 80% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement/output.js index 7b4c9179c1c6..fdced4d4f3b7 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/replacement/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-classes/replacement/output.js @@ -5,7 +5,7 @@ new class extends babelHelpers.identity { static { class Foo { static { - [_Foo, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } } } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/output.js index 7ddef3be40d9..44378e06bd5f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-ast/output.js @@ -13,4 +13,4 @@ class Foo { return 2; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/output.js index 9c9448835538..e3a195f2a774 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/computed-keys-same-value/output.js @@ -13,4 +13,4 @@ class Foo { return 2; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/output.js similarity index 77% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/output.js index adc3006a8190..70726746ac71 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/method-and-field/output.js @@ -8,4 +8,4 @@ class Foo { return 1; } } -[_init_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a"], [dec, 0, "a"]], []).e; +[_init_a, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 2, "a"], [dec, 0, "a"]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/output.js similarity index 73% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/output.js index 3fe80ca58e17..269d5980d4bf 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/methods-with-same-key/output.js @@ -11,4 +11,4 @@ class Foo { return 2; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a"], [dec, 2, "a"]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 2, "a"], [dec, 2, "a"]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/options.json similarity index 68% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/options.json index 78dfc85292c5..90031fe8187a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/options.json +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys--to-es2015/options.json @@ -1,6 +1,6 @@ { "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], + ["proposal-decorators", { "version": "2023-05" }], "proposal-class-properties", "proposal-private-methods", "proposal-class-static-block" diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-ast/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-ast/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-ast/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-ast/output.js index b409741c95c1..cfbba5d6cf27 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-ast/output.js @@ -4,7 +4,7 @@ _computedKey = getKey(); _computedKey2 = getKey(); class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-value/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-value/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-value/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-value/output.js index 00bd162f0999..1a58d243573e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/computed-keys-same-value/output.js @@ -4,7 +4,7 @@ _computedKey = getKeyI(); _computedKey2 = getKeyJ(); class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/method-and-field/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/method-and-field/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/method-and-field/output.js similarity index 74% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/method-and-field/output.js index 53f2911d5016..4bf204f4686a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/method-and-field/output.js @@ -2,7 +2,7 @@ var _init_a, _initProto; const dec = () => {}; class Foo { static { - [_init_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a"], [dec, 0, "a"]], []).e; + [_init_a, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "a"], [dec, 0, "a"]], []).e; } a = (_initProto(this), _init_a(this, 123)); a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/methods-with-same-key/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/methods-with-same-key/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/methods-with-same-key/output.js similarity index 75% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/methods-with-same-key/output.js index 427a72d2aaf6..b05c1ca3ee94 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/methods-with-same-key/output.js @@ -2,7 +2,7 @@ var _initProto; const dec = () => {}; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a"], [dec, 2, "a"]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "a"], [dec, 2, "a"]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-duplicated-keys/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-anonymous/input.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-anonymous/input.mjs similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-anonymous/input.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-anonymous/input.mjs diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-anonymous/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-anonymous/output.mjs similarity index 67% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-anonymous/output.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-anonymous/output.mjs index 27714fc7f865..0269b8ef738d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-anonymous/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-anonymous/output.mjs @@ -3,7 +3,7 @@ let _A; _dec = dec; class A { static { - [_A, _initClass] = babelHelpers.applyDecs2303(this, [], [_dec]).c; + [_A, _initClass] = babelHelpers.applyDecs2305(this, [], [_dec]).c; } static { _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-named/input.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-named/input.mjs similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-named/input.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-named/input.mjs diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-named/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-named/output.mjs similarity index 71% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-named/output.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-named/output.mjs index 4e00a527e4ec..dc9a83f0b5a9 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/default-named/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/default-named/output.mjs @@ -3,7 +3,7 @@ let _default2; _dec = dec; class _default { static { - [_default2, _initClass] = babelHelpers.applyDecs2303(this, [], [_dec]).c; + [_default2, _initClass] = babelHelpers.applyDecs2305(this, [], [_dec]).c; } static { _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/input.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/member-decorator/input.mjs similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/input.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/member-decorator/input.mjs diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/member-decorator/output.mjs similarity index 60% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/member-decorator/output.mjs index 6a95338049fa..fc487029f496 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/member-decorator/output.mjs @@ -2,7 +2,7 @@ var _dec, _init_x; _dec = dec; export class A { static { - [_init_x] = babelHelpers.applyDecs2303(this, [[_dec, 0, "x"]], []).e; + [_init_x] = babelHelpers.applyDecs2305(this, [[_dec, 0, "x"]], []).e; } x = _init_x(this); } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/named/input.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/named/input.mjs similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/named/input.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/named/input.mjs diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/named/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/named/output.mjs similarity index 66% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/named/output.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/named/output.mjs index ccec1e265258..3eae3eec47d2 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/named/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/named/output.mjs @@ -3,7 +3,7 @@ let _A; _dec = dec; class A { static { - [_A, _initClass] = babelHelpers.applyDecs2303(this, [], [_dec]).c; + [_A, _initClass] = babelHelpers.applyDecs2305(this, [], [_dec]).c; } static { _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/no-decorators/input.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/no-decorators/input.mjs similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/no-decorators/input.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/no-decorators/input.mjs diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/no-decorators/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/no-decorators/output.mjs similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/no-decorators/output.mjs rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/no-decorators/output.mjs diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-exported/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/options.json similarity index 68% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/options.json index 78dfc85292c5..90031fe8187a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/options.json +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/options.json @@ -1,6 +1,6 @@ { "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], + ["proposal-decorators", { "version": "2023-05" }], "proposal-class-properties", "proposal-private-methods", "proposal-class-static-block" diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/output.js similarity index 91% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/output.js index 09e5e8b4588e..5e014f1e0022 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/private/output.js @@ -14,4 +14,4 @@ class Foo { }); } } -[_init_a, _init_b] = babelHelpers.applyDecs2303(Foo, [[dec, 0, "a", o => babelHelpers.classPrivateFieldGet(o, _a), (o, v) => babelHelpers.classPrivateFieldSet(o, _a, v)], [dec, 0, "b", o => babelHelpers.classPrivateFieldGet(o, _b), (o, v) => babelHelpers.classPrivateFieldSet(o, _b, v)]], [], 0, _ => _b.has(babelHelpers.checkInRHS(_))).e; +[_init_a, _init_b] = babelHelpers.applyDecs2305(Foo, [[dec, 0, "a", o => babelHelpers.classPrivateFieldGet(o, _a), (o, v) => babelHelpers.classPrivateFieldSet(o, _a, v)], [dec, 0, "b", o => babelHelpers.classPrivateFieldGet(o, _b), (o, v) => babelHelpers.classPrivateFieldSet(o, _b, v)]], [], 0, _ => _b.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/output.js similarity index 86% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/output.js index a022b9921fcb..4b6f87585eb3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/public/output.js @@ -8,4 +8,4 @@ class Foo { babelHelpers.defineProperty(this, _computedKey, _init_computedKey(this, 456)); } } -[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(Foo, [[dec, 0, "a"], [dec, 0, "b"], [dec, 0, _computedKey]], []).e; +[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2305(Foo, [[dec, 0, "a"], [dec, 0, "b"], [dec, 0, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/output.js similarity index 87% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/output.js index 600bc4ed58c7..888a72a454f2 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-private/output.js @@ -1,7 +1,7 @@ var _init_a, _init_b; const dec = () => {}; class Foo {} -[_init_a, _init_b] = babelHelpers.applyDecs2303(Foo, [[dec, 8, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _a), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _a, v)], [dec, 8, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _b), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _b, v)]], []).e; +[_init_a, _init_b] = babelHelpers.applyDecs2305(Foo, [[dec, 8, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _a), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _a, v)], [dec, 8, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _b), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _b, v)]], []).e; var _a = { writable: true, value: _init_a(Foo) diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/output.js similarity index 85% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/output.js index 4d58d500c721..a708464cb337 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey; const dec = () => {}; _computedKey = 'c'; class Foo {} -[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(Foo, [[dec, 8, "a"], [dec, 8, "b"], [dec, 8, _computedKey]], []).e; +[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2305(Foo, [[dec, 8, "a"], [dec, 8, "b"], [dec, 8, _computedKey]], []).e; babelHelpers.defineProperty(Foo, "a", _init_a(Foo)); babelHelpers.defineProperty(Foo, "b", _init_b(Foo, 123)); babelHelpers.defineProperty(Foo, _computedKey, _init_computedKey(Foo, 456)); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/private/output.js similarity index 78% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/private/output.js index b157c17a1579..e118ca78ccec 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/private/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b; const dec = () => {}; class Foo { static { - [_init_a, _init_b] = babelHelpers.applyDecs2303(this, [[dec, 0, "a", o => o.#a, (o, v) => o.#a = v], [dec, 0, "b", o => o.#b, (o, v) => o.#b = v]], [], 0, _ => #b in _).e; + [_init_a, _init_b] = babelHelpers.applyDecs2305(this, [[dec, 0, "a", o => o.#a, (o, v) => o.#a = v], [dec, 0, "b", o => o.#b, (o, v) => o.#b = v]], [], 0, _ => #b in _).e; } #a = _init_a(this); #b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/public/output.js index d654f2719616..922c8f793e57 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(this, [[dec, 0, "a"], [dec, 0, "b"], [dec, 0, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2305(this, [[dec, 0, "a"], [dec, 0, "b"], [dec, 0, _computedKey]], []).e; } a = _init_a(this); b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-private/output.js similarity index 78% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-private/output.js index 44fd38e41add..4150e9947f1f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-private/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b; const dec = () => {}; class Foo { static { - [_init_a, _init_b] = babelHelpers.applyDecs2303(this, [[dec, 8, "a", o => o.#a, (o, v) => o.#a = v], [dec, 8, "b", o => o.#b, (o, v) => o.#b = v]], []).e; + [_init_a, _init_b] = babelHelpers.applyDecs2305(this, [[dec, 8, "a", o => o.#a, (o, v) => o.#a = v], [dec, 8, "b", o => o.#b, (o, v) => o.#b = v]], []).e; } static #a = _init_a(this); static #b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-public/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-public/output.js index 8a17282aba1a..ced0276ccf0a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-fields/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(this, [[dec, 8, "a"], [dec, 8, "b"], [dec, 8, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2305(this, [[dec, 8, "a"], [dec, 8, "b"], [dec, 8, _computedKey]], []).e; } static a = _init_a(this); static b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/output.js index 8a330f603114..3d04c19d1698 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/private/output.js @@ -17,6 +17,6 @@ class Foo { function _get_a() { return _call_a(this); } -[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a", function () { +[_call_a, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 3, "a", function () { return this.value; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/output.js index 763867651958..81bc3aa71767 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/public/output.js @@ -13,4 +13,4 @@ class Foo { return this.value; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a"], [dec, 3, _computedKey]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 3, "a"], [dec, 3, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/output.js similarity index 85% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/output.js index 3c4ec052328d..b12d94be3fb2 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-private/output.js @@ -13,7 +13,7 @@ var _a = { set: void 0 }; (() => { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 11, "a", function () { return this.value; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/output.js index d85f72267c4f..f3a99040dff7 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters--to-es2015/static-public/output.js @@ -10,7 +10,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a"], [dec, 11, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 11, "a"], [dec, 11, _computedKey]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/output.js similarity index 91% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/output.js index 385df14cddac..a8669c2bc544 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/private/output.js @@ -23,7 +23,7 @@ function _get_a() { function _set_a(v) { _call_a2(this, v); } -[_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a", function () { +[_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 3, "a", function () { return this.value; }], [dec, 4, "a", function (v) { this.value = v; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/output.js index 8d381858681b..0a94d7d3a1af 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/public/output.js @@ -20,4 +20,4 @@ class Foo { this.value = v; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a"], [dec, 4, "a"], [dec, 3, _computedKey], [dec, 4, _computedKey2]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 3, "a"], [dec, 4, "a"], [dec, 3, _computedKey], [dec, 4, _computedKey2]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/output.js similarity index 90% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/output.js index d74e35f45d5d..05a30c307f11 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-private/output.js @@ -19,7 +19,7 @@ var _a = { set: _set_a }; (() => { - [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a", function () { + [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 11, "a", function () { return this.value; }], [dec, 12, "a", function (v) { this.value = v; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/output.js index f0dad4e9d5d1..2ad222223db6 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters--to-es2015/static-public/output.js @@ -17,7 +17,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a"], [dec, 12, "a"], [dec, 11, _computedKey], [dec, 12, _computedKey2]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 11, "a"], [dec, 12, "a"], [dec, 11, _computedKey], [dec, 12, _computedKey2]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/private/output.js similarity index 87% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/private/output.js index efd554e85844..b1df32728c7f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/private/output.js @@ -2,7 +2,7 @@ var _call_a, _call_a2, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a", function () { + [_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 3, "a", function () { return this.value; }], [dec, 4, "a", function (v) { this.value = v; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/public/output.js similarity index 87% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/public/output.js index 319f7189bd08..5e11ed318222 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/public/output.js @@ -4,7 +4,7 @@ _computedKey = 'b'; _computedKey2 = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a"], [dec, 4, "a"], [dec, 3, _computedKey], [dec, 4, _computedKey2]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 3, "a"], [dec, 4, "a"], [dec, 3, _computedKey], [dec, 4, _computedKey2]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-private/output.js similarity index 92% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-private/output.js index 06fe9efca701..168ed643a964 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _call_a2, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a", function () { + [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2305(this, [[dec, 11, "a", function () { return this.value; }], [dec, 12, "a", function (v) { this.value = v; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-public/output.js similarity index 87% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-public/output.js index edf6fda322a3..ca36aed1af62 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters-and-setters/static-public/output.js @@ -4,7 +4,7 @@ _computedKey = 'b'; _computedKey2 = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a"], [dec, 12, "a"], [dec, 11, _computedKey], [dec, 12, _computedKey2]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(this, [[dec, 11, "a"], [dec, 12, "a"], [dec, 11, _computedKey], [dec, 12, _computedKey2]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/private/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/private/output.js index 090e373bbd1c..5f696817f78d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a", function () { + [_call_a, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 3, "a", function () { return this.value; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/public/output.js index f9255dccc6ec..95bd7ee3235e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a"], [dec, 3, _computedKey]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 3, "a"], [dec, 3, _computedKey]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-private/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-private/output.js index c151d554a936..e409b9a19438 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2305(this, [[dec, 11, "a", function () { return this.value; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-public/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-public/output.js index 382348b31248..d924f9a613f3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-getters/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a"], [dec, 11, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(this, [[dec, 11, "a"], [dec, 11, _computedKey]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private-with-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private-with-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private-with-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private-with-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/output.js index 26eed5e4f435..730d8deeefe1 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/private/output.js @@ -14,6 +14,6 @@ class Foo { return babelHelpers.classPrivateFieldGet(this, _a).call(this); } } -[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a", function () { +[_call_a, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 2, "a", function () { return this.value; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public-with-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public-with-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public-with-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public-with-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/output.js index 570adc92fb1a..8a4e58184d16 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/public/output.js @@ -13,4 +13,4 @@ class Foo { return this.value; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a"], [dec, 2, _computedKey]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 2, "a"], [dec, 2, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private-with-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private-with-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private-with-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private-with-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/output.js similarity index 84% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/output.js index ac0ca1b4c3b5..9d80d32f442f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-private/output.js @@ -6,7 +6,7 @@ class Foo { } } (() => { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 10, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 10, "a", function () { return this.value; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public-with-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public-with-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public-with-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public-with-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/output.js index e9d13491fe3d..0aadaa343295 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods--to-es2015/static-public/output.js @@ -10,7 +10,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 10, "a"], [dec, 10, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 10, "a"], [dec, 10, _computedKey]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/private/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/private/output.js index fa5f691bb4e4..1f2a2abb25d1 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a", function () { + [_call_a, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "a", function () { return this.value; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/public/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/public/output.js index ecb55e9ba21f..08e57bbaf923 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a"], [dec, 2, _computedKey]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "a"], [dec, 2, _computedKey]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-private/output.js similarity index 80% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-private/output.js index be23a5c8f0bd..c1db8be452fc 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 10, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2305(this, [[dec, 10, "a", function () { return this.value; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-public/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-public/output.js index f606920bdc0b..843617af4d3e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-methods/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 10, "a"], [dec, 10, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(this, [[dec, 10, "a"], [dec, 10, _computedKey]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/class-and-method-decorators/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/class-and-method-decorators/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/class-and-method-decorators/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/class-and-method-decorators/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/class-and-property-decorators/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/class-and-property-decorators/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/class-and-property-decorators/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/class-and-property-decorators/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/decorator-evaluation-scope/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/decorator-evaluation-scope/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/decorator-evaluation-scope/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/decorator-evaluation-scope/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/output.js similarity index 73% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/output.js index 41f3d5c3604b..96026932df55 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initProto-existing-derived-constructor/output.js @@ -9,4 +9,4 @@ class A extends B { } method() {} } -[_initProto] = babelHelpers.applyDecs2303(A, [[_dec, 2, "method"]], []).e; +[_initProto] = babelHelpers.applyDecs2305(A, [[_dec, 2, "method"]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initializer-property-ignored/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initializer-property-ignored/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initializer-property-ignored/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initializer-property-ignored/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initializer-timing/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initializer-timing/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initializer-timing/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/initializer-timing/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/leaked-context-addInitializer-throw/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/leaked-context-addInitializer-throw/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/leaked-context-addInitializer-throw/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/leaked-context-addInitializer-throw/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/leaked-context-addInitializer/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/leaked-context-addInitializer/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/leaked-context-addInitializer/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/leaked-context-addInitializer/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/super-in-decorator/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/super-in-decorator/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/super-in-decorator/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/super-in-decorator/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/super-in-decorator/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/super-in-decorator/output.js similarity index 85% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/super-in-decorator/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/super-in-decorator/output.js index df26042793a7..b977fb657630 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/super-in-decorator/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/super-in-decorator/output.js @@ -15,7 +15,7 @@ class A extends B { ({ e: [_initProto], c: [_C, _initClass] - } = babelHelpers.applyDecs2303(C, [[[_obj2, _dec2], 18, "m2"]], [_obj, _dec], 1)); + } = babelHelpers.applyDecs2305(C, [[[_obj2, _dec2], 18, "m2"]], [_obj, _dec], 1)); _initClass(); } } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/output.js similarity index 90% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/output.js index 4bc5ec015b5f..cbd9f3b7e277 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/this/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/this/output.js @@ -21,5 +21,5 @@ class A { ({ e: [_init_x, _init_y], c: [_A, _initClass] -} = babelHelpers.applyDecs2303(A, [[[_obj3, _dec4, _obj4, _dec5], 16, "x"], [[_obj5, _dec6, void 0, _dec7], 16, "y"]], [_obj, _dec, void 0, _dec2, _obj2, _dec3], 1)); +} = babelHelpers.applyDecs2305(A, [[[_obj3, _dec4, _obj4, _dec5], 16, "x"], [[_obj5, _dec6, void 0, _dec7], 16, "y"]], [_obj, _dec, void 0, _dec2, _obj2, _dec3], 1)); _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/valid-expression-formats/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/valid-expression-formats/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/valid-expression-formats/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/valid-expression-formats/output.js index fa98039e6116..7d5829ccd30b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc--to-es2015/valid-expression-formats/output.js @@ -27,11 +27,11 @@ class Foo { constructor() { babelHelpers.defineProperty(this, "bar", _init_bar(this)); } - }, [_init_bar] = babelHelpers.applyDecs2303(_class, [[_dec9, 0, "bar"]], []).e, _class); + }, [_init_bar] = babelHelpers.applyDecs2305(_class, [[_dec9, 0, "bar"]], []).e, _class); } } ({ e: [_initProto], c: [_Foo, _initClass] -} = babelHelpers.applyDecs2303(Foo, [[[void 0, dec, void 0, _dec5, void 0, _dec6, void 0, _dec7, _obj2, _dec8], 18, "method"]], [void 0, dec, void 0, _dec, void 0, _dec2, void 0, _dec3, _obj, _dec4], 1)); +} = babelHelpers.applyDecs2305(Foo, [[[void 0, dec, void 0, _dec5, void 0, _dec6, void 0, _dec7, _obj2, _dec8], 18, "method"]], [void 0, dec, void 0, _dec, void 0, _dec2, void 0, _dec3, _obj, _dec4], 1)); _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/all-decorators/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/all-decorators/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/all-decorators/output.js similarity index 97% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/all-decorators/output.js index 77ccc56af3af..f72010c74a38 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/all-decorators/output.js @@ -8,7 +8,7 @@ new class extends babelHelpers.identity { ({ e: [_init_m, _call_o, _call_p, _call_q, _init_r, _get_r, _set_r, _init_d, _call_f, _call_g, _call_g2, _init_h, _get_h, _set_h, _init_i, _init_n, _init_a, _init_e, _initProto, _initStatic], c: [_Class, _initClass] - } = babelHelpers.applyDecs2303(this, [[dec, 10, "j"], [dec, 11, "k"], [dec, 12, "l"], [dec, 9, "m"], [dec, 10, "o", function () {}], [dec, 11, "p", function () {}], [dec, 12, "q", function (v) {}], [dec, 9, "r", o => o.#D, (o, v) => o.#D = v], [dec, 2, "b"], [dec, 3, "c"], [dec, 4, "c"], [dec, 1, "d"], [dec, 2, "f", function () {}], [dec, 3, "g", function () {}], [dec, 4, "g", function (v) {}], [dec, 1, "h", o => o.#B, (o, v) => o.#B = v], [dec, 8, "i"], [dec, 8, "n", o => o.#n, (o, v) => o.#n = v], [dec, 0, "a"], [dec, 0, "e", o => o.#e, (o, v) => o.#e = v]], [dec], 0, _ => #e in _)); + } = babelHelpers.applyDecs2305(this, [[dec, 10, "j"], [dec, 11, "k"], [dec, 12, "l"], [dec, 9, "m"], [dec, 10, "o", function () {}], [dec, 11, "p", function () {}], [dec, 12, "q", function (v) {}], [dec, 9, "r", o => o.#D, (o, v) => o.#D = v], [dec, 2, "b"], [dec, 3, "c"], [dec, 4, "c"], [dec, 1, "d"], [dec, 2, "f", function () {}], [dec, 3, "g", function () {}], [dec, 4, "g", function (v) {}], [dec, 1, "h", o => o.#B, (o, v) => o.#B = v], [dec, 8, "i"], [dec, 8, "n", o => o.#n, (o, v) => o.#n = v], [dec, 0, "a"], [dec, 0, "e", o => o.#e, (o, v) => o.#e = v]], [dec], 0, _ => #e in _)); _initStatic(this); } #f = _call_f; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/decorator-evaluation-scope/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/decorator-evaluation-scope/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/decorator-evaluation-scope/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/decorator-evaluation-scope/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/decorator-evaluation-scope/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/decorator-evaluation-scope/options.json similarity index 61% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/decorator-evaluation-scope/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/decorator-evaluation-scope/options.json index fa55e7652b1a..c70512252968 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/decorator-evaluation-scope/options.json +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/decorator-evaluation-scope/options.json @@ -1,6 +1,6 @@ { "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], + ["proposal-decorators", { "version": "2023-05" }], "proposal-class-static-block" ], "minNodeVersion": "12.0.0" diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor-multiple-super/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor-multiple-super/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor-multiple-super/output.js similarity index 78% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor-multiple-super/output.js index e90a08e474bd..6ad6fa2fe920 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor-multiple-super/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _dec = deco; class A extends B { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[_dec, 2, "method"]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[_dec, 2, "method"]], []).e; } constructor() { if (Math.random() > 0.5) { @@ -17,7 +17,7 @@ class A extends B { _dec2 = deco; class C extends B { static { - [_initProto2] = babelHelpers.applyDecs2303(this, [[_dec2, 2, "method"]], []).e; + [_initProto2] = babelHelpers.applyDecs2305(this, [[_dec2, 2, "method"]], []).e; } constructor() { try { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor/output.js similarity index 73% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor/output.js index e20913dffe63..b28d62844d7c 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initProto-existing-derived-constructor/output.js @@ -2,7 +2,7 @@ var _initProto; const dec = () => {}; class A extends B { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "method"]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "method"]], []).e; } constructor() { let a = 2; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initializer-property-ignored/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initializer-property-ignored/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initializer-property-ignored/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initializer-property-ignored/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initializer-property-ignored/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initializer-property-ignored/options.json similarity index 61% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initializer-property-ignored/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initializer-property-ignored/options.json index fa55e7652b1a..c70512252968 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initializer-property-ignored/options.json +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/initializer-property-ignored/options.json @@ -1,6 +1,6 @@ { "plugins": [ - ["proposal-decorators", { "version": "2023-03" }], + ["proposal-decorators", { "version": "2023-05" }], "proposal-class-static-block" ], "minNodeVersion": "12.0.0" diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/private-keys-in-enclosing-class/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/private-keys-in-enclosing-class/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/private-keys-in-enclosing-class/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/private-keys-in-enclosing-class/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/private-keys-in-enclosing-class/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/private-keys-in-enclosing-class/output.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/private-keys-in-enclosing-class/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/private-keys-in-enclosing-class/output.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-array-pattern/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-array-pattern/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-array-pattern/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-array-pattern/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-array-pattern/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-array-pattern/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-array-pattern/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-array-pattern/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-for-of/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-for-of/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-for-of/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-for-of/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-for-of/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-for-of/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-for-of/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-for-of/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-object-pattern/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-object-pattern/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-object-pattern/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-object-pattern/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-object-pattern/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-object-pattern/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-object-pattern/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-object-pattern/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-rest/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-rest/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-rest/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-rest/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-rest/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-rest/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-rest/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-rest/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-update/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-update/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-update/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-update/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-update/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-update/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method-via-update/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method-via-update/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/setting-private-method/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/setting-private-method/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-decorator/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-decorator/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-decorator/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-decorator/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-decorator/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-decorator/output.js similarity index 87% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-decorator/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-decorator/output.js index 544fc2f8c916..04a2be72ff77 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-decorator/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-decorator/output.js @@ -11,7 +11,7 @@ class A extends B { ({ e: [_initProto], c: [_C, _initClass] - } = babelHelpers.applyDecs2303(this, [[[_obj2, _dec2], 18, "m2"]], [_obj, _dec], 1)); + } = babelHelpers.applyDecs2305(this, [[[_obj2, _dec2], 18, "m2"]], [_obj, _dec], 1)); } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-nested-constructor-expression/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-nested-constructor-expression/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-nested-constructor-expression/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-nested-constructor-expression/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-nested-constructor-expression/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-nested-constructor-expression/output.js similarity index 73% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-nested-constructor-expression/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-nested-constructor-expression/output.js index da70eb6e4869..267564aaae78 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-nested-constructor-expression/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-nested-constructor-expression/output.js @@ -3,7 +3,7 @@ const dec = () => {}; let _Foo; class Foo extends Bar { static { - [_Foo, _initClass] = babelHelpers.applyDecs2303(this, [], [dec]).c; + [_Foo, _initClass] = babelHelpers.applyDecs2305(this, [], [dec]).c; } constructor() { let foo = super(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-accessor/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-accessor/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-accessor/output.js similarity index 84% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-accessor/output.js index c7de91d2c094..cc2ef8ee435f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-accessor/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 3, "x", function () { return babelHelpers.get(babelHelpers.getPrototypeOf(Foo), "foo", this).call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-method/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-method/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-method/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-method/output.js index 7f76ac041fb8..1a370c02ff33 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/super-in-private-method/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 2, "x", function () { return babelHelpers.get(babelHelpers.getPrototypeOf(Foo), "foo", this).call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/options.json similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/options.json rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/options.json diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/output.js similarity index 90% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/output.js index 6e35346d25da..cc5c62df7399 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/this/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/this/output.js @@ -17,7 +17,7 @@ class A { ({ e: [_init_x, _init_y], c: [_A, _initClass] - } = babelHelpers.applyDecs2303(this, [[[_obj3, _dec4, _obj4, _dec5], 16, "x"], [[_obj5, _dec6, void 0, _dec7], 16, "y"]], [_obj, _dec, void 0, _dec2, _obj2, _dec3], 1)); + } = babelHelpers.applyDecs2305(this, [[[_obj3, _dec4, _obj4, _dec5], 16, "x"], [[_obj5, _dec6, void 0, _dec7], 16, "y"]], [_obj, _dec, void 0, _dec2, _obj2, _dec3], 1)); } x = _init_x(this); y = _init_y(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/valid-expression-formats/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/valid-expression-formats/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/valid-expression-formats/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/valid-expression-formats/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/valid-expression-formats/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/valid-expression-formats/output.js similarity index 87% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/valid-expression-formats/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/valid-expression-formats/output.js index 8a1c97c12e02..3bb5e2ef71f6 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/valid-expression-formats/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-misc/valid-expression-formats/output.js @@ -16,7 +16,7 @@ class Foo { ({ e: [_initProto], c: [_Foo, _initClass] - } = babelHelpers.applyDecs2303(this, [[[void 0, dec, void 0, _dec5, void 0, _dec6, void 0, _dec7, _obj2, _dec8], 18, "method"]], [void 0, dec, void 0, _dec, void 0, _dec2, void 0, _dec3, _obj, _dec4], 1)); + } = babelHelpers.applyDecs2305(this, [[[void 0, dec, void 0, _dec5, void 0, _dec6, void 0, _dec7, _obj2, _dec8], 18, "method"]], [void 0, dec, void 0, _dec, void 0, _dec2, void 0, _dec3, _obj, _dec4], 1)); } constructor(...args) { _initProto(this); @@ -27,7 +27,7 @@ class Foo { var _obj3, _dec9, _init_bar; return _obj3 = this, _dec9 = this.#a, class Nested { static { - [_init_bar] = babelHelpers.applyDecs2303(this, [[[_obj3, _dec9], 16, "bar"]], []).e; + [_init_bar] = babelHelpers.applyDecs2305(this, [[[_obj3, _dec9], 16, "bar"]], []).e; } bar = _init_bar(this); }; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-initializers-fields/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-initializers-fields/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-initializers-fields/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-initializers-fields/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-initializers-setters/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-initializers-setters/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-initializers-setters/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-initializers-setters/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-method-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-method-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-method-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-method-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-static-accessor-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-static-accessor-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-static-accessor-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-static-accessor-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-static-method-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-static-method-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/accessor-static-method-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/accessor-static-method-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/field-initializers-after-methods/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/field-initializers-after-methods/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/field-initializers-after-methods/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/field-initializers-after-methods/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/field/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/field/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/field/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/field/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/static-accessor-method-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/static-accessor-method-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/static-accessor-method-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/static-accessor-method-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/static-field-initializers-after-methods/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/static-field-initializers-after-methods/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering--to-es2015/static-field-initializers-after-methods/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering--to-es2015/static-field-initializers-after-methods/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-initializers-fields/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-initializers-fields/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-initializers-fields/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-initializers-fields/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-initializers-setters/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-initializers-setters/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-initializers-setters/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-initializers-setters/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-method-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-method-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-method-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-method-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-static-accessor-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-static-accessor-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-static-accessor-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-static-accessor-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-static-method-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-static-method-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/accessor-static-method-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/accessor-static-method-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/field-initializers-after-methods/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/field-initializers-after-methods/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/field-initializers-after-methods/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/field-initializers-after-methods/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/field/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/field/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/field/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/field/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/options.json new file mode 100644 index 000000000000..480fe17629b4 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/options.json @@ -0,0 +1,4 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]], + "minNodeVersion": "16.11.0" +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/static-accessor-method-initializers/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/static-accessor-method-initializers/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/static-accessor-method-initializers/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/static-accessor-method-initializers/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/static-field-initializers-after-methods/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/static-field-initializers-after-methods/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-ordering/static-field-initializers-after-methods/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-ordering/static-field-initializers-after-methods/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-accessor-decorator-return/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-accessor-decorator-return/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-accessor-decorator-return/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-accessor-decorator-return/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-add-initializer/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-add-initializer/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-add-initializer/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-add-initializer/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-class-decorator-return/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-class-decorator-return/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-class-decorator-return/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-class-decorator-return/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-field-decorator-return/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-field-decorator-return/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-field-decorator-return/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-field-decorator-return/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-getter-decorator-return/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-getter-decorator-return/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-getter-decorator-return/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-getter-decorator-return/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-method-decorator-return/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-method-decorator-return/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-method-decorator-return/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-method-decorator-return/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-setter-decorator-return/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-setter-decorator-return/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-runtime-errors--to-es2015/invalid-setter-decorator-return/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/invalid-setter-decorator-return/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-runtime-errors--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/options.json new file mode 100644 index 000000000000..90031fe8187a --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/options.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + ["proposal-decorators", { "version": "2023-05" }], + "proposal-class-properties", + "proposal-private-methods", + "proposal-class-static-block" + ] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/output.js similarity index 88% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/output.js index 2cd3cf38d5e4..bbe10fb4677a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/private/output.js @@ -17,6 +17,6 @@ class Foo { function _set_a(v) { _call_a(this, v); } -[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 4, "a", function (v) { +[_call_a, _initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 4, "a", function (v) { return this.value = v; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/output.js index 48da3f7bfcfb..41cd48423ff5 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/public/output.js @@ -13,4 +13,4 @@ class Foo { return this.value = v; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 4, "a"], [dec, 4, _computedKey]], []).e; +[_initProto] = babelHelpers.applyDecs2305(Foo, [[dec, 4, "a"], [dec, 4, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/output.js similarity index 85% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/output.js index ae469ad44203..cc884c193f4d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-private/output.js @@ -13,7 +13,7 @@ var _a = { set: _set_a }; (() => { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 12, "a", function (v) { + [_call_a, _initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 12, "a", function (v) { return this.value = v; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/exec.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/exec.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/exec.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/exec.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/output.js similarity index 83% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/output.js index a49448d428ef..b035cd37ae2c 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters--to-es2015/static-public/output.js @@ -10,7 +10,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 12, "a"], [dec, 12, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(Foo, [[dec, 12, "a"], [dec, 12, _computedKey]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/options.json b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/options.json new file mode 100644 index 000000000000..15054fd05183 --- /dev/null +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["proposal-decorators", { "version": "2023-05" }]] +} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/private/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/private/output.js index 267191900af3..73a6d735335e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 4, "a", function (v) { + [_call_a, _initProto] = babelHelpers.applyDecs2305(this, [[dec, 4, "a", function (v) { return this.value = v; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/public/output.js index 5fea5ec2b8cb..1af777204389 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 4, "a"], [dec, 4, _computedKey]], []).e; + [_initProto] = babelHelpers.applyDecs2305(this, [[dec, 4, "a"], [dec, 4, _computedKey]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-private/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-private/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-private/output.js similarity index 81% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-private/output.js index 8514769ec2a3..201e9f0463bf 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 12, "a", function (v) { + [_call_a, _initStatic] = babelHelpers.applyDecs2305(this, [[dec, 12, "a", function (v) { return this.value = v; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-public/input.js similarity index 100% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/input.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-public/input.js diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-public/output.js similarity index 82% rename from packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js rename to packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-public/output.js index 1b2f3ed16969..fdb2ec3a0d61 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-setters/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 12, "a"], [dec, 12, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2305(this, [[dec, 12, "a"], [dec, 12, _computedKey]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-syntax-decorators/src/index.ts b/packages/babel-plugin-syntax-decorators/src/index.ts index 1fe36fb7658e..992ff5b8a33e 100644 --- a/packages/babel-plugin-syntax-decorators/src/index.ts +++ b/packages/babel-plugin-syntax-decorators/src/index.ts @@ -10,7 +10,7 @@ export interface Options { | "2021-12" | "2022-03" | "2023-01" - | "2023-03"; + | "2023-05"; // TODO(Babel 8): Remove decoratorsBeforeExport?: boolean; } @@ -24,11 +24,11 @@ export default declare((api, options: Options) => { if (version === undefined) { throw new Error( "The decorators plugin requires a 'version' option, whose value must be one of: " + - "'2023-03', '2023-01', '2022-03', '2021-12', '2018-09', or 'legacy'.", + "'2023-05', '2023-01', '2022-03', '2021-12', '2018-09', or 'legacy'.", ); } if ( - version !== "2023-03" && + version !== "2023-05" && version !== "2023-01" && version !== "2022-03" && version !== "2021-12" && @@ -63,7 +63,7 @@ export default declare((api, options: Options) => { if (version === undefined) { version = legacy ? "legacy" : "2018-09"; } else if ( - version !== "2023-03" && + version !== "2023-05" && version !== "2023-01" && version !== "2022-03" && version !== "2021-12" && @@ -112,7 +112,7 @@ export default declare((api, options: Options) => { "decoratorAutoAccessors", ); } else { - if (version === "2023-01" || version === "2023-03") { + if (version === "2023-01" || version === "2023-05") { parserOpts.plugins.push( ["decorators", { allowCallParenthesized: false }], "decoratorAutoAccessors", diff --git a/packages/babel-runtime-corejs2/package.json b/packages/babel-runtime-corejs2/package.json index 2262a1c7eb89..724ff204671a 100644 --- a/packages/babel-runtime-corejs2/package.json +++ b/packages/babel-runtime-corejs2/package.json @@ -72,15 +72,15 @@ "./helpers/applyDecs2301.js" ], "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", - "./helpers/applyDecs2303": [ + "./helpers/applyDecs2305": [ { - "node": "./helpers/applyDecs2303.js", - "import": "./helpers/esm/applyDecs2303.js", - "default": "./helpers/applyDecs2303.js" + "node": "./helpers/applyDecs2305.js", + "import": "./helpers/esm/applyDecs2305.js", + "default": "./helpers/applyDecs2305.js" }, - "./helpers/applyDecs2303.js" + "./helpers/applyDecs2305.js" ], - "./helpers/esm/applyDecs2303": "./helpers/esm/applyDecs2303.js", + "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", "./helpers/asyncGeneratorDelegate": [ { "node": "./helpers/asyncGeneratorDelegate.js", diff --git a/packages/babel-runtime-corejs3/package.json b/packages/babel-runtime-corejs3/package.json index ef1ce7966ae9..265d9ac5f488 100644 --- a/packages/babel-runtime-corejs3/package.json +++ b/packages/babel-runtime-corejs3/package.json @@ -71,15 +71,15 @@ "./helpers/applyDecs2301.js" ], "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", - "./helpers/applyDecs2303": [ + "./helpers/applyDecs2305": [ { - "node": "./helpers/applyDecs2303.js", - "import": "./helpers/esm/applyDecs2303.js", - "default": "./helpers/applyDecs2303.js" + "node": "./helpers/applyDecs2305.js", + "import": "./helpers/esm/applyDecs2305.js", + "default": "./helpers/applyDecs2305.js" }, - "./helpers/applyDecs2303.js" + "./helpers/applyDecs2305.js" ], - "./helpers/esm/applyDecs2303": "./helpers/esm/applyDecs2303.js", + "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", "./helpers/asyncGeneratorDelegate": [ { "node": "./helpers/asyncGeneratorDelegate.js", diff --git a/packages/babel-runtime/package.json b/packages/babel-runtime/package.json index ced5ec6d9693..5d5cad35bee3 100644 --- a/packages/babel-runtime/package.json +++ b/packages/babel-runtime/package.json @@ -71,15 +71,15 @@ "./helpers/applyDecs2301.js" ], "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", - "./helpers/applyDecs2303": [ + "./helpers/applyDecs2305": [ { - "node": "./helpers/applyDecs2303.js", - "import": "./helpers/esm/applyDecs2303.js", - "default": "./helpers/applyDecs2303.js" + "node": "./helpers/applyDecs2305.js", + "import": "./helpers/esm/applyDecs2305.js", + "default": "./helpers/applyDecs2305.js" }, - "./helpers/applyDecs2303.js" + "./helpers/applyDecs2305.js" ], - "./helpers/esm/applyDecs2303": "./helpers/esm/applyDecs2303.js", + "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", "./helpers/asyncGeneratorDelegate": [ { "node": "./helpers/asyncGeneratorDelegate.js",