bunki 0.19.2 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -222,7 +222,7 @@ export interface ImageUploader {
222
222
  * @param keyTransform Optional function to transform relative file path into S3 key
223
223
  * @returns Record of S3 keys to their public URLs
224
224
  */
225
- uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string): Promise<Record<string, string>>;
225
+ uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string, maxYear?: number): Promise<Record<string, string>>;
226
226
  }
227
227
  /**
228
228
  * S3 configuration type
@@ -262,6 +262,8 @@ export interface ImageUploadOptions {
262
262
  images?: string;
263
263
  outputJson?: string;
264
264
  minYear?: number;
265
+ /** Only upload images up to and including this year */
266
+ maxYear?: number;
265
267
  /** Scan content/{year}/{assetsDir}/ and upload as {year}/{filename} */
266
268
  contentAssets?: boolean;
267
269
  /**
@@ -19,7 +19,7 @@ export declare class S3Uploader implements Uploader, ImageUploader {
19
19
  * @param concurrency Maximum number of concurrent tasks
20
20
  */
21
21
  private executeWithConcurrency;
22
- uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string): Promise<Record<string, string>>;
22
+ uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string, maxYear?: number): Promise<Record<string, string>>;
23
23
  }
24
24
  /**
25
25
  * Create an S3 uploader
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunki",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "description": "An opinionated static site generator built with Bun featuring PostCSS integration and modern web development workflows",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -50,26 +50,26 @@
50
50
  "commander": "^14.0.3",
51
51
  "gray-matter": "^4.0.3",
52
52
  "highlight.js": "^11.11.1",
53
- "marked": "17.0.3",
53
+ "marked": "17.0.5",
54
54
  "marked-alert": "^2.1.2",
55
55
  "marked-highlight": "^2.2.3",
56
56
  "nunjucks": "^3.2.4",
57
- "postcss": "^8.5.6",
57
+ "postcss": "^8.5.8",
58
58
  "postcss-cli": "^11.0.1",
59
- "sanitize-html": "2.17.1",
60
- "slugify": "^1.6.6"
59
+ "sanitize-html": "2.17.2",
60
+ "slugify": "^1.6.8"
61
61
  },
62
62
  "devDependencies": {
63
- "@tailwindcss/postcss": "^4.1.18",
63
+ "@tailwindcss/postcss": "^4.2.2",
64
64
  "@types/nunjucks": "^3.2.6",
65
- "@types/sanitize-html": "^2.16.0",
66
- "autoprefixer": "^10.4.24",
67
- "bun-types": "^1.3.9",
65
+ "@types/sanitize-html": "^2.16.1",
66
+ "autoprefixer": "^10.4.27",
67
+ "bun-types": "^1.3.11",
68
68
  "husky": "^9.1.7",
69
- "lint-staged": "^16.2.7",
69
+ "lint-staged": "^16.4.0",
70
70
  "prettier": "^3.8.1",
71
- "tailwindcss": "^4.1.18",
72
- "typescript": "^5.9.3"
71
+ "tailwindcss": "^4.2.2",
72
+ "typescript": "^6.0.2"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "postcss": "^8.0.0"