Releases: uoctamika/libraryjs
Releases · uoctamika/libraryjs
v1.2.3
What's Changed
- Rename directory from tes to test and add testing workflow by @uoctamika in #21
- Integrate Vitest for testing and update test configurations by @uoctamika in #22
- Bump @types/node from 25.9.1 to 25.9.2 by @dependabot[bot] in #23
- Update dependency versions in lock file by @uoctamika in #24
- refector: add comments to ignore %% and default specifiers by @uoctamika in #25
- bump: patch v1.2.3 by @uoctamika in #26
Full Changelog: v1.2.2...v1.2.3
v1.2.2
What's Changed
- Enhance README with updated badges for visibility by @uoctamika in #20
Full Changelog: v1.2.1...v1.2.2
v1.2.1
What's Changed
- Remove Prettier and C8, use native Node.js by @uoctamika in #17
- Ignore coverage directory in version control by @uoctamika in #18
- Bump patch version by @uoctamika in #19
Full Changelog: v1.2.0...v1.2.1
v1.2.0
What's Changed
- Change printf return value to int by @uoctamika in #12
- Refactor test file source codes by @uoctamika in #13
- Fix output tests to display results in stdout by @uoctamika in #14
- Update printf documentation and bump minor version by @uoctamika in #15
Full Changelog: v1.1.4...v1.2.0
v1.1.4
What's Changed
- Add tests for printf functionality by @uoctamika in #8
- Fix and update parsers to handle specific cases and NaN by @uoctamika in #9
- Bumping patch version v1.1.4 by @uoctamika in #10
Full Changelog: v1.1.3...v1.1.4
v1.1.3
What's Changed
- Remove ESLint and related packages for TypeScript by @uoctamika in #5
- Improve performance and address string buffer security vulnerability by @uoctamika in #6
Full Changelog: v1.1.2...v1.1.3
v1.1.2
This release for stable stdio.printf function and publish workflow, can be install now!
Installation
$ npm install @uoctamika/libraryjsversion now:
$ npm install @uoctamika/libraryjs@1.1.2What Changes
stdio.printf
new specifiers
| Specifier | Description | Example Input | Output |
|---|---|---|---|
%s |
String value | "world" |
"world" |
%d |
Decimal integer | 42 |
"42" |
%i |
Integer (parsed from input) | "42px" |
"42" |
%f |
Floating-point number (6 decimal places) | 3.14159 |
"3.141590" |
%c |
Character (first character of string) | "ABC" |
"A" |
%o |
Object (default string representation) | {a:1} |
"[object Object]" |
%O |
Object (full inspection, unlimited depth) | {a:{b:2}} |
"{ a: { b: 2 } }" |
%x |
Hexadecimal (lowercase) | 255 |
"ff" |
%X |
Hexadecimal (uppercase) | 255 |
"FF" |
%b |
Binary | 5 |
"101" |
%j |
JSON stringify | {name:"Uoc"} |
"{\"name\":\"Uoc\"}" |
%% |
Literal percent sign | - | "%" |
possible invalid output
| Specifier | Invalid Input Behavior |
|---|---|
%d |
Returns "NaN" when the value is not a valid integer |
%i |
Returns "NaN" when no integer can be parsed from the input |
%f |
Returns "NaN" when the value is not a valid number |
%c |
Returns an empty string ("") when the input string is empty |
%o |
Returns "[object Object]" for non-null values using default object conversion |
%O |
Returns a string representation of the value, including nested structures |
%x |
Returns "NaN" when the value cannot be converted to an integer |
%X |
Returns "NaN" when the value cannot be converted to an integer |
%b |
Returns "NaN" when the value cannot be converted to an integer |
%j |
Returns "undefined" when JSON serialization fails or the value cannot be serialized |
publish.yml
add run npm install -g npm@latest for supporting stage feature
Security Improvements
nothing to update
Special Thanks
thank you for:
@uoctamika
@dependabot