git-hash-art 0.7.0 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -4,11 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [0.8.0](https://github.com/gfargo/git-hash-art/compare/0.7.0...0.8.0)
8
+
9
+ - feat: major visual quality improvements [`#14`](https://github.com/gfargo/git-hash-art/pull/14)
10
+ - fix: convert generateExamples.js to CJS require() syntax [`0662e61`](https://github.com/gfargo/git-hash-art/commit/0662e61ef82ef879b1e31929e640a797ca3278bd)
11
+
7
12
  #### [0.7.0](https://github.com/gfargo/git-hash-art/compare/0.6.0...0.7.0)
8
13
 
14
+ > 19 March 2026
15
+
9
16
  - feat: procedural shape generators and contrast enforcement [`#13`](https://github.com/gfargo/git-hash-art/pull/13)
10
17
  - feat: procedural shapes and contrast enforcement [`4f018ab`](https://github.com/gfargo/git-hash-art/commit/4f018abb4c89849954ccc941ee7e9ab468231f78)
11
18
  - docs: update ALGORITHM.md with procedural shapes and contrast enforcement [`3e044fd`](https://github.com/gfargo/git-hash-art/commit/3e044fd940fbc0f62e3a9696fa815145cf315f67)
19
+ - chore: release v0.7.0 [`1c0ad5e`](https://github.com/gfargo/git-hash-art/commit/1c0ad5e112c2c5547e4f83c7808e09ebb0db5e40)
12
20
 
13
21
  #### [0.6.0](https://github.com/gfargo/git-hash-art/compare/0.5.0...0.6.0)
14
22
 
@@ -1,7 +1,8 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import { generateImageFromHash, saveImageToFile } from '../dist/main.js';
4
- import { PRESETS } from '../src/lib/constants.js';
1
+ #!/usr/bin/env node
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+ const { generateImageFromHash, saveImageToFile } = require('../dist/main.js');
5
+ const { PRESETS } = require('../dist/main.js');
5
6
 
6
7
  const OUTPUT_DIR = './examples';
7
8
 
@@ -21,7 +22,7 @@ function generateTestCases() {
21
22
  const imageBuffer = generateImageFromHash(testCase.hash, {
22
23
  width: testCase.width,
23
24
  height: testCase.height,
24
- ...testCase, // Include any additional configuration from the preset
25
+ ...testCase,
25
26
  });
26
27
  const outputPath = saveImageToFile(imageBuffer, OUTPUT_DIR, testCase.hash, label, testCase.width, testCase.height);
27
28
  results.push({ label, hash: testCase.hash, outputPath, success: true });
@@ -47,13 +48,4 @@ function generateTestCases() {
47
48
  });
48
49
  }
49
50
 
50
- // Run the test cases
51
51
  generateTestCases();
52
-
53
-
54
-
55
- // const gitHash = '1234567890abcdef1234567890abcdef12345678';
56
- // const imageBuffer = generateImageFromHash(gitHash, { width: 1024, height: 1024 });
57
- // const savedImagePath = saveImageToFile(imageBuffer, './output', gitHash, 'example', 1024, 1024);
58
- // console.log(`Image saved to: ${savedImagePath}`);
59
-