Skip to content

Commit

Permalink
✨ To module (fix bundle sizes) (#272)
Browse files Browse the repository at this point in the history
* to module

* ignore autogenerated file from linting

* 0.9.2-beta.2

* eslint to cjs and no more star exports

* 0.9.2-beta.3

* esm only

* 0.9.2-beta.4

* add main export

* 0.9.2-beta.5

* Set commonjs package export

* 0.9.2-beta.6

* exports

* 0.9.2-beta.7

* Fix markdown magic

* Remove node version 12 support

* 📦 0.9.2
  • Loading branch information
dawsbot authored Feb 17, 2024
1 parent 99259b4 commit 59c540f
Show file tree
Hide file tree
Showing 15 changed files with 2,234 additions and 95 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dist
typedoc
docusaurus
coverage

markdown.config.js
src/logger/package-version.ts
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {
'jsdoc/match-description': [
'off',
{
message: `Description formatting error`,
message: 'Description formatting error',
// The description should match this formatting:
// /**
// * Returns transaction receipt event logs that match a specified filter.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: ['20', '18', '16', '14', '12']
node-version: ['20', '18', '16', '14']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
16 changes: 8 additions & 8 deletions docusaurus/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const FeatureList: FeatureItem[] = [
description: (
<>
Essential Eth was designed from the ground up to be{' '}
<strong>20x smaller than ethers.js and web3.js.</strong> This compact
<strong>10x smaller than ethers.js and web3.js.</strong> This compact
form facilitates quicker setups and optimizes storage.
</>
),
Expand Down Expand Up @@ -147,10 +147,10 @@ export default function HomepageFeatures(): JSX.Element {
</p>
<CodeBlock language="typescript">
{`import { etherToWei, weiToEther } from 'essential-eth';
weiToEther(1000000000000000000).toNumber();
// returns: 1
etherToWei('1000').toString();
// returns: '1000000000000000000000'
`}
Expand All @@ -166,10 +166,10 @@ export default function HomepageFeatures(): JSX.Element {
</p>
<CodeBlock language="typescript">
{`import { isAddress } from 'essential-eth';
isAddress('0xc0deaf6bd3f0c6574a6a625ef2f22f62a5150eab');
// returns: true
isAddress('bad');
// returns: false
`}
Expand All @@ -185,7 +185,7 @@ export default function HomepageFeatures(): JSX.Element {
</p>
<CodeBlock language="typescript">
{`import { toChecksumAddress } from 'essential-eth';
toChecksumAddress('0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359');
// returns: '0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359'
`}
Expand Down Expand Up @@ -220,7 +220,7 @@ export default function HomepageFeatures(): JSX.Element {

<CodeBlock language="typescript">
{`import { JsonRpcProvider } from 'essential-eth';
const provider = new JsonRpcProvider();
await provider
.getBalance('0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8')
Expand All @@ -240,7 +240,7 @@ export default function HomepageFeatures(): JSX.Element {

<CodeBlock language="typescript">
{`import { FallthroughProvider } from 'essential-eth';
// The FallthroughProvider handles falling through to the next valid URL.
// It's dynamic to never trust one URL again when it fails * until it has tried all other provided URLs
// The default timeout for a request is 8 seconds after which it moves to the next URL
Expand Down
File renamed without changes.
26 changes: 0 additions & 26 deletions markdown.config.js

This file was deleted.

Loading

0 comments on commit 59c540f

Please sign in to comment.