From 3d2b9eacc1e09679be99c6e5140c2c307a0c788b Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Wed, 17 Apr 2024 17:49:33 +1000 Subject: [PATCH 1/6] feat: update babel decorator config to latest au2 has adopted latest decorator spec. closes aurelia/aurelia#1946, #102 --- babel/babel.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel/babel.config.json b/babel/babel.config.json index cf4f849..990393e 100644 --- a/babel/babel.config.json +++ b/babel/babel.config.json @@ -9,7 +9,7 @@ }] ], "plugins": [ - ["@babel/plugin-proposal-decorators", { "version": "legacy" }], + ["@babel/plugin-proposal-decorators"], ["@babel/plugin-proposal-class-properties", { "loose": true }], "@babel/plugin-syntax-dynamic-import" ] From 9501944804b8d62c9ff7c535d830c1c8993eaf36 Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Wed, 17 Apr 2024 17:50:40 +1000 Subject: [PATCH 2/6] chore: cleanup --- babel/babel.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel/babel.config.json b/babel/babel.config.json index 990393e..bd56b38 100644 --- a/babel/babel.config.json +++ b/babel/babel.config.json @@ -9,7 +9,7 @@ }] ], "plugins": [ - ["@babel/plugin-proposal-decorators"], + "@babel/plugin-proposal-decorators", ["@babel/plugin-proposal-class-properties", { "loose": true }], "@babel/plugin-syntax-dynamic-import" ] From afedbbd56121cc7483ae7f1589e788b6a81b5256 Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Wed, 17 Apr 2024 17:59:48 +1000 Subject: [PATCH 3/6] chore: update to latest @aurelia/ts-jest Related to aurelia/aurelia#1940 --- jest/package.json | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/jest/package.json b/jest/package.json index 1cd2043..e98647a 100644 --- a/jest/package.json +++ b/jest/package.json @@ -54,14 +54,6 @@ "src/**/*.ts", "!src/**/*.d.ts" // @endif - ], - - // @if typescript - "globals": { - "ts-jest": { - "isolatedModules": true - } - } - // @endif + ] } } From 4feb422cfd60587948533224a0334786b89295dd Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Wed, 17 Apr 2024 18:09:50 +1000 Subject: [PATCH 4/6] chore: cleanup --- babel/babel.config.json | 2 +- babel/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/babel/babel.config.json b/babel/babel.config.json index bd56b38..e7f3c72 100644 --- a/babel/babel.config.json +++ b/babel/babel.config.json @@ -10,7 +10,7 @@ ], "plugins": [ "@babel/plugin-proposal-decorators", - ["@babel/plugin-proposal-class-properties", { "loose": true }], + ["@babel/plugin-transform-class-properties", { "loose": true }], "@babel/plugin-syntax-dynamic-import" ] } diff --git a/babel/package.json b/babel/package.json index 4aaf847..2296048 100644 --- a/babel/package.json +++ b/babel/package.json @@ -1,7 +1,7 @@ { "devDependencies": { "@babel/plugin-proposal-decorators": "^7.24.1", - "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-transform-class-properties": "^7.24.1", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/core": "^7.24.3", // @if !parcel From db049eb08a0740a7e7a4fe56add6454dfc886d5f Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Wed, 17 Apr 2024 18:45:57 +1000 Subject: [PATCH 5/6] chore: more verbose than before --- babel/babel.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel/babel.config.json b/babel/babel.config.json index e7f3c72..1d15f70 100644 --- a/babel/babel.config.json +++ b/babel/babel.config.json @@ -9,7 +9,7 @@ }] ], "plugins": [ - "@babel/plugin-proposal-decorators", + ["@babel/plugin-proposal-decorators", { "version": "2023-11" }], ["@babel/plugin-transform-class-properties", { "loose": true }], "@babel/plugin-syntax-dynamic-import" ] From 18c4566b07a81577d27c6f0ef57acc57d4b6cd19 Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Wed, 17 Apr 2024 18:54:11 +1000 Subject: [PATCH 6/6] chore: babel preset-env now includes transform-class-properties --- babel/babel.config.json | 1 - babel/package.json | 1 - 2 files changed, 2 deletions(-) diff --git a/babel/babel.config.json b/babel/babel.config.json index 1d15f70..5eb062b 100644 --- a/babel/babel.config.json +++ b/babel/babel.config.json @@ -10,7 +10,6 @@ ], "plugins": [ ["@babel/plugin-proposal-decorators", { "version": "2023-11" }], - ["@babel/plugin-transform-class-properties", { "loose": true }], "@babel/plugin-syntax-dynamic-import" ] } diff --git a/babel/package.json b/babel/package.json index 2296048..2a6da1e 100644 --- a/babel/package.json +++ b/babel/package.json @@ -1,7 +1,6 @@ { "devDependencies": { "@babel/plugin-proposal-decorators": "^7.24.1", - "@babel/plugin-transform-class-properties": "^7.24.1", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/core": "^7.24.3", // @if !parcel