@shopware/api-client
Advanced tools
Comparing version 0.0.0-canary-20231107133536 to 0.0.0-canary-20231205152148
{ | ||
"name": "@shopware/api-client", | ||
"version": "0.0.0-canary-20231107133536", | ||
"version": "0.0.0-canary-20231205152148", | ||
"description": "Shopware client for API connection.", | ||
"author": "Shopware", | ||
"type": "module", | ||
"repository": { | ||
@@ -43,7 +44,7 @@ "type": "git", | ||
"@vitest/coverage-c8": "^0.33.0", | ||
"prettier": "^3.0.3", | ||
"prettier": "^3.1.0", | ||
"unbuild": "^2.0.0", | ||
"vitest": "^0.34.6", | ||
"@shopware/api-gen": "0.0.0-canary-20231107133536", | ||
"eslint-config-shopware": "0.0.0-canary-20231107133536", | ||
"@shopware/api-gen": "0.1.1", | ||
"eslint-config-shopware": "0.0.0-canary-20231205152148", | ||
"tsconfig": "0.0.0" | ||
@@ -50,0 +51,0 @@ }, |
@@ -8,3 +8,3 @@ # shopware/frontends - api-client | ||
Dynamic and fully typed API Client for Shopware 6. Usable in any JavaScript an TypeScript project. | ||
Dynamic and fully typed API Client for Shopware 6. Usable in any JavaScript and TypeScript project. | ||
You can use types generated from your custom API instance to have autocompletion and type safety. | ||
@@ -27,3 +27,3 @@ | ||
Recommended practice is to create separate module file. For example `src/apiClient.ts`, and import it whenever you need to use API Client. | ||
Recommended practice is to create a separate module file. For example `src/apiClient.ts`, and import it whenever you need to use API Client. | ||
@@ -191,22 +191,6 @@ ```typescript | ||
### Latest changes: 0.0.0-canary-20231107133536 | ||
### Latest changes: 0.0.0-canary-20231205152148 | ||
### Minor Changes | ||
- [#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 "..."` | ||
### Patch 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. | ||
Now instead of: | ||
```ts | ||
const result = await apiInstance.invoke("readContext get /context", {}); | ||
``` | ||
you can do: | ||
```ts | ||
const result = await apiInstance.invoke("readContext get /context"); | ||
``` | ||
- [`89a97a4`](https://github.com/shopware/frontends/commit/89a97a45ae4a58616e41f63e9884a2a67f0a6ce8) Thanks [@patzick](https://github.com/patzick)! - fix default types |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
15240654
335789
Yes
194