diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml index 944e584..faa7a90 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_publish.yml @@ -25,7 +25,7 @@ jobs: - name: Install PNPM # v3.0.0 uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d with: - version: '8.15.6' + version: '9.0.6' - name: Use Node.js ${{ matrix.node-version }} # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a103140..06be71f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,7 @@ jobs: - name: Install PNPM # v3.0.0 uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d with: - version: '8.15.6' + version: '9.0.6' - name: Use Node.js ${{ matrix.node-version }} # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 with: diff --git a/.moon/toolchain.yml b/.moon/toolchain.yml index 3fbc98b..f1e92b1 100644 --- a/.moon/toolchain.yml +++ b/.moon/toolchain.yml @@ -5,4 +5,4 @@ node: packageManager: 'pnpm' pnpm: - version: 8.15.6 + version: 9.0.6 diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..8783404 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.12.2 diff --git a/@kindspells/astro-shield/e2e/e2e.test.mts b/@kindspells/astro-shield/e2e/e2e.test.mts index 82084fe..0536650 100644 --- a/@kindspells/astro-shield/e2e/e2e.test.mts +++ b/@kindspells/astro-shield/e2e/e2e.test.mts @@ -4,18 +4,18 @@ * SPDX-License-Identifier: MIT */ +import { execFile as _execFile } from 'node:child_process' import { readFile } from 'node:fs/promises' import { dirname, resolve } from 'node:path' -import { execFile as _execFile } from 'node:child_process' import { fileURLToPath } from 'node:url' import { promisify } from 'node:util' import type { PreviewServer } from 'astro' import { preview } from 'astro' import { + assert, afterAll, afterEach, - assert, beforeAll, beforeEach, describe, diff --git a/@kindspells/astro-shield/e2e/fixtures/dynamic/astro.config.mjs b/@kindspells/astro-shield/e2e/fixtures/dynamic/astro.config.mjs index 7f9d847..d8fdb5d 100644 --- a/@kindspells/astro-shield/e2e/fixtures/dynamic/astro.config.mjs +++ b/@kindspells/astro-shield/e2e/fixtures/dynamic/astro.config.mjs @@ -4,8 +4,8 @@ * SPDX-License-Identifier: MIT */ -import { shield } from '@kindspells/astro-shield' import node from '@astrojs/node' +import { shield } from '@kindspells/astro-shield' import { defineConfig } from 'astro/config' /** diff --git a/@kindspells/astro-shield/e2e/fixtures/dynamic/package.json b/@kindspells/astro-shield/e2e/fixtures/dynamic/package.json index e67a169..8a3b9fb 100644 --- a/@kindspells/astro-shield/e2e/fixtures/dynamic/package.json +++ b/@kindspells/astro-shield/e2e/fixtures/dynamic/package.json @@ -11,7 +11,7 @@ "license": "MIT", "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.6.1" + "astro": "^4.7.0" }, "devDependencies": { "@kindspells/astro-shield": "workspace:*" diff --git a/@kindspells/astro-shield/e2e/fixtures/hybrid/astro.config.mjs b/@kindspells/astro-shield/e2e/fixtures/hybrid/astro.config.mjs index a48bc36..1f85102 100644 --- a/@kindspells/astro-shield/e2e/fixtures/hybrid/astro.config.mjs +++ b/@kindspells/astro-shield/e2e/fixtures/hybrid/astro.config.mjs @@ -5,8 +5,8 @@ */ import { resolve } from 'node:path' -import { shield } from '@kindspells/astro-shield' import node from '@astrojs/node' +import { shield } from '@kindspells/astro-shield' import { defineConfig } from 'astro/config' /** diff --git a/@kindspells/astro-shield/e2e/fixtures/hybrid/package.json b/@kindspells/astro-shield/e2e/fixtures/hybrid/package.json index d87d81d..2979f79 100644 --- a/@kindspells/astro-shield/e2e/fixtures/hybrid/package.json +++ b/@kindspells/astro-shield/e2e/fixtures/hybrid/package.json @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.6.1" + "astro": "^4.7.0" }, "devDependencies": { "@kindspells/astro-shield": "workspace:*" diff --git a/@kindspells/astro-shield/e2e/fixtures/hybrid2/astro.config.mjs b/@kindspells/astro-shield/e2e/fixtures/hybrid2/astro.config.mjs index 7528ae0..178eb14 100644 --- a/@kindspells/astro-shield/e2e/fixtures/hybrid2/astro.config.mjs +++ b/@kindspells/astro-shield/e2e/fixtures/hybrid2/astro.config.mjs @@ -5,8 +5,8 @@ */ import { resolve } from 'node:path' -import { shield } from '@kindspells/astro-shield' import node from '@astrojs/node' +import { shield } from '@kindspells/astro-shield' import { defineConfig } from 'astro/config' /** diff --git a/@kindspells/astro-shield/e2e/fixtures/hybrid2/package.json b/@kindspells/astro-shield/e2e/fixtures/hybrid2/package.json index e1bfead..0e475f0 100644 --- a/@kindspells/astro-shield/e2e/fixtures/hybrid2/package.json +++ b/@kindspells/astro-shield/e2e/fixtures/hybrid2/package.json @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.6.1" + "astro": "^4.7.0" }, "devDependencies": { "@kindspells/astro-shield": "workspace:*" diff --git a/@kindspells/astro-shield/e2e/fixtures/hybrid3/astro.config.mjs b/@kindspells/astro-shield/e2e/fixtures/hybrid3/astro.config.mjs index 8ba141b..9779751 100644 --- a/@kindspells/astro-shield/e2e/fixtures/hybrid3/astro.config.mjs +++ b/@kindspells/astro-shield/e2e/fixtures/hybrid3/astro.config.mjs @@ -5,8 +5,8 @@ */ import { resolve } from 'node:path' -import { shield } from '@kindspells/astro-shield' import node from '@astrojs/node' +import { shield } from '@kindspells/astro-shield' import { defineConfig } from 'astro/config' /** diff --git a/@kindspells/astro-shield/e2e/fixtures/hybrid3/package.json b/@kindspells/astro-shield/e2e/fixtures/hybrid3/package.json index 1ccacce..87e505c 100644 --- a/@kindspells/astro-shield/e2e/fixtures/hybrid3/package.json +++ b/@kindspells/astro-shield/e2e/fixtures/hybrid3/package.json @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.6.1" + "astro": "^4.7.0" }, "devDependencies": { "@kindspells/astro-shield": "workspace:*" diff --git a/@kindspells/astro-shield/e2e/fixtures/static/astro.config.mjs b/@kindspells/astro-shield/e2e/fixtures/static/astro.config.mjs index e7ea4bd..ea14434 100644 --- a/@kindspells/astro-shield/e2e/fixtures/static/astro.config.mjs +++ b/@kindspells/astro-shield/e2e/fixtures/static/astro.config.mjs @@ -4,8 +4,8 @@ * SPDX-License-Identifier: MIT */ -import { env } from 'node:process' import { resolve } from 'node:path' +import { env } from 'node:process' import { shield } from '@kindspells/astro-shield' import { defineConfig } from 'astro/config' diff --git a/@kindspells/astro-shield/e2e/fixtures/static/package.json b/@kindspells/astro-shield/e2e/fixtures/static/package.json index 5e78055..505c217 100644 --- a/@kindspells/astro-shield/e2e/fixtures/static/package.json +++ b/@kindspells/astro-shield/e2e/fixtures/static/package.json @@ -8,7 +8,7 @@ }, "license": "MIT", "dependencies": { - "astro": "^4.6.1" + "astro": "^4.7.0" }, "devDependencies": { "@kindspells/astro-shield": "workspace:*" diff --git a/@kindspells/astro-shield/package.json b/@kindspells/astro-shield/package.json index e6b7ace..fe6c5dd 100644 --- a/@kindspells/astro-shield/package.json +++ b/@kindspells/astro-shield/package.json @@ -60,9 +60,9 @@ }, "devDependencies": { "@types/node": "^20.12.7", - "astro": "^4.6.1", + "astro": "^4.7.0", "typescript": "^5.4.5", - "vite": "^5.2.8" + "vite": "^5.2.10" }, "repository": { "type": "git", diff --git a/@kindspells/astro-shield/src/core.mjs b/@kindspells/astro-shield/src/core.mjs index d9b105c..6458da5 100644 --- a/@kindspells/astro-shield/src/core.mjs +++ b/@kindspells/astro-shield/src/core.mjs @@ -6,7 +6,7 @@ import { createHash } from 'node:crypto' import { mkdir, readFile, writeFile } from 'node:fs/promises' -import { dirname, extname, resolve, relative } from 'node:path' +import { dirname, extname, relative, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { doesFileExist, scanDirectory } from './fs.mjs' diff --git a/@kindspells/astro-shield/tests/core.test.mts b/@kindspells/astro-shield/tests/core.test.mts index 694d951..729bf3d 100644 --- a/@kindspells/astro-shield/tests/core.test.mts +++ b/@kindspells/astro-shield/tests/core.test.mts @@ -4,8 +4,8 @@ * SPDX-License-Identifier: MIT */ -import { resolve } from 'node:path' import { readdir, rm } from 'node:fs/promises' +import { resolve } from 'node:path' import { assert, beforeEach, describe, expect, it } from 'vitest' import { @@ -624,7 +624,7 @@ describe('updateStaticPageSriHashes', () => {