diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index a26e758..581d189 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from 'vitepress' import type { DefaultTheme } from 'vitepress' +import { defineConfig } from 'vitepress' import { github, ogDescription, ogImage, ogTitle, ogUrl, releases, version } from './meta' const url = new URL(ogUrl) diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 78f68b6..493c4ac 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,9 +1,9 @@ import DefaultTheme from 'vitepress/theme' +import CdnLink from './components/CdnLink.vue' import './main.css' import './vars.css' -import 'uno.css' -import CdnLink from './components/CdnLink.vue' +import 'uno.css' export default { extends: DefaultTheme, diff --git a/docs/integrations/vue.md b/docs/integrations/vue.md index c3a764b..c350bd0 100644 --- a/docs/integrations/vue.md +++ b/docs/integrations/vue.md @@ -42,8 +42,8 @@ If you prefer to make the `LazyImage` component globally available, you can regi ```ts // src/main.ts -import { createApp } from 'vue' import Unlazy from '@unlazy/vue' +import { createApp } from 'vue' import App from './App.vue' const app = createApp(App) diff --git a/docs/package.json b/docs/package.json index 258c514..47f64a6 100644 --- a/docs/package.json +++ b/docs/package.json @@ -9,8 +9,8 @@ "serve": "vitepress serve" }, "devDependencies": { - "@iconify-json/carbon": "^1.1.37", - "unocss": "^0.61.9", - "vitepress": "^1.3.3" + "@iconify-json/carbon": "^1.2.1", + "unocss": "^0.62.3", + "vitepress": "^1.3.4" } } diff --git a/docs/vite.config.ts b/docs/vite.config.ts index 310325b..a6f11a1 100644 --- a/docs/vite.config.ts +++ b/docs/vite.config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from 'vite' import UnoCSS from 'unocss/vite' +import { defineConfig } from 'vite' export default defineConfig({ optimizeDeps: { diff --git a/eslint.config.js b/eslint.config.js index 4317a69..3b614a0 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,3 @@ import antfu from '@antfu/eslint-config' -export default await antfu() +export default antfu() diff --git a/package.json b/package.json index e54fdd6..c3b0464 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "version": "0.11.3", "private": true, - "packageManager": "pnpm@9.7.1", + "packageManager": "pnpm@9.10.0", "scripts": { "build": "pnpm -r --filter=./packages/** run build", "dev:prepare": "pnpm -r --filter=./packages/** run dev:prepare", @@ -18,15 +18,15 @@ "prepare": "pnpm run dev:prepare" }, "devDependencies": { - "@antfu/eslint-config": "^2.26.0", - "@types/node": "^20.16.1", - "bumpp": "^9.5.1", - "eslint": "^9.9.0", - "happy-dom": "^14.12.3", + "@antfu/eslint-config": "^3.6.0", + "@types/node": "^20.16.5", + "bumpp": "^9.5.2", + "eslint": "^9.10.0", + "happy-dom": "^15.7.4", "typescript": "^5.5.4", "unbuild": "^3.0.0-rc.7", - "vite": "^5.4.1", - "vitest": "^2.0.5", - "vue-tsc": "^2.0.29" + "vite": "^5.4.5", + "vitest": "^2.1.0", + "vue-tsc": "^2.1.6" } } diff --git a/packages/core/package.json b/packages/core/package.json index 314eee1..55eb0aa 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -2,7 +2,7 @@ "name": "@unlazy/core", "type": "module", "version": "0.11.3", - "packageManager": "pnpm@9.7.1", + "packageManager": "pnpm@9.10.0", "description": "Universal lazy loading library for placeholder images leveraging native browser APIs", "author": "Johann Schopplich ", "license": "MIT", diff --git a/packages/core/src/lazyLoad.ts b/packages/core/src/lazyLoad.ts index 80ccefe..797dfb7 100644 --- a/packages/core/src/lazyLoad.ts +++ b/packages/core/src/lazyLoad.ts @@ -1,8 +1,8 @@ +import type { UnLazyLoadOptions } from './types' +import { createPngDataUri as createPngDataUriFromBlurHash } from './blurhash' import { DEFAULT_IMAGE_PLACEHOLDER, DEFAULT_PLACEHOLDER_SIZE } from './constants' -import { debounce, isCrawler, isLazyLoadingSupported, toElementArray } from './utils' import { createPngDataUri as createPngDataUriFromThumbHash } from './thumbhash' -import { createPngDataUri as createPngDataUriFromBlurHash } from './blurhash' -import type { UnLazyLoadOptions } from './types' +import { debounce, isCrawler, isLazyLoadingSupported, toElementArray } from './utils' export function lazyLoad( /** diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 05e391e..e50c800 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,7 +1,7 @@ { "name": "@unlazy/nuxt", "version": "0.11.3", - "packageManager": "pnpm@9.7.1", + "packageManager": "pnpm@9.10.0", "description": "Nuxt lazy loading module for placeholder images", "author": "Johann Schopplich ", "license": "MIT", @@ -45,16 +45,16 @@ "test:types": "vue-tsc --noEmit" }, "dependencies": { - "@nuxt/kit": "^3.12.4", + "@nuxt/kit": "^3.13.1", "defu": "^6.1.4", "unlazy": "workspace:*" }, "devDependencies": { - "@nuxt/module-builder": "^0.8.3", - "@nuxt/schema": "^3.12.4", - "@types/node": "^20.16.1", - "@unocss/nuxt": "^0.61.9", - "@unocss/reset": "^0.61.9", - "nuxt": "^3.12.4" + "@nuxt/module-builder": "^0.8.4", + "@nuxt/schema": "^3.13.1", + "@types/node": "^20.16.5", + "@unocss/nuxt": "^0.62.3", + "@unocss/reset": "^0.62.3", + "nuxt": "^3.13.1" } } diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts index 29a8bf6..56003a4 100644 --- a/packages/nuxt/src/module.ts +++ b/packages/nuxt/src/module.ts @@ -1,6 +1,6 @@ -import { defu } from 'defu' -import { addComponent, createResolver, defineNuxtModule, extendViteConfig } from '@nuxt/kit' import type { NuxtModule } from '@nuxt/schema' +import { addComponent, createResolver, defineNuxtModule, extendViteConfig } from '@nuxt/kit' +import { defu } from 'defu' import { name, version } from '../package.json' export interface ModuleOptions { diff --git a/packages/nuxt/src/runtime/components/UnLazyImage.vue b/packages/nuxt/src/runtime/components/UnLazyImage.vue index 1cd5c9b..f3604ad 100644 --- a/packages/nuxt/src/runtime/components/UnLazyImage.vue +++ b/packages/nuxt/src/runtime/components/UnLazyImage.vue @@ -1,8 +1,8 @@