Skip to content

Commit

Permalink
chore: bump dependencies (#313)
Browse files Browse the repository at this point in the history
* chore: bump dependencies

* chore: format

* chore: changesets
  • Loading branch information
patzick authored Jul 11, 2023
1 parent 62a985f commit 0e82ab3
Show file tree
Hide file tree
Showing 286 changed files with 2,325 additions and 2,135 deletions.
7 changes: 7 additions & 0 deletions .changeset/famous-needles-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@shopware-pwa/nuxt3-module": patch
---

Dependency changes:

- Changed dependency _@nuxt/kit_ from **^3.6.1** to **^3.6.2**
7 changes: 7 additions & 0 deletions .changeset/lazy-tools-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"example-express-checkout": patch
---

Dependency changes:

- Changed dependency _vue-router_ from **^4.2.2** to **^4.2.4**
7 changes: 7 additions & 0 deletions .changeset/pink-dolphins-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"vite-vue-plugin-disable-inputs": patch
---

Dependency changes:

- Changed dependency _vite_ from **^4.3.9** to **^4.4.2**
7 changes: 7 additions & 0 deletions .changeset/pretty-hats-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"shopware-astro": patch
---

Dependency changes:

- Changed dependency _astro_ from **^2.7.2** to **^2.8.0**
9 changes: 9 additions & 0 deletions .changeset/purple-plants-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"vue-demo-store": patch
---

Dependency changes:

- Changed dependency _@unocss/nuxt_ from **^0.53.4** to **^0.53.5**
- Changed dependency _@vuelidate/core_ from **^2.0.2** to **^2.0.3**
- Changed dependency _@vuelidate/validators_ from **^2.0.2** to **^2.0.3**
9 changes: 9 additions & 0 deletions .changeset/quick-laws-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@shopware-pwa/cms-base": patch
---

Dependency changes:

- Changed dependency _@nuxt/kit_ from **^3.6.1** to **^3.6.2**
- Changed dependency _@vuelidate/core_ from **^2.0.2** to **^2.0.3**
- Changed dependency _@vuelidate/validators_ from **^2.0.2** to **^2.0.3**
7 changes: 7 additions & 0 deletions .changeset/slow-lies-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"docs": patch
---

Dependency changes:

- Changed dependency _vitepress_ from **1.0.0-beta.3** to **1.0.0-beta.5**
8 changes: 8 additions & 0 deletions .changeset/spotty-walls-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@shopware-pwa/typer": patch
---

Dependency changes:

- Changed dependency _fs-extra_ from **^11.1.0** to **^11.1.1**
- Changed dependency _vite_ from **^4.3.9** to **^4.4.2**
7 changes: 7 additions & 0 deletions .changeset/tricky-starfishes-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"example-builder": patch
---

Dependency changes:

- Changed dependency _vue-router_ from **^4.2.2** to **^4.2.4**
9 changes: 9 additions & 0 deletions .changeset/two-walls-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"eslint-config-shopware": patch
---

Dependency changes:

- Changed dependency _@typescript-eslint/eslint-plugin_ from **^5.60.1** to **^6.0.0**
- Changed dependency _@typescript-eslint/parser_ from **^5.60.1** to **^6.0.0**
- Changed dependency _eslint_ from **^8.43.0** to **^8.44.0**
9 changes: 9 additions & 0 deletions .changeset/wise-cougars-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@shopware/api-gen": patch
---

Dependency changes:

- Changed dependency _openapi-typescript_ from **^6.2.8** to **^6.3.4**
- Changed dependency _prettier_ from **^2.8.8** to **^3.0.0**
- Changed dependency _semver_ from **^7.5.3** to **^7.5.4**
8 changes: 4 additions & 4 deletions apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,25 +327,25 @@ export default defineConfigWithTheme<ThemeConfigExtended>({
autogenExampleAlias: "api-client",
functions: resolve(
__dirname,
"../../../packages/api-client/src/services"
"../../../packages/api-client/src/services",
),
types: resolve(
__dirname,
"../../../packages/types/shopware-6-client/"
"../../../packages/types/shopware-6-client/",
),
},
{
functions: resolve(__dirname, "../../../packages/composables/src/"),
types: resolve(
__dirname,
"../../../packages/types/shopware-6-client/"
"../../../packages/types/shopware-6-client/",
),
},
{
functions: resolve(__dirname, "../../../packages/helpers/src/"),
types: resolve(
__dirname,
"../../../packages/types/shopware-6-client/"
"../../../packages/types/shopware-6-client/",
),
},
],
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/.vitepress/theme/components/AIAnswer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const feedbackChosen = ref(false);
const sendFeedbackHandler = async (
isCorrectAnswer,
isCorrectDocument,
document
document,
) => {
try {
await sendFeedback(
props.query,
isCorrectAnswer,
isCorrectDocument,
document
document,
);
feedbackChosen.value = true;
} catch (error) {
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/.vitepress/theme/composables/useAi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type UseAiReturn = {
query: string,
isCorrectAnswer: boolean,
isCorrectDocument: boolean,
document: Answer
document: Answer,
) => Promise<string>;
buildHighlight: (answers: Answer) => string;
prepareData: (answers: Answer[]) => Answer[];
Expand All @@ -32,7 +32,7 @@ export function useAi(): UseAiReturn {
body: JSON.stringify({
query,
}),
}
},
).then((response) => response.json());
return response;
};
Expand All @@ -50,7 +50,7 @@ export function useAi(): UseAiReturn {
query: string,
isCorrectAnswer: boolean,
isCorrectDocument: boolean,
document: Answer
document: Answer,
): Promise<string> => {
const response = await fetch(
`${site.value.themeConfig.ai.endpoint}/feedback`,
Expand All @@ -67,7 +67,7 @@ export function useAi(): UseAiReturn {
is_correct_document: isCorrectDocument,
origin: "user-feedback",
}),
}
},
).then((response) => response.json());

return response;
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@shopware-pwa/helpers-next": "workspace:*",
"flexsearch": "^0.7.31",
"markdown-it": "^13.0.1",
"vitepress": "1.0.0-beta.3",
"vitepress": "1.0.0-beta.5",
"vitepress-plugin-search": "1.0.4-alpha.20",
"vitepress-shopware-docs": "0.3.0-beta.44",
"vue": "^3.3.4"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/best-practices/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ test("failed login", async ({ page }) => {
await Promise.all([await page.click("[data-testid='login-submit-button']")]);

await expect(
page.locator("data-testid='login-errors-container']")
page.locator("data-testid='login-errors-container']"),
).toBeVisible();
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function useAddToCart(product: Ref<Product>) {

const getQuantityInCart = computed(() => {
return cartItems.value.find(
(item: LineItem) => item.referencedId === product.value?.id
(item: LineItem) => item.referencedId === product.value?.id,
)?.quantity;
});

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/getting-started/page-elements/breadcrumbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ we can convert current `string` array to the `Breadcrumb` object using [getCateg
import { getCategoryBreadcrumbs } from "@shopware-pwa/helpers-next";

let breadcrumbs = getCategoryBreadcrumbs(
productResponse.value?.product?.seoCategory
productResponse.value?.product?.seoCategory,
);
useBreadcrumbs(breadcrumbs);
```
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ nav:
text: Why Shopware Frontends
position: 5
---

# Overview

Shopware Composable Frontends is Shopware's toolkit for creating platform-agnostic custom storefronts. The demo store implementation is based on Vue.js and Nuxt3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ category: CMS
```ts
const { loadAssociations, productAssociations } = useProductAssociations(
product,
{ associationContext: "cross-selling" }
{ associationContext: "cross-selling" },
);
if (!productAssociations.value) {
await loadAssociations();
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/src/resources/examples/product-detail-page/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ onMounted(async () => {
const reviewsResponse = await getProductReviews(
props.product.id,
undefined,
apiInstance
apiInstance,
);
reviews.value = reviewsResponse?.elements || [];
});
const productName = computed(() =>
getTranslatedProperty(props.product, "name")
getTranslatedProperty(props.product, "name"),
);
const manufacturerName = computed(() =>
getTranslatedProperty(props.product.manufacturer, "name")
getTranslatedProperty(props.product.manufacturer, "name"),
);
const description = computed(() =>
getTranslatedProperty(props.product, "description")
getTranslatedProperty(props.product, "description"),
);
const properties = computed(() => props.product?.properties || []);
Expand Down
4 changes: 2 additions & 2 deletions apps/e2e-tests/page-objects/CheckoutPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class CheckoutPage {
this.placeOrderButton = page.getByTestId("checkout-place-order-button");
this.loginOnCheckoutButton = page.getByTestId("checkout-sign-in-link");
this.notCreateAccountCheck = page.getByTestId(
"checkout-create-account-checkbox"
"checkout-create-account-checkbox",
);
this.salutation = page.getByTestId("checkout-pi-salutation-select");
this.firstName = page.getByTestId("checkout-pi-first-name-input");
Expand Down Expand Up @@ -75,7 +75,7 @@ export class CheckoutPage {
email: string,
street: string,
zipcode: string,
city: string
city: string,
) {
await this.page.waitForLoadState();
await this.salutation.selectOption({ label: "Mr." });
Expand Down
2 changes: 1 addition & 1 deletion apps/e2e-tests/page-objects/HomePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class HomePage extends AbstractPage {
this.signInButton = page.getByTestId("header-sign-in-link");
this.linkToCartPage = page.locator("text='YORK 3'");
this.linkToVariantPage = page.locator(
"text='Pepper white, ground, Muntok pearl'"
"text='Pepper white, ground, Muntok pearl'",
);
this.searchBar = page.getByTestId("layout-search-input");
this.linkToRegistrationPage = page.getByTestId("login-sign-up-link");
Expand Down
16 changes: 8 additions & 8 deletions apps/e2e-tests/page-objects/MyAccountPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ export class MyAccountPage {
constructor(page: Page) {
this.page = page;
this.accountChangeProfileButton = page.getByTestId(
"my-account-change-profile-button"
"my-account-change-profile-button",
);
this.personalFirstName = page.getByTestId(
"account-personal-data-firstname-input"
"account-personal-data-firstname-input",
);
this.personalLastName = page.getByTestId(
"account-personal-data-lastname-input"
"account-personal-data-lastname-input",
);
this.personalEmail = page.getByTestId("account-personal-data-email-input");
this.accountPersonalDataSubmitButton = page.getByTestId(
"account-personal-data-submit-button"
"account-personal-data-submit-button",
);
this.changePaymentMethodButton = page.getByTestId(
"my-account-change-payment-method-button"
"my-account-change-payment-method-button",
);
this.accountPaymentSubmitButton = page.getByTestId(
"account-payment-submit-button"
"account-payment-submit-button",
);
this.accountChangeBillingAddressButton = page.getByTestId(
"my-account-change-default-billing-address-button"
"my-account-change-default-billing-address-button",
);
this.accountChangeShippingAddressButton = page.getByTestId(
"my-account-change-default-shipping-address-button"
"my-account-change-default-shipping-address-button",
);
this.newsletterCheckbox = page.getByTestId("#newsletter-checkbox");
}
Expand Down
6 changes: 3 additions & 3 deletions apps/e2e-tests/page-objects/ProductPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export class ProductPage {
timeout: 1000,
});
await this.page.waitForSelector(
"[data-testid=notification-element-message]"
"[data-testid=notification-element-message]",
);
await this.page
.getByTestId("notification-element-message")
.last()
.isVisible();
await expect(
this.page.getByTestId("notification-element-message").last()
this.page.getByTestId("notification-element-message").last(),
).toHaveText(/has been added to cart.$/);
}

Expand All @@ -47,7 +47,7 @@ export class ProductPage {
await this.addToCartButton.click();
await this.miniCartLink.click();
expect(this.variantText.textContent).toEqual(
this.productOption.textContent
this.productOption.textContent,
);
await this.page.waitForLoadState("networkidle");
await this.productRemove.click();
Expand Down
2 changes: 1 addition & 1 deletion apps/e2e-tests/page-objects/RegisterPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class RegisterForm {
firstName: string,
lastName: string,
email: string,
password: string
password: string,
) {
await this.salutation.selectOption({ label: "Mr." });
await this.firstName.type(firstName);
Expand Down
2 changes: 1 addition & 1 deletion apps/e2e-tests/tests/checkCodeExamples.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const directoryPath = path.join(__dirname, "../../../examples/");
fs.readdirSync(directoryPath).forEach((file) => {
test(`Verify ${file}`, async ({ page }) => {
const response = await page.goto(
`https://stackblitz.com/github/shopware/frontends/tree/main/examples/${file}?embed=1&theme=light&ctl=1&initialPath=%2F&view=preview`
`https://stackblitz.com/github/shopware/frontends/tree/main/examples/${file}?embed=1&theme=light&ctl=1&initialPath=%2F&view=preview`,
);
await page.waitForLoadState("domcontentloaded");
await page.locator("button[class='ClickToLoad-actionBtn-bTGgA']").click();
Expand Down
6 changes: 3 additions & 3 deletions apps/e2e-tests/tests/createOrder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ test.describe.only("Create Order", () => {
"e2e " + faker.person.firstName(),
"e2e " + faker.person.lastName(),
faker.internet.exampleEmail(),
faker.internet.password()
faker.internet.password(),
);
await registrationPage.fillAddressData(
faker.location.street(),
faker.location.zipCode(),
faker.location.city()
faker.location.city(),
);
await registrationPage.submitRegistraionForm();
await homePage.openCartPage();
Expand Down Expand Up @@ -86,7 +86,7 @@ test.describe.only("Create Order", () => {
faker.internet.exampleEmail(),
faker.location.street(),
faker.location.zipCode(),
faker.location.city()
faker.location.city(),
);
await checkoutPage.markTerms();
await checkoutPage.placeOrder();
Expand Down
Loading

2 comments on commit 0e82ab3

@vercel
Copy link

@vercel vercel bot commented on 0e82ab3 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0e82ab3 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

frontends-demo – ./templates/vue-demo-store

frontends-demo-git-main-shopware-frontends.vercel.app
frontends-demo-shopware-frontends.vercel.app
frontends-demo.vercel.app

Please sign in to comment.