@better-logger/core 0.9.0 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +77 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,55 @@
2
2
 
3
3
  **console.log is broken. better.log fixes it.**
4
4
 
5
+ <p align="center">
6
+ <!-- Workflow Status -->
7
+ <a href="https://github.com/0xmilord/better-logger/actions/workflows/better-logger-ci.yml">
8
+ <img src="https://github.com/0xmilord/better-logger/actions/workflows/better-logger-ci.yml/badge.svg" alt="CI Status">
9
+ </a>
10
+ <a href="https://github.com/0xmilord/better-logger/actions/workflows/bundle-size.yml">
11
+ <img src="https://github.com/0xmilord/better-logger/actions/workflows/bundle-size.yml/badge.svg" alt="Bundle Size">
12
+ </a>
13
+
14
+ <!-- Package Info -->
15
+ <a href="https://www.npmjs.com/package/@better-logger/core">
16
+ <img src="https://img.shields.io/npm/v/@better-logger/core?color=0366d6&label=version" alt="npm version">
17
+ </a>
18
+ <a href="https://www.npmjs.com/package/@better-logger/core">
19
+ <img src="https://img.shields.io/npm/dw/@better-logger/core?color=0366d6" alt="npm downloads">
20
+ </a>
21
+ <a href="https://www.npmjs.com/package/@better-logger/core">
22
+ <img src="https://img.shields.io/bundlephobia/minzip/@better-logger/core?color=0366d6&label=gzip" alt="Bundle Size">
23
+ </a>
24
+
25
+ <!-- Code Quality -->
26
+ <a href="https://github.com/0xmilord/better-logger/blob/main/LICENSE">
27
+ <img src="https://img.shields.io/npm/l/@better-logger/core?color=0366d6" alt="License">
28
+ </a>
29
+ <a href="https://github.com/0xmilord/better-logger">
30
+ <img src="https://img.shields.io/github/last-commit/0xmilord/better-logger?color=0366d6" alt="Last Commit">
31
+ </a>
32
+ <a href="https://github.com/0xmilord/better-logger/issues">
33
+ <img src="https://img.shields.io/github/issues/0xmilord/better-logger?color=0366d6" alt="Issues">
34
+ </a>
35
+ <a href="https://github.com/0xmilord/better-logger/pulls">
36
+ <img src="https://img.shields.io/github/issues-pr/0xmilord/better-logger?color=0366d6" alt="Pull Requests">
37
+ </a>
38
+
39
+ <!-- Ecosystem -->
40
+ <a href="https://marketplace.visualstudio.com/items?itemName=0xmilord.better-logger">
41
+ <img src="https://img.shields.io/badge/vscode-extension-0366d6" alt="VS Code Extension">
42
+ </a>
43
+ <a href="https://0xmilord.github.io/better-logger/">
44
+ <img src="https://img.shields.io/badge/docs-site-0366d6" alt="Documentation">
45
+ </a>
46
+ </p>
47
+
48
+ <p align="center">
49
+ <strong>Zero Dependencies · 3.8KB Gzipped · 280 Tests · 96% Coverage · 8 Framework Integrations</strong>
50
+ </p>
51
+
52
+ ---
53
+
5
54
  You wouldn't debug a multi-step process with sticky notes.
6
55
  Stop debugging your app with console.log.
7
56
 
@@ -167,7 +216,7 @@ better.setDefaultTags(['app', 'v3']) // Tags on all flows
167
216
 
168
217
  ## Real-World Examples
169
218
 
170
- We've included 10 comprehensive examples:
219
+ We've included 11 comprehensive examples:
171
220
 
172
221
  | Example | What it shows |
173
222
  |---------|--------------|
@@ -181,13 +230,25 @@ We've included 10 comprehensive examples:
181
230
  | `examples/08-testing-utilities.js` | Test runner, assertions, perf tests |
182
231
  | `examples/09-data-pipeline.js` | ETL stages, transforms, aggregation |
183
232
  | `examples/10-full-application.js` | Complete Node.js app with all patterns |
184
-
185
- Framework integrations:
186
-
187
- | Package | What it does |
188
- |---------|-------------|
189
- | `packages/express/` | Express middleware with auto-request logging |
190
- | `packages/react/` | React hooks for component lifecycle logging |
233
+ | `examples/11-angular-app.js` | Angular service, HTTP interceptor, error handler |
234
+
235
+ Framework integrations (13 total):
236
+
237
+ | Package | Framework | Install | When to use this vs Core |
238
+ |---------|-----------|---------|--------------------------|
239
+ | `@better-logger/express` | Express.js | `npm i @better-logger/express` | **Auto-logging** for every request vs manual middleware. |
240
+ | `@better-logger/fastify` | Fastify | `npm i @better-logger/fastify` | **Plugin** with hooks vs manual `app.addHook`. |
241
+ | `@package/koa` | Koa | `npm i @better-logger/koa` | **Middleware** + error handler vs manual `ctx` logic. |
242
+ | `@better-logger/hono` | Hono (Edge) | `npm i @better-logger/hono` | **Edge-compatible** middleware for Cloudflare/Vercel. |
243
+ | `@better-logger/nestjs` | NestJS | `npm i @better-logger/nestjs` | **Module + Interceptor** + Exception filter integration. |
244
+ | `@better-logger/nextjs` | Next.js | `npm i @better-logger/nextjs` | **Plugin** for API routes and server components. |
245
+ | `@better-logger/react` | React | `npm i @better-logger/react` | **Hooks** for lifecycle and error boundaries. |
246
+ | `@better-logger/angular` | Angular | `npm i @better-logger/angular` | **Service** + HTTP interceptor + error handler. |
247
+ | `@better-logger/vue` | Vue 2/3 | `npm i @better-logger/vue` | **Plugin** + composable for lifecycle tracking. |
248
+ | `@better-logger/svelte` | Svelte | `npm i @better-logger/svelte` | **Function** for component and async tracking. |
249
+ | `@better-logger/sveltekit` | SvelteKit | `npm i @better-logger/sveltekit` | **Server hook** for routes and API endpoints. |
250
+ | `@better-logger/astro` | Astro | `npm i @better-logger/astro` | **Integration** for build and dev server logging. |
251
+ | `@better-logger/cli` | CLI Tools | `npm i @better-logger/cli` | **Helpers** for progress bars, tables, commands. |
191
252
 
192
253
  ## Performance
193
254
 
@@ -234,9 +295,16 @@ See [Migration Guides](docs/MIGRATE-FROM-PINO.md), [docs/MIGRATE-FROM-WINSTON.md
234
295
  | `@better-logger/core` | Core library |
235
296
  | `packages/express/` | Express middleware |
236
297
  | `packages/fastify/` | Fastify plugin |
298
+ | `packages/koa/` | Koa middleware |
299
+ | `packages/hono/` | Hono/Edge middleware |
300
+ | `packages/nestjs/` | NestJS module |
237
301
  | `packages/nextjs/` | Next.js plugin |
238
302
  | `packages/react/` | React hooks |
239
- | `packages/angular/` | Angular service, interceptor, error handler |
303
+ | `packages/angular/` | Angular service |
304
+ | `packages/vue/` | Vue 2/3 plugin |
305
+ | `packages/svelte/` | Svelte functions |
306
+ | `packages/sveltekit/` | SvelteKit hooks |
307
+ | `packages/astro/` | Astro integration |
240
308
  | `packages/cli/` | CLI helpers |
241
309
  | `packages/eslint-plugin/` | ESLint rules |
242
310
  | `packages/vscode/` | VS Code snippets |
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "@typescript-eslint/eslint-plugin": "8.58.0",
53
53
  "@types/node": "20.11.0"
54
54
  },
55
- "version": "0.9.0"
55
+ "version": "1.0.0"
56
56
  }