urdu-text-utils 0.2.1 → 0.2.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 (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +16 -5
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3
4
+
5
+ - Add Complementary libraries section
6
+ - Keep the UMD build out of bundler ESM resolution
7
+
8
+
9
+ ## 0.2.2
10
+
11
+ - Smoke-test the release tarball before and after publish
12
+ - Add one-command release script
13
+
14
+
3
15
  ## 0.2.1
4
16
 
5
17
  - Add Urdu name transliteration with part extraction (`transliterateNameToEnglish`, `transliterateNameToUrdu`, `extractNameParts`), covering honorifics, family names, and prefixes.
package/README.md CHANGED
@@ -278,7 +278,17 @@ For permanent URLs prefer `preserveUrdu: true` (percent-encoded but readable and
278
278
 
279
279
  ## Notes on scope
280
280
 
281
- Every function is pure, synchronous and side-effect free. Nothing here does word segmentation of run-together text, stemming, POS tagging or spell correction; those need a lexicon and are out of scope for this version.
281
+ Every function is pure, synchronous and side-effect free. Nothing here does word segmentation of run-together text, POS tagging or spell correction; those need a lexicon and are out of scope for this version.
282
+
283
+ ## Complementary libraries
284
+
285
+ Urdu tooling is a small ecosystem, and these independent projects cover parts of the pipeline this library deliberately does not:
286
+
287
+ - [UrduMagic](https://github.com/asad7coder/urdumagic) — offline, whole-site English ⇄ Urdu ⇄ Roman Urdu translation with RTL switching and SSR/Next.js helpers, powered by a 10,000+ entry dictionary.
288
+ - [Urduify](https://github.com/zohaibadnan137/urduify) — Roman Urdu ⇄ Urdu translator built on a 16,000-pair word dictionary.
289
+ - [Roman Urdu → Urdu Transliterator](https://github.com/spyhunk/romanUrdu2UrduTranslitration) — fast browser/API Roman-Urdu → Urdu conversion with longest-match matching (MIT).
290
+
291
+ urdu-text-utils owns the text-processing layer (normalization, search, sorting, numbers, dates); pair it with one of the above when you need whole-site translation, a broader lexicon, or Roman-Urdu → Urdu conversion tuned for real-time input.
282
292
 
283
293
  ## Development
284
294
 
@@ -303,14 +313,15 @@ CI builds the docs on every push. VitePress fails on dead links, so a renamed pa
303
313
 
304
314
  ## Releasing
305
315
 
306
- Publishing is automated and tag-driven. CI runs tests on Node 18/20/22 for every push and PR; nothing reaches npm until a version tag exists.
316
+ Publishing is automated and tag-driven. CI runs tests on Node 18/20/22 for every push and PR; nothing reaches npm until a version tag exists. Commit the feature work first, then release with a single command:
307
317
 
308
318
  ```bash
309
- npm version patch # or minor / major commits and tags
310
- git push --follow-tags
319
+ npm run release -- patch # or minor, major, or an explicit 0.3.0
311
320
  ```
312
321
 
313
- The `Release` workflow then verifies the tag matches `package.json`, re-runs typecheck/tests/build, publishes with `--provenance`, and opens a GitHub Release with generated notes.
322
+ The script bumps `package.json` and the lockfile, writes a CHANGELOG section from the commits since the last tag, commits `chore: release vX.Y.Z`, and pushes the annotated `vX.Y.Z` tag. Useful options: `--yes` skips the confirmation prompt, `--no-push` bumps/commits/tags locally only, `--dry-run` previews the whole plan without changing anything, and `--notes "line one\nline two"` overrides the auto-generated changelog section.
323
+
324
+ The `Release` workflow then verifies the tag matches `package.json`, packs and smoke-tests the tarball, publishes with `--provenance`, re-installs the published version from the registry to verify it, and opens a GitHub Release with the changelog notes. The manual equivalent of the script is `npm version patch` plus editing `CHANGELOG.md` and pushing `--follow-tags` by hand.
314
325
 
315
326
  Authentication is npm [Trusted Publishing](https://docs.npmjs.com/trusted-publishers) over OIDC — no npm token exists in this repository and none needs to be rotated. npm trusts `Zaid-maker/urdu-text-utils` publishing from `release.yml` specifically, so renaming that workflow file breaks releases until the trusted publisher is updated on npm.
316
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urdu-text-utils",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Comprehensive Urdu NLP & text processing toolkit: normalization, Roman Urdu transliteration, stop words, script detection, digits, diacritics (aerab), sorting, search, and statistics. Zero dependencies, ESM + CJS.",
5
5
  "keywords": [
6
6
  "urdu",
@@ -61,7 +61,6 @@
61
61
  "exports": {
62
62
  ".": {
63
63
  "types": "./dist/index.d.ts",
64
- "browser": "./dist/index.iife.js",
65
64
  "import": "./dist/index.js",
66
65
  "require": "./dist/index.cjs"
67
66
  }
@@ -79,6 +78,7 @@
79
78
  "test": "vitest run",
80
79
  "test:watch": "vitest",
81
80
  "typecheck": "tsc --noEmit",
81
+ "release": "node release.mjs",
82
82
  "prepublishOnly": "npm run typecheck && npm test && npm run build",
83
83
  "docs:dev": "vitepress dev docs",
84
84
  "docs:build": "vitepress build docs",