worldwide 1.21.0 → 1.21.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acb2d5e281ea32acb591e0944e363201b066e9d4586b729ddf59a32df8255293
4
- data.tar.gz: 5495dc76c0488a05bd50298a609e4a5ba9aacec093ed4893a11bb1e926dae0ff
3
+ metadata.gz: 69478b1240841c6980c7b206322b298cdc45ad6bda7f3c722a64f983d7924389
4
+ data.tar.gz: 8381f3ca65e99b04d1a5be36793f9ff52ed555aab1873b41a2dff496357d8a37
5
5
  SHA512:
6
- metadata.gz: e04ab08bc4b7d1dfab1b1b9c6ca8f2d278a365e20a2c3198ec166ffe2745c47365de20329193562e1c59fac46343e1b87616335b9d759a0efe52592bdb63927b
7
- data.tar.gz: 31e0dbff0c1c92d27fbd2c8cfaa58c41c43d0cf1a4e1fe3770f38452142bbe3da38870cefc67c322538fb766229d6d80985da7312488c99122f09f4addb13479
6
+ metadata.gz: dd8c72c0fee94e135b3dc0390494882f92ab3c963e8cec599225d7a01df984d87e8601dc6b56c8feb9d1aeb6e8d0214d69167551cdcdc5867962405f010251b2
7
+ data.tar.gz: 40c68338ba93c3b3119ab2990d6175e3fe7402a30cdd8cab8c830f50f65e3b450f2dc8f4ab361a6865f5cae44d9043cdcf20eed5c20c6f53555df86a8d34b151
data/CHANGELOG.md CHANGED
@@ -28,6 +28,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
28
28
  ## [Unreleased]
29
29
 
30
30
  ---
31
+ ## [1.21.1] - 2026-01-13
32
+ - Fix GB postal code regex to reject invalid outward code formats (AA99A, A99A) that were incorrectly accepted (e.g., "KT11X 2JH")
33
+ - Fix LU postal code regex to allow zero as first digit for packstation addresses (e.g., "0692")
34
+
31
35
  ## [1.21.0] - 2025-10-14
32
36
  - Bulgaria to start using EUR as its official currency as of Jan 1, 2026 [#413](https://github.com/Shopify/worldwide/pull/413)
33
37
 
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- worldwide (1.21.0)
16
+ worldwide (1.21.1)
17
17
  activesupport (>= 7.0)
18
18
  i18n
19
19
  phonelib (~> 0.8)
data/data/regions/GB.yml CHANGED
@@ -11,8 +11,8 @@ ignore_provinces: true
11
11
  group: European Countries
12
12
  group_name: Europe
13
13
  zip_label: Postcode
14
- zip_regex: "^[A-Za-z]{1,2}[\\d]{1,2}(?:[A-Za-z])?\\s?[\\d][A-Za-z]{2}$"
15
- partial_zip_regex: "^[A-Z]{1,2}[0-9]{1,2}[A-Z]?$"
14
+ zip_regex: "^[A-Za-z]{1,2}(\\d[A-Za-z]?|\\d\\d)\\s?\\d[A-Za-z]{2}$"
15
+ partial_zip_regex: "^[A-Z]{1,2}(\\d[A-Z]?|\\d\\d)$"
16
16
  zip_example: SE22 8DL
17
17
  phone_number_prefix: 44
18
18
  building_number_required: true
data/data/regions/LU.yml CHANGED
@@ -10,7 +10,7 @@ group: European Countries
10
10
  group_name: Europe
11
11
  tags:
12
12
  - EU-member
13
- zip_regex: "^(LU?-?)?[1-9]\\d{3}$"
13
+ zip_regex: "^(LU?-?)?\\d{4}$"
14
14
  zip_example: '4750'
15
15
  phone_number_prefix: 352
16
16
  week_start_day: monday
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Worldwide
4
- VERSION = "1.21.0"
4
+ VERSION = "1.21.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldwide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify