From 7377c7180c313aed3ff2ddaefac7a401fdb8ddae Mon Sep 17 00:00:00 2001 From: devgiljong Date: Wed, 14 Aug 2024 17:56:39 +0900 Subject: [PATCH 1/3] :construction: Readme update --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0da6cb9..0208d30 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,8 @@ Using createStep, you can create, delete, or update the query string for the nex it doesn't depend on React, you can create the necessary steps anywhere as long as you have funnelOptions. +Since it can be used on servers without any problems, you can create a route to the funnel anywhere. + ### FunnelClient.createStep ```tsx From 0db8a3c6d28ac804d0afdfcf06db9855001ca843 Mon Sep 17 00:00:00 2001 From: devgiljong Date: Wed, 14 Aug 2024 18:01:32 +0900 Subject: [PATCH 2/3] :bookmark: 0.0.4 -> 0.0.5 | minify add --- packages/funnel-app-router-adapter/package.json | 2 +- .../src/external/use-funnel-app-router-adapter.tsx | 4 +--- packages/funnel-app-router-adapter/tsup.config.ts | 1 + packages/funnel-client/package.json | 2 +- packages/funnel-client/tsup.config.ts | 1 + packages/funnel-core/package.json | 2 +- packages/funnel-core/tsup.config.ts | 1 + packages/funnel-pages-router-adapter/package.json | 2 +- packages/funnel-pages-router-adapter/tsup.config.ts | 1 + 9 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/funnel-app-router-adapter/package.json b/packages/funnel-app-router-adapter/package.json index b2bc08b..7b39235 100644 --- a/packages/funnel-app-router-adapter/package.json +++ b/packages/funnel-app-router-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@xionhub/funnel-app-router-adapter", - "version": "0.0.4", + "version": "0.0.5", "private": false, "license": "MIT", "main": "./dist/index.js", diff --git a/packages/funnel-app-router-adapter/src/external/use-funnel-app-router-adapter.tsx b/packages/funnel-app-router-adapter/src/external/use-funnel-app-router-adapter.tsx index 3eb5d29..fc7c93d 100644 --- a/packages/funnel-app-router-adapter/src/external/use-funnel-app-router-adapter.tsx +++ b/packages/funnel-app-router-adapter/src/external/use-funnel-app-router-adapter.tsx @@ -5,11 +5,9 @@ import { useSearchParams } from "next/navigation"; export const useFunnelAppRouterAdapter = >( options: Omit, "step">, ) => { - const funnelId = options.funnelId; const searchParams = useSearchParams(); - const queryStep = searchParams.get(funnelId); const funnelClient = new FunnelClient(options); - const step = (queryStep ?? undefined) as Steps[number] | undefined; + const step = (searchParams.get(options.funnelId) ?? undefined) as Steps[number] | undefined; const [Funnel, { onStepChange, ...controller }] = useCoreFunnel({ ...options, step }); return [Funnel, { ...controller, createStep: funnelClient.createStep }] as const; }; diff --git a/packages/funnel-app-router-adapter/tsup.config.ts b/packages/funnel-app-router-adapter/tsup.config.ts index f659f2c..f5ecaa1 100644 --- a/packages/funnel-app-router-adapter/tsup.config.ts +++ b/packages/funnel-app-router-adapter/tsup.config.ts @@ -7,4 +7,5 @@ export default defineConfig({ dts: true, clean: true, treeshake: true, + minify: true, }); diff --git a/packages/funnel-client/package.json b/packages/funnel-client/package.json index a22d09d..e30376d 100644 --- a/packages/funnel-client/package.json +++ b/packages/funnel-client/package.json @@ -1,6 +1,6 @@ { "name": "@xionhub/funnel-client", - "version": "0.0.4", + "version": "0.0.5", "private": false, "license": "MIT", "main": "./dist/index.js", diff --git a/packages/funnel-client/tsup.config.ts b/packages/funnel-client/tsup.config.ts index f659f2c..f5ecaa1 100644 --- a/packages/funnel-client/tsup.config.ts +++ b/packages/funnel-client/tsup.config.ts @@ -7,4 +7,5 @@ export default defineConfig({ dts: true, clean: true, treeshake: true, + minify: true, }); diff --git a/packages/funnel-core/package.json b/packages/funnel-core/package.json index ea8deed..ec9b862 100644 --- a/packages/funnel-core/package.json +++ b/packages/funnel-core/package.json @@ -1,6 +1,6 @@ { "name": "@xionhub/funnel-core", - "version": "0.0.4", + "version": "0.0.5", "private": false, "license": "MIT", "main": "./dist/index.js", diff --git a/packages/funnel-core/tsup.config.ts b/packages/funnel-core/tsup.config.ts index f659f2c..f5ecaa1 100644 --- a/packages/funnel-core/tsup.config.ts +++ b/packages/funnel-core/tsup.config.ts @@ -7,4 +7,5 @@ export default defineConfig({ dts: true, clean: true, treeshake: true, + minify: true, }); diff --git a/packages/funnel-pages-router-adapter/package.json b/packages/funnel-pages-router-adapter/package.json index a2dc7f9..d795cbf 100644 --- a/packages/funnel-pages-router-adapter/package.json +++ b/packages/funnel-pages-router-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@xionhub/funnel-pages-router-adapter", - "version": "0.0.4", + "version": "0.0.5", "private": false, "license": "MIT", "main": "./dist/index.js", diff --git a/packages/funnel-pages-router-adapter/tsup.config.ts b/packages/funnel-pages-router-adapter/tsup.config.ts index f659f2c..f5ecaa1 100644 --- a/packages/funnel-pages-router-adapter/tsup.config.ts +++ b/packages/funnel-pages-router-adapter/tsup.config.ts @@ -7,4 +7,5 @@ export default defineConfig({ dts: true, clean: true, treeshake: true, + minify: true, }); From 155607925df0bae4e1f051e2764a98a757b858be Mon Sep 17 00:00:00 2001 From: devgiljong Date: Wed, 14 Aug 2024 18:02:12 +0900 Subject: [PATCH 3/3] :arrow_up: Turbo 2.0.11 -> 2.0.12 --- package.json | 2 +- pnpm-lock.yaml | 58 +++++++++++++++++++++++++------------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 36f3134..d46a3fa 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "eslint": "^8.57.0", "lefthook": "^1.7.11", "prettier": "^3.2.5", - "turbo": "^2.0.11", + "turbo": "^2.0.12", "vitest": "^2.0.5" }, "packageManager": "pnpm@8.15.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44a16f5..707bbd2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^3.2.5 version: 3.2.5 turbo: - specifier: ^2.0.11 - version: 2.0.11 + specifier: ^2.0.12 + version: 2.0.12 vitest: specifier: ^2.0.5 version: 2.0.5(@types/node@20.11.24) @@ -2847,38 +2847,38 @@ packages: engines: {node: '>=8.0.0'} hasBin: true - turbo-darwin-64@2.0.11: - resolution: {integrity: sha512-YlHEEhcm+jI1BSZoLugGHUWDfRXaNaQIv7tGQBfadYjo9kixBnqoTOU6s1ubOrQMID+lizZZQs79GXwqM6vohg==} + turbo-darwin-64@2.0.12: + resolution: {integrity: sha512-NAgfgbXxX/JScWQmmQnGbPuFZq7LIswHfcMk5JwyBXQM/xmklNOxxac7MnGGIOf19Z2f6S3qHy17VIj0SeGfnA==} cpu: [x64] os: [darwin] - turbo-darwin-arm64@2.0.11: - resolution: {integrity: sha512-K/YW+hWzRQ/wGmtffxllH4M1tgy8OlwgXODrIiAGzkSpZl9+pIsem/F86UULlhsIeavBYK/LS5+dzV3DPMjJ9w==} + turbo-darwin-arm64@2.0.12: + resolution: {integrity: sha512-cP02uer5KSJ+fXL+OfRRk5hnVjV0c60hxDgNcJxrZpfhun7HHoKDDR7w2xhQntiA45aC6ZZEXRqMKpj6GAmKbg==} cpu: [arm64] os: [darwin] - turbo-linux-64@2.0.11: - resolution: {integrity: sha512-mv8CwGP06UPweMh1Vlp6PI6OWnkuibxfIJ4Vlof7xqjohAaZU5FLqeOeHkjQflH/6YrCVuS9wrK0TFOu+meTtA==} + turbo-linux-64@2.0.12: + resolution: {integrity: sha512-+mQgGfg1eq5qF+wenK/FKJaNMNAo5DQLC4htQy+8osW+fx6U+8+6UlPQPaycAWDEqwOI7NwuqkeHfkEQLQUTyQ==} cpu: [x64] os: [linux] - turbo-linux-arm64@2.0.11: - resolution: {integrity: sha512-wLE5tl4oriTmHbuayc0ki0csaCplmVLj+uCWtecM/mfBuZgNS9ICNM9c4sB+Cfl5tlBBFeepqRNgvRvn8WeVZg==} + turbo-linux-arm64@2.0.12: + resolution: {integrity: sha512-KFyEZDXfPU1DK4zimxdCcqAcK7IIttX4mfsgB7NsSEOmH0dhHOih/YFYiyEDC1lTRx0C2RlzQ0Kjjdz48AN5Eg==} cpu: [arm64] os: [linux] - turbo-windows-64@2.0.11: - resolution: {integrity: sha512-tja3zvVCSWu3HizOoeQv0qDJ+GeWGWRFOOM6a8i3BYnXLgGKAaDZFcjwzgC50tWiAw4aowIVR4OouwIyRhLBaQ==} + turbo-windows-64@2.0.12: + resolution: {integrity: sha512-kJj4KCkZTkDTDCqsSw1m1dbO4WeoQq1mYUm/thXOH0OkeqYbSMt0EyoTcJOgKUDsrMnzZD2gPfYrlYHtV69lVA==} cpu: [x64] os: [win32] - turbo-windows-arm64@2.0.11: - resolution: {integrity: sha512-sYjXP6k94Bqh99R+y3M1Ks6LRIEZybMz+7enA8GKl6JJ2ZFaXxTnS6q+/2+ii1+rRwxohj5OBb4gxODcF8Jd4w==} + turbo-windows-arm64@2.0.12: + resolution: {integrity: sha512-TY3ROxguDilN2olCwcZMaePdW01Xhma0pZU7bNhsQEqca9RGAmsZBuzfGnTMcWPmv4tpnb/PlX1hrt1Hod/44Q==} cpu: [arm64] os: [win32] - turbo@2.0.11: - resolution: {integrity: sha512-imDlFFAvitbCm1JtDFJ6eG882qwxHUmVT2noPb3p2jq5o5DuXOchMbkVS9kUeC3/4WpY5N0GBZ3RvqNyjHZw1Q==} + turbo@2.0.12: + resolution: {integrity: sha512-8s2KwqjwQj7z8Z53SUZSKVkQOZ2/Sl4D2F440oaBY/k2lGju60dW6srEpnn8/RIDeICZmQn3pQHF79Jfnc5Skw==} hasBin: true type-check@0.4.0: @@ -5658,32 +5658,32 @@ snapshots: wcwidth: 1.0.1 yargs: 17.7.2 - turbo-darwin-64@2.0.11: + turbo-darwin-64@2.0.12: optional: true - turbo-darwin-arm64@2.0.11: + turbo-darwin-arm64@2.0.12: optional: true - turbo-linux-64@2.0.11: + turbo-linux-64@2.0.12: optional: true - turbo-linux-arm64@2.0.11: + turbo-linux-arm64@2.0.12: optional: true - turbo-windows-64@2.0.11: + turbo-windows-64@2.0.12: optional: true - turbo-windows-arm64@2.0.11: + turbo-windows-arm64@2.0.12: optional: true - turbo@2.0.11: + turbo@2.0.12: optionalDependencies: - turbo-darwin-64: 2.0.11 - turbo-darwin-arm64: 2.0.11 - turbo-linux-64: 2.0.11 - turbo-linux-arm64: 2.0.11 - turbo-windows-64: 2.0.11 - turbo-windows-arm64: 2.0.11 + turbo-darwin-64: 2.0.12 + turbo-darwin-arm64: 2.0.12 + turbo-linux-64: 2.0.12 + turbo-linux-arm64: 2.0.12 + turbo-windows-64: 2.0.12 + turbo-windows-arm64: 2.0.12 type-check@0.4.0: dependencies: