@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.
- package/changelog.txt +14 -0
- package/dev_checklist.txt +9 -3
- package/docs/README.md +12 -0
- package/docs/docs.json +1523 -233
- package/docs/functions/createFindDirectories.md +1 -1
- package/docs/functions/decode.md +1 -1
- package/docs/functions/decode32.md +49 -0
- package/docs/functions/decode58.md +49 -0
- package/docs/functions/decode85.md +49 -0
- package/docs/functions/encode.md +1 -1
- package/docs/functions/encode32.md +45 -0
- package/docs/functions/encode58.md +45 -0
- package/docs/functions/encode85.md +45 -0
- package/docs/functions/hello.md +35 -3
- package/docs/functions/parseUserAgent.md +1 -1
- package/docs/functions/pojo.md +1 -1
- package/docs/interfaces/FileSystemDependencies.md +3 -3
- package/docs/interfaces/FindDirectoriesOptions.md +5 -5
- package/docs/interfaces/UserAgentInfo.md +6 -6
- package/docs/type-aliases/Base32CharsetType.md +13 -0
- package/docs/type-aliases/Base58CharsetType.md +13 -0
- package/docs/type-aliases/Base64CharsetType.md +1 -1
- package/docs/type-aliases/Base85CharsetType.md +13 -0
- package/docs/variables/Base32Charset.md +16 -0
- package/docs/variables/Base58Charset.md +16 -0
- package/docs/variables/Base64Charset.md +1 -1
- package/docs/variables/Base85Charset.md +16 -0
- package/package.json +44 -3
- package/readme.txt +12 -0
- package/src/base32.d.ts +58 -0
- package/src/base32.js +143 -0
- package/src/base32.test.d.ts +2 -0
- package/src/base32.test.js +121 -0
- package/src/base32.test.ts +144 -0
- package/src/base32.ts +169 -0
- package/src/base58.d.ts +58 -0
- package/src/base58.js +155 -0
- package/src/base58.test.d.ts +2 -0
- package/src/base58.test.js +108 -0
- package/src/base58.test.ts +128 -0
- package/src/base58.ts +177 -0
- package/src/base85.d.ts +58 -0
- package/src/base85.js +173 -0
- package/src/base85.test.d.ts +2 -0
- package/src/base85.test.js +107 -0
- package/src/base85.test.ts +125 -0
- package/src/base85.ts +199 -0
- package/src/hello.d.ts +27 -2
- package/src/hello.js +29 -4
- package/src/hello.test.js +11 -0
- package/src/hello.test.ts +13 -0
- package/src/hello.ts +29 -4
- package/src/index.d.ts +8 -2
- package/src/index.js +4 -1
- 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
|
|
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
|
-
- [ ]
|
|
15
|
-
- [ ] Control Blocks:
|
|
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)
|