Skip to content

Commit aca86d3

Browse files
committed
Bump version to 0.4.3
1 parent 6a50571 commit aca86d3

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

README.md

+37-37
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ bun run files-to-prompt.ts [options] [paths]
3737
Alternatively you can download the script directly:
3838
- from jsr.io:
3939
```shell
40-
curl https://jsr.io/@fry69/files-to-prompt-ts/0.4.2/files-to-prompt.ts > ftp.ts
40+
curl https://jsr.io/@fry69/files-to-prompt-ts/0.4.3/files-to-prompt.ts > ftp.ts
4141
```
4242
- from GitHub:
4343
```shell
44-
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.4.2/files-to-prompt.ts > ftp.ts
44+
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.4.3/files-to-prompt.ts > ftp.ts
4545
```
4646

4747
Don't forget to make the script executable with `chmod +x ftp.ts` and move it to a location where it is accessible from your system's `$PATH` (optional).
@@ -114,60 +114,60 @@ This repository includes a comprehensive test script to ensure `files-to-prompt.
114114
bun test --coverage
115115
```
116116

117-
Recent test status (v0.4.2 using nbconvert-shim):
117+
Recent test status (v0.4.3 using nbconvert-shim):
118118

119119
```
120120
bun test v1.1.4 (fbe2fe0c)
121121
122122
files-to-prompt.test.ts:
123-
✓ files-to-prompt.ts > should include single file passed on the command line [11.92ms]
124-
✓ files-to-prompt.ts > should include multiple files passed on the command line [7.18ms]
125-
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.51ms]
126-
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.68ms]
127-
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [6.60ms]
128-
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [7.53ms]
129-
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [6.17ms]
130-
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [7.00ms]
131-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.17ms]
132-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.90ms]
133-
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.94ms]
134-
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.97ms]
135-
✓ files-to-prompt.ts > should skip binary files [6.69ms]
136-
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.26ms]
137-
✓ files-to-prompt.ts > should skip FIFOs [16.56ms]
138-
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.73ms]
139-
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.28ms]
123+
✓ files-to-prompt.ts > should include single file passed on the command line [16.14ms]
124+
✓ files-to-prompt.ts > should include multiple files passed on the command line [7.12ms]
125+
✓ files-to-prompt.ts > should include files in directories passed on the command line [9.04ms]
126+
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.57ms]
127+
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [8.16ms]
128+
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.66ms]
129+
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [6.71ms]
130+
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [7.38ms]
131+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [6.56ms]
132+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [7.55ms]
133+
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.63ms]
134+
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.27ms]
135+
✓ files-to-prompt.ts > should skip binary files [7.06ms]
136+
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [0.18ms]
137+
✓ files-to-prompt.ts > should skip FIFOs [21.57ms]
138+
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.55ms]
139+
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.55ms]
140140
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.05ms]
141141
✓ files-to-prompt.ts > should parse file paths with one file path per line [0.06ms]
142142
✓ files-to-prompt.ts > should handle mixed input formats [0.03ms]
143143
✓ files-to-prompt.ts > should handle empty lines in stdin data [0.02ms]
144-
✓ files-to-prompt.ts > should handle binary data in stdin [0.08ms]
144+
✓ files-to-prompt.ts > should handle binary data in stdin [0.35ms]
145145
✓ files-to-prompt.ts > should handle common text/code files in stdin [0.04ms]
146146
✓ files-to-prompt.ts > should handle long file paths in stdin [0.23ms]
147-
✓ files-to-prompt.ts > should ignore file paths with the null character [0.03ms]
148-
✓ files-to-prompt.ts > should ignore file paths with control characters [0.04ms]
149-
✓ files-to-prompt.ts > should output version string when --version is passed [0.08ms]
150-
✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
151-
✓ files-to-prompt.ts > should output to a file when --output is passed [6.54ms]
152-
✓ files-to-prompt.ts > should output to a file when -o is passed [7.36ms]
153-
✓ files-to-prompt.ts > should output error if --output is passed without a file path [5.92ms]
154-
✓ files-to-prompt.ts > should output error if -o is passed without a file path [6.63ms]
155-
✓ files-to-prompt.ts > should output error if output file cannot be written [6.05ms]
156-
✓ files-to-prompt.ts > should include .ipynb files verbatim whitout --nbconvert [7.55ms]
157-
✓ files-to-prompt.ts > should include .ipynb files verbatim when --nbconvert is set to invalid command [10.62ms]
158-
✓ files-to-prompt.ts > should convert .ipynb files to ASCII when --nbconvert --format asciidoc is passed [54.86ms]
159-
✓ files-to-prompt.ts > should convert .ipynb files to Markdown when --nbconvert --format markdown is passed [41.69ms]
147+
✓ files-to-prompt.ts > should ignore file paths with the null character [0.04ms]
148+
✓ files-to-prompt.ts > should ignore file paths with control characters [0.03ms]
149+
✓ files-to-prompt.ts > should output version string when --version is passed [0.10ms]
150+
✓ files-to-prompt.ts > should output error for unsupported options [0.05ms]
151+
✓ files-to-prompt.ts > should output to a file when --output is passed [6.48ms]
152+
✓ files-to-prompt.ts > should output to a file when -o is passed [6.44ms]
153+
✓ files-to-prompt.ts > should output error if --output is passed without a file path [5.84ms]
154+
✓ files-to-prompt.ts > should output error if -o is passed without a file path [5.92ms]
155+
✓ files-to-prompt.ts > should output error if output file cannot be written [6.04ms]
156+
✓ files-to-prompt.ts > should include .ipynb files verbatim whitout --nbconvert [7.39ms]
157+
✓ files-to-prompt.ts > should include .ipynb files verbatim when --nbconvert is set to invalid command [12.06ms]
158+
✓ files-to-prompt.ts > should convert .ipynb files to ASCII when --nbconvert --format asciidoc is passed [61.49ms]
159+
✓ files-to-prompt.ts > should convert .ipynb files to Markdown when --nbconvert --format markdown is passed [58.18ms]
160160
--------------------|---------|---------|-------------------
161161
File | % Funcs | % Lines | Uncovered Line #s
162162
--------------------|---------|---------|-------------------
163-
All files | 89.66 | 87.06 |
164-
files-to-prompt.ts | 89.66 | 87.06 | 52,65,80,91-94,120,163,184-185,201,326-337,458-459,474-475,478-479,494-496,514-517
163+
All files | 89.66 | 86.73 |
164+
files-to-prompt.ts | 89.66 | 86.73 | 69,82,97,108-111,137,180,201-202,218,343-354,475-476,491-492,495-496,512-514,532-535,537-538
165165
--------------------|---------|---------|-------------------
166166
167167
37 pass
168168
0 fail
169169
87 expect() calls
170-
Ran 37 tests across 1 files. [315.00ms]
170+
Ran 37 tests across 1 files. [405.00ms]
171171
```
172172

173173
## Compatibility

files-to-prompt.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from 'node:path';
66
import { fileURLToPath } from 'node:url';
77
import { execSync } from 'node:child_process';
88

9-
const VERSION = '0.4.2';
9+
const VERSION = '0.4.3';
1010

1111
/**
1212
* Represents compatibility configuration with various engines.

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.4.2",
3+
"version": "0.4.3",
44
"exports": "./files-to-prompt.ts"
55
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fry69/files-to-prompt-ts",
33
"module": "files-to-prompt.ts",
4-
"version": "0.4.2",
4+
"version": "0.4.3",
55
"repository": "https://github.com/fry69/files-to-prompt-ts",
66
"devDependencies": {
77
"@types/bun": "latest"
@@ -11,6 +11,6 @@
1111
},
1212
"type": "module",
1313
"scripts": {
14-
"test": "bun test ./files-to-prompt.test.ts"
14+
"test": "bun test --coverage ./files-to-prompt.test.ts"
1515
}
1616
}

0 commit comments

Comments
 (0)