@wtasnorg/node-lib 0.0.8 → 0.0.10

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.9] - 2026-01-19
4
+
5
+ ### Added
6
+ - Base64 encoding/decoding in `src/base64.ts` with four charset variants:
7
+ - `standard`: RFC 4648 standard alphabet (A-Z, a-z, 0-9, +, /)
8
+ - `urlsafe`: URL and filename safe (A-Z, a-z, 0-9, -, _)
9
+ - `imap`: Modified Base64 for IMAP mailbox names (A-Z, a-z, 0-9, +, ,)
10
+ - `radix64`: Base64 variant used in OpenPGP (A-Z, a-z, 0-9, +, /)
11
+ - Exported `encode`, `decode`, `Base64Charset`, and `Base64CharsetType` from `index.ts`.
12
+ - Comprehensive unit tests in `src/base64.test.ts` with round-trip tests for all charsets.
13
+
3
14
  ## [0.0.8] - 2026-01-19
4
15
 
5
16
  ### Added
@@ -12,3 +23,4 @@
12
23
  ### Fixed
13
24
  - Exported `parseUserAgent` function and `UserAgentInfo` type from `index.ts`.
14
25
  - Fixed `detectEngine` logic: "Blink" was never returned because "AppleWebKit" check ran first. Reordered checks so Chrome-based browsers correctly return "Blink".
26
+
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
@@ -10,9 +10,19 @@
10
10
  - [FindDirectoriesOptions](interfaces/FindDirectoriesOptions.md)
11
11
  - [UserAgentInfo](interfaces/UserAgentInfo.md)
12
12
 
13
+ ## Type Aliases
14
+
15
+ - [Base64CharsetType](type-aliases/Base64CharsetType.md)
16
+
17
+ ## Variables
18
+
19
+ - [Base64Charset](variables/Base64Charset.md)
20
+
13
21
  ## Functions
14
22
 
15
23
  - [createFindDirectories](functions/createFindDirectories.md)
24
+ - [decode](functions/decode.md)
25
+ - [encode](functions/encode.md)
16
26
  - [hello](functions/hello.md)
17
27
  - [parseUserAgent](functions/parseUserAgent.md)
18
28
  - [pojo](functions/pojo.md)