From adf62045b69d1fe7a3bf4a73c5c83606bfc2b6a1 Mon Sep 17 00:00:00 2001 From: rustoma Date: Sat, 7 Feb 2026 13:40:04 +0100 Subject: [PATCH] chore: update dependencies to version 2.1.3 for common and theme-modern --- docs/themes.md | 15 +++++++++++---- gallery/package.json | 6 +++--- .../create-theme/templates/base/package.json | 2 +- themes/modern/package.json | 4 ++-- yarn.lock | 10 +++++----- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/docs/themes.md b/docs/themes.md index 122da1e..4425863 100644 --- a/docs/themes.md +++ b/docs/themes.md @@ -102,7 +102,7 @@ Your theme package must be a valid npm package with: "files": ["public", "src", "astro.config.ts", "tsconfig.json"], "dependencies": { "astro": "^5.11.0", - "@simple-photo-gallery/common": "^2.1.2" + "@simple-photo-gallery/common": "^2.1.3" } } ``` @@ -127,7 +127,9 @@ if (!sourceGalleryPath) { throw new Error("GALLERY_JSON_PATH environment variable is not set"); } -const outputDir = process.env.GALLERY_OUTPUT_DIR || sourceGalleryPath.replace("gallery.json", ""); +const outputDir = + process.env.GALLERY_OUTPUT_DIR || + sourceGalleryPath.replace("gallery.json", ""); export default defineConfig({ output: "static", @@ -401,7 +403,9 @@ const gallery = loadGalleryData("./gallery.json", { validate: true }); ```typescript import { resolveGalleryData } from "@simple-photo-gallery/common/theme"; -const resolved = await resolveGalleryData(gallery, { galleryJsonPath: "./gallery.json" }); +const resolved = await resolveGalleryData(gallery, { + galleryJsonPath: "./gallery.json", +}); // Access pre-computed data resolved.hero.src; // Computed hero image path @@ -454,7 +458,10 @@ initHeroImageFallback(); **CSS Utilities:** ```typescript -import { setCSSVar, deriveOpacityColor } from "@simple-photo-gallery/common/client"; +import { + setCSSVar, + deriveOpacityColor, +} from "@simple-photo-gallery/common/client"; // Set CSS custom properties dynamically setCSSVar("--primary-color", "#007bff"); diff --git a/gallery/package.json b/gallery/package.json index 274de95..9743586 100644 --- a/gallery/package.json +++ b/gallery/package.json @@ -1,6 +1,6 @@ { "name": "simple-photo-gallery", - "version": "2.1.2", + "version": "2.1.3", "description": "Simple Photo Gallery CLI", "license": "MIT", "author": "Vladimir Haltakov, Tomasz Rusin", @@ -47,8 +47,8 @@ "prepublish": "yarn build" }, "dependencies": { - "@simple-photo-gallery/common": "2.1.2", - "@simple-photo-gallery/theme-modern": "2.1.2", + "@simple-photo-gallery/common": "2.1.3", + "@simple-photo-gallery/theme-modern": "2.1.3", "axios": "^1.12.2", "blurhash": "^2.0.5", "commander": "^12.0.0", diff --git a/gallery/src/modules/create-theme/templates/base/package.json b/gallery/src/modules/create-theme/templates/base/package.json index 4da5d46..f99bd4b 100644 --- a/gallery/src/modules/create-theme/templates/base/package.json +++ b/gallery/src/modules/create-theme/templates/base/package.json @@ -27,7 +27,7 @@ "photoswipe": "^5.4.4" }, "peerDependencies": { - "@simple-photo-gallery/common": "^2.1.2" + "@simple-photo-gallery/common": "^2.1.3" }, "devDependencies": { "@eslint/eslintrc": "^3.3.1", diff --git a/themes/modern/package.json b/themes/modern/package.json index f664cfb..e4f6bda 100644 --- a/themes/modern/package.json +++ b/themes/modern/package.json @@ -1,6 +1,6 @@ { "name": "@simple-photo-gallery/theme-modern", - "version": "2.1.2", + "version": "2.1.3", "description": "Modern theme for Simple Photo Gallery", "license": "MIT", "author": "Vladimir Haltakov, Tomasz Rusin", @@ -36,7 +36,7 @@ "devDependencies": { "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.30.1", - "@simple-photo-gallery/common": "2.1.2", + "@simple-photo-gallery/common": "2.1.3", "@types/photoswipe": "^4.1.6", "@typescript-eslint/eslint-plugin": "^8.35.1", "@typescript-eslint/parser": "^8.35.1", diff --git a/yarn.lock b/yarn.lock index f0596d2..f6db8ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1652,7 +1652,7 @@ __metadata: languageName: node linkType: hard -"@simple-photo-gallery/common@npm:2.1.2, @simple-photo-gallery/common@workspace:common": +"@simple-photo-gallery/common@npm:2.1.3, @simple-photo-gallery/common@workspace:common": version: 0.0.0-use.local resolution: "@simple-photo-gallery/common@workspace:common" dependencies: @@ -1687,13 +1687,13 @@ __metadata: languageName: unknown linkType: soft -"@simple-photo-gallery/theme-modern@npm:2.1.2, @simple-photo-gallery/theme-modern@workspace:themes/modern": +"@simple-photo-gallery/theme-modern@npm:2.1.3, @simple-photo-gallery/theme-modern@workspace:themes/modern": version: 0.0.0-use.local resolution: "@simple-photo-gallery/theme-modern@workspace:themes/modern" dependencies: "@eslint/eslintrc": "npm:^3.3.1" "@eslint/js": "npm:^9.30.1" - "@simple-photo-gallery/common": "npm:2.1.2" + "@simple-photo-gallery/common": "npm:2.1.3" "@types/photoswipe": "npm:^4.1.6" "@typescript-eslint/eslint-plugin": "npm:^8.35.1" "@typescript-eslint/parser": "npm:^8.35.1" @@ -8570,8 +8570,8 @@ __metadata: dependencies: "@eslint/eslintrc": "npm:^3.3.1" "@eslint/js": "npm:^9.30.1" - "@simple-photo-gallery/common": "npm:2.1.2" - "@simple-photo-gallery/theme-modern": "npm:2.1.2" + "@simple-photo-gallery/common": "npm:2.1.3" + "@simple-photo-gallery/theme-modern": "npm:2.1.3" "@types/fs-extra": "npm:^11.0.4" "@types/jest": "npm:^30.0.0" "@types/node": "npm:^24.0.10"