Skip to content

Commit

Permalink
chore: 7.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# [7.0.0](v6.13.0...v7.0.0) (2024-10-31)

### feature

* Include more currency details in offerings and tabs ([#104](#104)) ([c9eefa5](c9eefa5))

### BREAKING CHANGES

* Change currency type from `string` (isoCode) to `object` (isoCode, baseUnit)

## Details

Offerings, tabs and tab purchases now contain more currency details in the form of an object. Before, they contained just the currency iso code string.

```typescript
type PublicCurrencyDetails = Pick<Currency, "isoCode" | "baseUnit">;

// Example
const currency: PublicCurrencyDetails = {
  isoCode: "USD",
  baseUnit: 100,
};
```

## Why

We're implementing Google's Monetization Provider API for experiences.js and we need to know the currency's base unit for the response data.

## Changes

- **fix: Correct typo in STG token URL**
- **Add missing data to mock user**
- **Include currency isoCode and baseUnit in offerings**
- **Include currency iso code and base unit in tabs**
- **Fix inconsitent currency handling in test mock api**
  • Loading branch information
semantic-release-bot committed Oct 31, 2024
1 parent c9eefa5 commit a4d1746
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# [7.0.0](https://github.com/laterpay/supertab-browser/compare/v6.13.0...v7.0.0) (2024-10-31)

### feature

- Include more currency details in offerings and tabs ([#104](https://github.com/laterpay/supertab-browser/issues/104)) ([c9eefa5](https://github.com/laterpay/supertab-browser/commit/c9eefa5498c7412e1f56b27228037a057c6b49ed))

### BREAKING CHANGES

- Change currency type from `string` (isoCode) to `object` (isoCode, baseUnit)

## Details

Offerings, tabs and tab purchases now contain more currency details in the form of an object. Before, they contained just the currency iso code string.

```typescript
type PublicCurrencyDetails = Pick<Currency, "isoCode" | "baseUnit">;

// Example
const currency: PublicCurrencyDetails = {
isoCode: "USD",
baseUnit: 100,
};
```

## Why

We're implementing Google's Monetization Provider API for experiences.js and we need to know the currency's base unit for the response data.

## Changes

- **fix: Correct typo in STG token URL**
- **Add missing data to mock user**
- **Include currency isoCode and baseUnit in offerings**
- **Include currency iso code and base unit in tabs**
- **Fix inconsitent currency handling in test mock api**

# [6.13.0](https://github.com/laterpay/supertab-browser/compare/v6.12.7...v6.13.0) (2024-10-04)

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@
],
"rules": {}
},
"version": "6.13.0"
"version": "7.0.0"
}

0 comments on commit a4d1746

Please sign in to comment.