diff --git a/README.md b/README.md index afa3d81..6be6a0c 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,15 @@ -# Reverse Mirage [![GitHub Actions][gha-badge]][gha] [![npm version][npm-badge]][npm] [![npm bundle size][bundle-badge]][bundle] +# Reverse Mirage [![GitHub Actions][gha-badge]][gha] [![npm version][npm-badge]][npm] [gha]: https://github.com/kyscott18/reverse-mirage/actions [gha-badge]: https://github.com/kyscott18/reverse-mirage/actions/workflows/main.yml/badge.svg [npm]: https://www.npmjs.com/package/reverse-mirage/v/latest [npm-badge]: https://img.shields.io/npm/v/reverse-mirage/latest.svg -[bundle]: https://bundlephobia.com/result?p=reverse-mirage@latest -[bundle-badge]:https://img.shields.io/bundlephobia/minzip/reverse-mirage/latest.svg Building blocks for Ethereum app development. Built using [Viem](https://viem.sh). ## Features -- ✅ 10x-100x faster, 10.3x smaller than [`@uniswap/sdk-core`](https://github.com/uniswap/sdk-core) +- ✅ 10x-100x faster, 10.4x smaller than [`@uniswap/sdk-core`](https://github.com/uniswap/sdk-core) - ✅ Abstactions for most commonly used token standards - ✅ Supports `permit` - ✅ Extensible to build apps and libraries @@ -74,6 +72,6 @@ $ bun run src/amount/utils.bench.ts ## Bundle Size -`reverse-mirage`: **5.17 kB** +`reverse-mirage`: **5.12 kB** `@uniswap/sdk-core`: **53.4 kB** diff --git a/package.json b/package.json index 6ef7493..d2ccd20 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,10 @@ "description": "", "private": true, "type": "module", - "workspaces": [ - "packages/*" - ], "scripts": { "install:packages": "pnpm --filter './packages/**' install", "preinstall": "npx -y only-allow pnpm", - "codegen": "pnpm wagmi generate", + "codegen": "wagmi generate", "changeset:publish": "pnpm codegen && pnpm build && pnpm changeset publish", "build": "pnpm --filter 'reverse-mirage' build && pnpm --filter !'reverse-mirage' build", "lint": "pnpm --parallel lint", @@ -23,16 +20,11 @@ "keywords": [], "author": "", "license": "MIT", - "engines": { - "node": ">=18", - "pnpm": ">=8" - }, "devDependencies": { "@biomejs/biome": "^1.2.2", "@changesets/cli": "^2.26.2", "@wagmi/cli": "^1.5.2", "husky": "^8.0.3", - "typescript": "^5.2.2", "vitepress": "1.0.0-rc.20" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 654d28e..f431620 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,9 +20,6 @@ importers: husky: specifier: ^8.0.3 version: 8.0.3 - typescript: - specifier: ^5.2.2 - version: 5.2.2 vitepress: specifier: 1.0.0-rc.20 version: 1.0.0-rc.20(@algolia/client-search@4.20.0)(search-insights@2.8.3) @@ -7057,6 +7054,41 @@ packages: - terser dev: true + /vite@4.4.9: + resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + '@types/node': '>= 14' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.18.20 + postcss: 8.4.30 + rollup: 3.29.3 + optionalDependencies: + fsevents: 2.3.3 + dev: true + /vite@4.4.9(@types/node@20.7.0): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} @@ -7115,7 +7147,7 @@ packages: mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.4 - vite: 4.4.9(@types/node@20.7.0) + vite: 4.4.9 vue: 3.3.4 transitivePeerDependencies: - '@algolia/client-search' diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index e0bd4e6..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - // This tsconfig file contains the shared config for the build (tsconfig.build.json) and type checking (tsconfig.json) config. - "compilerOptions": { - // Type checking - "strict": true, - "useDefineForClassFields": true, // Not enabled by default in `strict` mode unless we bump `target` to ES2022. - "noFallthroughCasesInSwitch": true, // Not enabled by default in `strict` mode. - "noImplicitReturns": true, // Not enabled by default in `strict` mode. - "useUnknownInCatchVariables": true, // TODO: This would normally be enabled in `strict` mode but would require some adjustments to the codebase. - "noImplicitOverride": true, // Not enabled by default in `strict` mode. - "noUnusedLocals": true, // Not enabled by default in `strict` mode. - "noUnusedParameters": true, // Not enabled by default in `strict` mode. - "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - // JavaScript support - "allowJs": false, - "checkJs": false, - // Interop constraints - "esModuleInterop": false, - "allowSyntheticDefaultImports": false, - "forceConsistentCasingInFileNames": true, - "verbatimModuleSyntax": true, - "importHelpers": true, // This is only used for build validation. Since we do not have `tslib` installed, this will fail if we accidentally make use of anything that'd require injection of helpers. - "resolveJsonModule":true, - // Language and environment - "moduleResolution": "NodeNext", - "module": "NodeNext", - "target": "ES2021", // Setting this to `ES2021` enables native support for `Node v16+`: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping. - "lib": [ - "ES2022" - ], - // Skip type checking for node modules - "skipLibCheck": true - } -} \ No newline at end of file