Commit Graph

45 Commits

Author SHA1 Message Date
Asher Gomez
2d8031c785
BREAKING(text/unstable): move to-constant-case module to unstable-to-constant-case (#5952) 2024-09-12 13:51:21 +09:00
denobot
67e9cfa0ff
chore: release 2024.09.04 (#5908)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-09-04 19:37:53 +09:00
Kenta Moriuchi
4d4bd0eb92
refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable "exactOptionalPropertyTypes" option (#5892) 2024-09-04 14:15:01 +09:00
denobot
2b3683b6fb
chore: release 2024.08.26 (#5824)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-26 17:33:29 +09:00
Tim Reichen
531145a08b
test(text): move case tests to separate files (#5807) 2024-08-24 23:41:36 +09:00
Asher Gomez
dea7d7701a
docs(archive,assert,cache,cli,encoding,html,http,net,streams,text): remove unstable Markdown alert (#5672)
* docs(archive,cli,html,http,net,streams,text): remove unstable Markdown alert

* update

* fix

* update

* fmt

* fix
2024-08-22 02:55:17 -04:00
Asher Gomez
b289deecbe
docs(text): fix slugify() summary (#5722)
* docs(text): fix `slugify()` summary

* tweak

* fix
2024-08-22 14:49:56 +09:00
denobot
f7f275bd3b
chore: release 2024.08.16 (#5687)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-16 15:33:08 +09:00
Tim Reichen
6677134afd
feat(text/unstable): add slugify() function (#5646)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-14 19:45:59 +09:00
denobot
0e4f294cdf
chore: release 2024.08.02 (#5621)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-02 20:27:08 +09:00
Asher Gomez
606838bace
docs(fmt,fs,text,yaml): fix Markdown alerts (#5568) 2024-07-29 21:31:14 +10:00
denobot
fb950fa0f3
chore: release 2024.07.26 (#5554)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-26 19:45:22 +09:00
ud2
b0959019c4
perf(text): make levenshteinDistance() up to 147x faster (#5527)
* perf(text): optimize `levenshteinDistance`

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-26 09:45:46 +10:00
ud2
2e542ff4d8
test(text): add more testcases for levenshteinDistance (#5528)
* test(text): add more testcases for `levenshteinDistance`

* clean

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-23 23:43:55 +00:00
GuyBorderless
97c5596f0b
fix(text): unicode support and word splitting according to case (#5447)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-22 20:45:05 +09:00
GuyBorderless
abdecb30b7
feat(text/unstable): add toConstantCase() (#5110)
* feat(text): added toConstantCase

* move to to_constant_case.ts

* mark as unstable API

* fix import in example

* unstable notice

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-22 00:49:57 +00:00
Asher Gomez
030941b322
docs(text): state complexity of levenshteinDistance() (#5472) 2024-07-18 14:18:10 +09:00
Asher Gomez
c6998992a3
chore(text): release text@1.0.0 (#5209)
Co-authored-by: Yusuke Tanaka <wing0920@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-17 16:34:40 +10:00
Asher Gomez
38dbb1a020
feat(text): add ability for user to control word comparison function (#5448) 2024-07-17 05:19:21 +10:00
Yoshiya Hinosawa
63912921b3
BREAKING(text): align to single-export file pattern (#5428) 2024-07-16 12:39:39 +09:00
denobot
f54eab4355
chore: release 2024.07.12 (#5431)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-12 19:45:19 +09:00
Yusuke Tanaka
1b53ea72eb
docs(text): refine documents in text module (#5425)
This commit refines the document in the `text` module. Namely,

- Move the note about word distance calculation possibly to change in the future
  to more visible place
- Fix the wrong doc comments (e.g. `possibleWords` description on
  `closestString`)
- Change `possibleWords` type from `string[]` to `ReadonlyArray<string>` to
  communicate to readers that the passed array won't be mutated
- Use `toSorted` instead of `sort` to ensure immutability
2024-07-11 21:57:32 -07:00
denobot
940568c62d
chore: release 2024.07.02 (#5254)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-02 20:43:42 +09:00
Asher Gomez
d102a10235
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199)
* refactor: import from `@std/assert`

* update
2024-06-30 08:30:10 +00:00
Asher Gomez
1f359c4c19
chore(text): release text@1.0.0-rc.1 (#5026) 2024-06-11 22:40:14 +12:00
Asher Gomez
33c631d60b
refactor(text): minor cleanups and improvements (#5025) 2024-06-11 19:34:14 +12:00
denobot
0ea4868542
chore: release 2024.06.06 (#4984)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-06 20:26:57 +09:00
Asher Gomez
48440b807e
refactor(text): cleanup use of @std/assert (#4977)
* refactor(text): cleanup use of `@std/assert`

* x

* x

* update graph
2024-06-05 22:02:17 +00:00
Asher Gomez
c5ad9d48dc
docs(cli,encoding,fmt,jsonc,path,semver,testing,text,toml,url): remove "This module is browser compatible" note (#4945) 2024-06-04 13:21:54 +10:00
denobot
b9374d3715
chore: release 2024.06.03 (#4935)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-03 15:44:03 +09:00
Asher Gomez
31b906db99
chore: ensure code examples use assertions in Doc Linter (#4911) 2024-06-03 14:10:27 +10:00
Asher Gomez
79d6a70729
docs(assert,cli,data-structures,expect,fmt,front-matter,html,http,jsonc,semver,streams,text,toml,webgpu): add snippet checks in module, function and class docs to doc checker (#4855)
* chore: add snippet checks to module docs

* fix

* work

* tweak
2024-05-31 12:01:46 +10:00
denobot
673c436739
chore: release 2024.05.29 (#4883)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-05-29 18:56:12 +09:00
David Sherret
5a6e99cc6e
docs(text): pass docs check (#4837) 2024-05-23 13:01:10 -04:00
David Sherret
1e16dc9e76
docs(text): add module doc (#4812) 2024-05-22 18:13:19 +00:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
Asher Gomez
46d9fa594c
chore: update browser-compatible files with declaration (#4560) 2024-04-10 12:43:44 +10:00
Simon Holloway
a4d02abc51
refactor(text): prepare for noUncheckedIndexedAccess (#4148) 2024-01-11 07:33:57 +11:00
Tim Reichen
3601c64751
feat(text): cases (#4082)
* initial commit

* add missing copyright

* update

* Update text/_util.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Update text/case.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* update comment

* remove assertEquals from @example

* update

* remove screaming snake case

* remove export

* rename splitToWords

* remove toTitleCase

* remove toSentenceCase

* update

* tweaks

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-10 21:18:30 +11:00
Asher Gomez
d7a5790122
refactor(text): use star exports in mod.ts (#4135) 2024-01-09 10:55:39 +09:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Tim Reichen
c3cfce40d3
refactor(text): format test names (#3993) 2023-12-20 20:58:55 +11:00
David Sherret
b0803619af
refactor: add some missing explicit types (#3997)
* refactor: add some missing return types and mark some non-exported types as `@internal`

* Update expect/fn.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Remove @internals

* nits

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-19 00:26:13 +00:00
Yoshiya Hinosawa
f014a03fcd
fix(text): fix closestString (#3936) 2023-12-12 19:34:42 +09:00
Jeff Hykin
06a676f1e6
feat: add std/text with word-similarity helpers (#3488) 2023-11-05 21:49:00 +09:00