@shopware/api-client
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "@shopware/api-client", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Shopware client for API connection.", | ||
@@ -45,5 +45,5 @@ "author": "Shopware", | ||
"unbuild": "^2.0.0", | ||
"vitest": "^0.34.3", | ||
"@shopware/api-gen": "0.0.7", | ||
"eslint-config-shopware": "0.0.6", | ||
"vitest": "^0.34.6", | ||
"@shopware/api-gen": "0.1.0", | ||
"eslint-config-shopware": "0.0.7", | ||
"tsconfig": "0.0.0" | ||
@@ -50,0 +50,0 @@ }, |
@@ -32,3 +32,3 @@ # shopware/frontends - api-client | ||
// You can pick types of your current API version, the default one: | ||
import { | ||
import type { | ||
operationPaths, | ||
@@ -39,3 +39,3 @@ operations, | ||
// or (specific version): | ||
import { | ||
import type { | ||
operationPaths, | ||
@@ -87,3 +87,3 @@ operations, | ||
} from "@shopware/api-client"; | ||
import { | ||
import type { | ||
operationPaths, | ||
@@ -192,22 +192,22 @@ operations, | ||
### Latest changes: 0.4.0 | ||
### Latest changes: 0.5.0 | ||
### Minor Changes | ||
- [#371](https://github.com/shopware/frontends/pull/371) [`83c94e9b`](https://github.com/shopware/frontends/commit/83c94e9bb609533c4a1275cbf3822b0fc2ea1dd5) Thanks [@patzick](https://github.com/patzick)! - New method `createAdminAPIClient` supporting Admin API π °π Ώπ Έ | ||
- [#435](https://github.com/shopware/frontends/pull/435) [`a4483ed8`](https://github.com/shopware/frontends/commit/a4483ed8bf9370e87aedeb81846fe9d31880b3e0) Thanks [@patzick](https://github.com/patzick)! - Changed types imports to `import type {...} from "..."` | ||
- [#373](https://github.com/shopware/frontends/pull/373) [`5510bb02`](https://github.com/shopware/frontends/commit/5510bb028b1fea4c63d677850f50bb7b5a1cf01a) Thanks [@patzick](https://github.com/patzick)! - Added `getSessionData` and `setSessionData` methods in admin API client for test purposes. | ||
### Patch Changes | ||
- [#385](https://github.com/shopware/frontends/pull/385) [`5d7e7973`](https://github.com/shopware/frontends/commit/5d7e7973437a4d74d19ec2fa0765c6d927bf8b2a) Thanks [@patzick](https://github.com/patzick)! - Dependency changes: | ||
- [#443](https://github.com/shopware/frontends/pull/443) [`33d54db1`](https://github.com/shopware/frontends/commit/33d54db1bd66146a14781c45b1124547f4276866) Thanks [@patzick](https://github.com/patzick)! - `invoke` method parameters are no longer mandatory when no parameters are defined inside route. | ||
- Changed dependency _ofetch_ from **^1.2.1** to **^1.3.3** | ||
Now instead of: | ||
- [#375](https://github.com/shopware/frontends/pull/375) [`bd88d6fa`](https://github.com/shopware/frontends/commit/bd88d6fa95de2b90f8a1e08e34159b46c5932b3b) Thanks [@patzick](https://github.com/patzick)! - Dependency changes: | ||
```ts | ||
const result = await apiInstance.invoke("readContext get /context", {}); | ||
``` | ||
- Changed dependency _ofetch_ from **^1.1.1** to **^1.2.1** | ||
you can do: | ||
- [`15d6e696`](https://github.com/shopware/frontends/commit/15d6e69616bd9bc5ad32f2a5f697e00c45a94784) Thanks [@patzick](https://github.com/patzick)! - Emit cjs bundle | ||
- [#371](https://github.com/shopware/frontends/pull/371) [`83c94e9b`](https://github.com/shopware/frontends/commit/83c94e9bb609533c4a1275cbf3822b0fc2ea1dd5) Thanks [@patzick](https://github.com/patzick)! - Deprecated `apiType` param in `createAPIClient`, for Admin API client use `createAdminAPIClient` instead. | ||
```ts | ||
const result = await apiInstance.invoke("readContext get /context"); | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15184756
22
335417