Skip to content

Commit dc9682c

Browse files
chore: release
1 parent b38ac03 commit dc9682c

22 files changed

Lines changed: 137 additions & 89 deletions

.changeset/friendly-custom-fields.md

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

.changeset/modern-api-gen-formatter.md

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

.changeset/quiet-countries-fetch.md

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

.changeset/quiet-rolldown-build.md

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

.changeset/stable-criteria-encoding.md

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

.changeset/tidy-clients-split.md

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

.changeset/tidy-falcons-glow.md

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

packages/api-client/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @shopware/api-client
22

3+
## 1.5.1
4+
5+
### Patch Changes
6+
7+
- [#2515](https://github.com/shopware/frontends/pull/2515) [`978b02c`](https://github.com/shopware/frontends/commit/978b02c969ca4b16f5fc1d7a953ec4cce3d98173) Thanks [@patzick](https://github.com/patzick)! - Generate `customFields` properties with a dedicated `CustomFields` type instead of the broader `GenericRecord` type.
8+
9+
- [#2554](https://github.com/shopware/frontends/pull/2554) [`9137475`](https://github.com/shopware/frontends/commit/91374753cedb2034385f642e6af11314f2971caa) Thanks [@patzick](https://github.com/patzick)! - Make `_criteria` query encoding deterministic by pinning the gzip timestamp.
10+
11+
- [#2526](https://github.com/shopware/frontends/pull/2526) [`474d3fe`](https://github.com/shopware/frontends/commit/474d3fed346816135b0c7c797990b215a8b691c0) Thanks [@mkucmus](https://github.com/mkucmus)! - Split the `createAPIClient` tests so Node and browser behavior are each tested in the right environment:
12+
13+
- Node (`createApiClient.test.ts`): keeps the multipart `Content-Type`, aborts with `This operation was aborted`.
14+
- Browser (`createApiClient.browser.test.ts`, runs in `happy-dom`): drops the multipart `Content-Type`, aborts with `signal is aborted without reason`.
15+
16+
Previously a stray `@vitest-environment` comment ran the whole suite in browser mode, so the Node paths were never actually checked.
17+
318
## 1.5.0
419

520
### Minor Changes
@@ -46,6 +61,7 @@
4661
### Minor Changes
4762

4863
- [#1865](https://github.com/shopware/frontends/pull/1865) [`d016d6b`](https://github.com/shopware/frontends/commit/d016d6b845bff9a148405a74dae88d7fc81ec99c) Thanks [@patzick](https://github.com/patzick)! - Added new methods to manage API client base configuration:
64+
4965
- `updateBaseConfig`: Allows updating baseURL and accessToken in a single call
5066
- `getBaseConfig`: Returns current baseURL and accessToken values
5167

@@ -98,6 +114,7 @@
98114
- [#1316](https://github.com/shopware/frontends/pull/1316) [`15bebee`](https://github.com/shopware/frontends/commit/15bebee0daefacc078ac99fea8725b95fdbc1cc7) Thanks [@mkucmus](https://github.com/mkucmus)! - Extend Criteria type in exported admin API schema
99115

100116
- [#1323](https://github.com/shopware/frontends/pull/1323) [`ebb10eb`](https://github.com/shopware/frontends/commit/ebb10eba629b3ec2c5a4a50fa12ef0b134601d6f) Thanks [@mkucmus](https://github.com/mkucmus)! - Don't send Content-Type in case of [multipart/form-data](https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html).
117+
101118
- Ignore `Content-Type` header in browser context when `multipart/form-data` is set.
102119
- _boundary_ is set by a browser automatically.
103120

@@ -235,9 +252,11 @@
235252
### Patch Changes
236253

237254
- [#385](https://github.com/shopware/frontends/pull/385) [`5d7e7973`](https://github.com/shopware/frontends/commit/5d7e7973437a4d74d19ec2fa0765c6d927bf8b2a) Thanks [@patzick](https://github.com/patzick)! - Dependency changes:
255+
238256
- Changed dependency _ofetch_ from **^1.2.1** to **^1.3.3**
239257

240258
- [#375](https://github.com/shopware/frontends/pull/375) [`bd88d6fa`](https://github.com/shopware/frontends/commit/bd88d6fa95de2b90f8a1e08e34159b46c5932b3b) Thanks [@patzick](https://github.com/patzick)! - Dependency changes:
259+
241260
- Changed dependency _ofetch_ from **^1.1.1** to **^1.2.1**
242261

243262
- [`15d6e696`](https://github.com/shopware/frontends/commit/15d6e69616bd9bc5ad32f2a5f697e00c45a94784) Thanks [@patzick](https://github.com/patzick)! - Emit cjs bundle

packages/api-client/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,14 +496,17 @@ apiClient.invoke("getProducts get /product", {
496496

497497
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/api-client/CHANGELOG.md)
498498

499-
### Latest changes: 1.5.0
499+
### Latest changes: 1.5.1
500500

501-
### Minor Changes
501+
### Patch Changes
502502

503-
- [#2263](https://github.com/shopware/frontends/pull/2263) [`b5f7e2a`](https://github.com/shopware/frontends/commit/b5f7e2a20c9dfdde1690e9006252d847f732bc0a) Thanks [@mkucmus](https://github.com/mkucmus)! - Regenerated Store API schemas from the latest backend. Removed obsolete schema patches that were fixed upstream.
503+
- [#2515](https://github.com/shopware/frontends/pull/2515) [`978b02c`](https://github.com/shopware/frontends/commit/978b02c969ca4b16f5fc1d7a953ec4cce3d98173) Thanks [@patzick](https://github.com/patzick)! - Generate `customFields` properties with a dedicated `CustomFields` type instead of the broader `GenericRecord` type.
504504

505-
- [#2261](https://github.com/shopware/frontends/pull/2261) [`9604f22`](https://github.com/shopware/frontends/commit/9604f22678150d04c3c3156fd8ee2ce440c8c8bf) Thanks [@mkucmus](https://github.com/mkucmus)! - update admin API types to be aligned with the backend.
505+
- [#2554](https://github.com/shopware/frontends/pull/2554) [`9137475`](https://github.com/shopware/frontends/commit/91374753cedb2034385f642e6af11314f2971caa) Thanks [@patzick](https://github.com/patzick)! - Make `_criteria` query encoding deterministic by pinning the gzip timestamp.
506506

507-
### Patch Changes
507+
- [#2526](https://github.com/shopware/frontends/pull/2526) [`474d3fe`](https://github.com/shopware/frontends/commit/474d3fed346816135b0c7c797990b215a8b691c0) Thanks [@mkucmus](https://github.com/mkucmus)! - Split the `createAPIClient` tests so Node and browser behavior are each tested in the right environment:
508+
509+
- Node (`createApiClient.test.ts`): keeps the multipart `Content-Type`, aborts with `This operation was aborted`.
510+
- Browser (`createApiClient.browser.test.ts`, runs in `happy-dom`): drops the multipart `Content-Type`, aborts with `signal is aborted without reason`.
508511

509-
- [#2261](https://github.com/shopware/frontends/pull/2261) [`9604f22`](https://github.com/shopware/frontends/commit/9604f22678150d04c3c3156fd8ee2ce440c8c8bf) Thanks [@mkucmus](https://github.com/mkucmus)! - Changed `scopes` to `scope` in OAuth token request types to align with RFC 6749 and League OAuth2 server implementation.
512+
Previously a stray `@vitest-environment` comment ran the whole suite in browser mode, so the Node paths were never actually checked.

packages/api-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shopware/api-client",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Shopware client for API connection.",
55
"author": "Shopware",
66
"type": "module",

0 commit comments

Comments
 (0)