From 0e24f0366e0dd8eaa831364a92a86430e5bbc22b Mon Sep 17 00:00:00 2001 From: Uniswap Labs Service Account Date: Thu, 3 Oct 2024 20:39:49 +0000 Subject: [PATCH] ci(release): publish latest release --- RELEASE | 14 +++++++------- VERSION | 2 +- .../featureFlags/useFeatureFlagUrlOverrides.tsx | 6 ++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/RELEASE b/RELEASE index 69c0987495d..85692c05e3c 100644 --- a/RELEASE +++ b/RELEASE @@ -1,6 +1,6 @@ IPFS hash of the deployment: -- CIDv0: `QmZqX6QCCokYMm8oRdYVi85GDzqDKJZZL1M3djEQXJeXeF` -- CIDv1: `bafybeifk2xe6jgopl2yr55xs3py2ot6rernc2mokn2xxjgybkbomb53tqa` +- CIDv0: `QmZNKQNeHGqEJfGMyWbH1zYCgs8pazXe2FajiS4KVzxfPL` +- CIDv1: `bafybeifd3xryjkpe4lqgqfonwz7pdfzjtdlspryilb44sn7utv26mpxab4` The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org). @@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway. Your Uniswap settings are never remembered across different URLs. IPFS gateways: -- https://bafybeifk2xe6jgopl2yr55xs3py2ot6rernc2mokn2xxjgybkbomb53tqa.ipfs.dweb.link/ -- https://bafybeifk2xe6jgopl2yr55xs3py2ot6rernc2mokn2xxjgybkbomb53tqa.ipfs.cf-ipfs.com/ -- [ipfs://QmZqX6QCCokYMm8oRdYVi85GDzqDKJZZL1M3djEQXJeXeF/](ipfs://QmZqX6QCCokYMm8oRdYVi85GDzqDKJZZL1M3djEQXJeXeF/) +- https://bafybeifd3xryjkpe4lqgqfonwz7pdfzjtdlspryilb44sn7utv26mpxab4.ipfs.dweb.link/ +- https://bafybeifd3xryjkpe4lqgqfonwz7pdfzjtdlspryilb44sn7utv26mpxab4.ipfs.cf-ipfs.com/ +- [ipfs://QmZNKQNeHGqEJfGMyWbH1zYCgs8pazXe2FajiS4KVzxfPL/](ipfs://QmZNKQNeHGqEJfGMyWbH1zYCgs8pazXe2FajiS4KVzxfPL/) -### 5.49.1 (2024-10-01) +### 5.49.2 (2024-10-03) ### Bug Fixes -* **web:** priority orders only enabled on base (#12438) c44ffba +* **web:** dont respect url flag overrides on prod - prod (#12548) a2b2517 diff --git a/VERSION b/VERSION index 99c2651de89..82e4d497170 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -web/5.49.1 \ No newline at end of file +web/5.49.2 \ No newline at end of file diff --git a/apps/web/src/featureFlags/useFeatureFlagUrlOverrides.tsx b/apps/web/src/featureFlags/useFeatureFlagUrlOverrides.tsx index 425c620505c..1e54108df99 100644 --- a/apps/web/src/featureFlags/useFeatureFlagUrlOverrides.tsx +++ b/apps/web/src/featureFlags/useFeatureFlagUrlOverrides.tsx @@ -1,10 +1,12 @@ import useParsedQueryString from 'hooks/useParsedQueryString' import { useContext, useEffect } from 'react' import { Statsig, StatsigContext } from 'uniswap/src/features/gating/sdk/statsig' +import { isProdEnv } from 'utilities/src/environment/env' export function useFeatureFlagUrlOverrides() { const parsedQs = useParsedQueryString() const statsigContext = useContext(StatsigContext) + const isProduction = isProdEnv() useEffect(() => { // Override on @@ -14,9 +16,9 @@ export function useFeatureFlagUrlOverrides() { const featureFlagOverridesOff = typeof parsedQs.featureFlagOverrideOff === 'string' ? parsedQs.featureFlagOverrideOff.split(',') : [] - if (statsigContext.initialized) { + if (statsigContext.initialized && !isProduction) { featureFlagOverrides.forEach((gate) => Statsig.overrideGate(gate, true)) featureFlagOverridesOff.forEach((gate) => Statsig.overrideGate(gate, false)) } - }, [statsigContext.initialized, parsedQs.featureFlagOverride, parsedQs.featureFlagOverrideOff]) + }, [statsigContext.initialized, parsedQs.featureFlagOverride, parsedQs.featureFlagOverrideOff, isProduction]) }