@vvo/tzdb 6.202.0 → 6.203.0

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/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region abbreviations.json
2
+ // abbreviations.json
3
3
  var abbreviations_default = {
4
4
  "Acre Time": "ACT",
5
5
  "Afghanistan Time": "AFT",
@@ -289,8 +289,7 @@ var abbreviations_default = {
289
289
  "Yukon Time": "YT",
290
290
  "Zulu Time Zone": "Z"
291
291
  };
292
- //#endregion
293
- //#region src/format.ts
292
+ // src/format.ts
294
293
  function formatOffset(offsetInMinutes) {
295
294
  const sign = offsetInMinutes < 0 ? "-" : "+";
296
295
  const absolute = Math.abs(offsetInMinutes);
@@ -299,8 +298,7 @@ function formatOffset(offsetInMinutes) {
299
298
  function formatTimeZone(offsetInMinutes, alternativeName, mainCities) {
300
299
  return `${formatOffset(offsetInMinutes)} ${alternativeName} - ${mainCities.join(", ")}`;
301
300
  }
302
- //#endregion
303
- //#region src/compact.ts
301
+ // src/compact.ts
304
302
  function expandTimeZones({ continents, countries, rows }) {
305
303
  return rows.map(([name, alternativeName, group, continentCode, countryCode, cities, rawOffsetInMinutes, abbreviation, dstAbbreviation]) => {
306
304
  const mainCities = cities.split("|");
@@ -320,8 +318,7 @@ function expandTimeZones({ continents, countries, rows }) {
320
318
  };
321
319
  });
322
320
  }
323
- //#endregion
324
- //#region raw-time-zones.json
321
+ // raw-time-zones.json
325
322
  var raw_time_zones_default = /* @__PURE__ */ expandTimeZones({
326
323
  "continents": {
327
324
  "OC": "Oceania",
@@ -2616,7 +2613,7 @@ var raw_time_zones_default = /* @__PURE__ */ expandTimeZones({
2616
2613
  "Asia/Jerusalem Asia/Tel_Aviv Israel",
2617
2614
  "AS",
2618
2615
  "IL",
2619
- "Jerusalem|Tel Aviv|Haifa|Rishon LeTsiyyon",
2616
+ "Jerusalem|Tel Aviv|Haifa|Petaẖ Tiqva",
2620
2617
  120,
2621
2618
  "IST",
2622
2619
  "IDT"
@@ -3840,8 +3837,7 @@ var raw_time_zones_default = /* @__PURE__ */ expandTimeZones({
3840
3837
  ]
3841
3838
  ]
3842
3839
  });
3843
- //#endregion
3844
- //#region time-zones-names.json
3840
+ // time-zones-names.json
3845
3841
  var time_zones_names_default = [
3846
3842
  "Africa/Abidjan",
3847
3843
  "Africa/Accra",
@@ -4262,8 +4258,7 @@ var time_zones_names_default = [
4262
4258
  "Pacific/Wake",
4263
4259
  "Pacific/Wallis"
4264
4260
  ];
4265
- //#endregion
4266
- //#region src/countries.ts
4261
+ // src/countries.ts
4267
4262
  const countries = {
4268
4263
  AD: "Europe/Andorra",
4269
4264
  AE: "Asia/Dubai",
@@ -4513,11 +4508,9 @@ const countries = {
4513
4508
  ZM: "Africa/Lusaka",
4514
4509
  ZW: "Africa/Harare"
4515
4510
  };
4516
- //#endregion
4517
- //#region src/tzdb-version.ts
4511
+ // src/tzdb-version.ts
4518
4512
  const tzdbVersion$1 = "2026f";
4519
- //#endregion
4520
- //#region src/index.ts
4513
+ // src/index.ts
4521
4514
  const rawTimeZones = raw_time_zones_default;
4522
4515
  const timeZonesNames = time_zones_names_default;
4523
4516
  const abbreviations = abbreviations_default;
@@ -4673,7 +4666,6 @@ function getTimeZones(options = {}) {
4673
4666
  }
4674
4667
  return timeZones.sort((a, b) => a.currentTimeOffsetInMinutes - b.currentTimeOffsetInMinutes || a.alternativeName.localeCompare(b.alternativeName, locale) || a.mainCities[0].localeCompare(b.mainCities[0], locale));
4675
4668
  }
4676
- //#endregion
4677
4669
  exports.abbreviations = abbreviations;
4678
4670
  exports.getCountryCode = getCountryCode;
4679
4671
  exports.getTimeZones = getTimeZones;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/types.d.ts
2
1
  type TimeZoneName = string;
3
2
  interface RawTimeZone {
4
3
  /** IANA name of the most populated zone of the group, like "America/Los_Angeles" */
@@ -44,8 +43,6 @@ interface TimeZoneOptions {
44
43
  /** Computes the current* fields at this date instead of now, like the date of a meeting */
45
44
  date?: Date;
46
45
  }
47
- //#endregion
48
- //#region src/index.d.ts
49
46
  export declare const rawTimeZones: RawTimeZone[];
50
47
  export declare const timeZonesNames: TimeZoneName[];
51
48
  export declare const abbreviations: Record<string, string>;
@@ -63,5 +60,4 @@ export declare function getCountryCode(timeZone: string): string | undefined;
63
60
  * and operating systems keep up to date.
64
61
  */
65
62
  export declare function getTimeZones(options?: TimeZoneOptions): TimeZone[];
66
- //#endregion
67
63
  export type { RawTimeZone, TimeZone, TimeZoneName, TimeZoneOptions };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/types.d.ts
2
1
  type TimeZoneName = string;
3
2
  interface RawTimeZone {
4
3
  /** IANA name of the most populated zone of the group, like "America/Los_Angeles" */
@@ -44,8 +43,6 @@ interface TimeZoneOptions {
44
43
  /** Computes the current* fields at this date instead of now, like the date of a meeting */
45
44
  date?: Date;
46
45
  }
47
- //#endregion
48
- //#region src/index.d.ts
49
46
  export declare const rawTimeZones: RawTimeZone[];
50
47
  export declare const timeZonesNames: TimeZoneName[];
51
48
  export declare const abbreviations: Record<string, string>;
@@ -63,5 +60,4 @@ export declare function getCountryCode(timeZone: string): string | undefined;
63
60
  * and operating systems keep up to date.
64
61
  */
65
62
  export declare function getTimeZones(options?: TimeZoneOptions): TimeZone[];
66
- //#endregion
67
63
  export type { RawTimeZone, TimeZone, TimeZoneName, TimeZoneOptions };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region abbreviations.json
1
+ // abbreviations.json
2
2
  var abbreviations_default = {
3
3
  "Acre Time": "ACT",
4
4
  "Afghanistan Time": "AFT",
@@ -288,8 +288,7 @@ var abbreviations_default = {
288
288
  "Yukon Time": "YT",
289
289
  "Zulu Time Zone": "Z"
290
290
  };
291
- //#endregion
292
- //#region src/format.ts
291
+ // src/format.ts
293
292
  function formatOffset(offsetInMinutes) {
294
293
  const sign = offsetInMinutes < 0 ? "-" : "+";
295
294
  const absolute = Math.abs(offsetInMinutes);
@@ -298,8 +297,7 @@ function formatOffset(offsetInMinutes) {
298
297
  function formatTimeZone(offsetInMinutes, alternativeName, mainCities) {
299
298
  return `${formatOffset(offsetInMinutes)} ${alternativeName} - ${mainCities.join(", ")}`;
300
299
  }
301
- //#endregion
302
- //#region src/compact.ts
300
+ // src/compact.ts
303
301
  function expandTimeZones({ continents, countries, rows }) {
304
302
  return rows.map(([name, alternativeName, group, continentCode, countryCode, cities, rawOffsetInMinutes, abbreviation, dstAbbreviation]) => {
305
303
  const mainCities = cities.split("|");
@@ -319,8 +317,7 @@ function expandTimeZones({ continents, countries, rows }) {
319
317
  };
320
318
  });
321
319
  }
322
- //#endregion
323
- //#region raw-time-zones.json
320
+ // raw-time-zones.json
324
321
  var raw_time_zones_default = /* @__PURE__ */ expandTimeZones({
325
322
  "continents": {
326
323
  "OC": "Oceania",
@@ -2615,7 +2612,7 @@ var raw_time_zones_default = /* @__PURE__ */ expandTimeZones({
2615
2612
  "Asia/Jerusalem Asia/Tel_Aviv Israel",
2616
2613
  "AS",
2617
2614
  "IL",
2618
- "Jerusalem|Tel Aviv|Haifa|Rishon LeTsiyyon",
2615
+ "Jerusalem|Tel Aviv|Haifa|Petaẖ Tiqva",
2619
2616
  120,
2620
2617
  "IST",
2621
2618
  "IDT"
@@ -3839,8 +3836,7 @@ var raw_time_zones_default = /* @__PURE__ */ expandTimeZones({
3839
3836
  ]
3840
3837
  ]
3841
3838
  });
3842
- //#endregion
3843
- //#region time-zones-names.json
3839
+ // time-zones-names.json
3844
3840
  var time_zones_names_default = [
3845
3841
  "Africa/Abidjan",
3846
3842
  "Africa/Accra",
@@ -4261,8 +4257,7 @@ var time_zones_names_default = [
4261
4257
  "Pacific/Wake",
4262
4258
  "Pacific/Wallis"
4263
4259
  ];
4264
- //#endregion
4265
- //#region src/countries.ts
4260
+ // src/countries.ts
4266
4261
  const countries = {
4267
4262
  AD: "Europe/Andorra",
4268
4263
  AE: "Asia/Dubai",
@@ -4512,11 +4507,9 @@ const countries = {
4512
4507
  ZM: "Africa/Lusaka",
4513
4508
  ZW: "Africa/Harare"
4514
4509
  };
4515
- //#endregion
4516
- //#region src/tzdb-version.ts
4510
+ // src/tzdb-version.ts
4517
4511
  const tzdbVersion$1 = "2026f";
4518
- //#endregion
4519
- //#region src/index.ts
4512
+ // src/index.ts
4520
4513
  const rawTimeZones = raw_time_zones_default;
4521
4514
  const timeZonesNames = time_zones_names_default;
4522
4515
  const abbreviations = abbreviations_default;
@@ -4672,5 +4665,4 @@ function getTimeZones(options = {}) {
4672
4665
  }
4673
4666
  return timeZones.sort((a, b) => a.currentTimeOffsetInMinutes - b.currentTimeOffsetInMinutes || a.alternativeName.localeCompare(b.alternativeName, locale) || a.mainCities[0].localeCompare(b.mainCities[0], locale));
4674
4667
  }
4675
- //#endregion
4676
4668
  export { abbreviations, getCountryCode, getTimeZones, rawTimeZones, timeZonesNames, tzdbVersion };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvo/tzdb",
3
- "version": "6.202.0",
3
+ "version": "6.203.0",
4
4
  "description": "Always up to date list of IANA time zones for time zone pickers, with major cities, current offsets, DST abbreviations and the country of any time zone",
5
5
  "keywords": [
6
6
  "abbreviations",
@@ -69,15 +69,15 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@arethetypeswrong/cli": "0.18.5",
72
- "@size-limit/preset-small-lib": "14.2.0",
72
+ "@size-limit/preset-small-lib": "14.3.0",
73
73
  "@types/node": "26.6.5",
74
- "oxfmt": "0.73.0",
75
- "oxlint": "1.88.0",
76
- "oxlint-tsgolint": "7.0.2004",
74
+ "oxfmt": "0.74.0",
75
+ "oxlint": "1.89.0",
76
+ "oxlint-tsgolint": "7.0.2005",
77
77
  "publint": "0.3.25",
78
78
  "semantic-release": "25.0.9",
79
- "size-limit": "14.2.0",
80
- "tsdown": "0.23.1",
79
+ "size-limit": "14.3.0",
80
+ "tsdown": "0.23.2",
81
81
  "typescript": "7.0.2"
82
82
  },
83
83
  "release": {
@@ -193,7 +193,7 @@
193
193
  {"name":"Europe/Tallinn","alternativeName":"Eastern European Time","group":["Europe/Tallinn"],"continentCode":"EU","continentName":"Europe","countryName":"Estonia","countryCode":"EE","mainCities":["Tallinn","Tartu","Narva","Pärnu"],"rawOffsetInMinutes":120,"abbreviation":"EET","dstAbbreviation":"EEST","rawFormat":"+02:00 Eastern European Time - Tallinn, Tartu, Narva, Pärnu"},
194
194
  {"name":"Africa/Tripoli","alternativeName":"Eastern European Time","group":["Africa/Tripoli","Libya"],"continentCode":"AF","continentName":"Africa","countryName":"Libya","countryCode":"LY","mainCities":["Tripoli","Benghazi","Misratah","Zliten"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Tripoli, Benghazi, Misratah, Zliten"},
195
195
  {"name":"Europe/Vilnius","alternativeName":"Eastern European Time","group":["Europe/Vilnius"],"continentCode":"EU","continentName":"Europe","countryName":"Lithuania","countryCode":"LT","mainCities":["Vilnius","Kaunas","Klaipėda","Šiauliai"],"rawOffsetInMinutes":120,"abbreviation":"EET","dstAbbreviation":"EEST","rawFormat":"+02:00 Eastern European Time - Vilnius, Kaunas, Klaipėda, Šiauliai"},
196
- {"name":"Asia/Jerusalem","alternativeName":"Israel Time","group":["Asia/Jerusalem","Asia/Tel_Aviv","Israel"],"continentCode":"AS","continentName":"Asia","countryName":"Israel","countryCode":"IL","mainCities":["Jerusalem","Tel Aviv","Haifa","Rishon LeTsiyyon"],"rawOffsetInMinutes":120,"abbreviation":"IST","dstAbbreviation":"IDT","rawFormat":"+02:00 Israel Time - Jerusalem, Tel Aviv, Haifa, Rishon LeTsiyyon"},
196
+ {"name":"Asia/Jerusalem","alternativeName":"Israel Time","group":["Asia/Jerusalem","Asia/Tel_Aviv","Israel"],"continentCode":"AS","continentName":"Asia","countryName":"Israel","countryCode":"IL","mainCities":["Jerusalem","Tel Aviv","Haifa","Petaẖ Tiqva"],"rawOffsetInMinutes":120,"abbreviation":"IST","dstAbbreviation":"IDT","rawFormat":"+02:00 Israel Time - Jerusalem, Tel Aviv, Haifa, Petaẖ Tiqva"},
197
197
  {"name":"Africa/Johannesburg","alternativeName":"South Africa Time","group":["Africa/Johannesburg"],"continentCode":"AF","continentName":"Africa","countryName":"South Africa","countryCode":"ZA","mainCities":["Johannesburg","Cape Town","Durban","Pretoria"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Johannesburg, Cape Town, Durban, Pretoria"},
198
198
  {"name":"Africa/Mbabane","alternativeName":"South Africa Time","group":["Africa/Mbabane"],"continentCode":"AF","continentName":"Africa","countryName":"Eswatini","countryCode":"SZ","mainCities":["Manzini","Mbabane","Lobamba"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Manzini, Mbabane, Lobamba"},
199
199
  {"name":"Africa/Maseru","alternativeName":"South Africa Time","group":["Africa/Maseru"],"continentCode":"AF","continentName":"Africa","countryName":"Lesotho","countryCode":"LS","mainCities":["Maseru","Maputsoe","Mohale's Hoek","Mafeteng"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Maseru, Maputsoe, Mohale's Hoek, Mafeteng"},