Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Sep 13, 2024
1 parent f975de5 commit f311013
Show file tree
Hide file tree
Showing 27 changed files with 3,029 additions and 2,257 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion docs/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import UnoCSS from 'unocss/vite'
import { defineConfig } from 'vite'

export default defineConfig({
optimizeDeps: {
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import antfu from '@antfu/eslint-config'

export default await antfu()
export default antfu()
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/lazyLoad.ts
Original file line number Diff line number Diff line change
@@ -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<T extends HTMLImageElement>(
/**
Expand Down
16 changes: 8 additions & 8 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/runtime/components/UnLazyImage.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { autoSizes as _autoSizes, createPlaceholderFromHash, lazyLoad, loadImage } from 'unlazy'
import type { ImgHTMLAttributes } from 'vue'
import type { ModuleOptions } from '../../module'
import { computed, onBeforeUnmount, ref, useRuntimeConfig, watchEffect } from '#imports'
import { autoSizes as _autoSizes, createPlaceholderFromHash, lazyLoad, loadImage } from 'unlazy'
defineOptions({
inheritAttrs: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import antfu from '@antfu/eslint-config'

export default await antfu({
export default antfu({
vue: false,
react: true,
})
10 changes: 5 additions & 5 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@unlazy/react",
"type": "module",
"version": "0.11.3",
"packageManager": "pnpm@9.7.1",
"packageManager": "pnpm@9.10.0",
"description": "React lazy loading library for placeholder images",
"author": "Johann Schopplich <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -48,13 +48,13 @@
"unlazy": "workspace:*"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^1.10.1",
"@types/node": "^20.16.1",
"@types/react": "^18.3.3",
"@eslint-react/eslint-plugin": "^1.14.1",
"@types/node": "^20.16.5",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.9",
"eslint-plugin-react-refresh": "^0.4.11",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

const currentDir = fileURLToPath(new URL('.', import.meta.url))

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef } from 'react'
import type { ImgHTMLAttributes } from 'react'
import { lazyLoad } from 'unlazy'
import type { UnLazyLoadOptions } from 'unlazy'
import { useEffect, useRef } from 'react'
import { lazyLoad } from 'unlazy'

interface Props
extends ImgHTMLAttributes<HTMLImageElement>,
Expand Down
2 changes: 1 addition & 1 deletion packages/solid/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import antfu from '@antfu/eslint-config'

export default await antfu({
export default antfu({
vue: false,
solid: true,
})
8 changes: 4 additions & 4 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@unlazy/solid",
"type": "module",
"version": "0.11.3",
"packageManager": "pnpm@9.7.1",
"packageManager": "pnpm@9.10.0",
"description": "Solid lazy loading library for placeholder images",
"author": "Johann Schopplich <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -55,9 +55,9 @@
"unlazy": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.16.1",
"eslint-plugin-solid": "^0.14.2",
"solid-js": "^1.8.21",
"@types/node": "^20.16.5",
"eslint-plugin-solid": "^0.14.3",
"solid-js": "^1.8.22",
"tsup": "^8.2.4",
"tsup-preset-solid": "^2.2.0",
"vite-plugin-solid": "^2.10.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/solid/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createEffect, createSignal, onCleanup, splitProps } from 'solid-js'
import type { JSX } from 'solid-js'
import { lazyLoad } from 'unlazy'
import type { UnLazyLoadOptions } from 'unlazy'
import { createEffect, createSignal, onCleanup, splitProps } from 'solid-js'
import { lazyLoad } from 'unlazy'

interface Props
extends JSX.ImgHTMLAttributes<HTMLImageElement>,
Expand Down
2 changes: 1 addition & 1 deletion packages/solid/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PresetOptions } from 'tsup-preset-solid'
import { defineConfig } from 'tsup'
import { generateTsupOptions, parsePresetOptions } from 'tsup-preset-solid'
import type { PresetOptions } from 'tsup-preset-solid'

const presetOptions: PresetOptions = {
entries: [{ entry: 'src/index.tsx' }],
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import antfu from '@antfu/eslint-config'

export default await antfu(
export default antfu(
{
vue: false,
svelte: true,
Expand Down
12 changes: 6 additions & 6 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@unlazy/svelte",
"type": "module",
"version": "0.11.3",
"packageManager": "pnpm@9.7.1",
"packageManager": "pnpm@9.10.0",
"description": "Svelte lazy loading library for placeholder images",
"author": "Johann Schopplich <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -56,11 +56,11 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.4",
"@sveltejs/kit": "^2.5.22",
"@sveltejs/kit": "^2.5.26",
"@sveltejs/package": "^2.3.4",
"eslint-plugin-svelte": "^2.43.0",
"svelte": "^4.2.18",
"svelte-check": "^3.8.5",
"tslib": "^2.6.3"
"eslint-plugin-svelte": "^2.44.0",
"svelte": "^4.2.19",
"svelte-check": "^4.0.2",
"tslib": "^2.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/unlazy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "unlazy",
"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 <[email protected]>",
"license": "MIT",
Expand Down
8 changes: 4 additions & 4 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@unlazy/vue",
"type": "module",
"version": "0.11.3",
"packageManager": "pnpm@9.7.1",
"packageManager": "pnpm@9.10.0",
"description": "Vue lazy loading library for placeholder images",
"author": "Johann Schopplich <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -59,8 +59,8 @@
"unlazy": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.16.1",
"@vitejs/plugin-vue": "^5.1.2",
"vue": "^3.4.38"
"@types/node": "^20.16.5",
"@vitejs/plugin-vue": "^5.1.3",
"vue": "^3.5.5"
}
}
2 changes: 1 addition & 1 deletion packages/vue/playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

const currentDir = fileURLToPath(new URL('.', import.meta.url))

Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/components/UnLazyImage.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { onBeforeUnmount, ref, watchEffect } from 'vue'
import { autoSizes as _autoSizes, lazyLoad, loadImage } from 'unlazy'
import type { ImgHTMLAttributes } from 'vue'
import { autoSizes as _autoSizes, lazyLoad, loadImage } from 'unlazy'
import { onBeforeUnmount, ref, watchEffect } from 'vue'
const props = defineProps<{
/** Image source URL to be lazy-loaded. */
Expand Down
Loading

0 comments on commit f311013

Please sign in to comment.