Releases: shopware/frontends
@shopware/[email protected]
Patch Changes
- Updated dependencies [
8df7651
]:- @shopware/[email protected]
@shopware/[email protected]
Patch Changes
- #1425
8df7651
Thanks @quando1910! - - fix: override header value when invoke adminApiClient and storeAPiClient
@shopware-pwa/[email protected]
Patch Changes
- Updated dependencies [
8df7651
]:- @shopware/[email protected]
@shopware-pwa/[email protected]
Patch Changes
- Updated dependencies [
8df7651
]:- @shopware/[email protected]
- @shopware-pwa/[email protected]
@shopware-pwa/[email protected]
Patch Changes
- Updated dependencies [
8df7651
]:- @shopware/[email protected]
@shopware-pwa/[email protected]
Patch Changes
- Updated dependencies [
8df7651
]:- @shopware/[email protected]
- @shopware-pwa/[email protected]
@shopware/[email protected]
@shopware/[email protected]
Minor Changes
-
#1405
f9fb243
Thanks @patzick! - Updated openapi-typescript to v7. Additional checks for better generation -
#1365
6abe9ab
Thanks @patzick! -validateJson
command now checks endpoints exposed by the API to show if there are any endpoints missing in the schema or the schema contains some endpoints definitions, which are not exposed by the backend instancetun it in the console like this:
shopware-api-gen validateJson --apiType=store shopware-api-gen validateJson --apiType=admin
You need to have the same .env variables as needed for
loadSchema
command as the CLI is checking endpoints against the running instance.
Patch Changes
-
#1364
221af3c
Thanks @patzick! - Fix patching schema when there is an oveerite with the_DELETE
key, and the value was not present in the original schema. In that case there is nothing to delete and value should be omitted. -
#1330
2fdb986
Thanks @mkucmus! - Avoid schema loading when internal value_DELETE_
is used for$ref
key.parse function of
json5
library tries to load a$ref
by loading a file under the reference value, and that's whyENOENT: no such file or directory, open '{cwd}/_DELETE'_
error was being thrown when there was no
_DELETE_
schema available locally (in the same json schema). -
Updated dependencies [
6abe9ab
,0643174
,266bb32
,f9fb243
,15bebee
,ebb10eb
]:- @shopware/[email protected]
@shopware/[email protected]
Minor Changes
- #1371
0643174
Thanks @patzick! - NewonDefaultHeaderChanged
hook in store and admin client. This allows to track the default headers changes. Additionally manual change of the default header will also invoke this hook.
Patch Changes
-
#1365
6abe9ab
Thanks @patzick! - Updated default API schema definitions to 6.6.6.0 -
#1339
266bb32
Thanks @mdanilowicz! - Updated default schema to version6.6.6.0
-
#1405
f9fb243
Thanks @patzick! - updated default API schema definitions -
#1316
15bebee
Thanks @mkucmus! - Extend Criteria type in exported admin API schema -
#1323
ebb10eb
Thanks @mkucmus! - Don't send Content-Type in case of multipart/form-data.- Ignore
Content-Type
header in browser context whenmultipart/form-data
is set. - boundary is set by a browser automatically.
// example const formData = new FormData(); formData.append("file", file); const addedMediaResponse = await apiClient.invoke( "uploadImage post /images/upload", { headers: { "Content-Type": "multipart/form-data", // <-- set this one }, accept: "application/json", body: formData, }, );
When
invoke
method of api-client gets theheaders
parameter containingmultipart/form-data
Content-Type - the header will be ignored and the responsibility will be handed over to the browser - so theContent-Type=multipart/form-data
header will eventually be sent, but including a dynamic boundary params added by the browser on the fly. - Ignore