@fgv/ts-bcp47 5.1.0-55 → 5.1.0-56

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/CAPABILITIES.md +33 -0
  2. package/package.json +16 -16
@@ -0,0 +1,33 @@
1
+ # `@fgv/ts-bcp47` — BCP-47 language tags
2
+
3
+ > **This file is authoritative for what ``@fgv/ts-bcp47`` provides and what not to hand-roll.**
4
+ > `README.md`, where present, is getting-started material. The always-loaded index at
5
+ > [`.ai/instructions/LIBRARY_CAPABILITIES.md`](../../.ai/instructions/LIBRARY_CAPABILITIES.md)
6
+ > routes here; it never duplicates this content.
7
+
8
+
9
+ ---
10
+
11
+ [libraries/ts-bcp47](https://github.com/ErikFortune/fgv/tree/release/libraries/ts-bcp47)
12
+
13
+ `Bcp47.tag(...)`, `Bcp47.similarity(...)`, normalization to canonical/preferred form, IANA registry access (`iana` packlet), UN M.49 region data (`unsd` packlet). **Use this instead of regex-parsing language tags or hand-rolling locale fallback.** The language-distance/similarity scoring is designed to plug directly into `@fgv/ts-res` qualifier matching — prefer it over a custom locale-match function if you are working with ts-res.
14
+
15
+ ---
16
+
17
+ ---
18
+
19
+ ## Decision shortcuts
20
+
21
+ - **Parsing / comparing language tags?** → `@fgv/ts-bcp47`.
22
+
23
+ ---
24
+
25
+ ## Recent additions
26
+
27
+ *Newest first. **Generated** — see the repo index; do not hand-edit inside the markers.*
28
+
29
+ <!-- BEGIN GENERATED: recent-additions -->
30
+
31
+ *No stream has recorded a `sourceLine` against this package yet.*
32
+
33
+ <!-- END GENERATED: recent-additions -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-bcp47",
3
- "version": "5.1.0-55",
3
+ "version": "5.1.0-56",
4
4
  "description": "BCP-47 Tag Utilities",
5
5
  "main": "lib/index.js",
6
6
  "browser": {
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@microsoft/api-documenter": "^7.28.2",
47
47
  "@microsoft/api-extractor": "^7.55.2",
48
- "@types/jest": "^29.5.14",
48
+ "@types/jest": "^30.0.0",
49
49
  "@types/luxon": "^3.7.1",
50
50
  "@types/node": "^20.14.9",
51
51
  "@typescript-eslint/eslint-plugin": "^8.52.0",
@@ -57,34 +57,34 @@
57
57
  "eslint-plugin-node": "^11.1.0",
58
58
  "eslint-plugin-prettier": "^5.5.4",
59
59
  "eslint-plugin-promise": "^7.2.1",
60
- "jest": "^29.7.0",
60
+ "jest": "^30.5.2",
61
61
  "prettier": "^3.7.4",
62
62
  "rimraf": "^6.1.2",
63
- "ts-jest": "^29.4.6",
63
+ "ts-jest": "^29.4.12",
64
64
  "ts-node": "^10.9.2",
65
65
  "typescript": "5.9.3",
66
66
  "eslint-plugin-n": "^17.23.1",
67
67
  "@rushstack/eslint-config": "4.6.4",
68
- "@rushstack/heft": "1.2.7",
69
- "@rushstack/heft-jest-plugin": "1.2.6",
70
- "@rushstack/heft-node-rig": "2.11.27",
68
+ "@rushstack/heft": "1.3.0",
69
+ "@rushstack/heft-jest-plugin": "2.0.17",
70
+ "@rushstack/heft-node-rig": "2.11.50",
71
71
  "@types/heft-jest": "1.0.6",
72
72
  "eslint-plugin-tsdoc": "~0.5.2",
73
73
  "typedoc": "~0.28.16",
74
- "@fgv/heft-dual-rig": "5.1.0-55",
75
- "@fgv/typedoc-compact-theme": "5.1.0-55",
76
- "@fgv/ts-utils": "5.1.0-55",
77
- "@fgv/ts-utils-jest": "5.1.0-55",
78
- "@fgv/ts-extras": "5.1.0-55",
79
- "@fgv/ts-json-base": "5.1.0-55"
74
+ "@fgv/heft-dual-rig": "5.1.0-56",
75
+ "@fgv/typedoc-compact-theme": "5.1.0-56",
76
+ "@fgv/ts-utils": "5.1.0-56",
77
+ "@fgv/ts-utils-jest": "5.1.0-56",
78
+ "@fgv/ts-extras": "5.1.0-56",
79
+ "@fgv/ts-json-base": "5.1.0-56"
80
80
  },
81
81
  "dependencies": {
82
82
  "luxon": "^3.7.2"
83
83
  },
84
84
  "peerDependencies": {
85
- "@fgv/ts-utils": "5.1.0-55",
86
- "@fgv/ts-json-base": "5.1.0-55",
87
- "@fgv/ts-extras": "5.1.0-55"
85
+ "@fgv/ts-extras": "5.1.0-56",
86
+ "@fgv/ts-json-base": "5.1.0-56",
87
+ "@fgv/ts-utils": "5.1.0-56"
88
88
  },
89
89
  "repository": {
90
90
  "type": "git",