Skip to content

Releases: SmooAI/logger

v4.1.11

23 May 05:43
eceb08e

Choose a tag to compare

Patch Changes

  • 71c47e7: SMOODEV-966: Add RotatingFileOutput to the .NET port — size-based rollover, gzip-compressed archives, configurable retention (MaxArchivedFiles), and a configurable filename pattern. Wired into SmooLogger via SmooLoggerOptions.Rotation, mirroring the TS RotationOptions and Rust rotation.rs surfaces.

v4.1.10

18 May 20:22
ed8cfc2

Choose a tag to compare

Patch Changes

  • 627bda0: Migrate build tooling from tsup to tsdown — faster, oxc-based, drop-in replacement. The esbuild-plugin-alias shim used to swap rotating-file-stream for a no-op stub in the browser build is replaced with @rollup/plugin-alias (rolldown-compatible). src/decycle.cjs (a side-effect CJS file that patches global JSON) is marked external so rolldown leaves it alone. Output extensions shift from .js/.mjs/.d.ts to .cjs/.mjs/.d.cts/.d.mts (tsdown defaults); the exports map + the CLI bin path are updated to match. No public API change.

v4.1.9

12 May 19:34
0124821

Choose a tag to compare

Patch Changes

  • 60745c7: SMOODEV-966: Add RotatingFileOutput to the .NET port — size-based rollover, gzip-compressed archives, configurable retention (MaxArchivedFiles), and a configurable filename pattern. Wired into SmooLogger via SmooLoggerOptions.Rotation, mirroring the TS RotationOptions and Rust rotation.rs surfaces.

v4.1.8

12 May 18:35
6cd9ec5

Choose a tag to compare

Patch Changes

  • 393b229: SMOODEV-942 follow-up: Fix Rust test races. The redaction + AWS context PRs (SMOODEV-942 / SMOODEV-943) added new tests in logger.rs + aws.rs that each had their own per-module TEST_LOCK / ENV_LOCK. cargo runs tests across modules in parallel, so the three module test groups raced on the global CONTEXTset_namespace got wiped between writes and reads, and panicking tests poisoned the local lock and cascaded.

    Hoists a single pub(crate) static TEST_GLOBAL_LOCK in lib.rs (#[cfg(test)]) and switches every test that touches the global context — in context.rs, logger.rs, aws.rs — to acquire that one lock with unwrap_or_else(|e| e.into_inner()) so a panic in one test no longer blocks the others. All 15 lib tests now pass under default parallel execution.

v4.1.4

12 May 02:26
c693dec

Choose a tag to compare

Patch Changes

  • d8f0487: Fix ReferenceError: Cannot access '__filename' before initialization (TDZ) when AwsServerLogger is loaded under tsx CJS interop. The old code destructured import.meta.url into locals named __dirname / __filename — when bundlers compile this to CJS they rewrite import.meta.url to a shim that reads the module-scope __filename, and a same-named const on the LHS creates a TDZ for that reference. Use a differently-named holder (esmPaths) so the compiled CJS doesn't self-reference a not-yet-initialized binding. This bit any tsx-run script that transitively imported @smooai/fetch@smooai/logger (SMOODEV-908 inspect-runs, SMOODEV-918 ghl-import).

v4.1.3

24 Apr 16:41
21ceef2

Choose a tag to compare

Patch Changes

  • 3aeac72: SMOODEV-666: Multi-target the SmooAI.Logger NuGet package to net8.0;net9.0;net10.0 so consumers on every current .NET LTS + STS release get a native framework match in the lib/ folder. Microsoft.Extensions.Logging.Abstractions 8.0.2 resolves cleanly on all three — no per-TFM conditionals needed.
  • 1fffdde: SMOODEV-667: Drop invalid logging crates.io category slug that was aborting the release pipeline before it could reach the NuGet publish step. crates.io only accepts categories from its fixed list (development-tools::debugging stays). This unblocks SmooAI.Logger NuGet publishes for the first time since the .NET port landed — NuGet was stuck on the 0.1.0 placeholder while npm had advanced to 4.1.2.

v4.1.2

24 Apr 15:10
c04c8c5

Choose a tag to compare

Patch Changes

  • 13a5834: SMOODEV-664: Rewrite the .NET (NuGet) README to value-frame the package — lead with correlation-IDs-across-services, typed user/request/response context, and caller-location-on-every-line. Drop the implementation-detail lead, add a quick-start showing a real request trace, and link cross-language siblings. Republishes SmooAI.Logger with the new README.

v4.1.1

24 Apr 13:45
fc1e03d

Choose a tag to compare

Patch Changes

  • 1db237b: SMOODEV-662: Sync SmooAI.Logger NuGet version to package.json + polish NuGet README + wire NuGet publish into release workflow

v4.1.0

21 Apr 18:23
05facc3

Choose a tag to compare

Minor Changes

  • 94daf9b: Add top-level browser export condition + bare ./browser entry

    @smooai/logger already shipped a browser-safe build under ./browser (exposing BrowserLogger, a browser-native Logger, and a full index), but the top-level . entry had no browser condition. Browser bundlers therefore resolved import { Logger } from '@smooai/logger' to the Node entry, pulling rotating-file-stream, node:fs, and related Node-only dependencies into the bundle.

    Adding the browser condition on . means consumers can now do:

    import { Logger } from "@smooai/logger";

    …and the bundler automatically picks the browser-safe dist when building for a browser target. No aliasing or explicit /browser subpath import required.

    Also added a bare ./browser entry (in addition to the existing ./browser/* subpath pattern) so import X from '@smooai/logger/browser' resolves to dist/browser/index.* without needing the explicit /index suffix.

Patch Changes

  • d2af83b: Drop deprecated baseUrl from tsconfig

    The previous attempt used ignoreDeprecations: "5.0" which works locally but CI expects "6.0" (depends on exact patch version of TypeScript). Nothing in the codebase relies on baseUrl (no paths, no imports start with ./src/... from a module root), so the cleaner fix is to just remove it. This unblocks the Release workflow which has been red since TypeScript began flagging the deprecation.

  • c192d42: Fix Rust clippy useless_conversion lint (Rust 1.95)

    Rust 1.95's clippy flags args.extend(sub.into_iter()) as useless — .extend() already accepts IntoIterator. Remove the .into_iter() call so the Release workflow's lint step passes on the pinned-stable toolchain.

  • cc30c41: Silence TS5101 deprecation warning for baseUrl in tsconfig

    TypeScript 5.0+ flags the baseUrl compiler option as deprecated (to be removed in TS 7.0). The repo's tsconfig.json still uses baseUrl: "./"; recent Release workflow runs failed during typecheck with:

    tsconfig.json: error TS5101: Option 'baseUrl' is deprecated
    

    Adds "ignoreDeprecations": "5.0" to quiet the warning until we do a wider tsconfig modernisation. No behavioural change.

v4.0.3

07 Mar 17:01
bff6c0c

Choose a tag to compare

Patch Changes

  • dcb8e7c: Add Go language-specific README with idiomatic usage examples, cross-language install table, and full API reference including LambdaLogger, context management, and correlation tracking.