Skip to content

Commit 752a04b

Browse files
committed
Bump version to 0.2.1
1 parent 4d3746a commit 752a04b

File tree

3 files changed

+37
-29
lines changed

3 files changed

+37
-29
lines changed

README.md

+35-27
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ Additional features not found the original version:
2525
2. Download the script
2626
- Install via jsr.io
2727
```shell
28-
curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.0/files-to-prompt.ts > ftp.ts
28+
curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.1/files-to-prompt.ts > ftp.ts
2929
```
3030

3131
- Install via GitHub
3232

3333
```shell
34-
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.0/files-to-prompt.ts > ftp.ts
34+
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.1/files-to-prompt.ts > ftp.ts
3535
```
3636

3737
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
8383
bun test --coverage
8484
```
8585
86-
Recent test status (v0.2.0):
86+
Recent test status (v0.2.1):
8787
8888
```
8989
bun test v1.1.4 (fbe2fe0c)
9090
9191
files-to-prompt.test.ts:
92-
✓ files-to-prompt.ts > should include single file passed on the command line [11.76ms]
93-
✓ files-to-prompt.ts > should include multiple files passed on the command line [6.84ms]
94-
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.63ms]
95-
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.67ms]
96-
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.41ms]
97-
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.67ms]
98-
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.96ms]
99-
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.81ms]
100-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.08ms]
101-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.91ms]
102-
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [8.42ms]
103-
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.80ms]
104-
✓ files-to-prompt.ts > should skip binary files [6.63ms]
105-
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.22ms]
106-
✓ files-to-prompt.ts > should skip FIFOs [16.55ms]
107-
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.71ms]
108-
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.17ms]
109-
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.04ms]
110-
✓ files-to-prompt.ts > should output version string when --version is passed [0.14ms]
92+
✓ files-to-prompt.ts > should include single file passed on the command line [11.59ms]
93+
✓ files-to-prompt.ts > should include multiple files passed on the command line [6.86ms]
94+
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.73ms]
95+
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.64ms]
96+
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [6.61ms]
97+
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.47ms]
98+
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.89ms]
99+
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.75ms]
100+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.17ms]
101+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.77ms]
102+
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.85ms]
103+
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.62ms]
104+
✓ files-to-prompt.ts > should skip binary files [6.88ms]
105+
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.14ms]
106+
✓ files-to-prompt.ts > should skip FIFOs [20.92ms]
107+
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.70ms]
108+
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.32ms]
109+
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.06ms]
110+
✓ files-to-prompt.ts > should parse file paths with one file path per line [0.07ms]
111+
✓ files-to-prompt.ts > should handle mixed input formats [0.03ms]
112+
✓ files-to-prompt.ts > should handle empty lines in stdin data [0.03ms]
113+
✓ files-to-prompt.ts > should handle binary data in stdin [0.09ms]
114+
✓ files-to-prompt.ts > should handle common text/code files in stdin [0.04ms]
115+
✓ files-to-prompt.ts > should handle long file paths in stdin [0.26ms]
116+
✓ files-to-prompt.ts > should ignore file paths with the null character [0.04ms]
117+
✓ files-to-prompt.ts > should ignore file paths with control characters [0.03ms]
118+
✓ files-to-prompt.ts > should output version string when --version is passed [0.10ms]
111119
✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
112120
--------------------|---------|---------|-------------------
113121
File | % Funcs | % Lines | Uncovered Line #s
114122
--------------------|---------|---------|-------------------
115-
All files | 87.50 | 87.15 |
116-
files-to-prompt.ts | 87.50 | 87.15 | 30,41,64,102,229-240,315-317,335-338
123+
All files | 88.00 | 88.38 |
124+
files-to-prompt.ts | 88.00 | 88.38 | 30,41,64,102,229-240,349-351,369-372
117125
--------------------|---------|---------|-------------------
118126
119-
20 pass
127+
28 pass
120128
0 fail
121-
51 expect() calls
122-
Ran 20 tests across 1 files. [159.00ms]
129+
59 expect() calls
130+
Ran 28 tests across 1 files. [165.00ms]
123131
```
124132
125133
## Compatibility

files-to-prompt.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import fs from 'node:fs';
44
import path from 'node:path';
55

6-
const VERSION = '0.2.0';
6+
const VERSION = '0.2.1';
77

88
/**
99
* Represents the configuration for the file processing.

jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@fry69/files-to-prompt-ts",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"exports": "./files-to-prompt.ts"
55
}

0 commit comments

Comments
 (0)