diff --git a/package.json b/package.json index 9f200ac..451ab1e 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,8 @@ "ava": "6.2.0", "eslint": "9.14.0", "husky": "9.1.6", - "oxc-resolver": "2.0.0", - "oxc-transform": "0.34.0", + "oxc-resolver": "2.0.1", + "oxc-transform": "0.35.0", "prettier": "3.3.3", "rollup": "4.25.0", "tsimp": "2.0.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76d4b61..fa840c7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,11 +49,11 @@ importers: specifier: 9.1.6 version: 9.1.6 oxc-resolver: - specifier: 2.0.0 - version: 2.0.0 + specifier: 2.0.1 + version: 2.0.1 oxc-transform: - specifier: 0.34.0 - version: 0.34.0 + specifier: 0.35.0 + version: 0.35.0 prettier: specifier: 3.3.3 version: 3.3.3 @@ -321,98 +321,98 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@oxc-resolver/binding-darwin-arm64@2.0.0': - resolution: {integrity: sha512-47F2ID66KbApUp8s5XwDWEX6E9FaivPiDlzlOqF7PE+3HiGmuXV/Iec5QaZEebYbHZMqSnzM7R6UJpLEcQHHrQ==} + '@oxc-resolver/binding-darwin-arm64@2.0.1': + resolution: {integrity: sha512-0l180Q0aBPRj23FlY7heLKo4znwXZGyTirxhtQewUeqLVnTzdyOuqGGKrnlL2rMXyE9cEXqQ4ZODdzdmWO6QsQ==} cpu: [arm64] os: [darwin] - '@oxc-resolver/binding-darwin-x64@2.0.0': - resolution: {integrity: sha512-z3HW/3qEQjIwpnUK3hZctVKkifdxrrezq1p0HlL6csfH32SXGa9JKsisxNT7wmNHY/OwNr3vxK30bk83+np0rg==} + '@oxc-resolver/binding-darwin-x64@2.0.1': + resolution: {integrity: sha512-56icBBSx+5eM/+uV6KwsK66AJ8LIs3lMTH0Nw9ivVHRqos/eHIUigtlRzsEFF1CtOFCE4mC6p/kihiuBvQoVzA==} cpu: [x64] os: [darwin] - '@oxc-resolver/binding-freebsd-x64@2.0.0': - resolution: {integrity: sha512-VTBpHLVBIyHYjeD+YV9Iu7JuF6AaxBCD8gd1Nh5jbCn7z/b+cvQg0wgP/syY9SeqNVQk7YSrsyYKM1Jm8tZ8wA==} + '@oxc-resolver/binding-freebsd-x64@2.0.1': + resolution: {integrity: sha512-/tbk+uuplx77DOuctwz0nZxfWMRnpBBQei1BGfjABNWtCQxnABhuiGgDIRXHx5TzJZhbbspxcndPagW3NHGixg==} cpu: [x64] os: [freebsd] - '@oxc-resolver/binding-linux-arm-gnueabihf@2.0.0': - resolution: {integrity: sha512-UrgTLdPaJjOhTSbTQqLAf/wV5p4SyU31PB7MBc9uhjGv4qvBc9mqUhXg6f8QG9DiGV2IVbi2IZzAbN4+3l1fig==} + '@oxc-resolver/binding-linux-arm-gnueabihf@2.0.1': + resolution: {integrity: sha512-DeALa9wNzaKpR3vqXOFANFNygYwcLXUB50CYNhX3oqBLNhp4U79N5mDhQOr00fsDhaYcsCkMtRnxBi9zQUkGzQ==} cpu: [arm] os: [linux] - '@oxc-resolver/binding-linux-arm64-gnu@2.0.0': - resolution: {integrity: sha512-s0n4pZPwzkM5Wxsg40EwEyrMIkSA3jMImywrbp+7NPq1IJXB2Tnf1JS018bICms/SymvpzBAJcMjTecKnugHMQ==} + '@oxc-resolver/binding-linux-arm64-gnu@2.0.1': + resolution: {integrity: sha512-dMHO0PG0KYVeLxCOsmE7HMsdVmvovYPp+2k00Mp/PTu9HqbmFPdYaWbbDs0g+tqePL8u+Q7+bEMX7gUFGPFP2Q==} cpu: [arm64] os: [linux] - '@oxc-resolver/binding-linux-arm64-musl@2.0.0': - resolution: {integrity: sha512-i2Cp3t25xtDWrksoK1lkdcC16gQ+BQrDe/S2raZ1jK3/r5HZp6VIoiHC5O2bUYmZjGdfAGxoDE4dT+BVhVrB7Q==} + '@oxc-resolver/binding-linux-arm64-musl@2.0.1': + resolution: {integrity: sha512-J0O5YbVZ+ioDH7e9VhHnqEEj140iHDB5KdxNIfRbPWa3nVuRrWDeBztk8239Yi1Mjb0tGp1m1arGU/XmlEar0A==} cpu: [arm64] os: [linux] - '@oxc-resolver/binding-linux-x64-gnu@2.0.0': - resolution: {integrity: sha512-IuXyau6Lo7tmfyREf9XMJGEjmbo0ZLsszoq12DpxzI64XVDhIUtXWFlw40f+WO19/6hRhCcNBdms2DOhKxhiKg==} + '@oxc-resolver/binding-linux-x64-gnu@2.0.1': + resolution: {integrity: sha512-5nGiVH3R0p8SxHN47hd0bwtCDxdeWlQ6z1UO1U3wx6LfBwqSKbsuL1r5Z/+izBOEAtON1QQlpDBUaoCQMCyduQ==} cpu: [x64] os: [linux] - '@oxc-resolver/binding-linux-x64-musl@2.0.0': - resolution: {integrity: sha512-RbEtfbgEl5C8ztnMbckCZdbkpQ0N4MXSHOLMm3bIoLcVszxGSBNcYolT+iy1VA7U/9vxI7qUlqzgy4uGDIMJkQ==} + '@oxc-resolver/binding-linux-x64-musl@2.0.1': + resolution: {integrity: sha512-abG5WmO2ZgkQTTfRZItFatzo9d+KYuePJ68cp1sJ/gHlNTliE+/6XepTggmRm85+8ehexjjceldvNdj80j6Gjg==} cpu: [x64] os: [linux] - '@oxc-resolver/binding-wasm32-wasi@2.0.0': - resolution: {integrity: sha512-o0erA0rC2KA9QDm6yWR21c+sawMiKiixN8qnplOdhp64hzA6r/mLdVfFta0lKSPS+gdOUJEi9kFGSGppgvrRWA==} + '@oxc-resolver/binding-wasm32-wasi@2.0.1': + resolution: {integrity: sha512-CES19bgvEETC1YkpdJSFFrprtZ5L7VaoxR5ZVNUJrpCAM6WVPMhjev2NXLfgzbaHOBJo6lL4jnTDCtRPwzoYQw==} engines: {node: '>=14.0.0'} cpu: [wasm32] - '@oxc-resolver/binding-win32-arm64-msvc@2.0.0': - resolution: {integrity: sha512-X0n0Q1PtnP7DAFLG91TYyrwtXQnSV1P5qnahGr9fCHzfpyEbvJbi1LirvI+dRDrzgPZqTX6CjDkmZMl71Blv/w==} + '@oxc-resolver/binding-win32-arm64-msvc@2.0.1': + resolution: {integrity: sha512-iXIQ6JNylPio31j+bAE900jYsp9qu4DKwST1ODok6RxMQkyKfJjc9xoD/WsN6gbh8VfOAAEiAL1uMsLdwGHagA==} cpu: [arm64] os: [win32] - '@oxc-resolver/binding-win32-x64-msvc@2.0.0': - resolution: {integrity: sha512-WAXJnVr3mP5jUUxyKsPoZU/LZAplulbR0qvdKub76J9x7SNrW3Pl9NyuCM5qLA8LKh2lrZPmLVGweLSgXLXMJA==} + '@oxc-resolver/binding-win32-x64-msvc@2.0.1': + resolution: {integrity: sha512-hPUQ+dtWOFPWeemo0VK6DNH/NY9UjjBxAfpsjoCPOAcXpyuMQ3CsHFDwi2keNkPkCgfJSJRfffFvQysqF3fKKQ==} cpu: [x64] os: [win32] - '@oxc-transform/binding-darwin-arm64@0.34.0': - resolution: {integrity: sha512-IbkBeOfRHfH1BePAcbwBBEVQCdau4Yma/fXwZXNNVpbLDiMcHUbbToSKtRWpTZmtA+qZEGRuLy/LKBxjJYyVPg==} + '@oxc-transform/binding-darwin-arm64@0.35.0': + resolution: {integrity: sha512-oh+L/TM7/u3A1qIlFz2hEW0LIVPdhgK+dGAgnyDCOaXqP0P45MgkklbTF+lSAXkv5PgpvNmrnocu4j1mjswskA==} cpu: [arm64] os: [darwin] - '@oxc-transform/binding-darwin-x64@0.34.0': - resolution: {integrity: sha512-0wz5sQiuMtMP1yUw4JprDBqvaw+HGoZef8s0hPBiml0rcZ0UKALfXi7BrG4xYh2474D1zrlUqY2gCloLIPyaPw==} + '@oxc-transform/binding-darwin-x64@0.35.0': + resolution: {integrity: sha512-/B8YOmxxHGKeNqCeCoe7FY3eLrru5R07kS5pObkOGZgz2jqWw2CnJ3XMq+GaNAAgvVJc4O7wU88yV8a/TX3ppQ==} cpu: [x64] os: [darwin] - '@oxc-transform/binding-linux-arm64-gnu@0.34.0': - resolution: {integrity: sha512-kAmC6/yInHaHVl+nxZwyk2b8aeQMEV37tlsmDRYkxu/8hlG64qGXuVbazxlpJlTxPZf1XkhJplD/pIB6d1VEzA==} + '@oxc-transform/binding-linux-arm64-gnu@0.35.0': + resolution: {integrity: sha512-Smbku1J3IofBVEJFvnP6IcGyavZsAskbGBs++ty/4+JQqv67fCeGFNRf8erAWpNQGhpgsL/EW7QIPuZ89SlIBw==} cpu: [arm64] os: [linux] - '@oxc-transform/binding-linux-arm64-musl@0.34.0': - resolution: {integrity: sha512-MQvT5Cz5ikWUCkiGNJxxWZGBKhjRTAgBYa8t8wpAIKuhEnKtlXSYHMSOEqGlTwOpiIs76TTamwR43MKKwQ5IBQ==} + '@oxc-transform/binding-linux-arm64-musl@0.35.0': + resolution: {integrity: sha512-H0CV1mf4TNIPm4PwkHWJUxekgOHvyyCTehHimUjBaB2XxImwo1pEa+bO79wkJYm/F1aSDRM4APivK9c3Hi4F0w==} cpu: [arm64] os: [linux] - '@oxc-transform/binding-linux-x64-gnu@0.34.0': - resolution: {integrity: sha512-zci/7tdcbBLmiQWrFLVO1V14xUGtJETUQz6qGsoCYVfa73RmHUM3d8xSv6VUSqjL18/s319/H8wEuhwUkYVSaA==} + '@oxc-transform/binding-linux-x64-gnu@0.35.0': + resolution: {integrity: sha512-VSOiPOx4I/e3yTNED50Vn0VwHb3Pa0QQwqCZYRDKmqztsTQN6RSKnawWG+EPY+9mqLJs+8KfMphQMsjRE2K+hA==} cpu: [x64] os: [linux] - '@oxc-transform/binding-linux-x64-musl@0.34.0': - resolution: {integrity: sha512-4etfgKWuX3FJP+nbzH2/OaqBFY2KqaVFEKnsq/32beDFd/yum+C4awVvo3aL82xBteayDT9gUV256KIjK8Mnjw==} + '@oxc-transform/binding-linux-x64-musl@0.35.0': + resolution: {integrity: sha512-ItoZZ1auUQsgSE+lvL559+cLBnZb4Q2zotTB0JpH8M8rxROpW+GVwU3TzBwQHmtGE9ri+KuywpXkPREifdOx9g==} cpu: [x64] os: [linux] - '@oxc-transform/binding-win32-arm64-msvc@0.34.0': - resolution: {integrity: sha512-LUYcQN1qgYeZmq9CXG+2cDQ0+mmIDgh9/8odTAtUL5e0F2bO5nADVoHtduvN1YvVJoBNcVAQnt4cTmeFhPlM3g==} + '@oxc-transform/binding-win32-arm64-msvc@0.35.0': + resolution: {integrity: sha512-XuvyU0mhgpF5NIAcoknQPQnl70s/kfkBASo6xCx2HQP74vGGP6Aj810U4N0D66jGazpVw+mbaEsDzGHm3KWwiw==} cpu: [arm64] os: [win32] - '@oxc-transform/binding-win32-x64-msvc@0.34.0': - resolution: {integrity: sha512-0YI1Va7vVz4EBe47kTLhyjrvTEyIg6VSVCte8LhJhdjayG+WkNb63f8D/hTWqpP7RFIEe2lNvc2iQ4okfvsz8g==} + '@oxc-transform/binding-win32-x64-msvc@0.35.0': + resolution: {integrity: sha512-+hTWKxqO519Iot9A6XdCEdvokg/2Yid4NevjhsEJnsa1MrHHxbOjzWKq22GRjv0CpMgKlMyJXWHP4YKzDZ/Sog==} cpu: [x64] os: [win32] @@ -1536,11 +1536,11 @@ packages: outdent@0.5.0: resolution: {integrity: sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==} - oxc-resolver@2.0.0: - resolution: {integrity: sha512-imHkLG6boypjbGm/GC28uxaE7nr6s5H/8FxKbfVtQ8B6g0uu5udGpTNG5kBIYte+kEJfj1KwpfjufWZnGUXIdg==} + oxc-resolver@2.0.1: + resolution: {integrity: sha512-xEbYdEGwafn+Y2GTyW0BGC3iIjJZXl+fxrIkyheew5mZrDODmPXJf2qwsa1ocBeVUC51g9e835vNZ9tRR5fYCg==} - oxc-transform@0.34.0: - resolution: {integrity: sha512-yYYSqJFRlHI9yx1VbbS6e0a7yRGfv8Btrz+FYtO7WGx9L9UhBQVLZ3M//Ke9dwGM4gw1fBWk6sl5tDEjE5rJbA==} + oxc-transform@0.35.0: + resolution: {integrity: sha512-biVB7H7ZxuAQYbMJPUZw1umT7nzDU44tEBYyqMgLle0mnAbi9AetadIqTpjAp8KmcOYpG6VmvGeFPxWihFCWFQ==} p-filter@2.1.0: resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==} @@ -2456,63 +2456,63 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@oxc-resolver/binding-darwin-arm64@2.0.0': + '@oxc-resolver/binding-darwin-arm64@2.0.1': optional: true - '@oxc-resolver/binding-darwin-x64@2.0.0': + '@oxc-resolver/binding-darwin-x64@2.0.1': optional: true - '@oxc-resolver/binding-freebsd-x64@2.0.0': + '@oxc-resolver/binding-freebsd-x64@2.0.1': optional: true - '@oxc-resolver/binding-linux-arm-gnueabihf@2.0.0': + '@oxc-resolver/binding-linux-arm-gnueabihf@2.0.1': optional: true - '@oxc-resolver/binding-linux-arm64-gnu@2.0.0': + '@oxc-resolver/binding-linux-arm64-gnu@2.0.1': optional: true - '@oxc-resolver/binding-linux-arm64-musl@2.0.0': + '@oxc-resolver/binding-linux-arm64-musl@2.0.1': optional: true - '@oxc-resolver/binding-linux-x64-gnu@2.0.0': + '@oxc-resolver/binding-linux-x64-gnu@2.0.1': optional: true - '@oxc-resolver/binding-linux-x64-musl@2.0.0': + '@oxc-resolver/binding-linux-x64-musl@2.0.1': optional: true - '@oxc-resolver/binding-wasm32-wasi@2.0.0': + '@oxc-resolver/binding-wasm32-wasi@2.0.1': dependencies: '@napi-rs/wasm-runtime': 0.2.5 optional: true - '@oxc-resolver/binding-win32-arm64-msvc@2.0.0': + '@oxc-resolver/binding-win32-arm64-msvc@2.0.1': optional: true - '@oxc-resolver/binding-win32-x64-msvc@2.0.0': + '@oxc-resolver/binding-win32-x64-msvc@2.0.1': optional: true - '@oxc-transform/binding-darwin-arm64@0.34.0': + '@oxc-transform/binding-darwin-arm64@0.35.0': optional: true - '@oxc-transform/binding-darwin-x64@0.34.0': + '@oxc-transform/binding-darwin-x64@0.35.0': optional: true - '@oxc-transform/binding-linux-arm64-gnu@0.34.0': + '@oxc-transform/binding-linux-arm64-gnu@0.35.0': optional: true - '@oxc-transform/binding-linux-arm64-musl@0.34.0': + '@oxc-transform/binding-linux-arm64-musl@0.35.0': optional: true - '@oxc-transform/binding-linux-x64-gnu@0.34.0': + '@oxc-transform/binding-linux-x64-gnu@0.35.0': optional: true - '@oxc-transform/binding-linux-x64-musl@0.34.0': + '@oxc-transform/binding-linux-x64-musl@0.35.0': optional: true - '@oxc-transform/binding-win32-arm64-msvc@0.34.0': + '@oxc-transform/binding-win32-arm64-msvc@0.35.0': optional: true - '@oxc-transform/binding-win32-x64-msvc@0.34.0': + '@oxc-transform/binding-win32-x64-msvc@0.35.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3597,30 +3597,30 @@ snapshots: outdent@0.5.0: {} - oxc-resolver@2.0.0: + oxc-resolver@2.0.1: optionalDependencies: - '@oxc-resolver/binding-darwin-arm64': 2.0.0 - '@oxc-resolver/binding-darwin-x64': 2.0.0 - '@oxc-resolver/binding-freebsd-x64': 2.0.0 - '@oxc-resolver/binding-linux-arm-gnueabihf': 2.0.0 - '@oxc-resolver/binding-linux-arm64-gnu': 2.0.0 - '@oxc-resolver/binding-linux-arm64-musl': 2.0.0 - '@oxc-resolver/binding-linux-x64-gnu': 2.0.0 - '@oxc-resolver/binding-linux-x64-musl': 2.0.0 - '@oxc-resolver/binding-wasm32-wasi': 2.0.0 - '@oxc-resolver/binding-win32-arm64-msvc': 2.0.0 - '@oxc-resolver/binding-win32-x64-msvc': 2.0.0 - - oxc-transform@0.34.0: + '@oxc-resolver/binding-darwin-arm64': 2.0.1 + '@oxc-resolver/binding-darwin-x64': 2.0.1 + '@oxc-resolver/binding-freebsd-x64': 2.0.1 + '@oxc-resolver/binding-linux-arm-gnueabihf': 2.0.1 + '@oxc-resolver/binding-linux-arm64-gnu': 2.0.1 + '@oxc-resolver/binding-linux-arm64-musl': 2.0.1 + '@oxc-resolver/binding-linux-x64-gnu': 2.0.1 + '@oxc-resolver/binding-linux-x64-musl': 2.0.1 + '@oxc-resolver/binding-wasm32-wasi': 2.0.1 + '@oxc-resolver/binding-win32-arm64-msvc': 2.0.1 + '@oxc-resolver/binding-win32-x64-msvc': 2.0.1 + + oxc-transform@0.35.0: optionalDependencies: - '@oxc-transform/binding-darwin-arm64': 0.34.0 - '@oxc-transform/binding-darwin-x64': 0.34.0 - '@oxc-transform/binding-linux-arm64-gnu': 0.34.0 - '@oxc-transform/binding-linux-arm64-musl': 0.34.0 - '@oxc-transform/binding-linux-x64-gnu': 0.34.0 - '@oxc-transform/binding-linux-x64-musl': 0.34.0 - '@oxc-transform/binding-win32-arm64-msvc': 0.34.0 - '@oxc-transform/binding-win32-x64-msvc': 0.34.0 + '@oxc-transform/binding-darwin-arm64': 0.35.0 + '@oxc-transform/binding-darwin-x64': 0.35.0 + '@oxc-transform/binding-linux-arm64-gnu': 0.35.0 + '@oxc-transform/binding-linux-arm64-musl': 0.35.0 + '@oxc-transform/binding-linux-x64-gnu': 0.35.0 + '@oxc-transform/binding-linux-x64-musl': 0.35.0 + '@oxc-transform/binding-win32-arm64-msvc': 0.35.0 + '@oxc-transform/binding-win32-x64-msvc': 0.35.0 p-filter@2.1.0: dependencies: diff --git a/tests/__snapshots/tests/errors.spec.ts.md b/tests/__snapshots/tests/errors.spec.ts.md index 8864f0d..697115e 100644 --- a/tests/__snapshots/tests/errors.spec.ts.md +++ b/tests/__snapshots/tests/errors.spec.ts.md @@ -10,6 +10,7 @@ Generated by [AVA](https://avajs.dev). `[plugin rollup-plugin-oxc-transform] tests/fixtures/errors/syntax-error.js: ␊ transform errors:␊ + ␊ ␊ x Expected \`}\` but found \`EOF\`␊ ,-[###/tests/fixtures/errors/syntax-error.js:4:1]␊ diff --git a/tests/__snapshots/tests/errors.spec.ts.snap b/tests/__snapshots/tests/errors.spec.ts.snap index 9543a37..7895fec 100644 Binary files a/tests/__snapshots/tests/errors.spec.ts.snap and b/tests/__snapshots/tests/errors.spec.ts.snap differ