Skip to content

Commit 0311370

Browse files
committed
chore: release 0.1.0
Bump package.json, Cargo.toml, index.js binding checks, and CHANGELOG to 0.1.0; drop beta notice and document readFile encoding fix.
1 parent dbf95d4 commit 0311370

5 files changed

Lines changed: 63 additions & 61 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ All notable changes to Rush-FS are documented here. The format is based on [Keep
66

77
- (Add new changes here before each release.)
88

9-
## [0.1.0] - (release date TBD)
10-
11-
**This release is in beta.** API and behavior may change before 0.1.0 stable. Feedback and issues are welcome.
9+
## [0.1.0] - 2026-03-05
1210

1311
### Changed
1412

@@ -20,6 +18,7 @@ All notable changes to Rush-FS are documented here. The format is based on [Keep
2018

2119
- **glob:** Patterns with a path prefix (e.g. `.dir/**/*.txt` or `src/**/*.ts`) now work when used without an explicit `cwd`; the prefix is used as the search root, matching Node.js behavior.
2220
- **glob:** Recursive pattern `**/*.ext` with `cwd` now correctly recurses into subdirectories.
21+
- **readFile:** Async `readFile(path, encoding)` with string as second argument (e.g. `readFile(path, 'utf-8')`) now returns a decoded string instead of Buffer, matching Node.js and fixing issue #16.
2322

2423
## [0.0.5]
2524

@@ -42,8 +41,8 @@ All notable changes to Rush-FS are documented here. The format is based on [Keep
4241

4342
---
4443

45-
[Unreleased]: https://github.com/CoderSerio/rush-fs/compare/v0.1.0-beta.1...HEAD
46-
[0.1.0]: https://github.com/CoderSerio/rush-fs/compare/v0.0.5...v0.1.0-beta.1
44+
[Unreleased]: https://github.com/CoderSerio/rush-fs/compare/v0.1.0...HEAD
45+
[0.1.0]: https://github.com/CoderSerio/rush-fs/compare/v0.0.5...v0.1.0
4746
[0.0.5]: https://github.com/CoderSerio/rush-fs/compare/v0.0.4...v0.0.5
4847
[0.0.4]: https://github.com/CoderSerio/rush-fs/compare/v0.0.3...v0.0.4
4948
[0.0.3]: https://github.com/CoderSerio/rush-fs/releases/tag/v0.0.3

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
authors = []
44
edition = "2021"
55
name = "rush_fs"
6-
version = "0.1.0-beta.1"
6+
version = "0.1.0"
77

88
[lib]
99
crate-type = ["cdylib"]

index.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,17 @@ export declare function readdirSync(
164164
options?: ReaddirOptions | undefined | null,
165165
): Array<string> | Array<Dirent>
166166

167-
export declare function readFile(path: string, options?: ReadFileOptions | undefined | null): Promise<unknown>
167+
export declare function readFile(path: string, options?: string | ReadFileOptions | undefined | null): Promise<unknown>
168168

169169
export interface ReadFileOptions {
170170
encoding?: string
171171
flag?: string
172172
}
173173

174-
export declare function readFileSync(path: string, options?: ReadFileOptions | undefined | null): string | Buffer
174+
export declare function readFileSync(
175+
path: string,
176+
options?: string | ReadFileOptions | undefined | null,
177+
): string | Buffer
175178

176179
export declare function readlink(path: string): Promise<unknown>
177180

0 commit comments

Comments
 (0)