From d1db70da9026dbf1348818bfb5a293dd9e3c1cc9 Mon Sep 17 00:00:00 2001 From: Sebastien Vanvelthem Date: Mon, 26 Aug 2024 17:59:41 +0200 Subject: [PATCH] feat: next alpha version --- packages/treeu/.size-limit.cjs | 2 +- packages/treeu/README.md | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/treeu/.size-limit.cjs b/packages/treeu/.size-limit.cjs index b5dff6a2d..a94b5cb7f 100644 --- a/packages/treeu/.size-limit.cjs +++ b/packages/treeu/.size-limit.cjs @@ -22,7 +22,7 @@ module.exports = [ name: 'Only { FlatTreeWsMapper } (ESM)', path: ['dist/index.mjs'], import: '{ FlatTreeWsMapper }', - limit: '740B', + limit: '1000B', }, { name: 'Everything (ESM)', diff --git a/packages/treeu/README.md b/packages/treeu/README.md index 55d0943e3..142dab7ec 100644 --- a/packages/treeu/README.md +++ b/packages/treeu/README.md @@ -22,7 +22,7 @@ $ pnpm add @httpx/treeu ## Features -- 👉  Lightweight (starts at [~200B](#bundle-size)) and [node, browser and edge support](#compatibility). +- 👉  Lightweight (starts at [~350B](#bundle-size)) and [node, browser and edge support](#compatibility). - 👉  Available in ESM and CJS formats. ## Documentation @@ -281,9 +281,8 @@ Bundle size is tracked by a [size-limit configuration](https://github.com/belgat | Scenario (esm) | Size (compressed) | |--------------------------------------------------|------------------:| -| `import { Tree } from '@httpx/treeu` | ~ 330B | -| `import { TreeSearch } from '@httpx/treeu` | ~ 310B | -| `import { FlatTreeWsMapper } from '@httpx/treeu` | ~ 210B | +| `import { DfsTreeSearch } from '@httpx/treeu` | ~ 350B | +| `import { FlatTreeWsMapper } from '@httpx/treeu` | ~ 800B | > For CJS usage (not recommended) track the size on [bundlephobia](https://bundlephobia.com/package/@httpx/treeu@latest).