Releases: GoodbyeNJN/utils
Releases · GoodbyeNJN/utils
v26.1.0
🚀 Features
- Make fromFilepath method async - by @GoodbyeNJN (7b7dc)
- Update error handling in file operations to use and context - by @GoodbyeNJN (1f672)
- Refactor error handling for better stack traces - by @GoodbyeNJN (8ea73)
- Remove value and error getter in Err and Ok classes - by @GoodbyeNJN (781ef)
- Add unwrap, unwrapErr and unwrapOrElse methods to Result class - by @GoodbyeNJN (6c761)
- Implement toString and toJSON methods in Result, Err, and Ok classes - by @GoodbyeNJN (2ddf3)
- Add stringify, safeParse and unsafeParse functions for JSON handling - by @GoodbyeNJN (e806a)
- Replace JSON.stringify with custom stringify function in error normalizing and Result class - by @GoodbyeNJN (b20f8)
- Update return type of $ function to use Error instead of string - by @GoodbyeNJN (cbeb4)
- Update readFile and readJson functions to return undefined instead of null on error - by @GoodbyeNJN (fae42)
- Split try method into fromValue and fromCallable - by @GoodbyeNJN (bae15)
- Enhance safeTry with correct 'this' context binding - by @GoodbyeNJN (1a479)
- Add type exports - by @GoodbyeNJN (71cb1)
- Add glob and globSync functions using tinyglobby - by @GoodbyeNJN (dde7d)
- Add support for patterns in options object - by @GoodbyeNJN (cc8a2)
- Add concatTemplateStrings utility - by @GoodbyeNJN (46af3)
- Enhance shell command execution with options for stdout and stderr handling - by @GoodbyeNJN (8dd93)
- Remove unused errorToMessage export - by @GoodbyeNJN (87881)
- Add return types to utility functions and improve type definitions - by @GoodbyeNJN (e4858)
- Implement ResultError class and enhance Result handling - by @GoodbyeNJN (f24cc)
- Enhance normalizeError to capture caller context and improve error handling - by @GoodbyeNJN (e0e13)
- Enhance ShellExecOptions to support onStdin and improve stdin handling - by @GoodbyeNJN (6d9db)
- Update readFileByLine to return AsyncIterable instead of AsyncIterator - by @GoodbyeNJN (da5a4)
- Remove unused fromValue method and add toSafeCallable for improved error handling - by @GoodbyeNJN (0a309)
- Simplify Result.all method and remove Result.allSettled method - by @GoodbyeNJN (e4521)
- Refactor error handling in ResultError and update unwrap methods to accept custom messages - by @GoodbyeNJN (abb85)
- Add Optional and SetNullable types for enhanced type handling - by @GoodbyeNJN (82ba6)
- Add isFunction utility for type checking functions - by @GoodbyeNJN (a288e)
- Add defaultTo, groupByProp, isEmptyish, toTitleCase, and truncate utilities - by @GoodbyeNJN (3ff41)
🐞 Bug Fixes
- Update import paths for Except and IterableElement from type-fest - by @GoodbyeNJN (0f72b)
- Revert "refactor: separate Err and Ok classes into their own files" (1c4b6b9) - by @GoodbyeNJN (1982b)
View changes on GitHub
v1.3.1
🚀 Features
- Enhance Err result with context and stack trace options - by @GoodbyeNJN (de7dd)
- Remove isErrorLike utility and simplify error handling in normalizeError - by @GoodbyeNJN (0a4e5)
View changes on GitHub
v1.3.0
🚀 Features
- Add SyncFn and SyncFnWithThis to type utilities - by @GoodbyeNJN (2344f)
- Remove sync tests and related types for Result and ResultAsync - by @GoodbyeNJN (2bacd)
View changes on GitHub
v1.2.0
🚀 Features
- Add quoteShellArg function to process utilities - by @GoodbyeNJN (147f9)
View changes on GitHub
v1.1.1
🐞 Bug Fixes
- Update function signatures for $ and unindent to support TemplateStringsArray - by @GoodbyeNJN (fd365)
View changes on GitHub
v1.1.0
🚀 Features
- Add process utilities for safe command execution - by @GoodbyeNJN (5e486)
🐞 Bug Fixes
- Update npm version badge URL - by @GoodbyeNJN (db2d4)
- Update AsyncFn and Fn types to use readonly arrays - by @GoodbyeNJN (0e82e)