Skip to content

Commit 96a18f5

Browse files
chore: Update version for release (#9)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a92336d commit 96a18f5

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

‎.changeset/witty-items-drive.md‎

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

‎packages/format/CHANGELOG.md‎

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

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- a92336d: add default entrypoint for formatting functions.
8+
9+
This makes it easier to support both Norwegian and Swedish formatting in the same project,
10+
but it requires you to specify the wanted locale as an options argument to the method.
11+
12+
Example:
13+
14+
```js
15+
// Combined 🇳🇴🇸🇪 example
16+
import { formatOrganizationNumber } from "@obosbbl/format";
17+
formatOrganizationNumber("000000000", { locale: "no" }); // => '000 000 000'
18+
formatOrganizationNumber("0000000000", { locale: "se" }); // => '000000-0000'
19+
20+
// 🇳🇴 only example
21+
import { formatOrganizationNumber } from "@obosbbl/format/no";
22+
formatOrganizationNumber("000000000"); // => '000 000 000'
23+
24+
// 🇸🇪 only example
25+
import { formatOrganizationNumber } from "@obosbbl/format/se";
26+
formatOrganizationNumber("0000000000"); // => '000000-0000'
27+
```
28+
329
## 0.2.0
430

531
### 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.2.0",
3+
"version": "0.3.0",
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)