Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Apr 28, 2024
1 parent 2ab3629 commit 2e3af4e
Show file tree
Hide file tree
Showing 23 changed files with 4,324 additions and 3,039 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .moon/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
node:
packageManager: 'pnpm'
pnpm:
version: 8.15.6
version: 9.0.6
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.12.2
4 changes: 2 additions & 2 deletions @kindspells/astro-shield/e2e/e2e.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/**
Expand Down
2 changes: 1 addition & 1 deletion @kindspells/astro-shield/e2e/fixtures/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/**
Expand Down
2 changes: 1 addition & 1 deletion @kindspells/astro-shield/e2e/fixtures/hybrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/**
Expand Down
2 changes: 1 addition & 1 deletion @kindspells/astro-shield/e2e/fixtures/hybrid2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/**
Expand Down
2 changes: 1 addition & 1 deletion @kindspells/astro-shield/e2e/fixtures/hybrid3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion @kindspells/astro-shield/e2e/fixtures/static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "MIT",
"dependencies": {
"astro": "^4.6.1"
"astro": "^4.7.0"
},
"devDependencies": {
"@kindspells/astro-shield": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions @kindspells/astro-shield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion @kindspells/astro-shield/src/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions @kindspells/astro-shield/tests/core.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -624,7 +624,7 @@ describe('updateStaticPageSriHashes', () => {
<title>My Test Page</title>
</head>
<body>
<script type="module" src="/core.mjs" integrity="sha256-ODt0oYHrqRKob3NWw5w8nWKJX91A+cCIeNQEq1k453k="></script>
<script type="module" src="/core.mjs" integrity="sha256-Jk0Am/Oej2rKqaudL2szuzUJxzEkOAvI/MtHC67vq/c="></script>
</body>
</html>`

Expand All @@ -641,7 +641,7 @@ describe('updateStaticPageSriHashes', () => {
expect(h.extScriptHashes.size).toBe(1)
expect(
h.extScriptHashes.has(
'sha256-ODt0oYHrqRKob3NWw5w8nWKJX91A+cCIeNQEq1k453k=',
'sha256-Jk0Am/Oej2rKqaudL2szuzUJxzEkOAvI/MtHC67vq/c=',
),
).toBe(true)
expect(h.inlineScriptHashes.size).toBe(0)
Expand Down
30 changes: 13 additions & 17 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"files": {
"include": ["*.json", "*.js", "*.mjs", "*.mts", "*.d.ts"],
"ignore": [
"coverage-*/**/*",
"dist/**/*",
"node_modules/**/*",
".sst/**/*"
],
"include": ["*.json", "*.js", "*.mjs", "*.mts", "*.d.ts"]
".sst/**/*",
".astro/**/*"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 80,
"lineEnding": "lf",
"ignore": [
"coverage-*/**/*",
"dist/**/*",
"node_modules/**/*",
".sst/**/*"
],
"include": ["*.json", "*.js", "*.mjs", "*.mts", "*.d.ts"]
"lineEnding": "lf"
},
"javascript": {
"formatter": {
Expand Down
4 changes: 2 additions & 2 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* SPDX-License-Identifier: MIT
*/

import { defineConfig, passthroughImageService } from 'astro/config'
import starlight from '@astrojs/starlight'
import aws from 'astro-sst'
import { shield } from '@kindspells/astro-shield'
import aws from 'astro-sst'
import { defineConfig, passthroughImageService } from 'astro/config'

export default defineConfig({
output: 'static',
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"astro": "astro"
},
"dependencies": {
"astro-sst": "^2.41.4",
"astro-sst": "^2.41.5",
"sharp": "0.32.6",
"sst": "^3.0.13"
},
"devDependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/starlight": "^0.21.5",
"@kindspells/astro-shield": "workspace:^",
"astro": "^4.6.1",
"astro": "^4.7.0",
"typescript": "^5.4.5"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
}
],
"devDependencies": {
"@biomejs/biome": "^1.6.4",
"@moonrepo/cli": "^1.23.4",
"@vitest/coverage-v8": "^1.5.0",
"@biomejs/biome": "^1.7.1",
"@moonrepo/cli": "^1.24.2",
"@vitest/coverage-v8": "^1.5.2",
"publint": "^0.2.7",
"vitest": "^1.5.0"
"vitest": "^1.5.2"
},
"engines": {
"node": ">= 18.0.0"
},
"packageManager": "pnpm@8.15.6",
"packageManager": "pnpm@9.0.6",
"scripts": {
"format": "biome format --write .",
"install-githooks": "if [ -d .git ]; then git config core.hooksPath .hooks; fi"
Expand Down
Loading

0 comments on commit 2e3af4e

Please sign in to comment.