diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1186c52..d8f7161 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,33 +15,20 @@ jobs: strategy: matrix: - node_version: [14, 16, 18, 20] + node_version: [18, 20, 22] os: [ubuntu-latest, windows-latest, macos-latest] include: # Active LTS + other OS - os: macos-latest - node_version: 18 + node_version: 22 - os: windows-latest - node_version: 18 + node_version: 22 fail-fast: false steps: - uses: actions/checkout@v4 - - name: Install pnpm (node 14, pnpm 7) - if: matrix.node_version == 14 - uses: pnpm/action-setup@v3 - with: - version: 7 - - - name: Install pnpm (node 16, pnpm 8) - if: matrix.node_version == 16 - uses: pnpm/action-setup@v3 - with: - version: 8 - - name: Install pnpm - if: matrix.node_version > 16 uses: pnpm/action-setup@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -70,10 +57,10 @@ jobs: - uses: pnpm/action-setup@v4 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Install @@ -92,7 +79,7 @@ jobs: lint: runs-on: ubuntu-latest - name: 'Lint: node-20, ubuntu-latest' + name: 'Lint: node-22, ubuntu-latest' steps: - uses: actions/checkout@v4 @@ -101,10 +88,10 @@ jobs: - uses: pnpm/action-setup@v4 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Install diff --git a/jsr.json b/jsr.json index 79667c2..ee0f78a 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@applelo/unplugin-inject-preload", - "version": "3.0.0", + "version": "4.0.0", "exports": { ".": "./src/index.ts", "./vite": "./src/vite.ts", diff --git a/package.json b/package.json index 033266e..2628df5 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "unplugin-inject-preload", "type": "module", - "version": "3.0.0", - "packageManager": "pnpm@9.9.0", + "version": "4.0.0", + "packageManager": "pnpm@9.15.0", "description": "Inject for Webpack/ViteJS", "license": "MIT", "homepage": "https://github.com/applelo/unplugin-inject-preload#readme", @@ -67,7 +67,7 @@ "dist" ], "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": "^18.0.0 || >=20.0.0" }, "scripts": { "build": "tsup", @@ -89,28 +89,28 @@ }, "dependencies": { "mime-types": "^2.1.35", - "unplugin": "^1.12.2", + "unplugin": "^2.1.0", "webpack-sources": "^3.2.3" }, "devDependencies": { - "@antfu/eslint-config": "3.0.0", - "@rspack/core": "^1.0.0", + "@antfu/eslint-config": "3.12.0", + "@rspack/core": "^1.1.6", "@types/mime-types": "^2.1.4", - "@types/node": "^22.5.1", + "@types/node": "^22.10.2", "@types/webpack-sources": "^3.2.3", - "@vitest/coverage-v8": "^2.0.5", + "@vitest/coverage-v8": "^2.1.8", "css-loader": "^7.1.2", - "esno": "^4.7.0", + "esno": "^4.8.0", "fast-glob": "^3.3.2", - "html-webpack-plugin": "^5.6.0", - "mini-css-extract-plugin": "^2.9.1", - "prettier": "^3.3.3", + "html-webpack-plugin": "^5.6.3", + "mini-css-extract-plugin": "^2.9.2", + "prettier": "^3.4.2", "ts-loader": "^9.5.1", - "tsup": "^8.2.4", - "tsx": "^4.19.0", - "typescript": "^5.5.4", - "vite": "^5.4.2", - "vitest": "^2.0.5", - "webpack": "^5.94.0" + "tsup": "^8.3.5", + "tsx": "^4.19.2", + "typescript": "^5.7.2", + "vite": "^6.0.3", + "vitest": "^2.1.8", + "webpack": "^5.97.1" } } diff --git a/playground/rspack/package.json b/playground/rspack/package.json index e4ac3ba..68b42fd 100644 --- a/playground/rspack/package.json +++ b/playground/rspack/package.json @@ -5,7 +5,7 @@ "build": "rspack build" }, "devDependencies": { - "@rspack/cli": "1.0.0", + "@rspack/cli": "1.1.6", "unplugin-inject-preload": "workspace:*" } } diff --git a/playground/vitejs/index.html b/playground/vitejs/index.html index 372f29c..7658800 100644 --- a/playground/vitejs/index.html +++ b/playground/vitejs/index.html @@ -8,7 +8,17 @@