Skip to content

Commit a4a7471

Browse files
chore: Update version for release (#24)
1 parent 4598b6f commit a4a7471

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.changeset/sour-plums-look.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/format/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @obosbbl/format
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- 3a52b13: allow country code for phone number input in `formatPhoneNumber()`.
8+
9+
Previously it was unable to format phone numbers with country codes (+47, +46), now it can.
10+
Note that the country code will _not_ be part of the formatted output.
11+
12+
```js
13+
// 🇳🇴 example
14+
formatPhoneNumber("+4700000000"); // => '00 00 00 00'
15+
16+
// 🇸🇪 example
17+
formatPhoneNumber("+46303123456"); // => '0303-12 34 56'
18+
```
19+
320
## 0.3.0
421

522
### Minor Changes

packages/format/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@obosbbl/format",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A collection of formatting methods for OBOS",
55
"repository": {
66
"url": "https://github.com/code-obos/public-frontend-modules"

0 commit comments

Comments
 (0)