1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-12-22 01:13:23 +01:00

Dependency updates (#197)

* switch to Node.js v20

* run test on windows too

* bump packages

* revert windows test runs

* readme update

* remove astro from dependencies

* typing update
This commit is contained in:
Matthias Kretschmann 2024-12-19 19:52:13 +00:00 committed by GitHub
parent 574d3ae272
commit 052440f945
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 5161 additions and 2790 deletions

View File

@ -33,7 +33,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: ['18', '20']
node: ['20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@ -43,7 +43,7 @@ jobs:
- run: npm ci
- run: npm test
- uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest' && matrix.node == '18'
if: matrix.os == 'ubuntu-latest' && matrix.node == '20'
with:
name: coverage-${{ matrix.os }}-${{ matrix.node }}
path: coverage/
@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['18', '20']
node: ['20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@ -72,7 +72,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: coverage-ubuntu-latest-18
name: coverage-ubuntu-latest-20
- uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

2
.nvmrc
View File

@ -1 +1 @@
18.18
20

View File

@ -34,7 +34,7 @@
The plugin is designed to work without configuration, especially if your project aligns with Astro's default settings.
- Astro v3 (v2 probably works too, but is not tested)
- Astro v3+ (v2 probably works too, but is not tested)
- Markdown files should be in a directory (default is `src/pages/`)
- Slugs are extracted either from the frontmatter or the file/folder path
@ -200,7 +200,7 @@ See [CHANGELOG.md](CHANGELOG.md).
The MIT License
Copyright (c) 2023 Matthias Kretschmann
Copyright (c) 2024 Matthias Kretschmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

7892
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,26 +24,29 @@
},
"files": ["./dist"],
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@biomejs/biome": "^1.9.4",
"@kremalicious/config": "^1.0.2",
"@types/node": "^22.2.0",
"@vitest/coverage-v8": "^2.0.5",
"auto-changelog": "^2.4.0",
"husky": "^9.1.4",
"@types/node": "^22.10.2",
"@vitest/coverage-v8": "^2.1.8",
"astro": "^5.1.0",
"auto-changelog": "^2.5.0",
"husky": "^9.1.7",
"npm-run-all": "^4.1.5",
"release-it": "^17.6.0",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vitest": "^2.0.5"
"release-it": "^17.10.0",
"typescript": "^5.7.2",
"vite": "^6.0.4",
"vitest": "^2.1.8"
},
"dependencies": {
"astro": ">= 3",
"globby": "^14.0.2",
"gray-matter": "^4.0.3"
},
"peerDependencies": {
"astro": ">=3.0.0"
},
"engines": {
"node": ">=18.18.0",
"npm": ">=6.14.0"
"node": ">=20",
"astro": ">=3.0.0"
},
"release-it": {
"hooks": {

View File

@ -11,7 +11,7 @@ export async function getRedirects(
files: string[],
srcDir: string,
getSlug: (filePath: string) => string,
command: 'dev' | 'build' | 'preview',
command: 'dev' | 'build' | 'preview' | 'sync',
logger: { warn: (msg: string) => void }
) {
let redirects: Redirects = {}