libphonenumber-js 1.13.5 → 1.13.6

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/.gitlab-ci.yml CHANGED
@@ -1,4 +1,6 @@
1
- image: node:22
1
+ # Node 24+ ensures that npm 11.5+ is natively available.
2
+ # The `npm` version must meet the minimum requirements for "trusted publishing".
3
+ image: node:24
2
4
 
3
5
  pages:
4
6
  script:
@@ -12,20 +14,36 @@ pages:
12
14
  paths:
13
15
  - public
14
16
 
15
- # Does not run on schedule
17
+ # Does not run on schedule.
16
18
  rules:
17
19
  - if: $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_BRANCH != "master"
18
20
  when: never # Excludes this job from scheduled pipeline types
19
21
  - when: on_success
20
22
 
21
23
  update-metadata:
24
+ # OIDC ID token that is used for "trusted publishing".
25
+ id_tokens:
26
+ NPM_ID_TOKEN:
27
+ aud: "npm:registry.npmjs.org"
28
+
29
+ # (security) Restrict publishing to tagged releases only.
30
+ # But it did output an error: "jobs:update-metadata config key may not be used with `rules`: only".
31
+ # only:
32
+ # - tags
33
+
34
+ before_script:
35
+ - git config --global user.email "metadata-updater@gay.com"
36
+ - git config --global user.name "Metadata Updater"
37
+
22
38
  script:
39
+ # Verify that `npm` version meets the minimum requirements for "trusted publishing".
40
+ - npm --version
23
41
  - git checkout master
24
42
  - npm install
25
43
  - npm run metadata:update:job
26
44
 
27
- # Only runs on schedule
45
+ # Only runs on schedule.
28
46
  rules:
29
47
  - if: $CI_PIPELINE_SOURCE == "schedule" && $TASK_TYPE == "metadata-update"
30
48
  when: always
31
- - when: never # Excludes this job from non-scheduled pipeline types
49
+ - when: never # Excludes this job from non-scheduled pipeline types.
package/CHANGELOG.md CHANGED
@@ -69,6 +69,14 @@ And edit the README:
69
69
 
70
70
  <!-- CHANGELOG START -->
71
71
 
72
+ 1.13.6 / 5.6.2026
73
+ ===================
74
+
75
+ * Updated metadata to version 9.0.32:
76
+ - Updated phone metadata for region code(s): DZ, JP, NO, SJ, SO, UG
77
+ - Updated carrier data for country calling code(s):
78
+ 33 (en), 47 (en), 233 (en), 252 (en), 256 (en)
79
+
72
80
  1.13.5 / 03.06.2026
73
81
  ===================
74
82