From f0ca4ff175ad89a3e973fdc54ae213ce4f3d303f Mon Sep 17 00:00:00 2001 From: Ernest Date: Tue, 3 Oct 2023 20:02:03 +0800 Subject: [PATCH] build: bump swc --- .../rollup-swc-example/package-lock.json | 190 ++++++++++-------- .../examples/rollup-swc-example/package.json | 2 +- .../examples/swc-example/package-lock.json | 190 ++++++++++-------- packages/examples/swc-example/package.json | 2 +- .../vite-swc-example/package-lock.json | 190 ++++++++++-------- .../examples/vite-swc-example/package.json | 2 +- .../webpack-swc-example/package-lock.json | 190 ++++++++++-------- .../examples/webpack-swc-example/package.json | 2 +- packages/swc/Cargo.lock | 24 +-- packages/swc/Cargo.toml | 2 +- packages/swc/package.json | 4 +- 11 files changed, 431 insertions(+), 367 deletions(-) diff --git a/packages/examples/rollup-swc-example/package-lock.json b/packages/examples/rollup-swc-example/package-lock.json index 89a0e6458..b1cd9dc73 100644 --- a/packages/examples/rollup-swc-example/package-lock.json +++ b/packages/examples/rollup-swc-example/package-lock.json @@ -7,7 +7,7 @@ "name": "rollup-swc-example", "devDependencies": { "@rollup/plugin-node-resolve": "^11.2.1", - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "concurrently": "7.0.0", "cross-env": "^7.0.3", "dotenv": "^16.0.3", @@ -54,11 +54,14 @@ } }, "node_modules/@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "hasInstallScript": true, + "dependencies": { + "@swc/types": "^0.1.4" + }, "engines": { "node": ">=10" }, @@ -67,16 +70,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -88,9 +91,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "cpu": [ "arm64" ], @@ -104,9 +107,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "cpu": [ "x64" ], @@ -120,9 +123,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "cpu": [ "arm" ], @@ -136,9 +139,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "cpu": [ "arm64" ], @@ -152,9 +155,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "cpu": [ "arm64" ], @@ -168,9 +171,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "cpu": [ "x64" ], @@ -184,9 +187,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "cpu": [ "x64" ], @@ -200,9 +203,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "cpu": [ "arm64" ], @@ -216,9 +219,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "cpu": [ "ia32" ], @@ -232,9 +235,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "cpu": [ "x64" ], @@ -266,6 +269,12 @@ "optional": true, "peer": true }, + "node_modules/@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "node_modules/@types/estree": { "version": "0.0.39", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", @@ -1179,90 +1188,91 @@ } }, "@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "requires": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81", + "@swc/types": "^0.1.4" } }, "@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "dev": true, "optional": true }, "@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "dev": true, "optional": true }, "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "dev": true, "optional": true }, "@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "dev": true, "optional": true }, "@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "dev": true, "optional": true }, "@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "dev": true, "optional": true }, "@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "dev": true, "optional": true }, "@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "dev": true, "optional": true }, "@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "dev": true, "optional": true }, "@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "dev": true, "optional": true }, @@ -1287,6 +1297,12 @@ } } }, + "@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "@types/estree": { "version": "0.0.39", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", diff --git a/packages/examples/rollup-swc-example/package.json b/packages/examples/rollup-swc-example/package.json index 86f114556..cf04fa57e 100644 --- a/packages/examples/rollup-swc-example/package.json +++ b/packages/examples/rollup-swc-example/package.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@rollup/plugin-node-resolve": "^11.2.1", - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "concurrently": "7.0.0", "cross-env": "^7.0.3", "dotenv": "^16.0.3", diff --git a/packages/examples/swc-example/package-lock.json b/packages/examples/swc-example/package-lock.json index f40dee30f..24e03ca89 100644 --- a/packages/examples/swc-example/package-lock.json +++ b/packages/examples/swc-example/package-lock.json @@ -8,7 +8,7 @@ "license": "MIT", "devDependencies": { "@swc/cli": "^0.1.57", - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "cross-env": "^7.0.3" } }, @@ -76,11 +76,14 @@ } }, "node_modules/@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "hasInstallScript": true, + "dependencies": { + "@swc/types": "^0.1.4" + }, "engines": { "node": ">=10" }, @@ -89,16 +92,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -110,9 +113,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "cpu": [ "arm64" ], @@ -126,9 +129,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "cpu": [ "x64" ], @@ -142,9 +145,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "cpu": [ "arm" ], @@ -158,9 +161,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "cpu": [ "arm64" ], @@ -174,9 +177,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "cpu": [ "arm64" ], @@ -190,9 +193,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "cpu": [ "x64" ], @@ -206,9 +209,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "cpu": [ "x64" ], @@ -222,9 +225,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "cpu": [ "arm64" ], @@ -238,9 +241,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "cpu": [ "ia32" ], @@ -254,9 +257,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "cpu": [ "x64" ], @@ -280,6 +283,12 @@ "tslib": "^2.4.0" } }, + "node_modules/@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "node_modules/braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", @@ -629,90 +638,91 @@ } }, "@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "requires": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81", + "@swc/types": "^0.1.4" } }, "@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "dev": true, "optional": true }, "@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "dev": true, "optional": true }, "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "dev": true, "optional": true }, "@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "dev": true, "optional": true }, "@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "dev": true, "optional": true }, "@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "dev": true, "optional": true }, "@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "dev": true, "optional": true }, "@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "dev": true, "optional": true }, "@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "dev": true, "optional": true }, "@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "dev": true, "optional": true }, @@ -727,6 +737,12 @@ "tslib": "^2.4.0" } }, + "@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", diff --git a/packages/examples/swc-example/package.json b/packages/examples/swc-example/package.json index 0dcf95a6a..f645fec70 100644 --- a/packages/examples/swc-example/package.json +++ b/packages/examples/swc-example/package.json @@ -8,7 +8,7 @@ "license": "MIT", "devDependencies": { "@swc/cli": "^0.1.57", - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "cross-env": "^7.0.3" } } diff --git a/packages/examples/vite-swc-example/package-lock.json b/packages/examples/vite-swc-example/package-lock.json index e8708fa5b..b91d1a87f 100644 --- a/packages/examples/vite-swc-example/package-lock.json +++ b/packages/examples/vite-swc-example/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "vite-starter-example", "devDependencies": { - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "cross-env": "^7.0.3", "dotenv": "^16.0.3", "rimraf": "^3.0.2", @@ -47,11 +47,14 @@ } }, "node_modules/@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "hasInstallScript": true, + "dependencies": { + "@swc/types": "^0.1.4" + }, "engines": { "node": ">=10" }, @@ -60,16 +63,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -81,9 +84,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "cpu": [ "arm64" ], @@ -97,9 +100,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "cpu": [ "x64" ], @@ -113,9 +116,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "cpu": [ "arm" ], @@ -129,9 +132,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "cpu": [ "arm64" ], @@ -145,9 +148,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "cpu": [ "arm64" ], @@ -161,9 +164,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "cpu": [ "x64" ], @@ -177,9 +180,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "cpu": [ "x64" ], @@ -193,9 +196,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "cpu": [ "arm64" ], @@ -209,9 +212,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "cpu": [ "ia32" ], @@ -225,9 +228,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "cpu": [ "x64" ], @@ -251,6 +254,12 @@ "tslib": "^2.4.0" } }, + "node_modules/@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -1707,90 +1716,91 @@ "optional": true }, "@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "requires": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81", + "@swc/types": "^0.1.4" } }, "@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "dev": true, "optional": true }, "@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "dev": true, "optional": true }, "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "dev": true, "optional": true }, "@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "dev": true, "optional": true }, "@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "dev": true, "optional": true }, "@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "dev": true, "optional": true }, "@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "dev": true, "optional": true }, "@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "dev": true, "optional": true }, "@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "dev": true, "optional": true }, "@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "dev": true, "optional": true }, @@ -1805,6 +1815,12 @@ "tslib": "^2.4.0" } }, + "@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", diff --git a/packages/examples/vite-swc-example/package.json b/packages/examples/vite-swc-example/package.json index 0589c28e0..2f70025a8 100644 --- a/packages/examples/vite-swc-example/package.json +++ b/packages/examples/vite-swc-example/package.json @@ -8,7 +8,7 @@ "preview": "echo HELLO=import-meta-env > .env && import-meta-env -x .env.example.public && vite preview" }, "devDependencies": { - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "cross-env": "^7.0.3", "dotenv": "^16.0.3", "rimraf": "^3.0.2", diff --git a/packages/examples/webpack-swc-example/package-lock.json b/packages/examples/webpack-swc-example/package-lock.json index 254531955..d40a0f802 100644 --- a/packages/examples/webpack-swc-example/package-lock.json +++ b/packages/examples/webpack-swc-example/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "webpack-swc-example", "devDependencies": { - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "concurrently": "7.0.0", "cross-env": "^7.0.3", "dotenv": "^16.0.3", @@ -85,11 +85,14 @@ } }, "node_modules/@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "hasInstallScript": true, + "dependencies": { + "@swc/types": "^0.1.4" + }, "engines": { "node": ">=10" }, @@ -98,16 +101,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -119,9 +122,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "cpu": [ "arm64" ], @@ -135,9 +138,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "cpu": [ "x64" ], @@ -151,9 +154,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "cpu": [ "arm" ], @@ -167,9 +170,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "cpu": [ "arm64" ], @@ -183,9 +186,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "cpu": [ "arm64" ], @@ -199,9 +202,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "cpu": [ "x64" ], @@ -215,9 +218,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "cpu": [ "x64" ], @@ -231,9 +234,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "cpu": [ "arm64" ], @@ -247,9 +250,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "cpu": [ "ia32" ], @@ -263,9 +266,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "cpu": [ "x64" ], @@ -289,6 +292,12 @@ "tslib": "^2.4.0" } }, + "node_modules/@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "node_modules/@types/eslint": { "version": "8.4.6", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.6.tgz", @@ -2324,90 +2333,91 @@ } }, "@swc/core": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.68.tgz", - "integrity": "sha512-njGQuJO+Wy06dEayt70cf0c/KI3HGjm4iW9LLViVLBuYNzJ4SSdNfzejludzufu6im+dsDJ0i3QjgWhAIcVHMQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.81.tgz", + "integrity": "sha512-jaKz72JIuPJQXSwSEzF6g3OBIx0IPBfgJHI9hA2jiKnfxJ1EWDd2S33NpU/HfgUCZ822aPmYuHvUhoDj3uauyg==", "dev": true, "requires": { - "@swc/core-darwin-arm64": "1.3.68", - "@swc/core-darwin-x64": "1.3.68", - "@swc/core-linux-arm-gnueabihf": "1.3.68", - "@swc/core-linux-arm64-gnu": "1.3.68", - "@swc/core-linux-arm64-musl": "1.3.68", - "@swc/core-linux-x64-gnu": "1.3.68", - "@swc/core-linux-x64-musl": "1.3.68", - "@swc/core-win32-arm64-msvc": "1.3.68", - "@swc/core-win32-ia32-msvc": "1.3.68", - "@swc/core-win32-x64-msvc": "1.3.68" + "@swc/core-darwin-arm64": "1.3.81", + "@swc/core-darwin-x64": "1.3.81", + "@swc/core-linux-arm-gnueabihf": "1.3.81", + "@swc/core-linux-arm64-gnu": "1.3.81", + "@swc/core-linux-arm64-musl": "1.3.81", + "@swc/core-linux-x64-gnu": "1.3.81", + "@swc/core-linux-x64-musl": "1.3.81", + "@swc/core-win32-arm64-msvc": "1.3.81", + "@swc/core-win32-ia32-msvc": "1.3.81", + "@swc/core-win32-x64-msvc": "1.3.81", + "@swc/types": "^0.1.4" } }, "@swc/core-darwin-arm64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.68.tgz", - "integrity": "sha512-Z5pNxeuP2NxpOHTzDQkJs0wAPLnTlglZnR3WjObijwvdwT/kw1Y5EPDKM/BVSIeG40SPMkDLBbI0aj0qyXzrBA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.81.tgz", + "integrity": "sha512-uc8/hpS5KXrMo6IvdDC/tpmns6rYVYOmf+t2Zh4dNf6fsfQ4kQVyJErD0MtJ5pykZWd/kCPD5NF/FyRQ5xfSfw==", "dev": true, "optional": true }, "@swc/core-darwin-x64": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.68.tgz", - "integrity": "sha512-ZHl42g6yXhfX4PzAQ0BNvBXpt/OcbAHfubWRN6eXELK3fiNnxL7QBW1if7iizlq6iA+Mj1pwHyyUit1pz0+fgA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.81.tgz", + "integrity": "sha512-GSS4b18cUKyZXY8vgZBOS7ERFXYmHX7O8c2ZbV9YLCz7AAQ71EtlBrO8N7/Gzq2Etea3CVFxPqnKB1wzVWVpUA==", "dev": true, "optional": true }, "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.68.tgz", - "integrity": "sha512-Mk8f6KCOQ2CNAR4PtWajIjS6XKSSR7ZYDOCf1GXRxhS3qEyQH7V8elWvqWYqHcT4foO60NUmxA/NOM/dQrdO1A==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.81.tgz", + "integrity": "sha512-rwVheKf4RogHSap+QDnnCvqCE1k2x63Lhg6XOr0A2/12vDvHXLzVfqgn2ox69CmD0GfqVQ3g56qAfi693njvUg==", "dev": true, "optional": true }, "@swc/core-linux-arm64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.68.tgz", - "integrity": "sha512-RhBllggh9t9sIxaRgRcGrVaS7fDk6KsIqR6b9+dwU5OyDr4ZyHWw1ZaH/1/HAebuXYhNBjoNUiRtca6lKRIPgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.81.tgz", + "integrity": "sha512-M+cNSSu8z573sDLbm2llRlp32EeoIymZ1PVQNYFWowDvgAbgpU7Cxqzr4Qb8D/p6bglWDLb32fD1KuPTnrvYkA==", "dev": true, "optional": true }, "@swc/core-linux-arm64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.68.tgz", - "integrity": "sha512-8K3zjU+tFgn6yGDEeD343gkKaHU9dhz77NiVkI1VzwRaT/Ag5pwl5eMQ1yStm8koNFzn3zq6rGjHfI5g2yI5Wg==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.81.tgz", + "integrity": "sha512-6Ncm6c9qOZAK4wwQHXUS3Zo6B5kUmgfN7kv/qZPMbbOK5TRK5TKcM4HmBzSXVVDq0/12vev8x65ICmwPuB5IpA==", "dev": true, "optional": true }, "@swc/core-linux-x64-gnu": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.68.tgz", - "integrity": "sha512-4xAnvsBOyeTL0AB8GWlRKDM/hsysJ5jr5qvdKKI3rZfJgnnxl/xSX6TJKPsJ8gygfUJ3BmfCbmUmEyeDZ3YPvA==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.81.tgz", + "integrity": "sha512-MYPQTW2yh7A+Od0LcNu79SG6BzCW/ktoq8qRGEwxnohRPlW9Fb0zuGbi4+l023O96W2K4V7tIWmmlKvcZAvP9w==", "dev": true, "optional": true }, "@swc/core-linux-x64-musl": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.68.tgz", - "integrity": "sha512-RCpaBo1fcpy1EFdjF+I7N4lfzOaHXVV0iMw/ABM+0PD6tp3V/9pxsguaZyeAHyEiUlDA6PZ4TfXv5zfnXEgW4Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.81.tgz", + "integrity": "sha512-EYYl/RrkEAMS2fk445V4xJMUXcrbjIJ9B3ACK/tsz1+UcML8Kpg6TvCzlwIdxY8f2oO+FhNC0CALNN31Asgfzg==", "dev": true, "optional": true }, "@swc/core-win32-arm64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.68.tgz", - "integrity": "sha512-v2WZvXrSslYEpY1nqpItyamL4DyaJinmOkXvM8Bc1LLKU5rGuvmBdjUYg/5Y+o0AUynuiWubpgHNOkBWiCvfqw==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.81.tgz", + "integrity": "sha512-n4tqeuFQXnn2fXVrcy3DVUtDrdFImQYYyY9kJPy4y1MXjeJ1l6/6wx9y+Yowpcnmvpk4JvpKMe4x8r/4rOJjsg==", "dev": true, "optional": true }, "@swc/core-win32-ia32-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.68.tgz", - "integrity": "sha512-HH5NJrIdzkJs+1xxprie0qSCMBeL9yeEhcC1yZTzYv8bwmabOUSdtKIqS55iYP/2hLWn9CTbvKPmLOIhCopW3Q==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.81.tgz", + "integrity": "sha512-XjRxp980/bs11z5jZbWP8VazoCp5sESo8+LxxUUsyENcbfAhFtjaGZTuFY4CSV1gohGAaMLnSlg5bUc+4TLz8A==", "dev": true, "optional": true }, "@swc/core-win32-x64-msvc": { - "version": "1.3.68", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.68.tgz", - "integrity": "sha512-9HZVtLQUgK8r/yXQdwe0VBexbIcrY6+fBROhs7AAPWdewpaUeLkwQEJk6TbYr9CQuHw26FFGg6SjwAiqXF+kgQ==", + "version": "1.3.81", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.81.tgz", + "integrity": "sha512-P/+TBWnYna0QIKWtq02MB/ICdsO5rsI5jwOyhzzID9rl7DRlMmXVqBcVmlnJFEJoEkFYJIlORByMNmSv1YkOqw==", "dev": true, "optional": true }, @@ -2422,6 +2432,12 @@ "tslib": "^2.4.0" } }, + "@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, "@types/eslint": { "version": "8.4.6", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.6.tgz", diff --git a/packages/examples/webpack-swc-example/package.json b/packages/examples/webpack-swc-example/package.json index 418522408..23e119cc4 100644 --- a/packages/examples/webpack-swc-example/package.json +++ b/packages/examples/webpack-swc-example/package.json @@ -10,7 +10,7 @@ "preview": "echo HELLO=import-meta-env > .env && import-meta-env -x .env.example.public && node ../serve.js -d dist -p 4173" }, "devDependencies": { - "@swc/core": "1.3.68", + "@swc/core": "1.3.81", "concurrently": "7.0.0", "cross-env": "^7.0.3", "dotenv": "^16.0.3", diff --git a/packages/swc/Cargo.lock b/packages/swc/Cargo.lock index 9368527f7..9ecbb947f 100644 --- a/packages/swc/Cargo.lock +++ b/packages/swc/Cargo.lock @@ -1388,9 +1388,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.83.38" +version = "0.82.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a378f052c0140951d19caf0aead47372e732226cbfdc5af88edbc0182b25100d" +checksum = "3252c42f47d97dbfe54c0bcadcd6c6b7cd3a968ecd0c989f6895f6c907bcf551" dependencies = [ "once_cell", "swc_atoms", @@ -1426,9 +1426,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.145.5" +version = "0.144.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "547ed57b827ea4df3e2c27cea153482f8b2ce2d271ae30c456fbb2d5a5ecc19d" +checksum = "5c18a128504833fe3b7201d830271a12d71d76bb6472ede6f11677e98fca9eda" dependencies = [ "memchr", "num-bigint", @@ -1458,9 +1458,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.140.0" +version = "0.139.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c968599841fcecfdc2e490188ad93251897a1bb912882547e6889e14a368399" +checksum = "1e2abc67575c5fcc77cfb9b3eaaeb73bac2cac265504a1fc06a04d0ebbc4c53b" dependencies = [ "either", "num-bigint", @@ -1491,9 +1491,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.133.6" +version = "0.132.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7632e73dd031d97279579b4f2442ca2956fa8d523053aae10544b3392ac7c7de" +checksum = "82b9cbdb2be485815eb755a0014b3c2a9008ba0c20634b9ccbdef78a79d76c1e" dependencies = [ "better_scoped_tls", "bitflags 2.3.3", @@ -1514,9 +1514,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.136.6" +version = "0.135.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d9a98cae6a5f2c1254c074f1eb0ff0185955c7f51807ea675cd3fffbc8c5d45" +checksum = "6e044aa61ea8c86529be13263855d1b844983e84adc8bd119c51ccf4c810d725" dependencies = [ "ansi_term", "anyhow", @@ -1540,9 +1540,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.123.1" +version = "0.122.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d3f8e4d11d124d9527d04ba7fc9f1efec376a67598ad7affda0440a48b13c1" +checksum = "47f412679df4b7f28354b81acdf0fbf53816366019f21e5affc1482b868bda1d" dependencies = [ "indexmap", "num_cpus", diff --git a/packages/swc/Cargo.toml b/packages/swc/Cargo.toml index bd3e9effc..1bf0fac30 100644 --- a/packages/swc/Cargo.toml +++ b/packages/swc/Cargo.toml @@ -16,7 +16,7 @@ rust-ini = "0.19.0" serde = "1.0.188" serde_json = "1.0.107" string_cache = "0.8.7" -swc_core = { version = "0.83.38", features = [ +swc_core = { version = "0.82.0", features = [ "ecma_plugin_transform", "ecma_ast_serde", ] } diff --git a/packages/swc/package.json b/packages/swc/package.json index d8bde6386..160b4d789 100644 --- a/packages/swc/package.json +++ b/packages/swc/package.json @@ -10,7 +10,7 @@ "main": "import_meta_env_swc.wasm", "scripts": { "prepare": "rustup target add wasm32-wasi", - "build": "cargo build --all --release --target wasm32-wasi", + "build": "cargo build --all --release --target wasm32-wasi --locked", "prepack": "cp target/wasm32-wasi/release/import_meta_env_swc.wasm .", "pack": "rm -rf *.tgz && pnpm pack && node ../../scripts/rename-tgz.js", "postinstall": "node -e \"try{require('./scripts/postinstall')}catch(e){}\"", @@ -28,7 +28,7 @@ "homepage": "https://github.com/iendeavor/import-meta-env/tree/main/packages/swc#readme", "peerDependencies": { "@import-meta-env/cli": "^0.5.1 || ^0.6.1", - "@swc/core": "^1.3.68" + "@swc/core": "^1.3.81" }, "peerDependenciesMeta": { "@import-meta-env/cli": {