diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 2d38d69382..2513e6d2c8 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -4,7 +4,6 @@
/sdk @immutable/sdk
/packages/x-client @immutable/sdk
/packages/config @immutable/sdk
-/packages/internal/version-check @immutable/sdk
/packages/internal/metrics @immutable/sdk
/packages/internal/generated-clients @immutable/sdk
/packages/internal/generated-clients/src/blockchain-data @immutable/assets
diff --git a/package.json b/package.json
index 4743a88c20..8e7d22bafb 100644
--- a/package.json
+++ b/package.json
@@ -74,7 +74,6 @@
"packages/passport/sdk",
"packages/passport/sdk-sample-app",
"packages/orderbook",
- "packages/internal/version-check",
"packages/internal/metrics",
"packages/internal/contracts",
"packages/internal/toolkit",
diff --git a/packages/checkout/widgets-lib/package.json b/packages/checkout/widgets-lib/package.json
index ef2227d36e..b081acdede 100644
--- a/packages/checkout/widgets-lib/package.json
+++ b/packages/checkout/widgets-lib/package.json
@@ -24,7 +24,6 @@
"@imtbl/dex-sdk": "0.0.0",
"@imtbl/passport": "0.0.0",
"@imtbl/react-analytics": "0.2.1-alpha",
- "@imtbl/version-check": "0.0.0",
"@rive-app/react-canvas-lite": "^4.9.0",
"@walletconnect/ethereum-provider": "^2.11.1",
"@walletconnect/modal": "^2.6.2",
diff --git a/packages/internal/version-check/.eslintrc b/packages/internal/version-check/.eslintrc
deleted file mode 100644
index 9b6c8a5aef..0000000000
--- a/packages/internal/version-check/.eslintrc
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": ["../../../.eslintrc"],
- "parser": "@typescript-eslint/parser",
- "parserOptions": {
- "project": "./tsconfig.json",
- "tsconfigRootDir": "."
- }
-}
diff --git a/packages/internal/version-check/README.md b/packages/internal/version-check/README.md
deleted file mode 100644
index 6a6b1f22d9..0000000000
--- a/packages/internal/version-check/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Analytics
-
-Internal analytics package,
-
-## Version Check
-
-The version check is a simple function that checks the current version of the SDK.
diff --git a/packages/internal/version-check/jest.config.ts b/packages/internal/version-check/jest.config.ts
deleted file mode 100644
index e7cbadeed0..0000000000
--- a/packages/internal/version-check/jest.config.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import type { Config } from 'jest';
-
-const config: Config = {
- clearMocks: true,
- coverageProvider: 'v8',
- moduleDirectories: ['node_modules', 'src'],
- testEnvironment: 'jsdom',
- transform: {
- '^.+\\.(t|j)sx?$': '@swc/jest',
- },
- transformIgnorePatterns: [],
- testEnvironmentOptions: {
- url: 'http://localhost',
- },
- verbose: true,
-};
-
-export default config;
diff --git a/packages/internal/version-check/package.json b/packages/internal/version-check/package.json
deleted file mode 100644
index 3973b5e1af..0000000000
--- a/packages/internal/version-check/package.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "@imtbl/version-check",
- "description": "Version check module for Immutable SDK",
- "version": "0.0.0",
- "author": "Immutable",
- "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
- "dependencies": {
- "axios": "^1.6.5"
- },
- "devDependencies": {
- "@rollup/plugin-typescript": "^11.0.0",
- "@swc/jest": "^0.2.24",
- "@types/jest": "^29.4.3",
- "eslint": "^8.40.0",
- "http-server": "^14.1.1",
- "jest": "^29.4.3",
- "jest-environment-jsdom": "^29.4.3",
- "rollup": "^3.17.2",
- "typescript": "^4.9.5"
- },
- "engines": {
- "node": ">=20.11.0"
- },
- "files": [
- "dist"
- ],
- "homepage": "https://github.com/immutable/ts-immutable-sdk#readme",
- "main": "dist/index.js",
- "private": true,
- "repository": "immutable/ts-immutable-sdk.git",
- "scripts": {
- "build": "NODE_ENV=production rollup --config rollup.config.js",
- "dev": "rollup --config rollup.config.js -w",
- "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0",
- "start:checkout-js-server": "http-server -p 8080 -c-1 ../../../sdk/dist",
- "start:checkout-web-server": "http-server -p 8081 -c-1 ./src/checkout-widgets-test",
- "test": "jest",
- "typecheck": "tsc --noEmit --jsx preserve"
- },
- "type": "module",
- "types": "dist/index.d.ts"
-}
diff --git a/packages/internal/version-check/rollup.config.js b/packages/internal/version-check/rollup.config.js
deleted file mode 100644
index 193bbdea00..0000000000
--- a/packages/internal/version-check/rollup.config.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import typescript from '@rollup/plugin-typescript';
-import replace from '@rollup/plugin-replace';
-import pkg from '../../../sdk/package.json' assert { type: 'json' };
-
-export default {
- input: 'src/index.ts',
- output: {
- dir: 'dist',
- format: 'es',
- },
- plugins: [
- typescript(),
- replace({
- exclude: 'node_modules/**',
- preventAssignment: true,
- __SDK_VERSION__: pkg.version,
- }),
- ],
-};
diff --git a/packages/internal/version-check/src/checkout-widgets-test/README.md b/packages/internal/version-check/src/checkout-widgets-test/README.md
deleted file mode 100644
index 13ffd344f1..0000000000
--- a/packages/internal/version-check/src/checkout-widgets-test/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# Checkout Widgets (Manual) Test Site
-
-This is a manual test site for the checkout widgets. It is used to test the `sdkVersionCheck` function called by checkout widgets in a local environment.
-
-The run the site, you need to start a local web server to host the built JS bundle, and another web server to host the test website.
-
-## Usage
-
-1. Update the target endpoint the checkout bundle will send version check requests to.
-
- - Find the `packages/internal/analytics/version-check/versionCheck.ts` file.
- - Update the `imtblApi` variable (near the top of the file) to point to the endpoint you want to send the version check requests to.
- - Suggest using something like `https://webhook.site/` or a local webserver setup to log requests.
-
-2. Build the SDK:
-
- ```bash
- # from the root of the SDK repo
- yarn build
- ```
-
-2. Start the JS bundle server:
-
- ```bash
- # in the packages/internal/analytics directory start the JS server
- start:checkout-js-server
- ```
-
-3. Open a browser and navigate to `http://127.0.0.1:8080/browser/checkout.js` to confirm the JS bundle is hosted correctly.
-
- - Search for `"checkout-widgets","0.0.0"` in the JS bundle to confirm the version number is correct.
- - It should be `0.0.0` because the version number for the SDK is not updated in the `package.json` file.
-
-4. Start a web server to host the built JS bundle:
-
- ```bash
- # in the packages/internal/analytics directory
- start:checkout-web-server
- ```
-
-5. Open a browser and navigate to `http://127.0.0.1:8081/` to confirm the test site is hosted correctly.
-
- - You should see a title that says `Welcome to the Checkout Widgets Test Page` and the `Connect a wallet` widget loaded on the page.
-
-6. Check the version check request was sent to the endpoint you configured in step 2.
-
-## Cleanup
-
-Remember to revert the changes to the `packages/internal/analytics/version-check/versionCheck.ts` file.
diff --git a/packages/internal/version-check/src/checkout-widgets-test/index.html b/packages/internal/version-check/src/checkout-widgets-test/index.html
deleted file mode 100644
index 0f85ae0abc..0000000000
--- a/packages/internal/version-check/src/checkout-widgets-test/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- Checkout Widgets
-
-
-
- Welcome to the Checkout Widgets Test Page
-
-
-
\ No newline at end of file
diff --git a/packages/internal/version-check/src/index.ts b/packages/internal/version-check/src/index.ts
deleted file mode 100644
index c4d6866951..0000000000
--- a/packages/internal/version-check/src/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export {
- sdkVersion,
- sdkVersionCheck,
-} from './versionCheck';
diff --git a/packages/internal/version-check/src/localStorage.test.ts b/packages/internal/version-check/src/localStorage.test.ts
deleted file mode 100644
index c0e18802e0..0000000000
--- a/packages/internal/version-check/src/localStorage.test.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import {
- deleteItem,
- getItem,
- setItem,
-} from './localStorage';
-
-beforeEach(() => {
- global.localStorage.clear();
-});
-
-describe('getItem', () => {
- test('it should not return a value that does not exist', () => {
- const value = getItem('test');
- expect(value).toBe(undefined);
- });
- test('it should return a string value when stored', () => {
- global.localStorage.setItem('__IMX-test', 'some value');
- expect(getItem('test')).toBe('some value');
- });
-});
-
-describe('setItem', () => {
- test('it should store items in a namespaced key', () => {
- setItem('test', 1);
- expect(global.localStorage.getItem('__IMX-test')).toBe('1');
- });
-
- test('it should serialise an object accurately when storing', () => {
- const returnVal = setItem('test', { a: 1, b: 'hello' });
- expect(global.localStorage.getItem('__IMX-test')).toBe(
- JSON.stringify({ a: 1, b: 'hello' }),
- );
- expect(returnVal).toBe(true);
- });
-});
-
-describe('deleteItem', () => {
- test('should remove item that is stored', () => {
- global.localStorage.setItem('__IMX-test', 'test');
- deleteItem('test');
- expect(global.localStorage.getItem('__IMX--test')).toBeNull();
- });
- test('should do nothing if key not stored', () => {
- expect(() => global.localStorage.getItem('__IMX-random')).not.toThrow();
- });
-});
diff --git a/packages/internal/version-check/src/localStorage.ts b/packages/internal/version-check/src/localStorage.ts
deleted file mode 100644
index 6f44e46e6a..0000000000
--- a/packages/internal/version-check/src/localStorage.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Abstraction on localstorage
- */
-
-const localStoragePrefix = '__IMX-';
-
-const hasLocalstorage = () => typeof window !== 'undefined' && window.localStorage;
-
-const parseItem = (payload: string | null) => {
- // Try to parse, if can't be parsed assume string
- // and return string
- if (!payload) return undefined;
-
- try {
- return JSON.parse(payload);
- } catch (error) {
- return payload;
- }
-};
-
-const serialiseItem = (payload: any) => {
- if (typeof payload === 'string') {
- return payload;
- }
- return JSON.stringify(payload);
-};
-
-/**
- * GenKey will take into account the namespace
- * as well as if being run in the Link, it will tap into the link
- * @param {string} key
- * @returns key
- */
-const genKey = (key: string) => `${localStoragePrefix}${key}`;
-
-export const getItem = (key: string): any => {
- if (hasLocalstorage()) {
- return parseItem(window.localStorage.getItem(genKey(key)));
- }
- return undefined;
-};
-
-export const setItem = (key: string, payload: any): boolean => {
- if (hasLocalstorage()) {
- window.localStorage.setItem(genKey(key), serialiseItem(payload));
- return true;
- }
- return false;
-};
-
-export const deleteItem = (key: string): boolean => {
- if (hasLocalstorage()) {
- window.localStorage.removeItem(genKey(key));
- return true;
- }
- return false;
-};
diff --git a/packages/internal/version-check/src/versionCheck.test.ts b/packages/internal/version-check/src/versionCheck.test.ts
deleted file mode 100644
index 1538746e1b..0000000000
--- a/packages/internal/version-check/src/versionCheck.test.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-import axios from 'axios';
-import { sdkVersionCheck } from './versionCheck';
-
-jest.mock('axios');
-
-beforeEach(() => {
- (axios.get as jest.Mock).mockResolvedValue({});
- // prevent console.log from logging to the terminal
- jest.spyOn(console, 'log').mockImplementation();
-});
-
-describe('sdkVersionCheck', () => {
- test('should now throw errors', () => {
- expect(() => sdkVersionCheck('test-package', '1.0.0')).not.toThrow();
- expect(() => sdkVersionCheck()).not.toThrow();
- });
-
- test('should send request to analytics API', () => {
- const defaultApi = 'https://api.x.immutable.com';
- const defaultVersionApi = '/v1/check';
-
- sdkVersionCheck();
-
- expect(axios.get).toHaveBeenCalledTimes(1);
- expect(axios.get).toHaveBeenCalledWith(expect.stringContaining(`${defaultApi}${defaultVersionApi}`));
- });
-
- test('should include SDK version', () => {
- const defaultApi = 'https://api.x.immutable.com';
- const defaultVersionApi = '/v1/check';
- const sdkVersion = '__SDK_VERSION__';
- const expectedUrl = `${defaultApi}${defaultVersionApi}`;
- const expectedQueryParams = `?version=imtbl-sdk-${sdkVersion}`;
-
- sdkVersionCheck();
-
- expect(axios.get).toHaveBeenCalledTimes(1);
- expect(axios.get).toHaveBeenCalledWith(expect.stringContaining(`${expectedUrl}${expectedQueryParams}`));
- });
-
- test('should send details query parameter', () => {
- sdkVersionCheck();
-
- expect(axios.get).toHaveBeenCalledTimes(1);
- expect(axios.get).toHaveBeenCalledWith(expect.stringContaining('&details='));
- });
-
- test('should not send id query parameters if runtimeId is not set', () => {
- sdkVersionCheck();
-
- expect(axios.get).toHaveBeenCalledTimes(1);
- expect(axios.get).toHaveBeenCalledWith(expect.not.stringContaining('&id='));
- });
-
- test('should send app name and version number', () => {
- const sdkVersion = '__SDK_VERSION__';
- const packageName = 'test-package';
- const packageVersion = '1.0.0';
- const expectedQueryParams = `?version=imtbl-sdk-${sdkVersion},${packageName}-${packageVersion}`;
-
- sdkVersionCheck(packageName, packageVersion);
-
- expect(axios.get).toHaveBeenCalledTimes(1);
- expect(axios.get).toHaveBeenCalledWith(expect.stringContaining(`${expectedQueryParams}`));
- });
-
- test('should encode query parameters', () => {
- const sdkVersion = '__SDK_VERSION__';
- const packageName = 'test-package';
- const packageVersion = '1.0.0++1';
- const expectedQueryParams = `?version=imtbl-sdk-${sdkVersion},${packageName}-1.0.0%2B%2B1`;
-
- sdkVersionCheck(packageName, packageVersion);
-
- expect(axios.get).toHaveBeenCalledTimes(1);
- expect(axios.get).toHaveBeenCalledWith(expect.stringContaining((expectedQueryParams)));
- });
-});
diff --git a/packages/internal/version-check/src/versionCheck.ts b/packages/internal/version-check/src/versionCheck.ts
deleted file mode 100644
index 5f2ef2c071..0000000000
--- a/packages/internal/version-check/src/versionCheck.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import axios from 'axios';
-import { getItem, setItem } from './localStorage';
-
-export const imtblApi = process.env.IMTBL_API || 'https://api.x.immutable.com';
-export const versionApi = process.env.VERSION_API || '/v1/check';
-export const sdkVersion = '__SDK_VERSION__';
-
-const getReferrer = () => {
- if (typeof window === 'undefined') {
- return '';
- }
- if (
- window.location.ancestorOrigins
- && window.location.ancestorOrigins.length > 0
- ) {
- return new URL(window.location.ancestorOrigins[0]).hostname;
- }
-
- return document.referrer ? new URL(window.document.referrer).hostname : '';
-};
-
-const runtimeHost = () => {
- if (typeof window === 'undefined') {
- return '';
- }
- if (window.opener || window.parent !== window) {
- return getReferrer();
- }
- return new URL(window.location.href).hostname;
-};
-
-const sdkRuntimeDetails = () => {
- if (typeof window === 'undefined') {
- return btoa(JSON.stringify({ browser: 'nodejs' }));
- }
-
- const idVal = JSON.stringify({
- browser: window.navigator.userAgent,
- domain: runtimeHost(),
- tz: Intl.DateTimeFormat().resolvedOptions().timeZone,
- screen: `${window.screen.width}x${window.screen.height}`,
- });
-
- return btoa(idVal);
-};
-
-const useRuntimeId = (runtimeId?: string) => {
- // only run on browser
- if (typeof window === 'undefined') {
- return '';
- }
- const runtimeKey = 'runtimeid';
- if (runtimeId) {
- setItem(runtimeKey, runtimeId);
- }
- return getItem(runtimeKey) || '';
-};
-
-export const sdkVersionCheck = (appName?: string, appVersion?: string) => {
- try {
- const existingRuntimeId = useRuntimeId();
- const runtimeDetails = sdkRuntimeDetails();
- const versionParam = appName && appVersion
- ? `version=imtbl-sdk-${sdkVersion},${appName}-${appVersion}`
- : `version=imtbl-sdk-${sdkVersion}`;
- const detailsParam = `details=${runtimeDetails}`;
-
- let versionCheckUrl = encodeURI(`${imtblApi}${versionApi}?${versionParam}&${detailsParam}`).replaceAll('+', '%2B');
- if (existingRuntimeId) {
- versionCheckUrl += `&id=${existingRuntimeId}`;
- }
-
- axios
- .get(versionCheckUrl)
- .then((response) => {
- const { ok, message, runtimeId } = response.data;
- if (!ok) {
- // eslint-disable-next-line no-console
- console.warn(
- `Immutable SDK: ${message}\n\nPlease update the SDK to the latest version.`,
- );
- }
- if (runtimeId) {
- useRuntimeId(runtimeId);
- }
- })
- .catch(() => {});
- } catch (_) {
- // eslint-disable-next-line no-console
- console.warn('Immutable SDK: Unable to check for latest version.');
- }
-};
diff --git a/packages/internal/version-check/tsconfig.json b/packages/internal/version-check/tsconfig.json
deleted file mode 100644
index db5668e055..0000000000
--- a/packages/internal/version-check/tsconfig.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "compilerOptions": {
- /* Visit https://aka.ms/tsconfig to read more about this file */
-
- /* Projects */
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
-
- /* Language and Environment */
- "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
- // "jsx": "preserve", /* Specify what JSX code is generated. */
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
-
- /* Modules */
- "module": "esnext", /* Specify what module code is generated. */
- // "rootDir": "./src", /* Specify the root folder within your source files. */
- "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
- "baseUrl": "./src", /* Specify the base directory to resolve non-relative module names. */
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
- "rootDirs": ["src"], /* Allow multiple folders to be treated as one when resolving modules. */
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
- // "resolveJsonModule": true, /* Enable importing .json files. */
- // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */
-
- /* JavaScript Support */
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
-
- /* Emit */
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
- "outDir": "./dist", /* Specify an output folder for all emitted files. */
- "removeComments": false, /* Disable emitting comments. */
- // "noEmit": true, /* Disable emitting files from a compilation. */
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
- // "newLine": "crlf", /* Set the newline character for emitting files. */
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
-
- /* Interop Constraints */
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
-
- /* Type Checking */
- "strict": true, /* Enable all strict type-checking options. */
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
-
- /* Completeness */
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
- "skipLibCheck": true, /* Skip type checking all .d.ts files. */
-
- /* Advanced */
- // "noEmit": true,
- // "allowJs": false,
- // "allowSyntheticDefaultImports": true,
- // "resolveJsonModule": true,
- },
- "include": ["src"],
- "exclude": ["dist", "jest.config.js", "node_modules"]
-}
diff --git a/sdk/package.json b/sdk/package.json
index d08c73c7aa..be271f8590 100644
--- a/sdk/package.json
+++ b/sdk/package.json
@@ -70,7 +70,6 @@
"@imtbl/minting-backend": "0.0.0",
"@imtbl/orderbook": "0.0.0",
"@imtbl/passport": "0.0.0",
- "@imtbl/version-check": "0.0.0",
"@imtbl/webhook": "0.0.0",
"@imtbl/x-client": "0.0.0",
"@imtbl/x-provider": "0.0.0",
diff --git a/yarn.lock b/yarn.lock
index 54e4be579b..985a94c2fd 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3497,7 +3497,6 @@ __metadata:
"@imtbl/dex-sdk": 0.0.0
"@imtbl/passport": 0.0.0
"@imtbl/react-analytics": 0.2.1-alpha
- "@imtbl/version-check": 0.0.0
"@rive-app/react-canvas-lite": ^4.9.0
"@rollup/plugin-commonjs": ^24.0.1
"@rollup/plugin-json": ^6.0.0
@@ -3879,7 +3878,6 @@ __metadata:
"@imtbl/orderbook": 0.0.0
"@imtbl/passport": 0.0.0
"@imtbl/react-analytics": 0.2.1-alpha
- "@imtbl/version-check": 0.0.0
"@imtbl/webhook": 0.0.0
"@imtbl/x-client": 0.0.0
"@imtbl/x-provider": 0.0.0
@@ -3983,23 +3981,6 @@ __metadata:
languageName: unknown
linkType: soft
-"@imtbl/version-check@0.0.0, @imtbl/version-check@workspace:packages/internal/version-check":
- version: 0.0.0-use.local
- resolution: "@imtbl/version-check@workspace:packages/internal/version-check"
- dependencies:
- "@rollup/plugin-typescript": ^11.0.0
- "@swc/jest": ^0.2.24
- "@types/jest": ^29.4.3
- axios: ^1.6.5
- eslint: ^8.40.0
- http-server: ^14.1.1
- jest: ^29.4.3
- jest-environment-jsdom: ^29.4.3
- rollup: ^3.17.2
- typescript: ^4.9.5
- languageName: unknown
- linkType: soft
-
"@imtbl/webhook@0.0.0, @imtbl/webhook@workspace:packages/webhook/sdk":
version: 0.0.0-use.local
resolution: "@imtbl/webhook@workspace:packages/webhook/sdk"