@avstantso/utils-names-tree 1.1.0 → 1.3.0
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.md +29 -0
- package/README.md +309 -133
- package/dist/_global/_register.d.ts +467 -0
- package/dist/_global/index.d.ts +1 -0
- package/dist/export.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +235 -0
- package/dist/index.js.map +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## [1.3.0] - 2026-01-31
|
|
5
|
+
|
|
6
|
+
### Added
|
|
7
|
+
|
|
8
|
+
- **20+ new built-in kinds** for various formatting scenarios:
|
|
9
|
+
- Basic delimiters: `slash`, `backslash`, `dot`, `amp`, `hash`, `colon`, `arrow`, `dash`, `underscore`, `doubleColon`, `comma`, `semicolon`, `space`, `pipe`
|
|
10
|
+
- Derived kinds: `url`, `query`, `longArg`, `shortArg`, `envVar`, `cssClass`, `cssId`, `anchor`, `scoped`, `param`, `arg`, `params`, `args`
|
|
11
|
+
- Aliases: `snake`, `namespace`, `csv`, `title`
|
|
12
|
+
- **`rootAlias` option** - adds an alias property for tree root (e.g., `{ rootAlias: 'Home' }` for URL trees)
|
|
13
|
+
- **`defaultKind` option** - specifies which kind to use for default `toString()` output
|
|
14
|
+
- **Flexible leaf values** - source data leaf nodes can be any type (string, number, boolean, etc.), not just empty strings
|
|
15
|
+
- **`ResolveKind` type** - compile-time kind resolution for precise type inference
|
|
16
|
+
- **`KindMeta` interface** - metadata system for kinds (prefix, separator, beforeEach, afterEach, up)
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **BREAKING:** `splitted` renamed to `$splitted`
|
|
21
|
+
- **BREAKING:** `merge` renamed to `$merge`
|
|
22
|
+
- Improved type inference — `as const` no longer needed for data structures (only for options like `prefix`, `rootAlias`)
|
|
23
|
+
- Updated `@avstantso/ts` dependency
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [1.2.1] - 2026-01-18
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Fix publishing
|
|
31
|
+
|
|
3
32
|
All notable changes to this project will be documented in this file.
|
|
4
33
|
|
|
5
34
|
## [1.1.0] - 2026-01-18
|