diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 5017ff0..7fb2dd9 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,6 +1,4 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base", "schedule:monthly", "group:allNonMajor"], - "rangeStrategy": "bump", - "packageRules": [{ "depTypeList": ["peerDependencies"], "enabled": false }] + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>rstackjs/renovate"] } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef51fda..a2ff6c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,12 @@ jobs: environment: npm steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: - node-version: 24.12.0 + node-version: 24.14.0 # Update npm to the latest version to enable OIDC # Use corepack to install pnpm @@ -39,11 +39,11 @@ jobs: run: pnpm install - name: Publish - uses: JS-DevTools/npm-publish@v4 + uses: JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4 with: token: empty - name: Create GitHub Release - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1 with: generateReleaseNotes: "true" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 040972d..ffc25be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,15 +21,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Install Pnpm run: npm i -g corepack@latest --force && corepack enable - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: - node-version: 24.12.0 + node-version: 24.14.0 cache: "pnpm" - name: Install Dependencies diff --git a/package.json b/package.json index a44c755..b474247 100644 --- a/package.json +++ b/package.json @@ -1,25 +1,23 @@ { "name": "rsbuild-plugin-devtools-json", - "version": "0.2.6", + "version": "1.0.0", "repository": "https://github.com/rstackjs/rsbuild-plugin-devtools-json", "license": "MIT", "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" } }, - "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "scripts": { - "build": "rslib build", + "build": "rslib", "bump": "npx bumpp", - "dev": "rslib build --watch", + "dev": "rslib -w", "format": "biome format --write", "lint": "biome check", "lint:write": "biome check . --write", @@ -33,24 +31,25 @@ "biome check --write --no-errors-on-unmatched" ] }, - "dependencies": { - "uuid": "^11.1.0" - }, "devDependencies": { - "@biomejs/biome": "2.3.10", - "@rslib/core": "0.19.1", - "@types/node": "24.10.4", + "@biomejs/biome": "2.4.8", + "@rslib/core": "0.20.0", + "@types/node": "24.12.0", "nano-staged": "^0.9.0", "simple-git-hooks": "^2.13.1", - "typescript": "5.9.3" + "typescript": "^6.0.2", + "uuid": "^13.0.0" }, "peerDependencies": { - "@rsbuild/core": "^1.0.0 || ^2.0.0-0" + "@rsbuild/core": "^1.4.0 || ^2.0.0-0" }, "peerDependenciesMeta": { "@rsbuild/core": { "optional": true } }, - "packageManager": "pnpm@9.15.9" + "packageManager": "pnpm@10.33.0", + "engines": { + "node": "^20.19.0 || >=22.12.0" + } } diff --git a/playground/package.json b/playground/package.json index 67400bb..ac46698 100644 --- a/playground/package.json +++ b/playground/package.json @@ -3,7 +3,7 @@ "private": true, "version": "0.0.0", "scripts": { - "dev": "npx rsbuild dev", + "dev": "npx rsbuild", "build": "npx rsbuild build" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62f7d8f..05c2713 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,21 +9,18 @@ importers: .: dependencies: '@rsbuild/core': - specifier: ^1.0.0 || ^2.0.0-0 - version: 1.7.1 - uuid: - specifier: ^11.1.0 - version: 11.1.0 + specifier: ^1.4.0 || ^2.0.0-0 + version: 2.0.0-beta.8(core-js@3.47.0) devDependencies: '@biomejs/biome': - specifier: 2.3.10 - version: 2.3.10 + specifier: 2.4.8 + version: 2.4.8 '@rslib/core': - specifier: 0.19.1 - version: 0.19.1(typescript@5.9.3) + specifier: 0.20.0 + version: 0.20.0(core-js@3.47.0)(typescript@6.0.2) '@types/node': - specifier: 24.10.4 - version: 24.10.4 + specifier: 24.12.0 + version: 24.12.0 nano-staged: specifier: ^0.9.0 version: 0.9.0 @@ -31,8 +28,11 @@ importers: specifier: ^2.13.1 version: 2.13.1 typescript: - specifier: 5.9.3 - version: 5.9.3 + specifier: ^6.0.2 + version: 6.0.2 + uuid: + specifier: ^13.0.0 + version: 13.0.0 playground: {} @@ -55,24 +55,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@ast-grep/napi-linux-arm64-musl@0.37.0': resolution: {integrity: sha512-LF9sAvYy6es/OdyJDO3RwkX3I82Vkfsng1sqUBcoWC1jVb1wX5YVzHtpQox9JrEhGl+bNp7FYxB4Qba9OdA5GA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@ast-grep/napi-linux-x64-gnu@0.37.0': resolution: {integrity: sha512-TViz5/klqre6aSmJzswEIjApnGjJzstG/SE8VDWsrftMBMYt2PTu3MeluZVwzSqDao8doT/P+6U11dU05UOgxw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@ast-grep/napi-linux-x64-musl@0.37.0': resolution: {integrity: sha512-/BcCH33S9E3ovOAEoxYngUNXgb+JLg991sdyiNP2bSoYd30a9RHrG7CYwW6fMgua3ijQ474eV6cq9yZO1bCpXg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@ast-grep/napi-win32-arm64-msvc@0.37.0': resolution: {integrity: sha512-TjQA4cFoIEW2bgjLkaL9yqT4XWuuLa5MCNd0VCDhGRDMNQ9+rhwi9eLOWRaap3xzT7g+nlbcEHL3AkVCD2+b3A==} @@ -96,55 +100,59 @@ packages: resolution: {integrity: sha512-Hb4o6h1Pf6yRUAX07DR4JVY7dmQw+RVQMW5/m55GoiAT/VRoKCWBtIUPPOnqDVhbx1Cjfil9b6EDrgJsUAujEQ==} engines: {node: '>= 10'} - '@biomejs/biome@2.3.10': - resolution: {integrity: sha512-/uWSUd1MHX2fjqNLHNL6zLYWBbrJeG412/8H7ESuK8ewoRoMPUgHDebqKrPTx/5n6f17Xzqc9hdg3MEqA5hXnQ==} + '@biomejs/biome@2.4.8': + resolution: {integrity: sha512-ponn0oKOky1oRXBV+rlSaUlixUxf1aZvWC19Z41zBfUOUesthrQqL3OtiAlSB1EjFjyWpn98Q64DHelhA6jNlA==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.3.10': - resolution: {integrity: sha512-M6xUjtCVnNGFfK7HMNKa593nb7fwNm43fq1Mt71kpLpb+4mE7odO8W/oWVDyBVO4ackhresy1ZYO7OJcVo/B7w==} + '@biomejs/cli-darwin-arm64@2.4.8': + resolution: {integrity: sha512-ARx0tECE8I7S2C2yjnWYLNbBdDoPdq3oyNLhMglmuctThwUsuzFWRKrHmIGwIRWKz0Mat9DuzLEDp52hGnrxGQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.3.10': - resolution: {integrity: sha512-Vae7+V6t/Avr8tVbFNjnFSTKZogZHFYl7MMH62P/J1kZtr0tyRQ9Fe0onjqjS2Ek9lmNLmZc/VR5uSekh+p1fg==} + '@biomejs/cli-darwin-x64@2.4.8': + resolution: {integrity: sha512-Jg9/PsB9vDCJlANE8uhG7qDhb5w0Ix69D7XIIc8IfZPUoiPrbLm33k2Ig3NOJ/7nb3UbesFz3D1aDKm9DvzjhQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.3.10': - resolution: {integrity: sha512-B9DszIHkuKtOH2IFeeVkQmSMVUjss9KtHaNXquYYWCjH8IstNgXgx5B0aSBQNr6mn4RcKKRQZXn9Zu1rM3O0/A==} + '@biomejs/cli-linux-arm64-musl@2.4.8': + resolution: {integrity: sha512-Zo9OhBQDJ3IBGPlqHiTISloo5H0+FBIpemqIJdW/0edJ+gEcLR+MZeZozcUyz3o1nXkVA7++DdRKQT0599j9jA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [musl] - '@biomejs/cli-linux-arm64@2.3.10': - resolution: {integrity: sha512-hhPw2V3/EpHKsileVOFynuWiKRgFEV48cLe0eA+G2wO4SzlwEhLEB9LhlSrVeu2mtSn205W283LkX7Fh48CaxA==} + '@biomejs/cli-linux-arm64@2.4.8': + resolution: {integrity: sha512-5CdrsJct76XG2hpKFwXnEtlT1p+4g4yV+XvvwBpzKsTNLO9c6iLlAxwcae2BJ7ekPGWjNGw9j09T5KGPKKxQig==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [glibc] - '@biomejs/cli-linux-x64-musl@2.3.10': - resolution: {integrity: sha512-QTfHZQh62SDFdYc2nfmZFuTm5yYb4eO1zwfB+90YxUumRCR171tS1GoTX5OD0wrv4UsziMPmrePMtkTnNyYG3g==} + '@biomejs/cli-linux-x64-musl@2.4.8': + resolution: {integrity: sha512-Gi8quv8MEuDdKaPFtS2XjEnMqODPsRg6POT6KhoP+VrkNb+T2ywunVB+TvOU0LX1jAZzfBr+3V1mIbBhzAMKvw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [musl] - '@biomejs/cli-linux-x64@2.3.10': - resolution: {integrity: sha512-wwAkWD1MR95u+J4LkWP74/vGz+tRrIQvr8kfMMJY8KOQ8+HMVleREOcPYsQX82S7uueco60L58Wc6M1I9WA9Dw==} + '@biomejs/cli-linux-x64@2.4.8': + resolution: {integrity: sha512-PdKXspVEaMCQLjtZCn6vfSck/li4KX9KGwSDbZdgIqlrizJ2MnMcE3TvHa2tVfXNmbjMikzcfJpuPWH695yJrw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [glibc] - '@biomejs/cli-win32-arm64@2.3.10': - resolution: {integrity: sha512-o7lYc9n+CfRbHvkjPhm8s9FgbKdYZu5HCcGVMItLjz93EhgJ8AM44W+QckDqLA9MKDNFrR8nPbO4b73VC5kGGQ==} + '@biomejs/cli-win32-arm64@2.4.8': + resolution: {integrity: sha512-LoFatS0tnHv6KkCVpIy3qZCih+MxUMvdYiPWLHRri7mhi2vyOOs8OrbZBcLTUEWCS+ktO72nZMy4F96oMhkOHQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.3.10': - resolution: {integrity: sha512-pHEFgq7dUEsKnqG9mx9bXihxGI49X+ar+UBrEIj3Wqj3UCZp1rNgV+OoyjFgcXsjCWpuEAF4VJdkZr3TrWdCbQ==} + '@biomejs/cli-win32-x64@2.4.8': + resolution: {integrity: sha512-vAn7iXDoUbqFXqVocuq1sMYAd33p8+mmurqJkWl6CtIhobd/O6moe4rY5AJvzbunn/qZCdiDVcveqtkFh1e7Hg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -158,35 +166,22 @@ packages: '@emnapi/wasi-threads@1.1.0': resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==} - '@module-federation/error-codes@0.22.0': - resolution: {integrity: sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==} - - '@module-federation/runtime-core@0.22.0': - resolution: {integrity: sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==} - - '@module-federation/runtime-tools@0.22.0': - resolution: {integrity: sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==} - - '@module-federation/runtime@0.22.0': - resolution: {integrity: sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==} - - '@module-federation/sdk@0.22.0': - resolution: {integrity: sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==} - - '@module-federation/webpack-bundler-runtime@0.22.0': - resolution: {integrity: sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==} - '@napi-rs/wasm-runtime@1.0.7': resolution: {integrity: sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==} - '@rsbuild/core@1.7.1': - resolution: {integrity: sha512-ULIE/Qh+Ne80Pm/aUPbRHUvwvIzpap07jYNFB47azI8w5Q3sDEC4Gn574jsluT/42iNDsZTFADRBog9FEvtN9Q==} - engines: {node: '>=18.12.0'} + '@rsbuild/core@2.0.0-beta.8': + resolution: {integrity: sha512-MUxbKJPE1agOK3eCHjKvBIiA+CcZ0TJU/ANKDBLMjK2Er+wq4r5c2ne53+Pi7DtIExoMbSSWBx+RP3CMewKGVA==} + engines: {node: ^20.19.0 || >=22.12.0} hasBin: true + peerDependencies: + core-js: '>= 3.0.0' + peerDependenciesMeta: + core-js: + optional: true - '@rslib/core@0.19.1': - resolution: {integrity: sha512-Fz+uknjf9BRE6tNax7zcZOZ8FX3FLT5kKcR10vHdo6IgCaMZpJxQmM62NNfv21kdy5u1PdIRgKFVpqP2QTarfg==} - engines: {node: '>=18.12.0'} + '@rslib/core@0.20.0': + resolution: {integrity: sha512-hsRwjMbBla8lyKIVR0gFsK5M3j+LSbFOTafvbT0QR90ehZXwlu+EhpHJv8v/uIRT50RVlgCrcT+LCVr1oU3pbA==} + engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@microsoft/api-extractor': ^7 @@ -197,86 +192,86 @@ packages: typescript: optional: true - '@rspack/binding-darwin-arm64@1.7.0': - resolution: {integrity: sha512-HMYrhvVh3sMRBXl6cSI2JqsvlHJKQ42qX+Sw4qbj7LeZBN6Gv4GjfL3cXRLUTdO37FOC0uLEUYgxVXetx/Y4sA==} + '@rspack/binding-darwin-arm64@2.0.0-beta.6': + resolution: {integrity: sha512-FQ8zflthQJJf0cM0vDFnfnXrTOnRvwz886tiafbwu1RO5qmh+pJH+xg1eQaLPnRPqLTlcmnpngyacYFUxw+1AA==} cpu: [arm64] os: [darwin] - '@rspack/binding-darwin-x64@1.7.0': - resolution: {integrity: sha512-R/SoR04ySmHPqoIBGC+SjP9zRGjL1fS908mdwBvQ1RfFinKu7a/o/5rxH/vxUUsVQrHCyX+o7YXpfWq9xpvyQA==} + '@rspack/binding-darwin-x64@2.0.0-beta.6': + resolution: {integrity: sha512-Cr4P19anOIaHtK8Z20Hl12PPUcs3LM24ZSQPfs0gPS0etzSOE4JRsqW/79GnnjZd/A+Wola/dZcnMVS44e3c3A==} cpu: [x64] os: [darwin] - '@rspack/binding-linux-arm64-gnu@1.7.0': - resolution: {integrity: sha512-jDCcso++qshu58+Iuo6oiL0XKuX04lDugL0qwrWHW8SS/EjZ2rc1J3yQx+XDW0PCQsfI2c9ji0IOW56PzW1hXQ==} + '@rspack/binding-linux-arm64-gnu@2.0.0-beta.6': + resolution: {integrity: sha512-MgTzspaj3v9/4T3KQ/fRuj+cit3BnEcgFe4OP+BvUWlTQvxlckDWpDymVhPuIqpx7pJvLcXwdz8mQhvZ87AD5g==} cpu: [arm64] os: [linux] + libc: [glibc] - '@rspack/binding-linux-arm64-musl@1.7.0': - resolution: {integrity: sha512-0W49s0SQQhr3hZ8Zd7Auyf2pv4OTBr6wQhgWUQ6XeeMEjB16KpAVypSK5Jpn1ON0v9jAPLdod+a255rz8/f3kg==} + '@rspack/binding-linux-arm64-musl@2.0.0-beta.6': + resolution: {integrity: sha512-5vyjbrj3u8x4Crb77QvFJSZkq7QwOuVJff8oStbS/v7cC+NEAQQYB/6Bl0JwyDFAcMMX8ZRyaDjc1o1qQ0Q31g==} cpu: [arm64] os: [linux] + libc: [musl] - '@rspack/binding-linux-x64-gnu@1.7.0': - resolution: {integrity: sha512-oFjzjTD1MmG0ucAaP0Wyg9eobrsnFwZjEHa7LwyzWDRBeC3GWAF9T04Bqd6Ba6DgASGzU0BjEJcUpjvtXxO95Q==} + '@rspack/binding-linux-x64-gnu@2.0.0-beta.6': + resolution: {integrity: sha512-GmNJgFHoK5LFQ2m96HrXIgf1zZNe+4yaaOD/5qqcI163QXRqRflfZprmdr2L4R6VsU2i+YQ2Ap2s20Y/zSt6RQ==} cpu: [x64] os: [linux] + libc: [glibc] - '@rspack/binding-linux-x64-musl@1.7.0': - resolution: {integrity: sha512-MNGslPLOsurdwOcoo6r0u8mLpw1ADar3hkx67WzwwMqYnem/Ky0aANJC2JvQHPC22mu01gCOukHYyEaUFTxcuw==} + '@rspack/binding-linux-x64-musl@2.0.0-beta.6': + resolution: {integrity: sha512-tI2S3v8yXel5GL3yPnBNnFZ/dye4TyRM2j7mfJ49M6uTWjfRFyAcuxqw7z9Pyvyhsc1AoOnnXejtqqJpZkBQoA==} cpu: [x64] os: [linux] + libc: [musl] - '@rspack/binding-wasm32-wasi@1.7.0': - resolution: {integrity: sha512-eaZzkGpxzVESmaX/UALMiQO+eNppe/i1VWQksGRfdoUu0rILqr/YDjsWFTcpbI9Dt3fg2kshHawBHxfwtxHcZQ==} + '@rspack/binding-wasm32-wasi@2.0.0-beta.6': + resolution: {integrity: sha512-Bv9o1zZIDTOzjbliyAwMOGjsL6wiGIPRttJ9CLsdRoKI5XcMTEFHjwlnm1Zs4/EP+zC+bTgseq1EFngIy+nZRg==} cpu: [wasm32] - '@rspack/binding-win32-arm64-msvc@1.7.0': - resolution: {integrity: sha512-XFg4l7sOhupnpG0soOfzYLeF2cgpSJMenmjmdzd9y06CotTyVId0hNoS7y+A7hEP8XGf3YPbdiUL5UDp6+DRBA==} + '@rspack/binding-win32-arm64-msvc@2.0.0-beta.6': + resolution: {integrity: sha512-R/j0VTVKn3gU4a0xKAXJUX6jzmanHsuBHtLSpgnRqKW/20csFzsnsqY9PxaiAObTHVPMCrNvTG5KXHYIqYgACg==} cpu: [arm64] os: [win32] - '@rspack/binding-win32-ia32-msvc@1.7.0': - resolution: {integrity: sha512-eWt2XV6la/c0IlU/18RlhQsqwHGShSypwA3kt4s/dpfOK0YB1h4f0fYeUZuvj2X0MIoJQGhMofMrgA35/IcAcw==} + '@rspack/binding-win32-ia32-msvc@2.0.0-beta.6': + resolution: {integrity: sha512-v3Gc+gRFTBNLSmyHAgI6mE30W94T0g8jD7S1qamUfX6i50YjDylyiMG1prG/8i/YVNWQynQeQi4Cjfg+Hi7alQ==} cpu: [ia32] os: [win32] - '@rspack/binding-win32-x64-msvc@1.7.0': - resolution: {integrity: sha512-LOL5G8rfbAwlmusx+t98r9QzuGRz+L9Bg+8s5s6K/Qe64iemcNIuxGr5QLVq1jLa0SGNTeog4N21pAzlkWh4jw==} + '@rspack/binding-win32-x64-msvc@2.0.0-beta.6': + resolution: {integrity: sha512-PjaKOG2rQqzOwsmu03EAyTb7oA52CrO1I8JXiBT07adrDysHvKV/Gi+P0XPuDLDMnxNpndoGJMmvfxsymRpwyA==} cpu: [x64] os: [win32] - '@rspack/binding@1.7.0': - resolution: {integrity: sha512-xO+pZKG2dvU9CuRTTi+DcCc4p+CZhBJlvuYikBja/0a62cTntQV2PWV+/xU1a6Vbo89yNz158LR05nvjtKVwTw==} + '@rspack/binding@2.0.0-beta.6': + resolution: {integrity: sha512-oJytPDJT57cz2is0e/e1myWVNxn+ZcII1/fF2Y3TiXVUIihLC/KDm6ISTgaZKr8ZyjTlVIV3V4wSO7IHlYV6aw==} - '@rspack/core@1.7.0': - resolution: {integrity: sha512-uDxPQsPh/+2DnOISuKnUiXZ9M0y2G1BOsI0IesxPJGp42ME2QW7axbJfUqD3bwp4bi3RN2zqh56NgxU/XETQvA==} - engines: {node: '>=18.12.0'} + '@rspack/core@2.0.0-beta.6': + resolution: {integrity: sha512-dvi10ijR9Rr0W75GRFqWvswAEdLBsbXCGhxzm6zXxFNSanNL9s9xPelZ8XfnIU13QZkN2VNHGl9O/8KQEmYdEw==} + engines: {node: ^20.19.0 || >=22.12.0} peerDependencies: + '@module-federation/runtime-tools': ^0.24.1 || ^2.0.0 '@swc/helpers': '>=0.5.1' peerDependenciesMeta: + '@module-federation/runtime-tools': + optional: true '@swc/helpers': optional: true - '@rspack/lite-tapable@1.1.0': - resolution: {integrity: sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==} - - '@swc/helpers@0.5.18': - resolution: {integrity: sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==} + '@swc/helpers@0.5.19': + resolution: {integrity: sha512-QamiFeIK3txNjgUTNppE6MiG3p7TdninpZu0E0PbqVh1a9FNLT2FRhisaa4NcaX52XVhA5l7Pk58Ft7Sqi/2sA==} '@tybys/wasm-util@0.10.1': resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} - '@types/node@24.10.4': - resolution: {integrity: sha512-vnDVpYPMzs4wunl27jHrfmwojOGKya0xyM3sH+UE5iv5uPS6vX7UIoh6m+vQc5LGBq52HBKPIn/zcSZVzeDEZg==} + '@types/node@24.12.0': + resolution: {integrity: sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==} core-js@3.47.0: resolution: {integrity: sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg==} - jiti@2.6.1: - resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} - hasBin: true - nano-staged@0.9.0: resolution: {integrity: sha512-0JfyX4i0Vp5HhC9RDtJ1kp7psz8CFuS3Gya3Z6WZv//QCwA9dPzi1S803VdR0c0P6R7sSvweZ5mSJmYQ/N+loQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -285,12 +280,12 @@ packages: picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - rsbuild-plugin-dts@0.19.1: - resolution: {integrity: sha512-LaK1RAvHPrb/ulfwvZckeui5qkQSKxf1RD7rzBTgK2UY8fMTQgsxsvun/XzfzAOKqdagzIohhnmNd5+j2Niqww==} - engines: {node: '>=18.12.0'} + rsbuild-plugin-dts@0.20.0: + resolution: {integrity: sha512-CnTJTB59zzQFjPVEjpOaaEw5BeK/eTY6kwt4l5Lr9d3HQk3VRDSKfLWY/hpeZMbZzpCk2TqLrqIhS6a+jg7k7g==} + engines: {node: ^20.19.0 || >=22.12.0} peerDependencies: '@microsoft/api-extractor': ^7 - '@rsbuild/core': 1.x + '@rsbuild/core': ^1.0.0 || ^2.0.0-0 '@typescript/native-preview': 7.x typescript: ^5 peerDependenciesMeta: @@ -308,16 +303,16 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + typescript@6.0.2: + resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==} engines: {node: '>=14.17'} hasBin: true undici-types@7.16.0: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - uuid@11.1.0: - resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==} + uuid@13.0.0: + resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==} hasBin: true snapshots: @@ -361,39 +356,39 @@ snapshots: '@ast-grep/napi-win32-ia32-msvc': 0.37.0 '@ast-grep/napi-win32-x64-msvc': 0.37.0 - '@biomejs/biome@2.3.10': + '@biomejs/biome@2.4.8': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.3.10 - '@biomejs/cli-darwin-x64': 2.3.10 - '@biomejs/cli-linux-arm64': 2.3.10 - '@biomejs/cli-linux-arm64-musl': 2.3.10 - '@biomejs/cli-linux-x64': 2.3.10 - '@biomejs/cli-linux-x64-musl': 2.3.10 - '@biomejs/cli-win32-arm64': 2.3.10 - '@biomejs/cli-win32-x64': 2.3.10 + '@biomejs/cli-darwin-arm64': 2.4.8 + '@biomejs/cli-darwin-x64': 2.4.8 + '@biomejs/cli-linux-arm64': 2.4.8 + '@biomejs/cli-linux-arm64-musl': 2.4.8 + '@biomejs/cli-linux-x64': 2.4.8 + '@biomejs/cli-linux-x64-musl': 2.4.8 + '@biomejs/cli-win32-arm64': 2.4.8 + '@biomejs/cli-win32-x64': 2.4.8 - '@biomejs/cli-darwin-arm64@2.3.10': + '@biomejs/cli-darwin-arm64@2.4.8': optional: true - '@biomejs/cli-darwin-x64@2.3.10': + '@biomejs/cli-darwin-x64@2.4.8': optional: true - '@biomejs/cli-linux-arm64-musl@2.3.10': + '@biomejs/cli-linux-arm64-musl@2.4.8': optional: true - '@biomejs/cli-linux-arm64@2.3.10': + '@biomejs/cli-linux-arm64@2.4.8': optional: true - '@biomejs/cli-linux-x64-musl@2.3.10': + '@biomejs/cli-linux-x64-musl@2.4.8': optional: true - '@biomejs/cli-linux-x64@2.3.10': + '@biomejs/cli-linux-x64@2.4.8': optional: true - '@biomejs/cli-win32-arm64@2.3.10': + '@biomejs/cli-win32-arm64@2.4.8': optional: true - '@biomejs/cli-win32-x64@2.3.10': + '@biomejs/cli-win32-x64@2.4.8': optional: true '@emnapi/core@1.5.0': @@ -412,31 +407,6 @@ snapshots: tslib: 2.8.1 optional: true - '@module-federation/error-codes@0.22.0': {} - - '@module-federation/runtime-core@0.22.0': - dependencies: - '@module-federation/error-codes': 0.22.0 - '@module-federation/sdk': 0.22.0 - - '@module-federation/runtime-tools@0.22.0': - dependencies: - '@module-federation/runtime': 0.22.0 - '@module-federation/webpack-bundler-runtime': 0.22.0 - - '@module-federation/runtime@0.22.0': - dependencies: - '@module-federation/error-codes': 0.22.0 - '@module-federation/runtime-core': 0.22.0 - '@module-federation/sdk': 0.22.0 - - '@module-federation/sdk@0.22.0': {} - - '@module-federation/webpack-bundler-runtime@0.22.0': - dependencies: - '@module-federation/runtime': 0.22.0 - '@module-federation/sdk': 0.22.0 - '@napi-rs/wasm-runtime@1.0.7': dependencies: '@emnapi/core': 1.5.0 @@ -444,79 +414,78 @@ snapshots: '@tybys/wasm-util': 0.10.1 optional: true - '@rsbuild/core@1.7.1': + '@rsbuild/core@2.0.0-beta.8(core-js@3.47.0)': dependencies: - '@rspack/core': 1.7.0(@swc/helpers@0.5.18) - '@rspack/lite-tapable': 1.1.0 - '@swc/helpers': 0.5.18 + '@rspack/core': 2.0.0-beta.6(@swc/helpers@0.5.19) + '@swc/helpers': 0.5.19 + optionalDependencies: core-js: 3.47.0 - jiti: 2.6.1 + transitivePeerDependencies: + - '@module-federation/runtime-tools' - '@rslib/core@0.19.1(typescript@5.9.3)': + '@rslib/core@0.20.0(core-js@3.47.0)(typescript@6.0.2)': dependencies: - '@rsbuild/core': 1.7.1 - rsbuild-plugin-dts: 0.19.1(@rsbuild/core@1.7.1)(typescript@5.9.3) + '@rsbuild/core': 2.0.0-beta.8(core-js@3.47.0) + rsbuild-plugin-dts: 0.20.0(@rsbuild/core@2.0.0-beta.8(core-js@3.47.0))(typescript@6.0.2) optionalDependencies: - typescript: 5.9.3 + typescript: 6.0.2 transitivePeerDependencies: + - '@module-federation/runtime-tools' - '@typescript/native-preview' + - core-js - '@rspack/binding-darwin-arm64@1.7.0': + '@rspack/binding-darwin-arm64@2.0.0-beta.6': optional: true - '@rspack/binding-darwin-x64@1.7.0': + '@rspack/binding-darwin-x64@2.0.0-beta.6': optional: true - '@rspack/binding-linux-arm64-gnu@1.7.0': + '@rspack/binding-linux-arm64-gnu@2.0.0-beta.6': optional: true - '@rspack/binding-linux-arm64-musl@1.7.0': + '@rspack/binding-linux-arm64-musl@2.0.0-beta.6': optional: true - '@rspack/binding-linux-x64-gnu@1.7.0': + '@rspack/binding-linux-x64-gnu@2.0.0-beta.6': optional: true - '@rspack/binding-linux-x64-musl@1.7.0': + '@rspack/binding-linux-x64-musl@2.0.0-beta.6': optional: true - '@rspack/binding-wasm32-wasi@1.7.0': + '@rspack/binding-wasm32-wasi@2.0.0-beta.6': dependencies: '@napi-rs/wasm-runtime': 1.0.7 optional: true - '@rspack/binding-win32-arm64-msvc@1.7.0': + '@rspack/binding-win32-arm64-msvc@2.0.0-beta.6': optional: true - '@rspack/binding-win32-ia32-msvc@1.7.0': + '@rspack/binding-win32-ia32-msvc@2.0.0-beta.6': optional: true - '@rspack/binding-win32-x64-msvc@1.7.0': + '@rspack/binding-win32-x64-msvc@2.0.0-beta.6': optional: true - '@rspack/binding@1.7.0': + '@rspack/binding@2.0.0-beta.6': optionalDependencies: - '@rspack/binding-darwin-arm64': 1.7.0 - '@rspack/binding-darwin-x64': 1.7.0 - '@rspack/binding-linux-arm64-gnu': 1.7.0 - '@rspack/binding-linux-arm64-musl': 1.7.0 - '@rspack/binding-linux-x64-gnu': 1.7.0 - '@rspack/binding-linux-x64-musl': 1.7.0 - '@rspack/binding-wasm32-wasi': 1.7.0 - '@rspack/binding-win32-arm64-msvc': 1.7.0 - '@rspack/binding-win32-ia32-msvc': 1.7.0 - '@rspack/binding-win32-x64-msvc': 1.7.0 - - '@rspack/core@1.7.0(@swc/helpers@0.5.18)': + '@rspack/binding-darwin-arm64': 2.0.0-beta.6 + '@rspack/binding-darwin-x64': 2.0.0-beta.6 + '@rspack/binding-linux-arm64-gnu': 2.0.0-beta.6 + '@rspack/binding-linux-arm64-musl': 2.0.0-beta.6 + '@rspack/binding-linux-x64-gnu': 2.0.0-beta.6 + '@rspack/binding-linux-x64-musl': 2.0.0-beta.6 + '@rspack/binding-wasm32-wasi': 2.0.0-beta.6 + '@rspack/binding-win32-arm64-msvc': 2.0.0-beta.6 + '@rspack/binding-win32-ia32-msvc': 2.0.0-beta.6 + '@rspack/binding-win32-x64-msvc': 2.0.0-beta.6 + + '@rspack/core@2.0.0-beta.6(@swc/helpers@0.5.19)': dependencies: - '@module-federation/runtime-tools': 0.22.0 - '@rspack/binding': 1.7.0 - '@rspack/lite-tapable': 1.1.0 + '@rspack/binding': 2.0.0-beta.6 optionalDependencies: - '@swc/helpers': 0.5.18 - - '@rspack/lite-tapable@1.1.0': {} + '@swc/helpers': 0.5.19 - '@swc/helpers@0.5.18': + '@swc/helpers@0.5.19': dependencies: tslib: 2.8.1 @@ -525,13 +494,12 @@ snapshots: tslib: 2.8.1 optional: true - '@types/node@24.10.4': + '@types/node@24.12.0': dependencies: undici-types: 7.16.0 - core-js@3.47.0: {} - - jiti@2.6.1: {} + core-js@3.47.0: + optional: true nano-staged@0.9.0: dependencies: @@ -539,19 +507,19 @@ snapshots: picocolors@1.1.1: {} - rsbuild-plugin-dts@0.19.1(@rsbuild/core@1.7.1)(typescript@5.9.3): + rsbuild-plugin-dts@0.20.0(@rsbuild/core@2.0.0-beta.8(core-js@3.47.0))(typescript@6.0.2): dependencies: '@ast-grep/napi': 0.37.0 - '@rsbuild/core': 1.7.1 + '@rsbuild/core': 2.0.0-beta.8(core-js@3.47.0) optionalDependencies: - typescript: 5.9.3 + typescript: 6.0.2 simple-git-hooks@2.13.1: {} tslib@2.8.1: {} - typescript@5.9.3: {} + typescript@6.0.2: {} undici-types@7.16.0: {} - uuid@11.1.0: {} + uuid@13.0.0: {} diff --git a/rslib.config.ts b/rslib.config.ts index 3542eef..6c8c79f 100644 --- a/rslib.config.ts +++ b/rslib.config.ts @@ -1,8 +1,5 @@ import { defineConfig } from '@rslib/core'; export default defineConfig({ - lib: [ - { format: 'esm', syntax: 'es2021', dts: true }, - { format: 'cjs', syntax: 'es2021' }, - ], + lib: [{ syntax: 'es2023', dts: true }], }); diff --git a/src/index.ts b/src/index.ts index 0e37b3d..1b4c2b2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import fs from 'node:fs'; import path from 'node:path'; -import { logger, type RsbuildPlugin } from '@rsbuild/core'; +import type { RsbuildPlugin } from '@rsbuild/core'; import { v4, validate } from 'uuid'; interface DevToolsJSON { @@ -52,7 +52,7 @@ export const pluginDevtoolsJson = ( const uuid = v4(); fs.writeFileSync(uuidPath, uuid, { encoding: 'utf-8' }); - logger.debug( + api.logger.debug( `[rsbuild-plugin-devtools-json] Generated UUID '${uuid}' for DevTools project settings.`, ); return uuid; diff --git a/tsconfig.json b/tsconfig.json index 8c5c4d6..acd230a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,13 @@ { "compilerOptions": { - "lib": ["ES2021"], - "module": "ESNext", + "rootDir": "src", + "lib": ["ES2023"], + "module": "nodenext", + "moduleResolution": "nodenext", "noEmit": true, - "strict": true, "skipLibCheck": true, "isolatedModules": true, - "resolveJsonModule": true, - "moduleResolution": "bundler", - "useDefineForClassFields": true, - "allowImportingTsExtensions": true + "useDefineForClassFields": true }, "include": ["src"] }