build: bump deps

This commit is contained in:
Jozef Steinhübl 2024-03-07 11:21:37 +01:00
parent 850b41c34d
commit b5cb879f48
No known key found for this signature in database
GPG key ID: E944BC293F5FF7E7
7 changed files with 17862 additions and 2002 deletions

16129
.astro/icon.d.ts vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -13,23 +13,23 @@ import preact from "@astrojs/preact";
// https://astro.build/config // https://astro.build/config
import robotsTxt from "astro-robots-txt"; import robotsTxt from "astro-robots-txt";
// https://astro.build/config
import icon from "astro-icon";
import minify from "./astro-integrations/minify"; import minify from "./astro-integrations/minify";
import { dirname, resolve } from "node:path"; import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url"; import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url)); const __dirname = dirname(fileURLToPath(import.meta.url));
// https://astro.build/config
// https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://xhyrom.dev/", site: "https://xhyrom.dev/",
integrations: [ integrations: [
tailwind(), tailwind(),
sitemap(), sitemap(),
compress({ compress({
svg: false, SVG: false,
html: false, HTML: false,
}), }),
robotsTxt({ robotsTxt({
policy: [ policy: [
@ -41,6 +41,7 @@ export default defineConfig({
}), }),
minify(), minify(),
preact(), preact(),
icon(),
], ],
vite: { vite: {
resolve: { resolve: {

View file

@ -11,31 +11,33 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/preact": "^3.0.1", "@astrojs/preact": "^3.1.1",
"@astrojs/prefetch": "^0.4.1", "@astrojs/prefetch": "^0.4.1",
"@astrojs/sitemap": "^3.0.3", "@astrojs/sitemap": "^3.1.1",
"@astrojs/tailwind": "^5.0.2", "@astrojs/tailwind": "^5.1.0",
"@tailwindcss/typography": "^0.5.10", "@tailwindcss/typography": "^0.5.10",
"astro": "^3.6.0", "astro": "^4.4.13",
"astro-compress": "^2.2.3", "astro-compress": "^2.2.11",
"astro-icon": "^0.8.1", "astro-icon": "^1.1.0",
"astro-robots-txt": "^1.0.0", "astro-robots-txt": "^1.0.0",
"astro-tooltips": "^0.6.2", "astro-tooltips": "^0.6.2",
"fireworks-js": "^2.10.7", "fireworks-js": "^2.10.7",
"html-minifier": "^4.0.0", "html-minifier": "^4.0.0",
"preact": "^10.19.2", "preact": "^10.19.6",
"sharp": "^0.32.6", "sharp": "^0.33.2",
"tailwindcss": "^3.3.5" "tailwindcss": "^3.4.1"
}, },
"devDependencies": { "devDependencies": {
"@iconify-json/devicon": "^1.1.35",
"@iconify-json/file-icons": "^1.1.8",
"@iconify-json/logos": "^1.1.42",
"@iconify-json/mdi": "^1.1.64",
"@iconify-json/simple-icons": "^1.1.94",
"@iconify-json/skill-icons": "^1.1.8",
"@iconify-json/vscode-icons": "^1.1.33",
"@types/html-minifier": "^4.0.5", "@types/html-minifier": "^4.0.5",
"prettier": "3.1.0", "prettier": "3.2.5",
"prettier-plugin-astro": "^0.12.2", "prettier-plugin-astro": "^0.13.0",
"prettier-plugin-tailwindcss": "^0.5.7" "prettier-plugin-tailwindcss": "^0.5.12"
},
"pnpm": {
"patchedDependencies": {
"astro-icon@0.8.1": "patches/astro-icon@0.8.1.patch"
}
} }
} }

View file

@ -1,17 +0,0 @@
diff --git a/lib/resolver.ts b/lib/resolver.ts
index 3845a6542c924397a7c2e2daf0a78cdb243ec603..0a02155ecf9b7f208432eb7e7c0a1108de502786 100644
--- a/lib/resolver.ts
+++ b/lib/resolver.ts
@@ -1,10 +1,10 @@
-const baseURL = "https://api.astroicon.dev/v1/";
+const baseURL = "https://api.iconify.design/";
const requests = new Map();
const fetchCache = new Map();
// Default resolver fetches icons from `api.astroicon.dev`
export default async function get(pack: string, name: string) {
- const url = new URL(`./${pack}/${name}`, baseURL).toString();
+ const url = new URL(`./${pack}/${name}.svg`, baseURL).toString();
// Handle in-flight requests
if (requests.has(url)) {
return await requests.get(url);

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
--- ---
import { Tooltips } from "astro-tooltips"; import { Tooltips } from "astro-tooltips";
import { Icon } from "astro-icon"; import { Icon } from "astro-icon/components";
type Props = { type Props = {
name: string; name: string;

1
src/env.d.ts vendored
View file

@ -1,3 +1,4 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" /> /// <reference types="astro/client" />
interface ImportMetaEnv { interface ImportMetaEnv {