From ca4c5affdd0259c766d8df51079a914e47f4584f Mon Sep 17 00:00:00 2001 From: Aumetra Weisman Date: Thu, 19 Dec 2024 11:18:02 +0100 Subject: [PATCH] rename fns --- Cargo.lock | 4 +- kitsune-fe/package.json | 2 +- lib/komainu/benches/pkce.rs | 4 +- lib/komainu/src/flow/authorization.rs | 16 +++--- lib/komainu/src/flow/mod.rs | 10 ++-- lib/komainu/src/flow/pkce.rs | 12 ++--- lib/komainu/src/flow/refresh.rs | 8 +-- lib/komainu/src/lib.rs | 8 +-- pnpm-lock.yaml | 74 +++++++++++++-------------- website/package.json | 2 +- 10 files changed, 68 insertions(+), 72 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4e95f945..d073f8d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -902,9 +902,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.4" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" +checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" dependencies = [ "shlex", ] diff --git a/kitsune-fe/package.json b/kitsune-fe/package.json index 45ed40d4..584621e0 100644 --- a/kitsune-fe/package.json +++ b/kitsune-fe/package.json @@ -41,7 +41,7 @@ "typescript": "^5.7.2", "typescript-eslint": "^8.18.1", "unplugin-icons": "^0.22.0", - "vite": "^6.0.3", + "vite": "^6.0.4", "vitest": "^2.1.8", "zod": "^3.24.1" } diff --git a/lib/komainu/benches/pkce.rs b/lib/komainu/benches/pkce.rs index 1fac7c6b..d62e0275 100644 --- a/lib/komainu/benches/pkce.rs +++ b/lib/komainu/benches/pkce.rs @@ -6,7 +6,7 @@ use std::borrow::Cow; static GLOBAL: divan::AllocProfiler = divan::AllocProfiler::system(); #[divan::bench] -fn s256() -> Result<(), komainu::flow::FlowError> { +fn s256() -> Result<(), komainu::flow::Error> { let verifier_base64 = "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"; let challenge_base64 = "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"; @@ -19,7 +19,7 @@ fn s256() -> Result<(), komainu::flow::FlowError> { } #[divan::bench] -fn none() -> Result<(), komainu::flow::FlowError> { +fn none() -> Result<(), komainu::flow::Error> { let value = "arbitrary value"; let payload = pkce::Payload { diff --git a/lib/komainu/src/flow/authorization.rs b/lib/komainu/src/flow/authorization.rs index 4e60f73d..18b73878 100644 --- a/lib/komainu/src/flow/authorization.rs +++ b/lib/komainu/src/flow/authorization.rs @@ -1,6 +1,6 @@ use crate::{ extract::ClientCredentials, - flow::{FlowError, OptionExt, TokenResponse}, + flow::{self, OptionExt, TokenResponse}, params::ParamStorage, Authorization, ClientExtractor, }; @@ -11,12 +11,12 @@ pub trait Issuer { fn load_authorization( &self, auth_code: &str, - ) -> impl Future>, FlowError>> + Send; + ) -> impl Future>, flow::Error>> + Send; fn issue_token( &self, authorization: &Authorization<'_>, - ) -> impl Future, FlowError>> + Send; + ) -> impl Future, flow::Error>> + Send; } #[instrument(skip_all)] @@ -24,7 +24,7 @@ pub async fn perform( req: http::Request, client_extractor: CE, token_issuer: I, -) -> Result, FlowError> +) -> Result, flow::Error> where CE: ClientExtractor, I: Issuer, @@ -44,7 +44,7 @@ where if *grant_type != "authorization_code" { error!(?client_id, "grant_type is not authorization_code"); - return Err(FlowError::UnsupportedGrantType); + return Err(flow::Error::UnsupportedGrantType); } let client = client_extractor @@ -53,16 +53,16 @@ where if client.redirect_uri != *redirect_uri { error!(?client_id, "redirect uri doesn't match"); - return Err(FlowError::InvalidClient); + return Err(flow::Error::InvalidClient); } let Some(authorization) = token_issuer.load_authorization(code).await? else { - return Err(FlowError::InvalidGrant); + return Err(flow::Error::InvalidGrant); }; // This check is constant time :3 if client != authorization.client { - return Err(FlowError::UnauthorizedClient); + return Err(flow::Error::UnauthorizedClient); } if let Some(ref pkce) = authorization.pkce_payload { diff --git a/lib/komainu/src/flow/mod.rs b/lib/komainu/src/flow/mod.rs index a5f10721..6e817f2a 100644 --- a/lib/komainu/src/flow/mod.rs +++ b/lib/komainu/src/flow/mod.rs @@ -8,20 +8,20 @@ pub mod pkce; pub mod refresh; trait OptionExt { - fn or_invalid_request(self) -> Result; + fn or_invalid_request(self) -> Result; } impl OptionExt for Option { #[inline] - fn or_invalid_request(self) -> Result { - self.ok_or(FlowError::InvalidRequest) + fn or_invalid_request(self) -> Result { + self.ok_or(Error::InvalidRequest) } } #[derive(Debug, Display, Error, Serialize)] #[serde(rename_all = "snake_case")] #[strum(serialize_all = "snake_case")] -pub enum FlowError { +pub enum Error { InvalidRequest, InvalidClient, InvalidGrant, @@ -49,6 +49,6 @@ pub enum TokenResponse<'a> { expires_in: u64, }, Error { - errorr: FlowError, + errorr: Error, }, } diff --git a/lib/komainu/src/flow/pkce.rs b/lib/komainu/src/flow/pkce.rs index ab18441c..fc3075b9 100644 --- a/lib/komainu/src/flow/pkce.rs +++ b/lib/komainu/src/flow/pkce.rs @@ -1,4 +1,4 @@ -use crate::{error::Error, flow::FlowError}; +use crate::{error::Error, flow}; use serde::{Deserialize, Serialize}; use sha2::{Digest, Sha256}; use std::borrow::Cow; @@ -22,7 +22,7 @@ pub struct Payload<'a> { impl Payload<'_> { #[inline] - fn verify_s256(&self, code_verifier: &str) -> Result<(), FlowError> { + fn verify_s256(&self, code_verifier: &str) -> Result<(), flow::Error> { let decoded = base64_simd::URL_SAFE_NO_PAD .decode_to_vec(self.challenge.as_bytes()) .inspect_err(|error| debug!(?error, "failed to decode pkce payload")) @@ -32,22 +32,22 @@ impl Payload<'_> { if decoded.ct_eq(hash.as_slice()).into() { Ok(()) } else { - Err(FlowError::InvalidGrant) + Err(flow::Error::InvalidGrant) } } #[inline] - fn verify_none(&self, code_verifier: &str) -> Result<(), FlowError> { + fn verify_none(&self, code_verifier: &str) -> Result<(), flow::Error> { let challenge_bytes = self.challenge.as_bytes(); if challenge_bytes.ct_eq(code_verifier.as_bytes()).into() { Ok(()) } else { - Err(FlowError::InvalidGrant) + Err(flow::Error::InvalidGrant) } } #[inline] - pub fn verify(&self, code_verifier: &str) -> Result<(), FlowError> { + pub fn verify(&self, code_verifier: &str) -> Result<(), flow::Error> { match self.method { Method::None => self.verify_none(code_verifier), Method::S256 => self.verify_s256(code_verifier), diff --git a/lib/komainu/src/flow/refresh.rs b/lib/komainu/src/flow/refresh.rs index 74c580bb..658b450c 100644 --- a/lib/komainu/src/flow/refresh.rs +++ b/lib/komainu/src/flow/refresh.rs @@ -1,6 +1,6 @@ use crate::{ extract::ClientCredentials, - flow::{FlowError, OptionExt, TokenResponse}, + flow::{self, OptionExt, TokenResponse}, params::ParamStorage, Client, ClientExtractor, }; @@ -12,7 +12,7 @@ pub trait Issuer { &self, client: &Client<'_>, refresh_token: &str, - ) -> impl Future, FlowError>> + Send; + ) -> impl Future, flow::Error>> + Send; } #[instrument(skip_all)] @@ -20,7 +20,7 @@ pub async fn perform( req: http::Request, client_extractor: CE, token_issuer: I, -) -> Result, FlowError> +) -> Result, flow::Error> where CE: ClientExtractor, I: Issuer, @@ -39,7 +39,7 @@ where if *grant_type != "refresh_token" { debug!(?client_id, "grant_type is not refresh_token"); - return Err(FlowError::UnsupportedGrantType); + return Err(flow::Error::UnsupportedGrantType); } let client = client_extractor diff --git a/lib/komainu/src/lib.rs b/lib/komainu/src/lib.rs index cca16046..67a22a88 100644 --- a/lib/komainu/src/lib.rs +++ b/lib/komainu/src/lib.rs @@ -1,16 +1,12 @@ #[macro_use] extern crate tracing; -use self::flow::pkce; +use self::{error::Error, flow::pkce}; use std::{borrow::Cow, future::Future}; use subtle::ConstantTimeEq; -pub use self::error::Error; -pub use self::params::ParamStorage; - -mod error; - pub mod code_grant; +pub mod error; pub mod extract; pub mod flow; pub mod params; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 77bc1b0f..a51adff1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,13 +42,13 @@ importers: version: 1.2.2 '@sveltejs/adapter-static': specifier: ^3.0.6 - version: 3.0.6(@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))) + version: 3.0.6(@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))) '@sveltejs/kit': specifier: ^2.12.2 - version: 2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + version: 2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) '@sveltejs/vite-plugin-svelte': specifier: 5.0.3 - version: 5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + version: 5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) '@tailwindcss/forms': specifier: ^0.5.9 version: 0.5.9(tailwindcss@3.4.17) @@ -81,7 +81,7 @@ importers: version: 1.3.1 houdini-svelte: specifier: 2.0.1 - version: 2.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(@types/node@22.10.2)(sass@1.81.0) + version: 2.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(@types/node@22.10.2)(sass@1.81.0) prettier: specifier: ^3.4.2 version: 3.4.2 @@ -113,8 +113,8 @@ importers: specifier: ^0.22.0 version: 0.22.0(svelte@5.14.4) vite: - specifier: ^6.0.3 - version: 6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) + specifier: ^6.0.4 + version: 6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) vitest: specifier: ^2.1.8 version: 2.1.8(@types/node@22.10.2)(sass@1.81.0) @@ -125,8 +125,8 @@ importers: website: dependencies: '@astrojs/starlight': - specifier: ^0.30.2 - version: 0.30.2(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1)) + specifier: ^0.30.3 + version: 0.30.3(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1)) astro: specifier: ^5.0.9 version: 5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1) @@ -135,7 +135,7 @@ importers: version: 0.33.5 starlight-links-validator: specifier: ^0.14.0 - version: 0.14.0(@astrojs/starlight@0.30.2(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1))) + version: 0.14.0(@astrojs/starlight@0.30.3(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1))) devDependencies: prettier: specifier: ^3.4.2 @@ -185,8 +185,8 @@ packages: '@astrojs/sitemap@3.2.1': resolution: {integrity: sha512-uxMfO8f7pALq0ADL6Lk68UV6dNYjJ2xGUzyjjVj60JLBs5a6smtlkBYv3tQ0DzoqwS7c9n4FUx5lgv0yPo/fgA==, tarball: https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.2.1.tgz} - '@astrojs/starlight@0.30.2': - resolution: {integrity: sha512-KUNnIhiBgX3hV2mUIqwv2R5b7tBFRVr68Wj0wEyN8E2x0MtAos7qRPytWha/WchAtpO1eIt6sqAT0KfTvBZt5g==, tarball: https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.30.2.tgz} + '@astrojs/starlight@0.30.3': + resolution: {integrity: sha512-HbGYYIR2Rnrvvc2jD0dUpp8zUzv3jQYtG5im3aulDgE4Jo21Ahw0yXlb/Y134G3LALLbqhImmlbt/h/nDV3yMA==, tarball: https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.30.3.tgz} peerDependencies: astro: ^5.0.0 @@ -3402,8 +3402,8 @@ packages: terser: optional: true - vite@6.0.3: - resolution: {integrity: sha512-Cmuo5P0ENTN6HxLSo6IHsjCLn/81Vgrp81oaiFFMRa8gGDj5xEjIcEpf2ZymZtZR8oU0P2JX5WuUp/rlXcHkAw==, tarball: https://registry.npmjs.org/vite/-/vite-6.0.3.tgz} + vite@6.0.4: + resolution: {integrity: sha512-zwlH6ar+6o6b4Wp+ydhtIKLrGM/LoqZzcdVmkGAFun0KHTzIzjh+h0kungEx7KJg/PYnC80I4TII9WkjciSR6Q==, tarball: https://registry.npmjs.org/vite/-/vite-6.0.4.tgz} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: @@ -3656,7 +3656,7 @@ snapshots: stream-replace-string: 2.0.0 zod: 3.24.1 - '@astrojs/starlight@0.30.2(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1))': + '@astrojs/starlight@0.30.3(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1))': dependencies: '@astrojs/mdx': 4.0.2(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1)) '@astrojs/sitemap': 3.2.1 @@ -4413,13 +4413,13 @@ snapshots: '@shikijs/vscode-textmate@9.3.1': {} - '@sveltejs/adapter-static@3.0.6(@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))': + '@sveltejs/adapter-static@3.0.6(@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))': dependencies: - '@sveltejs/kit': 2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + '@sveltejs/kit': 2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) - '@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@5.4.11(@types/node@22.10.2)(sass@1.81.0))': + '@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@5.4.11(@types/node@22.10.2)(sass@1.81.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) '@types/cookie': 0.6.0 cookie: 1.0.2 devalue: 5.1.1 @@ -4435,9 +4435,9 @@ snapshots: tiny-glob: 0.2.9 vite: 5.4.11(@types/node@22.10.2)(sass@1.81.0) - '@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))': + '@sveltejs/kit@2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) '@types/cookie': 0.6.0 cookie: 1.0.2 devalue: 5.1.1 @@ -4451,27 +4451,27 @@ snapshots: sirv: 3.0.0 svelte: 5.14.4 tiny-glob: 0.2.9 - vite: 6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) + vite: 6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) - '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))': + '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) debug: 4.4.0 svelte: 5.14.4 - vite: 6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) + vite: 6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))': + '@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) debug: 4.4.0 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.17 svelte: 5.14.4 - vite: 6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) - vitefu: 1.0.4(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + vite: 6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) + vitefu: 1.0.4(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) transitivePeerDependencies: - supports-color @@ -4842,8 +4842,8 @@ snapshots: ultrahtml: 1.5.3 unist-util-visit: 5.0.0 vfile: 6.0.3 - vite: 6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) - vitefu: 1.0.4(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) + vite: 6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) + vitefu: 1.0.4(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)) which-pm: 3.0.0 xxhash-wasm: 1.1.0 yargs-parser: 21.1.1 @@ -5704,10 +5704,10 @@ snapshots: property-information: 6.5.0 space-separated-tokens: 2.0.2 - houdini-svelte@2.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(@types/node@22.10.2)(sass@1.81.0): + houdini-svelte@2.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(@types/node@22.10.2)(sass@1.81.0): dependencies: '@kitql/helpers': 0.8.10 - '@sveltejs/kit': 2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@5.4.11(@types/node@22.10.2)(sass@1.81.0)) + '@sveltejs/kit': 2.12.2(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.14.4)(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)))(svelte@5.14.4)(vite@5.4.11(@types/node@22.10.2)(sass@1.81.0)) ast-types: 0.16.1 estree-walker: 3.0.3 graphql: 15.9.0 @@ -7088,9 +7088,9 @@ snapshots: stackback@0.0.2: {} - starlight-links-validator@0.14.0(@astrojs/starlight@0.30.2(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1))): + starlight-links-validator@0.14.0(@astrojs/starlight@0.30.3(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1))): dependencies: - '@astrojs/starlight': 0.30.2(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1)) + '@astrojs/starlight': 0.30.3(astro@5.0.9(@types/node@22.10.2)(jiti@1.21.7)(rollup@4.28.1)(sass@1.81.0)(typescript@5.7.2)(yaml@2.6.1)) '@types/picomatch': 3.0.1 github-slugger: 2.0.0 hast-util-from-html: 2.0.3 @@ -7453,7 +7453,7 @@ snapshots: fsevents: 2.3.3 sass: 1.81.0 - vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1): + vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1): dependencies: esbuild: 0.24.0 postcss: 8.4.49 @@ -7465,9 +7465,9 @@ snapshots: sass: 1.81.0 yaml: 2.6.1 - vitefu@1.0.4(vite@6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)): + vitefu@1.0.4(vite@6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1)): optionalDependencies: - vite: 6.0.3(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) + vite: 6.0.4(@types/node@22.10.2)(jiti@1.21.7)(sass@1.81.0)(yaml@2.6.1) vitest@2.1.8(@types/node@22.10.2)(sass@1.81.0): dependencies: diff --git a/website/package.json b/website/package.json index 6f2464eb..1ccb0205 100644 --- a/website/package.json +++ b/website/package.json @@ -11,7 +11,7 @@ "fmt": "prettier -w . --cache" }, "dependencies": { - "@astrojs/starlight": "^0.30.2", + "@astrojs/starlight": "^0.30.3", "astro": "^5.0.9", "sharp": "^0.33.5", "starlight-links-validator": "^0.14.0"