Commit 492abd3
committed
refactor: convert defaults module to JSON in
Aligns `streams/node/join` with the sibling-package convention: 12/16
(75%) of `streams/node/*` packages with configurable options expose
defaults via a `lib/defaults.json` file and consume them with
`assign( {}, DEFAULTS )`. `join` was the lone outlier carrying an
equivalent `lib/defaults.js` function that returned a static object
literal — no dynamism, no semantic difference.
- Adds `lib/defaults.json` mirroring the literal returned by the
removed `lib/defaults.js`.
- Removes `lib/defaults.js`.
- Updates `lib/main.js` to require the JSON file and use
`@stdlib/object/assign` for a fresh copy, matching the pattern in
`from-array`, `from-iterator`, `split`, and other siblings.
No change to observable behavior, public API, or test expectations.streams/node/join
1 parent 58bbb07 commit 492abd3
3 files changed
Lines changed: 10 additions & 48 deletions
Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
0 commit comments