From 752a04bcb375969baed7d13be85deab401a6fe3c Mon Sep 17 00:00:00 2001 From: fry69 <142489379+fry69@users.noreply.github.com> Date: Wed, 17 Apr 2024 23:08:46 +0200 Subject: [PATCH] Bump version to 0.2.1 --- README.md | 62 ++++++++++++++++++++++++++-------------------- files-to-prompt.ts | 2 +- jsr.json | 2 +- 3 files changed, 37 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 798e636..b27cb9c 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,13 @@ Additional features not found the original version: 2. Download the script - Install via jsr.io ```shell - curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.0/files-to-prompt.ts > ftp.ts + curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.1/files-to-prompt.ts > ftp.ts ``` - Install via GitHub ```shell - curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.0/files-to-prompt.ts > ftp.ts + curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.1/files-to-prompt.ts > ftp.ts ``` 3. Make the script executable with `chmod +x ftp.ts` @@ -83,43 +83,51 @@ This tool includes a set of tests to ensure it works as expected. You can run th bun test --coverage ``` -Recent test status (v0.2.0): +Recent test status (v0.2.1): ``` bun test v1.1.4 (fbe2fe0c) files-to-prompt.test.ts: -✓ files-to-prompt.ts > should include single file passed on the command line [11.76ms] -✓ files-to-prompt.ts > should include multiple files passed on the command line [6.84ms] -✓ files-to-prompt.ts > should include files in directories passed on the command line [7.63ms] -✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.67ms] -✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.41ms] -✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.67ms] -✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.96ms] -✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.81ms] -✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.08ms] -✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.91ms] -✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [8.42ms] -✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.80ms] -✓ files-to-prompt.ts > should skip binary files [6.63ms] -✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.22ms] -✓ files-to-prompt.ts > should skip FIFOs [16.55ms] -✓ files-to-prompt.ts > should fail with error message if path does not exist [6.71ms] -✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.17ms] -✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.04ms] -✓ files-to-prompt.ts > should output version string when --version is passed [0.14ms] +✓ files-to-prompt.ts > should include single file passed on the command line [11.59ms] +✓ files-to-prompt.ts > should include multiple files passed on the command line [6.86ms] +✓ files-to-prompt.ts > should include files in directories passed on the command line [7.73ms] +✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.64ms] +✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [6.61ms] +✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.47ms] +✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.89ms] +✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.75ms] +✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.17ms] +✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.77ms] +✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.85ms] +✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.62ms] +✓ files-to-prompt.ts > should skip binary files [6.88ms] +✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.14ms] +✓ files-to-prompt.ts > should skip FIFOs [20.92ms] +✓ files-to-prompt.ts > should fail with error message if path does not exist [6.70ms] +✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.32ms] +✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.06ms] +✓ files-to-prompt.ts > should parse file paths with one file path per line [0.07ms] +✓ files-to-prompt.ts > should handle mixed input formats [0.03ms] +✓ files-to-prompt.ts > should handle empty lines in stdin data [0.03ms] +✓ files-to-prompt.ts > should handle binary data in stdin [0.09ms] +✓ files-to-prompt.ts > should handle common text/code files in stdin [0.04ms] +✓ files-to-prompt.ts > should handle long file paths in stdin [0.26ms] +✓ files-to-prompt.ts > should ignore file paths with the null character [0.04ms] +✓ files-to-prompt.ts > should ignore file paths with control characters [0.03ms] +✓ files-to-prompt.ts > should output version string when --version is passed [0.10ms] ✓ files-to-prompt.ts > should output error for unsupported options [0.06ms] --------------------|---------|---------|------------------- File | % Funcs | % Lines | Uncovered Line #s --------------------|---------|---------|------------------- -All files | 87.50 | 87.15 | - files-to-prompt.ts | 87.50 | 87.15 | 30,41,64,102,229-240,315-317,335-338 +All files | 88.00 | 88.38 | + files-to-prompt.ts | 88.00 | 88.38 | 30,41,64,102,229-240,349-351,369-372 --------------------|---------|---------|------------------- - 20 pass + 28 pass 0 fail - 51 expect() calls -Ran 20 tests across 1 files. [159.00ms] + 59 expect() calls +Ran 28 tests across 1 files. [165.00ms] ``` ## Compatibility diff --git a/files-to-prompt.ts b/files-to-prompt.ts index 007d970..3186ae2 100755 --- a/files-to-prompt.ts +++ b/files-to-prompt.ts @@ -3,7 +3,7 @@ import fs from 'node:fs'; import path from 'node:path'; -const VERSION = '0.2.0'; +const VERSION = '0.2.1'; /** * Represents the configuration for the file processing. diff --git a/jsr.json b/jsr.json index 5244760..fc32d9d 100644 --- a/jsr.json +++ b/jsr.json @@ -1,5 +1,5 @@ { "name": "@fry69/files-to-prompt-ts", - "version": "0.2.0", + "version": "0.2.1", "exports": "./files-to-prompt.ts" }