Skip to content

Releases: shopware/frontends

@shopware/[email protected]

07 Nov 12:23
c762fd5
Compare
Choose a tag to compare

Patch Changes

@shopware/[email protected]

07 Nov 12:23
c762fd5
Compare
Choose a tag to compare

Patch Changes

@shopware-pwa/[email protected]

07 Nov 12:23
c762fd5
Compare
Choose a tag to compare

Patch Changes

@shopware-pwa/[email protected]

07 Nov 12:23
c762fd5
Compare
Choose a tag to compare

Patch Changes

@shopware-pwa/[email protected]

07 Nov 12:23
c762fd5
Compare
Choose a tag to compare

Patch Changes

@shopware-pwa/[email protected]

07 Nov 12:23
c762fd5
Compare
Choose a tag to compare

Patch Changes

@shopware/[email protected]

04 Nov 14:50
1f3b203
Compare
Choose a tag to compare

Patch Changes

  • b550cef Thanks @patzick! - Fix process failing on errors to give more time for adoption.

@shopware/[email protected]

04 Nov 11:33
Compare
Choose a tag to compare

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 instance

    tun 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.

  • #1304 183eee9 Thanks @mkucmus! - Fix import pitfall.

  • #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 why

    ENOENT: 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]

04 Nov 11:33
Compare
Choose a tag to compare

Minor Changes

  • #1371 0643174 Thanks @patzick! - New onDefaultHeaderChanged 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 version 6.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 when multipart/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 the headers parameter containing multipart/form-data Content-Type - the header will be ignored and the responsibility will be handed over to the browser - so the Content-Type=multipart/form-data header will eventually be sent, but including a dynamic boundary params added by the browser on the fly.

@shopware-pwa/[email protected]

04 Nov 11:33
Compare
Choose a tag to compare

Patch Changes