worldwide 1.20.1 → 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: 40c3a685e5846885ead15eb0a8490aa47f0910908b6a41ca0bdce27888afe1f2
4
- data.tar.gz: 18bb293a93002c123a9c5422097c6d3769f446415bbf5d244732f76eb4429067
3
+ metadata.gz: 69478b1240841c6980c7b206322b298cdc45ad6bda7f3c722a64f983d7924389
4
+ data.tar.gz: 8381f3ca65e99b04d1a5be36793f9ff52ed555aab1873b41a2dff496357d8a37
5
5
  SHA512:
6
- metadata.gz: 8b82badbfee1579e5c221ab08a0d45efac14dd162dde9708920abcfec5b23f74eec4c635347cb9ced57872709e3f5623dc3e27766c26f967346995f33a086e6f
7
- data.tar.gz: 816675466a49cba1ead3a41b6f37afc0d666c72697455ad84ffd54064f0d8f54eb1754456560c1493bf8527f5baf88a871246343c566991084baa254d648876d
6
+ metadata.gz: dd8c72c0fee94e135b3dc0390494882f92ab3c963e8cec599225d7a01df984d87e8601dc6b56c8feb9d1aeb6e8d0214d69167551cdcdc5867962405f010251b2
7
+ data.tar.gz: 40c68338ba93c3b3119ab2990d6175e3fe7402a30cdd8cab8c830f50f65e3b450f2dc8f4ab361a6865f5cae44d9043cdcf20eed5c20c6f53555df86a8d34b151
@@ -15,13 +15,13 @@ jobs:
15
15
  working-directory: lang/typescript
16
16
  steps:
17
17
  - name: Check out code
18
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18
+ uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
19
19
  - name: Setup Node
20
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
20
+ uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
21
21
  with:
22
22
  node-version: 20
23
23
  - name: Setup PNPM
24
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
24
+ uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
25
25
  with:
26
26
  version: 9.1.3
27
27
  - name: Install dependencies
@@ -20,9 +20,9 @@ jobs:
20
20
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
21
21
  steps:
22
22
  - name: Check out code
23
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23
+ uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
24
24
  - name: Set up Ruby ${{ matrix.ruby }}
25
- uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0
25
+ uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
26
26
  with:
27
27
  ruby-version: ${{ matrix.ruby }}
28
28
  bundler-cache: true
@@ -20,15 +20,15 @@ jobs:
20
20
  working-directory: lang/typescript
21
21
  steps:
22
22
  - name: Checkout Repo
23
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23
+ uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
24
24
  with:
25
25
  token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
26
26
  - name: Setup Node
27
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
27
+ uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
28
28
  with:
29
29
  node-version: 20
30
30
  - name: Setup PNPM
31
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
31
+ uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
32
32
  with:
33
33
  version: 9.1.3
34
34
  - name: Install dependencies
data/CHANGELOG.md CHANGED
@@ -28,6 +28,13 @@ 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
+
35
+ ## [1.21.0] - 2025-10-14
36
+ - Bulgaria to start using EUR as its official currency as of Jan 1, 2026 [#413](https://github.com/Shopify/worldwide/pull/413)
37
+
31
38
  ## [1.20.1] - 2025-10-14
32
39
  - Patch pt subdivisions to remove superscript marker on Spanish provinces [#392](https://github.com/Shopify/worldwide/pull/392)
33
40
 
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- worldwide (1.20.1)
16
+ worldwide (1.21.1)
17
17
  activesupport (>= 7.0)
18
18
  i18n
19
19
  phonelib (~> 0.8)
data/data/regions/BG.yml CHANGED
@@ -2,7 +2,7 @@
2
2
  name: Bulgaria
3
3
  code: BG
4
4
  tax: 0.2
5
- currency: BGN
5
+ currency: EUR
6
6
  unit_system: metric
7
7
  tax_name: VAT
8
8
  tax_inclusive: true
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.20.1"
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.20.1
4
+ version: 1.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify