@luxexchange/gating 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@luxexchange/gating",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "dependencies": {
5
5
  "@statsig/client-core": "3.12.2",
6
6
  "@statsig/js-client": "3.12.2",
7
7
  "@statsig/js-local-overrides": "3.12.2",
8
8
  "@statsig/react-bindings": "3.12.2",
9
9
  "@statsig/react-native-bindings": "3.12.2",
10
- "@luxexchange/api": "^1.0.0",
11
- "@luxfi/utilities": "^1.0.0"
10
+ "@luxexchange/api": "workspace:*",
11
+ "@luxfi/utilities": "workspace:*"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "22.13.1",
15
15
  "@typescript/native-preview": "7.0.0-dev.20260108.1",
16
- "@luxfi/eslint-config": "^1.0.0",
16
+ "@luxfi/eslint-config": "workspace:^",
17
17
  "depcheck": "1.4.7",
18
18
  "eslint": "8.57.1",
19
19
  "typescript": "5.8.3"
package/project.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@luxfi/gating",
3
3
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "pkgs/gating/src",
4
+ "sourceRoot": "packages/gating/src",
5
5
  "projectType": "library",
6
6
  "tags": ["scope:gating", "type:lib"],
7
7
  "targets": {
package/src/flags.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { logger } from '@luxfi/utilities/src/logger/logger'
2
- import { isWebApp } from '@luxfi/utilities/src/platform'
1
+ import { logger } from 'utilities/src/logger/logger'
2
+ import { isWebApp } from 'utilities/src/platform'
3
3
 
4
4
  // only disable for this enum
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { FeatureFlags } from '@luxexchange/gating/src/flags'
2
- import { getFeatureFlag, useFeatureFlag } from '@luxexchange/gating/src/hooks'
1
+ import { FeatureFlags } from '@universe/gating/src/flags'
2
+ import { getFeatureFlag, useFeatureFlag } from '@universe/gating/src/hooks'
3
3
 
4
4
  function getIsHashcashSolverEnabled(): boolean {
5
5
  return getFeatureFlag(FeatureFlags.HashcashSolverEnabled)
@@ -1,5 +1,5 @@
1
- import { FeatureFlags } from '@luxexchange/gating/src/flags'
2
- import { getFeatureFlag, useFeatureFlag } from '@luxexchange/gating/src/hooks'
1
+ import { FeatureFlags } from '@universe/gating/src/flags'
2
+ import { getFeatureFlag, useFeatureFlag } from '@universe/gating/src/hooks'
3
3
 
4
4
  /**
5
5
  * Returns whether sessions performance tracking is enabled.
@@ -1,5 +1,5 @@
1
- import { FeatureFlags } from '@luxexchange/gating/src/flags'
2
- import { getFeatureFlag, useFeatureFlag } from '@luxexchange/gating/src/hooks'
1
+ import { FeatureFlags } from '@universe/gating/src/flags'
2
+ import { getFeatureFlag, useFeatureFlag } from '@universe/gating/src/hooks'
3
3
 
4
4
  function getIsTurnstileSolverEnabled(): boolean {
5
5
  return getFeatureFlag(FeatureFlags.TurnstileSolverEnabled)
@@ -1,5 +1,5 @@
1
- import { isBetaEnv, isProdEnv } from '@luxfi/utilities/src/environment/env'
2
- import { isWebApp } from '@luxfi/utilities/src/platform'
1
+ import { isBetaEnv, isProdEnv } from 'utilities/src/environment/env'
2
+ import { isWebApp } from 'utilities/src/platform'
3
3
 
4
4
  export enum StatsigEnvName {
5
5
  Beta = 'beta', // mobile and extension environment-specific
package/src/hooks.ts CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  useStatsigClient,
14
14
  } from '@luxfi/gating/src/sdk/statsig'
15
15
  import { useEffect, useMemo, useState } from 'react'
16
- import { logger } from '@luxfi/utilities/src/logger/logger'
16
+ import { logger } from 'utilities/src/logger/logger'
17
17
 
18
18
  export function useFeatureFlag(flag: FeatureFlags): boolean {
19
19
  const name = getFeatureFlagName(flag)
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@ export type {
9
9
  GasStrategyWithConditions,
10
10
  UwULinkAllowlist,
11
11
  UwULinkAllowlistItem,
12
- } from '@luxexchange/gating/src/configs'
12
+ } from '@universe/gating/src/configs'
13
13
  export {
14
14
  AllowedV4WethHookAddressesConfigKey,
15
15
  BlockedAsyncSubmissionChainIdsConfigKey,
@@ -30,9 +30,9 @@ export {
30
30
  SyncTransactionSubmissionChainIdsConfigKey,
31
31
  UwuLinkConfigKey,
32
32
  VerifiedAuctionsConfigKey,
33
- } from '@luxexchange/gating/src/configs'
34
- export { StatsigCustomAppValue } from '@luxexchange/gating/src/constants'
35
- export type { ExperimentProperties } from '@luxexchange/gating/src/experiments'
33
+ } from '@universe/gating/src/configs'
34
+ export { StatsigCustomAppValue } from '@universe/gating/src/constants'
35
+ export type { ExperimentProperties } from '@universe/gating/src/experiments'
36
36
  export {
37
37
  EthAsErc20DEXProperties,
38
38
  Experiments,
@@ -43,26 +43,26 @@ export {
43
43
  PriceUxUpdateProperties,
44
44
  PrivateRpcProperties,
45
45
  UnichainFlashblocksProperties,
46
- } from '@luxexchange/gating/src/experiments'
46
+ } from '@universe/gating/src/experiments'
47
47
  export {
48
48
  FeatureFlagClient,
49
49
  FeatureFlags,
50
50
  getFeatureFlagName,
51
51
  WALLET_FEATURE_FLAG_NAMES,
52
52
  WEB_FEATURE_FLAG_NAMES,
53
- } from '@luxexchange/gating/src/flags'
54
- export { getIsHashcashSolverEnabled, useIsHashcashSolverEnabled } from '@luxexchange/gating/src/getIsHashcashSolverEnabled'
53
+ } from '@universe/gating/src/flags'
54
+ export { getIsHashcashSolverEnabled, useIsHashcashSolverEnabled } from '@universe/gating/src/getIsHashcashSolverEnabled'
55
55
  export {
56
56
  getIsSessionsPerformanceTrackingEnabled,
57
57
  useIsSessionsPerformanceTrackingEnabled,
58
- } from '@luxexchange/gating/src/getIsPerformanceTrackingEnabled'
59
- export { getIsSessionServiceEnabled, useIsSessionServiceEnabled } from '@luxexchange/gating/src/getIsSessionServiceEnabled'
60
- export { getIsSessionUpgradeAutoEnabled } from '@luxexchange/gating/src/getIsSessionUpgradeAutoEnabled'
58
+ } from '@universe/gating/src/getIsPerformanceTrackingEnabled'
59
+ export { getIsSessionServiceEnabled, useIsSessionServiceEnabled } from '@universe/gating/src/getIsSessionServiceEnabled'
60
+ export { getIsSessionUpgradeAutoEnabled } from '@universe/gating/src/getIsSessionUpgradeAutoEnabled'
61
61
  export {
62
62
  getIsTurnstileSolverEnabled,
63
63
  useIsTurnstileSolverEnabled,
64
- } from '@luxexchange/gating/src/getIsTurnstileSolverEnabled'
65
- export { getStatsigEnvName } from '@luxexchange/gating/src/getStatsigEnvName'
64
+ } from '@universe/gating/src/getIsTurnstileSolverEnabled'
65
+ export { getStatsigEnvName } from '@universe/gating/src/getStatsigEnvName'
66
66
  export {
67
67
  getDynamicConfigValue,
68
68
  getExperimentValue,
@@ -76,13 +76,13 @@ export {
76
76
  useFeatureFlagWithExposureLoggingDisabled,
77
77
  useFeatureFlagWithLoading,
78
78
  useStatsigClientStatus,
79
- } from '@luxexchange/gating/src/hooks'
80
- export { LocalOverrideAdapterWrapper } from '@luxexchange/gating/src/LocalOverrideAdapterWrapper'
79
+ } from '@universe/gating/src/hooks'
80
+ export { LocalOverrideAdapterWrapper } from '@universe/gating/src/LocalOverrideAdapterWrapper'
81
81
  export type {
82
82
  StatsigOptions,
83
83
  StatsigUser,
84
84
  StorageProvider,
85
- } from '@luxexchange/gating/src/sdk/statsig'
85
+ } from '@universe/gating/src/sdk/statsig'
86
86
  export {
87
87
  getOverrideAdapter,
88
88
  getStatsigClient,
@@ -93,5 +93,5 @@ export {
93
93
  useClientAsyncInit,
94
94
  useExperiment,
95
95
  useLayer,
96
- } from '@luxexchange/gating/src/sdk/statsig'
97
- export { getOverrides } from '@luxexchange/gating/src/utils'
96
+ } from '@universe/gating/src/sdk/statsig'
97
+ export { getOverrides } from '@universe/gating/src/utils'
@@ -1,7 +1,7 @@
1
1
  import { StatsigClient } from '@statsig/react-bindings'
2
2
  import { getConfig } from '@luxfi/config'
3
3
  import { LocalOverrideAdapterWrapper } from '@luxfi/gating/src/LocalOverrideAdapterWrapper'
4
- import { isTestEnv } from '@luxfi/utilities/src/environment/env'
4
+ import { isTestEnv } from 'utilities/src/environment/env'
5
5
 
6
6
  export {
7
7
  StatsigClient,
package/.depcheckrc DELETED
@@ -1,13 +0,0 @@
1
- ignores: [
2
- # Standard ignores
3
- "typescript",
4
- "@typescript/native-preview",
5
- "depcheck",
6
-
7
- # Internal packages / workspaces
8
- "@universe/gating",
9
- "@universe/config",
10
-
11
- # Peer dependencies
12
- "react",
13
- ]
package/.eslintrc.js DELETED
@@ -1,21 +0,0 @@
1
- module.exports = {
2
- extends: ['@luxfi/eslint-config/lib'],
3
- parserOptions: {
4
- tsconfigRootDir: __dirname,
5
- },
6
- overrides: [
7
- {
8
- files: ['*.ts', '*.tsx'],
9
- rules: {
10
- 'no-relative-import-paths/no-relative-import-paths': [
11
- 'error',
12
- {
13
- allowSameFolder: false,
14
- prefix: '@luxfi/gating',
15
- },
16
- ],
17
- '@typescript-eslint/prefer-enum-initializers': 'off',
18
- },
19
- },
20
- ],
21
- }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # @universe/gating
2
-
3
- // TODO
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "preserveSymlinks": true
5
- },
6
- "include": ["**/*.ts", "**/*.tsx", "**/*.json"],
7
- "exclude": ["node_modules"]
8
- }