@thi.ng/strings 3.9.2 → 3.9.3

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 (2) hide show
  1. package/CHANGELOG.md +3 -348
  2. package/package.json +7 -8
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-21T15:46:53Z
3
+ - **Last updated**: 2025-01-23T13:39:11Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -118,350 +120,3 @@ and/or version bumps of transitive dependencies.
118
120
  #### ♻️ Refactoring
119
121
 
120
122
  - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
121
-
122
- ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.3.0) (2021-12-02)
123
-
124
- #### 🚀 Features
125
-
126
- - add currency formatters ([52b7340](https://github.com/thi-ng/umbrella/commit/52b7340))
127
-
128
- ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.2.0) (2021-11-17)
129
-
130
- #### 🚀 Features
131
-
132
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
133
- Improving the overall build ergonomics
134
- - introduced a tools workspaces
135
- - imported it in all needed packages/examples
136
- - inclusive project root
137
-
138
- #### ♻️ Refactoring
139
-
140
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
141
- this commit reverts (partly) changes made in:
142
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
143
- overall purpose is better testament ergonomics:
144
- instead of having to pass NODE_OPTIONS with every invocation
145
- having a binary to handle this for us.
146
-
147
- ### [3.1.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.1.4) (2021-11-10)
148
-
149
- #### ♻️ Refactoring
150
-
151
- - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
152
-
153
- ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.1.0) (2021-10-25)
154
-
155
- #### 🚀 Features
156
-
157
- - migrate/add entities, regexes, fns ([57c246d](https://github.com/thi-ng/umbrella/commit/57c246d))
158
-
159
- ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.0.1) (2021-10-13)
160
-
161
- #### ♻️ Refactoring
162
-
163
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
164
- - add .js suffix for all relative imports
165
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
166
-
167
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.0.0) (2021-10-12)
168
-
169
- #### 🛑 Breaking changes
170
-
171
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
172
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
173
- - only ESM modules will be published from now on
174
- - CJS obsolete due to ESM support in recent versions of node:
175
- - i.e. launch NodeJS via:
176
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
177
- - in the node REPL use `await import(...)` instead of `require()`
178
- - UMD obsolete due to widespread browser support for ESM
179
- Also:
180
- - normalize/restructure/reorg all package.json files
181
- - cleanup all build scripts, remove obsolete
182
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
183
-
184
- #### 🚀 Features
185
-
186
- - add initials() ([5b8476f](https://github.com/thi-ng/umbrella/commit/5b8476f))
187
-
188
- #### ♻️ Refactoring
189
-
190
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
191
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
192
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
193
-
194
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@2.1.0) (2021-03-24)
195
-
196
- #### 🚀 Features
197
-
198
- - add ruler(), grid() fns, update readme ([d93cbf9](https://github.com/thi-ng/umbrella/commit/d93cbf9))
199
-
200
- #### ♻️ Refactoring
201
-
202
- - update opts default handling ([fc92745](https://github.com/thi-ng/umbrella/commit/fc92745))
203
- - update wrapWord(), wordWrapLine()
204
-
205
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@2.0.0) (2021-03-24)
206
-
207
- #### 🛑 Breaking changes
208
-
209
- - major update wordWrap() & co. ([9c9c9cc](https://github.com/thi-ng/umbrella/commit/9c9c9cc))
210
- - BREAKING CHANGE: major update wordWrap(), wordWrapLines() etc.
211
- - update arguments
212
- - add `WordWrapOpts` to configure wordwrap behavior
213
- - add `IWordSplit` interface and `SPLIT_PLAIN`, `SPLIT_ANSI` impls
214
- - implement hardwrap mode
215
-
216
- #### 🚀 Features
217
-
218
- - update split() args ([ea503e8](https://github.com/thi-ng/umbrella/commit/ea503e8))
219
- - allow string delimiters (or regexp)
220
- - add ANSI predicates ([928694b](https://github.com/thi-ng/umbrella/commit/928694b))
221
-
222
- ## [1.15.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.15.0) (2021-02-20)
223
-
224
- #### 🚀 Features
225
-
226
- - add int/intLocale, vector formatters ([ac55fe0](https://github.com/thi-ng/umbrella/commit/ac55fe0))
227
- - add optional arg for float() for special NaN/Inf handling
228
-
229
- #### ♻️ Refactoring
230
-
231
- - update uuid() ([7fe966a](https://github.com/thi-ng/umbrella/commit/7fe966a))
232
- - re-use fn from [@thi.ng/hex](https://github.com/thi-ng/umbrella/tree/main/packages/hex)
233
- - avoid [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/main/packages/checks) dep in vector() ([410d463](https://github.com/thi-ng/umbrella/commit/410d463))
234
-
235
- ## [1.14.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.14.0) (2021-01-13)
236
-
237
- #### 🚀 Features
238
-
239
- - add stringify() HOF ([4ab7e72](https://github.com/thi-ng/umbrella/commit/4ab7e72))
240
-
241
- #### ♻️ Refactoring
242
-
243
- - minor update uuid() ([0a37562](https://github.com/thi-ng/umbrella/commit/0a37562))
244
- - minor update computeCursorPos() ([a593d66](https://github.com/thi-ng/umbrella/commit/a593d66))
245
-
246
- ## [1.13.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.13.0) (2021-01-10)
247
-
248
- #### 🚀 Features
249
-
250
- - update padLeft/Right() args ([118f97f](https://github.com/thi-ng/umbrella/commit/118f97f))
251
- - add optional length arg to explicitly specify string length
252
- (e.g. to exclude ANSI control seq chars)
253
- - add stripAnsi(), lengthAnsi() fns ([86fa81a](https://github.com/thi-ng/umbrella/commit/86fa81a))
254
- - add wordWrap*() fns ([2a283c0](https://github.com/thi-ng/umbrella/commit/2a283c0))
255
- - add tab conversion fns ([aefdd97](https://github.com/thi-ng/umbrella/commit/aefdd97))
256
-
257
- #### ⏱ Performance improvements
258
-
259
- - simplify string default delim regexp ([bb62760](https://github.com/thi-ng/umbrella/commit/bb62760))
260
-
261
- ## [1.12.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.12.0) (2021-01-05)
262
-
263
- #### 🚀 Features
264
-
265
- - add interpolateKeys() ([bd78d1d](https://github.com/thi-ng/umbrella/commit/bd78d1d))
266
-
267
- ### [1.11.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.11.4) (2021-01-02)
268
-
269
- #### 🩹 Bug fixes
270
-
271
- - update slugifyGH() replacements ([#174](https://github.com/thi-ng/umbrella/issues/174)) ([98a9135](https://github.com/thi-ng/umbrella/commit/98a9135))
272
- - hard to find definitive info about GH's slugify rules
273
- - new rules based on more manual experiments and
274
- studying of unicode charts
275
- - likely not a watertight solution, but should fix most issues
276
- of prev impl
277
-
278
- ### [1.11.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.11.2) (2020-12-07)
279
-
280
- #### ♻️ Refactoring
281
-
282
- - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
283
-
284
- ## [1.11.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.11.0) (2020-11-24)
285
-
286
- #### 🚀 Features
287
-
288
- - add split() iterator ([6d2ec4f](https://github.com/thi-ng/umbrella/commit/6d2ec4f))
289
-
290
- #### ♻️ Refactoring
291
-
292
- - replace hex formatters w/ [@thi.ng/hex](https://github.com/thi-ng/umbrella/tree/main/packages/hex) ([6d7446c](https://github.com/thi-ng/umbrella/commit/6d7446c))
293
- - add [@thi.ng/hex](https://github.com/thi-ng/umbrella/tree/main/packages/hex) dependency
294
- - replace U8/16/24/32/64
295
- - refactor uuid()
296
-
297
- ## [1.10.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.10.0) (2020-09-22)
298
-
299
- #### 🚀 Features
300
-
301
- - add unescape() ([924466b](https://github.com/thi-ng/umbrella/commit/924466b))
302
- - add escape(), update unescape(), add tests ([e0d5f1e](https://github.com/thi-ng/umbrella/commit/e0d5f1e))
303
- - add BOM const, update pkg meta ([b6751fc](https://github.com/thi-ng/umbrella/commit/b6751fc))
304
-
305
- ### [1.9.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.9.6) (2020-09-13)
306
-
307
- #### ♻️ Refactoring
308
-
309
- - update deps, imports, use new Fn types ([3d21571](https://github.com/thi-ng/umbrella/commit/3d21571))
310
-
311
- ## [1.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.9.0) (2020-07-08)
312
-
313
- #### 🚀 Features
314
-
315
- - add computeCursorPos() ([c178d00](https://github.com/thi-ng/umbrella/commit/c178d00))
316
-
317
- ### [1.8.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.8.4) (2020-04-20)
318
-
319
- #### ♻️ Refactoring
320
-
321
- - update ALPHA, ALPHA_NUM & WS groups ([719b437](https://github.com/thi-ng/umbrella/commit/719b437))
322
-
323
- ## [1.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.8.0) (2020-03-28)
324
-
325
- #### 🚀 Features
326
-
327
- - add join() HOF ([1c5c46f](https://github.com/thi-ng/umbrella/commit/1c5c46f))
328
- - add slugifyGH(), refactor slugify() ([1ef805b](https://github.com/thi-ng/umbrella/commit/1ef805b))
329
- - add trim() HOF ([350a6c6](https://github.com/thi-ng/umbrella/commit/350a6c6))
330
-
331
- #### ♻️ Refactoring
332
-
333
- - add truncateRight alias ([81fb592](https://github.com/thi-ng/umbrella/commit/81fb592))
334
- - update bits/bytes unit defs ([f9becb1](https://github.com/thi-ng/umbrella/commit/f9becb1))
335
-
336
- ## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.7.0) (2020-03-06)
337
-
338
- #### 🚀 Features
339
-
340
- - add char group LUTs for classification ([c3ff006](https://github.com/thi-ng/umbrella/commit/c3ff006))
341
-
342
- ## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.6.0) (2020-03-01)
343
-
344
- #### 🚀 Features
345
-
346
- - add defFormat() HOF ([62f4e04](https://github.com/thi-ng/umbrella/commit/62f4e04))
347
-
348
- ## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.5.0) (2020-02-25)
349
-
350
- #### 🚀 Features
351
-
352
- - add uuid() formatter ([4592742](https://github.com/thi-ng/umbrella/commit/4592742))
353
-
354
- #### ♻️ Refactoring
355
-
356
- - update imports ([3937dc6](https://github.com/thi-ng/umbrella/commit/3937dc6))
357
-
358
- ## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.4.0) (2020-01-26)
359
-
360
- #### 🚀 Features
361
-
362
- - add format() helpers (str, ignore) ([df87b7c](https://github.com/thi-ng/umbrella/commit/df87b7c))
363
- - add interpolate() ([a19e409](https://github.com/thi-ng/umbrella/commit/a19e409))
364
-
365
- ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.3.0) (2019-09-21)
366
-
367
- #### 🚀 Features
368
-
369
- - add charRange(), add radix & zero-pad presets ([c9e5a63](https://github.com/thi-ng/umbrella/commit/c9e5a63))
370
-
371
- ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.2.0) (2019-07-07)
372
-
373
- #### 🚀 Features
374
-
375
- - enable TS strict compiler flags (refactor) ([76cecb8](https://github.com/thi-ng/umbrella/commit/76cecb8))
376
-
377
- #### ♻️ Refactoring
378
-
379
- - address TS strictNullChecks flag ([fb315fe](https://github.com/thi-ng/umbrella/commit/fb315fe))
380
-
381
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.1.0) (2019-04-15)
382
-
383
- #### 🚀 Features
384
-
385
- - add hstr() (hollerith) ([619e9ef](https://github.com/thi-ng/umbrella/commit/619e9ef))
386
-
387
- ### [1.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.0.2) (2019-01-31)
388
-
389
- #### 🩹 Bug fixes
390
-
391
- - fix [#70](https://github.com/thi-ng/umbrella/issues/70), replace kebab() regex w/ legacy version ([3adabc4](https://github.com/thi-ng/umbrella/commit/3adabc4))
392
-
393
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@1.0.0) (2019-01-21)
394
-
395
- #### 🛑 Breaking changes
396
-
397
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
398
- - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
399
- - build scripts now first build ES6 modules in package root, then call
400
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
401
- - all imports MUST be updated to only refer to package level
402
- (not individual files anymore). tree shaking in user land will get rid of
403
- all unused imported symbols.
404
-
405
- ## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.7.0) (2018-12-13)
406
-
407
- #### 🚀 Features
408
-
409
- - add slugify() ([8dcc73a](https://github.com/thi-ng/umbrella/commit/8dcc73a))
410
-
411
- #### 🩹 Bug fixes
412
-
413
- - update kebab() ([1b298f7](https://github.com/thi-ng/umbrella/commit/1b298f7))
414
- - fix initial capital handling
415
- - add (partial) UTF-8 support
416
- - add note about Safari / FF
417
-
418
- ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.6.0) (2018-11-08)
419
-
420
- #### 🚀 Features
421
-
422
- - add configurable units() HOF & presets ([33e915b](https://github.com/thi-ng/umbrella/commit/33e915b))
423
- - add presets formatters: seconds(), meters(), grams(), bits(), bytes()
424
-
425
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.5.0) (2018-09-25)
426
-
427
- #### 🚀 Features
428
-
429
- - add splice(), refactor repeat(), add tests ([0cce048](https://github.com/thi-ng/umbrella/commit/0cce048))
430
-
431
- ### [0.4.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.4.3) (2018-09-24)
432
-
433
- #### 🩹 Bug fixes
434
-
435
- - rename number parsers ([8cbfb97](https://github.com/thi-ng/umbrella/commit/8cbfb97))
436
- - rename to `maybeParseInt` / `maybeParseFloat`
437
-
438
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.3.0) (2018-08-24)
439
-
440
- #### 🚀 Features
441
-
442
- - add truncateLeft() & wrap() stringers ([1a20bc2](https://github.com/thi-ng/umbrella/commit/1a20bc2))
443
- - add case converters ([653a175](https://github.com/thi-ng/umbrella/commit/653a175))
444
- - camel / kebab / snake
445
-
446
- #### 🩹 Bug fixes
447
-
448
- - buffer length (for null inputs) (`center()`) ([5209c42](https://github.com/thi-ng/umbrella/commit/5209c42))
449
- - also truncate oversized inputs
450
-
451
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.2.0) (2018-08-08)
452
-
453
- #### 🚀 Features
454
-
455
- - add opt prefix arg for radix() ([5864f2c](https://github.com/thi-ng/umbrella/commit/5864f2c))
456
-
457
- ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.1.1) (2018-08-08)
458
-
459
- #### 🩹 Bug fixes
460
-
461
- - float type decl ([b2ebbfc](https://github.com/thi-ng/umbrella/commit/b2ebbfc))
462
-
463
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@0.1.0) (2018-08-08)
464
-
465
- #### 🚀 Features
466
-
467
- - re-import & update [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/main/packages/strings) from MBP2010 ([40781eb](https://github.com/thi-ng/umbrella/commit/40781eb))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/strings",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "Various string formatting & utility functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,16 +40,15 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.11.17",
44
- "@thi.ng/errors": "^2.5.23",
45
- "@thi.ng/hex": "^2.3.61",
46
- "@thi.ng/memoize": "^4.0.7"
43
+ "@thi.ng/api": "^8.11.18",
44
+ "@thi.ng/errors": "^2.5.24",
45
+ "@thi.ng/hex": "^2.3.62",
46
+ "@thi.ng/memoize": "^4.0.8"
47
47
  },
48
48
  "devDependencies": {
49
- "@microsoft/api-extractor": "^7.48.1",
50
49
  "esbuild": "^0.24.2",
51
50
  "typedoc": "^0.27.6",
52
- "typescript": "^5.7.2"
51
+ "typescript": "^5.7.3"
53
52
  },
54
53
  "keywords": [
55
54
  "ansi",
@@ -212,5 +211,5 @@
212
211
  "thi.ng": {
213
212
  "year": 2015
214
213
  },
215
- "gitHead": "22f6d518aed5951bb37b406c8ae85a6c3e6be517\n"
214
+ "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
216
215
  }