@visulima/iso-locale 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,128 @@
1
+ ## @visulima/iso-locale [1.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.10...@visulima/iso-locale@1.0.0-alpha.11) (2026-06-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **iso-locale:** 2 bug fixes + 1 perf ([5a75216](https://github.com/visulima/visulima/commit/5a752163531e8bd458dffa264e05466e33f9d444))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * apply eslint + prettier autofixes across packages ([c1bb784](https://github.com/visulima/visulima/commit/c1bb7848a0d93d0dfe2960c77e3cda22239c79a0))
10
+
11
+ ### Tests
12
+
13
+ * improve coverage across packages ([91bd6d3](https://github.com/visulima/visulima/commit/91bd6d3b61736e3c8bd1fc59b0b5955f76a5d323))
14
+ * **iso-locale:** cover numeric country lookups, currency fallbacks, and bcp47 parse branches ([695bf35](https://github.com/visulima/visulima/commit/695bf354daac3699c166b6a3a671cec15bd639ee))
15
+
16
+ ## @visulima/iso-locale [1.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.9...@visulima/iso-locale@1.0.0-alpha.10) (2026-05-27)
17
+
18
+ ### Bug Fixes
19
+
20
+ * **storage-client:** percent-encode user fields in defaultFingerprint ([7c78a0f](https://github.com/visulima/visulima/commit/7c78a0f9512e2a673b941d80839e9f1e86b7b5d0))
21
+
22
+ ### Documentation
23
+
24
+ * prettier-format agent instructions ([71b6414](https://github.com/visulima/visulima/commit/71b6414528780ac82c4e0bb25b5f4f11faba5549))
25
+
26
+ ### Miscellaneous Chores
27
+
28
+ * sorted package.json ([b47c545](https://github.com/visulima/visulima/commit/b47c545591600fdab17d5cd3a3fbc68b61e199da))
29
+
30
+ ## @visulima/iso-locale [1.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.8...@visulima/iso-locale@1.0.0-alpha.9) (2026-05-26)
31
+
32
+ ### Bug Fixes
33
+
34
+ * **security:** address codeql findings across packages ([3366f9c](https://github.com/visulima/visulima/commit/3366f9c07d54bdde5242fbd90780baa4634de179))
35
+
36
+ ### Miscellaneous Chores
37
+
38
+ * **ci-stability:** green CI across vis, native, lint, tests, attw ([#651](https://github.com/visulima/visulima/issues/651)) ([d4eb684](https://github.com/visulima/visulima/commit/d4eb684b5f75c818c9251048c605a0ed54a268e3))
39
+ * **iso-locale:** housekeeping cleanup ([326d3e4](https://github.com/visulima/visulima/commit/326d3e4be152fdcb828da32a67341fae0c274709))
40
+ * **iso-locale:** upgrade packem to 2.0.0-alpha.76 ([9908d9c](https://github.com/visulima/visulima/commit/9908d9c57641ade481016ea711981e03d53c746c))
41
+ * re-sort workspace package.json files via vis sort-package-json ([f625696](https://github.com/visulima/visulima/commit/f625696cfac974325774b3243e1a83c3d23acbd7))
42
+ * **repo:** sort package.json keys across all packages ([e1fd9ab](https://github.com/visulima/visulima/commit/e1fd9ab467ef96a98c777da1572ff6a50fcf7e71))
43
+
44
+ ### Tests
45
+
46
+ * **repo:** add dist runtime + types integration tests ([32ee300](https://github.com/visulima/visulima/commit/32ee300b7184117a0ddf9f9d390f75f8932d5ed9))
47
+
48
+ ## @visulima/iso-locale [1.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.7...@visulima/iso-locale@1.0.0-alpha.8) (2026-04-22)
49
+
50
+ ### Bug Fixes
51
+
52
+ * Remove JSR configuration generation script and generated jsr.json files ([#616](https://github.com/visulima/visulima/issues/616)) ([533744b](https://github.com/visulima/visulima/commit/533744b103b74896941db5b727173e617a27a63b))
53
+
54
+ ### Miscellaneous Chores
55
+
56
+ * bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
57
+ * fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
58
+
59
+ ## @visulima/iso-locale [1.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.6...@visulima/iso-locale@1.0.0-alpha.7) (2026-04-15)
60
+
61
+ ### Bug Fixes
62
+
63
+ * **data-manipulation:** resolve eslint and type-safety issues ([f1682c2](https://github.com/visulima/visulima/commit/f1682c2611cbcc6c85d4bbea520d43464b42e7ee))
64
+ * **iso-locale:** cast readonly Country array to mutable type for public export ([b93bc50](https://github.com/visulima/visulima/commit/b93bc5064e123c541140b1ab072c280989087afc))
65
+
66
+ ## @visulima/iso-locale [1.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.5...@visulima/iso-locale@1.0.0-alpha.6) (2026-04-08)
67
+
68
+ ### Bug Fixes
69
+
70
+ * **iso-locale:** resolve eslint errors ([8f24691](https://github.com/visulima/visulima/commit/8f246919ecf1c5d08a3f85a019d8857bcbf31c4f))
71
+
72
+ ### Miscellaneous Chores
73
+
74
+ * apply linting and formatting fixes across packages ([5d150a5](https://github.com/visulima/visulima/commit/5d150a578f9ce861c791843c683deeb849b774a9))
75
+ * **data-manipulation:** remove empty dependency objects from package.json ([c0e8f76](https://github.com/visulima/visulima/commit/c0e8f7689a2da413f771494f6ecb07babc4b5e06))
76
+ * **iso-locale:** add tsconfig.eslint.json for type-aware linting ([0322596](https://github.com/visulima/visulima/commit/0322596031774fef5e1bbbce188de31d2033824b))
77
+ * **iso-locale:** apply prettier formatting ([420b06e](https://github.com/visulima/visulima/commit/420b06e28f37beea0679b16f2ada733518e2cffe))
78
+ * **iso-locale:** migrate .prettierrc.cjs to prettier.config.js ([ecc98a0](https://github.com/visulima/visulima/commit/ecc98a0b65de3b5c97cc5b12bd55732e193b2dc9))
79
+
80
+ ## @visulima/iso-locale [1.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.4...@visulima/iso-locale@1.0.0-alpha.5) (2026-03-26)
81
+
82
+ ### Features
83
+
84
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
85
+
86
+ ## @visulima/iso-locale [1.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.3...@visulima/iso-locale@1.0.0-alpha.4) (2026-03-26)
87
+
88
+ ### Bug Fixes
89
+
90
+ * **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
91
+
92
+ ### Miscellaneous Chores
93
+
94
+ * **iso-locale:** migrate deps to pnpm catalogs ([77a0af9](https://github.com/visulima/visulima/commit/77a0af94f3ee1c405cfca1df1db16af6c6b288ea))
95
+ * **iso-locale:** update dependencies ([171ce31](https://github.com/visulima/visulima/commit/171ce31272306c952d35018dea8ec4072f11cd52))
96
+ * visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
97
+
98
+ ## @visulima/iso-locale [1.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.2...@visulima/iso-locale@1.0.0-alpha.3) (2026-03-06)
99
+
100
+ ### Bug Fixes
101
+
102
+ * **iso-locale:** update packem to 2.0.0-alpha.54 ([17ce847](https://github.com/visulima/visulima/commit/17ce8479d65e21f26da08674cedadfd69bf8fbeb))
103
+
104
+ ### Documentation
105
+
106
+ * **humanizer,html,iso-locale,package,tsconfig:** add comprehensive Fumadocs documentation ([19781ce](https://github.com/visulima/visulima/commit/19781ce5d27605971a9f2fdf0a99863effd98091))
107
+
108
+ ### Miscellaneous Chores
109
+
110
+ * **data-manipulation:** update dependencies ([49458ab](https://github.com/visulima/visulima/commit/49458ab8f8e17d875840b1b4fe8b5efe12ff3513))
111
+ * **iso-locale:** update dependencies ([78c7b5e](https://github.com/visulima/visulima/commit/78c7b5e3528c2ec4a32cab44449c5840664fa94d))
112
+ * update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
113
+ * year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
114
+
115
+ ## @visulima/iso-locale [1.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/iso-locale@1.0.0-alpha.1...@visulima/iso-locale@1.0.0-alpha.2) (2026-01-17)
116
+
117
+ ### Bug Fixes
118
+
119
+ * added missing og image ([7712247](https://github.com/visulima/visulima/commit/771224739f29e977d5684849dcf015486c75ff00))
120
+
121
+ ### Miscellaneous Chores
122
+
123
+ * fixed changelog ([6ebdc5b](https://github.com/visulima/visulima/commit/6ebdc5b56e94054f4ac88d2bc2235a2c14d3d608))
124
+ * sorting package.json ([430ed68](https://github.com/visulima/visulima/commit/430ed683d3e38e4c5c5530f787ca832f083b17e4))
125
+
1
126
  ## @visulima/iso-locale 1.0.0-alpha.1 (2026-01-17)
2
127
 
3
128
  ### Features
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 visulima
3
+ Copyright (c) 2026 visulima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,4 +1,14 @@
1
- <!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER --><!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
1
+ <!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
2
+
3
+ <a href="https://www.anolilab.com/open-source" align="center">
4
+
5
+ <img src="__assets__/package-og.svg" alt="iso-locale" />
6
+
7
+ </a>
8
+
9
+ <h3 align="center">ISO data for countries, currencies, regions, timezones, and BCP 47 locale support.</h3>
10
+
11
+ <!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
2
12
 
3
13
  <br />
4
14
 
@@ -1,116 +1,117 @@
1
- import type { Country } from "./types.d.ts";
2
- /**
3
- * Get country by ISO 3166-1 alpha-2 code.
4
- * @param code 2-letter country code (e.g., "US")
5
- * @returns Country object or undefined
6
- */
7
- export declare const getByAlpha2: (code: string) => Country | undefined;
8
- /**
9
- * Get country by ISO 3166-1 alpha-3 code.
10
- * @param code 3-letter country code (e.g., "USA")
11
- * @returns Country object or undefined
12
- */
13
- export declare const getByAlpha3: (code: string) => Country | undefined;
14
- /**
15
- * Get country by ISO 3166-1 numeric code.
16
- * @param code 3-digit numeric code (e.g., "840")
17
- * @returns Country object or undefined
18
- */
19
- export declare const getByNumeric: (code: string | number) => Country | undefined;
20
- /**
21
- * Convert alpha-2 code to alpha-3 code.
22
- * @param alpha2 2-letter country code
23
- * @returns 3-letter country code or undefined
24
- */
25
- export declare const alpha2ToAlpha3: (alpha2: string) => string | undefined;
26
- /**
27
- * Convert alpha-3 code to alpha-2 code.
28
- * @param alpha3 3-letter country code
29
- * @returns 2-letter country code or undefined
30
- */
31
- export declare const alpha3ToAlpha2: (alpha3: string) => string | undefined;
32
- /**
33
- * Convert alpha-2 code to numeric code.
34
- * @param alpha2 2-letter country code
35
- * @returns 3-digit numeric code or undefined
36
- */
37
- export declare const alpha2ToNumeric: (alpha2: string) => string | undefined;
38
- /**
39
- * Convert alpha-3 code to numeric code.
40
- * @param alpha3 3-letter country code
41
- * @returns 3-digit numeric code or undefined
42
- */
43
- export declare const alpha3ToNumeric: (alpha3: string) => string | undefined;
44
- /**
45
- * Convert numeric code to alpha-2 code.
46
- * @param numeric 3-digit numeric code
47
- * @returns 2-letter country code or undefined
48
- */
49
- export declare const numericToAlpha2: (numeric: string | number) => string | undefined;
50
- /**
51
- * Convert numeric code to alpha-3 code.
52
- * @param numeric 3-digit numeric code
53
- * @returns 3-letter country code or undefined
54
- */
55
- export declare const numericToAlpha3: (numeric: string | number) => string | undefined;
56
- /**
57
- * Check if a country code is valid (supports alpha-2, alpha-3, or numeric).
58
- * @param code Country code in any format
59
- * @returns true if valid, false otherwise
60
- */
61
- export declare const isValid: (code: string | number) => boolean;
62
- /**
63
- * Countries indexed by alpha-2 code.
64
- */
65
- export declare const byAlpha2: Readonly<Record<string, Country>>;
66
- /**
67
- * Countries indexed by alpha-3 code.
68
- */
69
- export declare const byAlpha3: Readonly<Record<string, Country>>;
70
- /**
71
- * Countries indexed by numeric code.
72
- */
73
- export declare const byNumeric: Readonly<Record<string, Country>>;
74
- /**
75
- * Get flag emoji for a country.
76
- * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
77
- * @returns Flag emoji or undefined
78
- */
79
- export declare const getEmoji: (countryCode: string | number) => string | undefined;
80
- /**
81
- * Get country calling code (phone prefix) for a country.
82
- * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
83
- * @returns First calling code or undefined
84
- */
85
- export declare const getCallingCode: (countryCode: string | number) => string | undefined;
86
- /**
87
- * Get all calling codes for a country.
88
- * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
89
- * @returns Array of calling codes or empty array
90
- */
91
- export declare const getCallingCodes: (countryCode: string | number) => string[];
92
- /**
93
- * Get languages for a country.
94
- * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
95
- * @returns Array of ISO 639 language codes or empty array
96
- */
97
- export declare const getLanguages: (countryCode: string | number) => string[];
98
- /**
99
- * Get International Olympic Committee code for a country.
100
- * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
101
- * @returns IOC code or undefined
102
- */
103
- export declare const getIOC: (countryCode: string | number) => string | undefined;
104
- /**
105
- * Get country by name (exact match, case-insensitive).
106
- * @param name Country name (e.g., "United States")
107
- * @returns Country object or undefined
108
- */
109
- export declare const getCountryByName: (name: string) => Country | undefined;
110
- /**
111
- * Search countries by name (partial match, case-insensitive).
112
- * @param query Search query (e.g., "united")
113
- * @returns Array of matching Country objects
114
- */
115
- export declare const searchCountries: (query: string) => Country[];
116
- export declare const all: Country[];
1
+ import { Country } from "./types.js";
2
+ /**
3
+ * Get country by ISO 3166-1 alpha-2 code.
4
+ * @param code 2-letter country code (e.g., "US")
5
+ * @returns Country object or undefined
6
+ */
7
+ declare const getByAlpha2: (code: string) => Country | undefined;
8
+ /**
9
+ * Get country by ISO 3166-1 alpha-3 code.
10
+ * @param code 3-letter country code (e.g., "USA")
11
+ * @returns Country object or undefined
12
+ */
13
+ declare const getByAlpha3: (code: string) => Country | undefined;
14
+ /**
15
+ * Get country by ISO 3166-1 numeric code.
16
+ * @param code 3-digit numeric code (e.g., "840")
17
+ * @returns Country object or undefined
18
+ */
19
+ declare const getByNumeric: (code: string | number) => Country | undefined;
20
+ /**
21
+ * Convert alpha-2 code to alpha-3 code.
22
+ * @param alpha2 2-letter country code
23
+ * @returns 3-letter country code or undefined
24
+ */
25
+ declare const alpha2ToAlpha3: (alpha2: string) => string | undefined;
26
+ /**
27
+ * Convert alpha-3 code to alpha-2 code.
28
+ * @param alpha3 3-letter country code
29
+ * @returns 2-letter country code or undefined
30
+ */
31
+ declare const alpha3ToAlpha2: (alpha3: string) => string | undefined;
32
+ /**
33
+ * Convert alpha-2 code to numeric code.
34
+ * @param alpha2 2-letter country code
35
+ * @returns 3-digit numeric code or undefined
36
+ */
37
+ declare const alpha2ToNumeric: (alpha2: string) => string | undefined;
38
+ /**
39
+ * Convert alpha-3 code to numeric code.
40
+ * @param alpha3 3-letter country code
41
+ * @returns 3-digit numeric code or undefined
42
+ */
43
+ declare const alpha3ToNumeric: (alpha3: string) => string | undefined;
44
+ /**
45
+ * Convert numeric code to alpha-2 code.
46
+ * @param numeric 3-digit numeric code
47
+ * @returns 2-letter country code or undefined
48
+ */
49
+ declare const numericToAlpha2: (numeric: string | number) => string | undefined;
50
+ /**
51
+ * Convert numeric code to alpha-3 code.
52
+ * @param numeric 3-digit numeric code
53
+ * @returns 3-letter country code or undefined
54
+ */
55
+ declare const numericToAlpha3: (numeric: string | number) => string | undefined;
56
+ /**
57
+ * Check if a country code is valid (supports alpha-2, alpha-3, or numeric).
58
+ * @param code Country code in any format
59
+ * @returns true if valid, false otherwise
60
+ */
61
+ declare const isValid: (code: string | number) => boolean;
62
+ /**
63
+ * Countries indexed by alpha-2 code.
64
+ */
65
+ declare const byAlpha2: Readonly<Record<string, Country>>;
66
+ /**
67
+ * Countries indexed by alpha-3 code.
68
+ */
69
+ declare const byAlpha3: Readonly<Record<string, Country>>;
70
+ /**
71
+ * Countries indexed by numeric code.
72
+ */
73
+ declare const byNumeric: Readonly<Record<string, Country>>;
74
+ /**
75
+ * Get flag emoji for a country.
76
+ * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
77
+ * @returns Flag emoji or undefined
78
+ */
79
+ declare const getEmoji: (countryCode: string | number) => string | undefined;
80
+ /**
81
+ * Get country calling code (phone prefix) for a country.
82
+ * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
83
+ * @returns First calling code or undefined
84
+ */
85
+ declare const getCallingCode: (countryCode: string | number) => string | undefined;
86
+ /**
87
+ * Get all calling codes for a country.
88
+ * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
89
+ * @returns Array of calling codes or empty array
90
+ */
91
+ declare const getCallingCodes: (countryCode: string | number) => string[];
92
+ /**
93
+ * Get languages for a country.
94
+ * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
95
+ * @returns Array of ISO 639 language codes or empty array
96
+ */
97
+ declare const getLanguages: (countryCode: string | number) => string[];
98
+ /**
99
+ * Get International Olympic Committee code for a country.
100
+ * @param countryCode ISO 3166-1 alpha-2, alpha-3, or numeric code
101
+ * @returns IOC code or undefined
102
+ */
103
+ declare const getIOC: (countryCode: string | number) => string | undefined;
104
+ /**
105
+ * Get country by name (exact match, case-insensitive).
106
+ * @param name Country name (e.g., "United States")
107
+ * @returns Country object or undefined
108
+ */
109
+ declare const getCountryByName: (name: string) => Country | undefined;
110
+ /**
111
+ * Search countries by name (partial match, case-insensitive).
112
+ * @param query Search query (e.g., "united")
113
+ * @returns Array of matching Country objects
114
+ */
115
+ declare const searchCountries: (query: string) => Country[];
116
+ declare const all: Country[];
117
+ export { all, alpha2ToAlpha3, alpha2ToNumeric, alpha3ToAlpha2, alpha3ToNumeric, byAlpha2, byAlpha3, byNumeric, getByAlpha2, getByAlpha3, getByNumeric, getCallingCode, getCallingCodes, getCountryByName, getEmoji, getIOC, getLanguages, isValid, numericToAlpha2, numericToAlpha3, searchCountries };