From ad7ace9f256409e10171d06c0503025297012ef8 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Fri, 4 Oct 2024 01:08:02 +0530 Subject: [PATCH 1/2] chore: update upload-artifact version --- .github/workflows/build-size.yml | 6 +++--- .github/workflows/e2e-js.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-size.yml b/.github/workflows/build-size.yml index bc62e7976..744ad0e25 100644 --- a/.github/workflows/build-size.yml +++ b/.github/workflows/build-size.yml @@ -32,7 +32,7 @@ jobs: - name: Build files run: npm run analyzer - name: Upload base stats.json - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: base path: ./build/**/stats.json @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out source files - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get Composer Cache Directory id: composer-cache run: | @@ -63,7 +63,7 @@ jobs: - name: Build files run: npm run analyzer - name: Upload base stats.json - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pr path: ./build/**/stats.json diff --git a/.github/workflows/e2e-js.yml b/.github/workflows/e2e-js.yml index d0ea39888..946d7ad33 100644 --- a/.github/workflows/e2e-js.yml +++ b/.github/workflows/e2e-js.yml @@ -74,7 +74,7 @@ jobs: - name: Upload tests artifacts if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: artifact path: ./artifacts From 946f4ad1fd6bcb66695c67914aa1c156e4a9cc7c Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Tue, 8 Oct 2024 06:29:27 +0530 Subject: [PATCH 2/2] fix: formbricks not working --- package-lock.json | 24 +++++++++++++++++++----- package.json | 2 +- src/dashboard/index.js | 2 +- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index eb6b65666..f9be7c2da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,10 +6,10 @@ "packages": { "": { "name": "otter-blocks", - "version": "3.0.2", + "version": "3.0.3", "license": "GPL-2.0+", "dependencies": { - "@formbricks/js": "^1.6.5", + "@formbricks/js": "^2.2.0", "@wordpress/icons": "^9.46.0", "array-move": "^3.0.1", "classnames": "^2.5.1", @@ -2699,9 +2699,13 @@ "dev": true }, "node_modules/@formbricks/js": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/@formbricks/js/-/js-1.6.5.tgz", - "integrity": "sha512-eGlnauNgzv4ye22/yN+FyQAl6gLgHbNOCxysex/UoLjTZbXYOali7ilQ1Ksyl/ujBBcqcrXKe/OnsGena2zP8A==" + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@formbricks/js/-/js-2.2.0.tgz", + "integrity": "sha512-sKduJRgMZInOY141tIQN6RSsA4Wah6liqzCDDdGgv9t2FgTaNjSYGNrLlBEdQN62lRbVm5dk0+ZzMWyYrNhZWw==", + "license": "MIT", + "peerDependencies": { + "zod": "3.x" + } }, "node_modules/@hapi/hoek": { "version": "9.3.0", @@ -33339,6 +33343,16 @@ "node": ">= 6" } }, + "node_modules/zod": { + "version": "3.23.8", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", + "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "license": "MIT", + "peer": true, + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, "node_modules/zwitch": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", diff --git a/package.json b/package.json index fb79339a0..5a352c420 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "lasttranslator": "Themeisle Translate Team " }, "dependencies": { - "@formbricks/js": "^1.6.5", + "@formbricks/js": "^2.2.0", "@wordpress/icons": "^9.46.0", "array-move": "^3.0.1", "classnames": "^2.5.1", diff --git a/src/dashboard/index.js b/src/dashboard/index.js index baef551eb..993c3156c 100644 --- a/src/dashboard/index.js +++ b/src/dashboard/index.js @@ -2,7 +2,7 @@ /** * External dependencies. */ -import formbricks from '@formbricks/js'; +import formbricks from '@formbricks/js/app'; /** * WordPress dependencies.