Skip to content

Commit

Permalink
chore(deps)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Aug 22, 2024
1 parent 470a72e commit d3c7510
Show file tree
Hide file tree
Showing 43 changed files with 2,447 additions and 3,841 deletions.
2 changes: 1 addition & 1 deletion __tests__/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"devDependencies": {
"@serwist/build": "workspace:*",
"serwist": "workspace:*",
"vitest": "2.0.3"
"vitest": "2.0.5"
}
}
6 changes: 3 additions & 3 deletions __tests__/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"devDependencies": {
"@serwist/next": "workspace:*",
"cheerio": "1.0.0-rc.12",
"cheerio": "1.0.0",
"fs-extra": "11.2.0",
"glob": "10.4.5",
"next": "14.2.5",
"next": "14.2.6",
"serwist": "workspace:*",
"vitest": "2.0.3"
"vitest": "2.0.5"
}
}
4 changes: 2 additions & 2 deletions __tests__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"homepage": "https://serwist.pages.dev",
"devDependencies": {
"type-fest": "4.21.0",
"vitest": "2.0.3"
"type-fest": "4.25.0",
"vitest": "2.0.5"
}
}
34 changes: 17 additions & 17 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,34 @@
"@serwist/vite": "workspace:*",
"@serwist/webpack-plugin": "workspace:*",
"@serwist/window": "workspace:*",
"@shikijs/twoslash": "1.10.3",
"@sveltejs/adapter-static": "3.0.2",
"@sveltejs/enhanced-img": "0.3.0",
"@sveltejs/kit": "2.5.18",
"@sveltejs/vite-plugin-svelte": "3.1.1",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@shikijs/twoslash": "1.14.1",
"@sveltejs/adapter-static": "3.0.4",
"@sveltejs/enhanced-img": "0.3.3",
"@sveltejs/kit": "2.5.24",
"@sveltejs/vite-plugin-svelte": "4.0.0-next.6",
"@types/node": "22.5.0",
"@types/react": "18.3.4",
"@types/ssri": "7.1.5",
"@vitejs/plugin-react-swc": "3.7.0",
"autoprefixer": "10.4.19",
"autoprefixer": "10.4.20",
"hast-util-to-html": "9.0.1",
"mdast-util-from-markdown": "2.0.1",
"mdast-util-gfm": "3.0.0",
"mdast-util-to-hast": "13.2.0",
"next": "14.2.5",
"nuxt": "3.12.3",
"postcss": "8.4.39",
"next": "14.2.6",
"nuxt": "3.12.4",
"postcss": "8.4.41",
"react": "18.3.1",
"satori": "0.10.14",
"serwist": "workspace:*",
"shiki": "1.10.3",
"shiki": "1.14.1",
"ssri": "10.0.6",
"svelte": "5.0.0-next.186",
"svelte-check": "3.8.4",
"tailwindcss": "3.4.6",
"svelte": "5.0.0-next.233",
"svelte-check": "3.8.5",
"tailwindcss": "3.4.10",
"tslib": "2.6.3",
"typescript": "5.5.3",
"vite": "5.3.4",
"typescript": "5.5.4",
"vite": "5.4.2",
"webpack": "5.93.0",
"yoga-wasm-web": "0.3.3"
}
Expand Down
72 changes: 41 additions & 31 deletions docs/src/components/Callout.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang="ts">
import type { Component } from "svelte";
import type { HTMLAttributes } from "svelte/elements";
import type { SVGAttributes } from "svelte/elements";
import { clsx } from "$lib/clsx";
Expand All @@ -17,43 +15,55 @@
const { type = "info", children }: CalloutProps = $props();
const mapVariantToClass = {
parent: {
error: "dark:bg-red-1000 bg-red-100",
success: "bg-green-150 dark:bg-lime-1000",
warning: "bg-yellow-75 dark:bg-yellow-1000",
info: "bg-neutral-150 dark:bg-zinc-800",
},
icon: {
error: "bg-red-650 dark:bg-red-300",
success: "dark:bg-green-450 bg-green-700",
warning: "bg-yellow-700 dark:bg-yellow-400",
info: "bg-blue-550 dark:bg-blue-450",
},
} satisfies Record<string, Record<CalloutVariant, string>>;
const mapVariantToIcon = {
error: X,
success: Check,
warning: ExclamationMark,
info: ExclamationMark,
} satisfies Record<CalloutVariant, Component<SVGAttributes<SVGElement>>>;
const barColor = $derived.by(() => {
switch (type) {
case "error":
return "dark:bg-red-1000 bg-red-100";
case "success":
return "bg-green-150 dark:bg-lime-1000";
case "warning":
return "bg-yellow-75 dark:bg-yellow-1000";
case "info":
return "bg-neutral-150 dark:bg-zinc-800";
}
});
const Icon = $derived.by(() => {
switch (type) {
case "error":
return X;
case "success":
return Check;
case "warning":
return ExclamationMark;
case "info":
return ExclamationMark;
}
});
const iconColor = $derived.by(() => {
switch (type) {
case "error":
return "bg-red-650 dark:bg-red-300";
case "success":
return "dark:bg-green-450 bg-green-700";
case "warning":
return "bg-yellow-700 dark:bg-yellow-400";
case "info":
return "bg-blue-550 dark:bg-blue-450";
}
});
</script>

<div
class={clsx(
"flex h-fit max-h-full w-full flex-row items-center gap-2 rounded-md px-3 py-2 text-base font-medium",
"my-3 text-black md:text-sm dark:text-white [&>*]:min-w-[auto] shadow-md border border-neutral-300 dark:border-neutral-800",
mapVariantToClass.parent[type]
"my-3 border border-neutral-300 text-black shadow-md md:text-sm dark:border-neutral-800 dark:text-white [&>*]:min-w-[auto]",
barColor
)}
>
<span class="size-5">
<svelte:component
this={mapVariantToIcon[type]}
width={20}
height={20}
class={clsx("rounded-full p-[2px] text-white dark:text-black", mapVariantToClass.icon[type])}
/>
<Icon width={20} height={20} class={clsx("rounded-full p-[2px] text-white dark:text-black", iconColor)} />
</span>
<span class="[&>*]:!m-0">
{#if children}
Expand Down
6 changes: 3 additions & 3 deletions docs/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
// compilerOptions: {
// customElement: true,
// },
compilerOptions: {
customElement: true,
},
kit: {
adapter: adapter(),
alias: {
Expand Down
6 changes: 3 additions & 3 deletions examples/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@serwist/build": "latest",
"@serwist/cli": "latest",
"@serwist/window": "latest",
"@types/node": "20.14.10",
"esbuild": "0.23.0",
"@types/node": "22.5.0",
"esbuild": "0.23.1",
"serve": "14.2.3",
"typescript": "5.5.3"
"typescript": "5.5.4"
}
}
8 changes: 4 additions & 4 deletions examples/next-basic-cjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"dependencies": {
"@serwist/next": "latest",
"next": "14.2.5",
"next": "14.2.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"serwist": "latest"
},
"devDependencies": {
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/node": "22.5.0",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"typescript": "5.5.3"
"typescript": "5.5.4"
}
}
8 changes: 4 additions & 4 deletions examples/next-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"dependencies": {
"@serwist/next": "latest",
"next": "14.2.5",
"next": "14.2.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"serwist": "latest"
},
"devDependencies": {
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/node": "22.5.0",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"typescript": "5.5.3"
"typescript": "5.5.4"
}
}
8 changes: 4 additions & 4 deletions examples/next-web-push/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
},
"dependencies": {
"@serwist/next": "latest",
"next": "14.2.5",
"next": "14.2.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"serwist": "latest",
"web-push": "3.6.7"
},
"devDependencies": {
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/node": "22.5.0",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@types/web-push": "3.6.3",
"typescript": "5.5.3"
"typescript": "5.5.4"
}
}
6 changes: 3 additions & 3 deletions examples/nuxt-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"devDependencies": {
"@serwist/nuxt": "latest",
"@serwist/vite": "latest",
"nuxt": "3.12.3",
"nuxt": "3.12.4",
"serwist": "latest",
"vue": "3.4.31",
"vue-router": "4.4.0"
"vue": "3.4.38",
"vue-router": "4.4.3"
}
}
6 changes: 3 additions & 3 deletions examples/rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"react-dom": "18.3.1"
},
"devDependencies": {
"@rsbuild/core": "1.0.1-beta.2",
"@rsbuild/plugin-react": "1.0.1-beta.2",
"@rsbuild/core": "1.0.1-beta.15",
"@rsbuild/plugin-react": "1.0.1-beta.15",
"@serwist/webpack-plugin": "latest",
"@serwist/window": "workspace:*",
"@types/react": "18.3.3",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"serwist": "latest"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/vite-react-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
"devDependencies": {
"@serwist/vite": "latest",
"@types/react": "18.3.3",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react-swc": "3.7.0",
"serwist": "latest",
"typescript": "5.5.3",
"vite": "5.3.4"
"typescript": "5.5.4",
"vite": "5.4.2"
}
}
6 changes: 3 additions & 3 deletions ncu.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ for (const packageFile of packageJsonList) {
filter(packageName) {
return !excludePackages.includes(packageName);
},
target: (dependencyName) => {
if (dependencyName === "svelte") {
target(dep) {
if (dep === "svelte" || dep === "@sveltejs/vite-plugin-svelte") {
return "@next";
}
if (/^react(-dom)?$/.test(dependencyName)) {
if (/^react(-dom)?$/.test(dep)) {
return "@latest";
}
return "latest";
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,27 @@
"@biomejs/biome": "1.5.3",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.7",
"@swc/core": "1.6.13",
"@types/node": "20.14.10",
"@swc/core": "1.7.14",
"@types/node": "22.5.0",
"@types/shell-quote": "1.7.5",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"@typescript-eslint/eslint-plugin": "8.2.0",
"@typescript-eslint/parser": "8.2.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-turbo": "2.0.6",
"eslint-config-turbo": "2.0.14",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-svelte": "2.42.0",
"eslint-plugin-svelte": "2.43.0",
"eslint-plugin-tailwindcss": "3.17.4",
"fast-glob": "3.3.2",
"npm-check-updates": "16.14.20",
"prettier-plugin-svelte": "3.2.5",
"prettier-plugin-tailwindcss": "0.6.5",
"npm-check-updates": "17.1.0",
"prettier-plugin-svelte": "3.2.6",
"prettier-plugin-tailwindcss": "0.6.6",
"rimraf": "5.0.9",
"shell-quote": "1.8.1",
"ts-node": "10.9.2",
"tslib": "2.6.3",
"turbo": "2.0.6",
"typescript": "5.5.3"
"turbo": "2.0.14",
"typescript": "5.5.4"
},
"packageManager": "pnpm@9.1.4"
"packageManager": "pnpm@9.7.1"
}
4 changes: 2 additions & 2 deletions packages/$legacy/background-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"devDependencies": {
"@serwist/configs": "workspace:*",
"cross-env": "7.0.3",
"rollup": "4.18.1",
"typescript": "5.5.3"
"rollup": "4.21.0",
"typescript": "5.5.4"
},
"peerDependencies": {
"typescript": ">=5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/$legacy/broadcast-update/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"devDependencies": {
"@serwist/configs": "workspace:*",
"rollup": "4.18.1",
"typescript": "5.5.3"
"rollup": "4.21.0",
"typescript": "5.5.4"
},
"peerDependencies": {
"typescript": ">=5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/$legacy/cacheable-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"devDependencies": {
"@serwist/configs": "workspace:*",
"rollup": "4.18.1",
"typescript": "5.5.3"
"rollup": "4.21.0",
"typescript": "5.5.4"
},
"peerDependencies": {
"typescript": ">=5.0.0"
Expand Down
Loading

0 comments on commit d3c7510

Please sign in to comment.