Skip to content

Releases: uoctamika/libraryjs

v1.2.3

07 Jun 04:50
v1.2.3
0d7de12

Choose a tag to compare

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

05 Jun 10:24
v1.2.2
0dcfd5f

Choose a tag to compare

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

05 Jun 09:33
v1.2.1
a9b9d1d

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

04 Jun 03:58
v1.2.0
943006e

Choose a tag to compare

What's Changed

Full Changelog: v1.1.4...v1.2.0

v1.1.4

02 Jun 01:38
v1.1.4
8c4bd12

Choose a tag to compare

What's Changed

Full Changelog: v1.1.3...v1.1.4

v1.1.3

31 May 12:12
v1.1.3
74a6b61

Choose a tag to compare

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

31 May 01:27
v1.1.2
b8a3474

Choose a tag to compare

This release for stable stdio.printf function and publish workflow, can be install now!

Installation

$ npm install @uoctamika/libraryjs

version now:

$ npm install @uoctamika/libraryjs@1.1.2

What 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