@wtasnorg/node-lib 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/changelog.txt +14 -0
  2. package/dev_checklist.txt +9 -3
  3. package/docs/README.md +12 -0
  4. package/docs/docs.json +1523 -233
  5. package/docs/functions/createFindDirectories.md +1 -1
  6. package/docs/functions/decode.md +1 -1
  7. package/docs/functions/decode32.md +49 -0
  8. package/docs/functions/decode58.md +49 -0
  9. package/docs/functions/decode85.md +49 -0
  10. package/docs/functions/encode.md +1 -1
  11. package/docs/functions/encode32.md +45 -0
  12. package/docs/functions/encode58.md +45 -0
  13. package/docs/functions/encode85.md +45 -0
  14. package/docs/functions/hello.md +35 -3
  15. package/docs/functions/parseUserAgent.md +1 -1
  16. package/docs/functions/pojo.md +1 -1
  17. package/docs/interfaces/FileSystemDependencies.md +3 -3
  18. package/docs/interfaces/FindDirectoriesOptions.md +5 -5
  19. package/docs/interfaces/UserAgentInfo.md +6 -6
  20. package/docs/type-aliases/Base32CharsetType.md +13 -0
  21. package/docs/type-aliases/Base58CharsetType.md +13 -0
  22. package/docs/type-aliases/Base64CharsetType.md +1 -1
  23. package/docs/type-aliases/Base85CharsetType.md +13 -0
  24. package/docs/variables/Base32Charset.md +16 -0
  25. package/docs/variables/Base58Charset.md +16 -0
  26. package/docs/variables/Base64Charset.md +1 -1
  27. package/docs/variables/Base85Charset.md +16 -0
  28. package/package.json +44 -3
  29. package/readme.txt +12 -0
  30. package/src/base32.d.ts +58 -0
  31. package/src/base32.js +143 -0
  32. package/src/base32.test.d.ts +2 -0
  33. package/src/base32.test.js +121 -0
  34. package/src/base32.test.ts +144 -0
  35. package/src/base32.ts +169 -0
  36. package/src/base58.d.ts +58 -0
  37. package/src/base58.js +155 -0
  38. package/src/base58.test.d.ts +2 -0
  39. package/src/base58.test.js +108 -0
  40. package/src/base58.test.ts +128 -0
  41. package/src/base58.ts +177 -0
  42. package/src/base85.d.ts +58 -0
  43. package/src/base85.js +173 -0
  44. package/src/base85.test.d.ts +2 -0
  45. package/src/base85.test.js +107 -0
  46. package/src/base85.test.ts +125 -0
  47. package/src/base85.ts +199 -0
  48. package/src/hello.d.ts +27 -2
  49. package/src/hello.js +29 -4
  50. package/src/hello.test.js +11 -0
  51. package/src/hello.test.ts +13 -0
  52. package/src/hello.ts +29 -4
  53. package/src/index.d.ts +8 -2
  54. package/src/index.js +4 -1
  55. package/src/index.ts +20 -2
package/changelog.txt CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.11] - 2026-01-20
4
+
5
+ ### Added
6
+ - Base58 encoding/decoding in `src/base58.ts` with three charset variants: `bitcoin`, `flickr`, `ripple`.
7
+ - Base85 encoding/decoding in `src/base85.ts` with three charset variants: `ascii85`, `z85`, `rfc1924`.
8
+ - Base32 encoding/decoding in `src/base32.ts` with three charset variants: `rfc4648`, `hex`, `crockford`.
9
+ - Comprehensive unit tests for all new modules.
10
+ - Subpath exports for tree shaking: import individual modules via `@wtasnorg/node-lib/base64`, etc.
11
+
12
+ ## [0.0.10] - 2026-01-20
13
+
14
+ ### Updated
15
+ - Updated `hello` to use konsole.
16
+
3
17
  ## [0.0.9] - 2026-01-19
4
18
 
5
19
  ### Added
package/dev_checklist.txt CHANGED
@@ -9,10 +9,16 @@
9
9
 
10
10
  ### Structure & Style
11
11
 
12
- - [ ] Imports/Exports: Imports at the top, exports at the bottom.
12
+ - [ ] Imports/Exports
13
+ - [ ] Imports at the top, exports at the bottom.
14
+ - [ ] Export named functions, types, objects.
15
+ - [ ] Import named functions, types, objects.
13
16
  - [ ] Visibility: All primary functions should be exported.
14
- - [ ] Mutability: Prefer `const` over `let` (`prefer-const`).
15
- - [ ] Control Blocks: Always use braces `{}` for `if`, `for`, etc. (`curly`).
17
+ - [ ] Immutability: Prefer `const` over `let` (`prefer-const`).
18
+ - [ ] Control Blocks:
19
+ - [ ] Always use braces `{}` for `if`, `for`, etc. (`curly`).
20
+ - [ ] Use only `for` loop. Do not use `while`, `do-while`.
21
+ - [ ] Use `switch` instead of if-else ladder for one variable.
16
22
  - [ ] AI Agent Protocol: AI agents MUST honor the project's ESLint and EditorConfig settings for all modifications. Run `npm run lint` to verify compliance.
17
23
 
18
24
  ### Documentation & Examples
package/docs/README.md CHANGED
@@ -12,17 +12,29 @@
12
12
 
13
13
  ## Type Aliases
14
14
 
15
+ - [Base32CharsetType](type-aliases/Base32CharsetType.md)
16
+ - [Base58CharsetType](type-aliases/Base58CharsetType.md)
15
17
  - [Base64CharsetType](type-aliases/Base64CharsetType.md)
18
+ - [Base85CharsetType](type-aliases/Base85CharsetType.md)
16
19
 
17
20
  ## Variables
18
21
 
22
+ - [Base32Charset](variables/Base32Charset.md)
23
+ - [Base58Charset](variables/Base58Charset.md)
19
24
  - [Base64Charset](variables/Base64Charset.md)
25
+ - [Base85Charset](variables/Base85Charset.md)
20
26
 
21
27
  ## Functions
22
28
 
23
29
  - [createFindDirectories](functions/createFindDirectories.md)
24
30
  - [decode](functions/decode.md)
31
+ - [decode32](functions/decode32.md)
32
+ - [decode58](functions/decode58.md)
33
+ - [decode85](functions/decode85.md)
25
34
  - [encode](functions/encode.md)
35
+ - [encode32](functions/encode32.md)
36
+ - [encode58](functions/encode58.md)
37
+ - [encode85](functions/encode85.md)
26
38
  - [hello](functions/hello.md)
27
39
  - [parseUserAgent](functions/parseUserAgent.md)
28
40
  - [pojo](functions/pojo.md)