Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.13.0
lts/*
6 changes: 3 additions & 3 deletions packages/astro/components/Image.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {
import type { ImageMetadata } from "astro";

import type { HTMLAttributes } from "astro/types";
import { getBackground } from "../dist/background";
import { getBackground } from "../dist/background.js";
import { imageConfig } from "astro:assets";
import type { UnpicConfig } from "../dist/service";
import { getDefaultImageCdn, getEndpointOptions } from "../dist/utils";
import type { UnpicConfig } from "../dist/service.js";
import { getDefaultImageCdn, getEndpointOptions } from "../dist/utils.js";

export interface UnpicProps
extends Omit<UnpicImageProps<HTMLAttributes<"img">>, "src"> {
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/components/Source.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
type UnpicSourceProps as UnpicBaseSourceProps,
} from "@unpic/core";
import { imageConfig } from "astro:assets";
import type { UnpicConfig } from "../dist/service";
import { getDefaultImageCdn, getEndpointOptions } from "../dist/utils";
import type { UnpicConfig } from "../dist/service.js";
import { getDefaultImageCdn, getEndpointOptions } from "../dist/utils.js";

export interface UnpicSourceProps extends Omit<UnpicBaseSourceProps, "src"> {
src: string | ImageMetadata;
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/components/base/Image.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
import type { ImageMetadata } from "astro";

import type { HTMLAttributes } from "astro/types";
import { getBackground } from "../../dist/background";
import type { UnpicConfig } from "../../dist/service";
import { getBackground } from "../../dist/background.js";
import type { UnpicConfig } from "../../dist/service.js";

type Props<
TOperations extends Operations = Operations,
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/components/base/Source.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { imageConfig } from "astro:assets";
import type { Operations, UnpicBaseSourceProps } from "@unpic/core";
import type { UnpicConfig } from "../../dist/service";
import type { UnpicConfig } from "../../dist/service.js";
import {
transformBaseSourceProps,
inferImageDimensions,
Expand Down
8 changes: 4 additions & 4 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"test": "vitest run"
},
"devDependencies": {
"@astrojs/check": "^0.9.5",
"@astrojs/check": "^0.9.7",
"@testing-library/dom": "^10.4.0",
"@types/jsdom": "^27.0.0",
"astro": "^5.1.7",
"astro": "^6.0.4",
"jsdom": "^27.2.0",
"tsup": "^8.3.5",
"vitest": "^3.0.2"
Expand All @@ -55,6 +55,6 @@
"blurhash": "^2.0.5"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-beta"
"astro": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"
}
}
}
2,497 changes: 1,857 additions & 640 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />

import { defineConfig } from "vite";
import { defineConfig } from "vitest/config";

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
Loading