Skip to content

Releases: unjs/c12

v4.0.0-beta.3

17 Feb 08:10
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Disable expandFileReferences by default (#303)

📖 Documentation

❤️ Contributors

v4.0.0-beta.2

06 Feb 19:02
@pi0 pi0

Choose a tag to compare

compare changes

📦 Package Improvements

c12 install size is now down to 380kB from 3.44MB (20 deps to 7 deps).

Loading TypeScript files is significantly faster (on cold cache) — simple TS config loads ~2.5x faster (bench).

🚀 Migration

  • If you need extends feature with remote/git source, install giget as a peer dependency (docs)
  • If you are using watchConfig, install chokidar as a peer dependency (docs).
  • If you need legacy TypeScript support (mixed ESM/CJS, no import extensions, etc.), install jiti as a peer dependency (c12 automatically falls back) or provide a custom import config (docs).
  • Dotenv parsing now uses native runtime features (see #296). You might need to add dotenv as a peer dependency only for legacy/Deno support.

Other changes

🚀 Enhancements

  • Support expanding env with _FILE references (#297) (docs)

🔥 Performance

  • Optional jiti loader (#295)
  • Use native dotenv parser (#296)

📦 Build

  • Make chokidar optional peer dependency (8b7c6a2)

🏡 Chore

❤️ Contributors

v4.0.0-beta.1

06 Feb 17:31
@pi0 pi0

Choose a tag to compare

v3.3.3

16 Dec 18:53
@pi0 pi0

Choose a tag to compare

compare changes

📦 Build

v3.3.2

10 Nov 21:53
@pi0 pi0

Choose a tag to compare

compare changes

📖 Documentation

  • Fix typo in globalRc option (#281)

📦 Build

  • Switch to obuild (rolldown) (9addbb1)
  • Relax magicast peer dependency range (eae6be1)

❤️ Contributors

v3.3.1

17 Oct 08:29
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Extend with explicit extensions only (#276)

❤️ Contributors

v3.3.0

15 Sep 12:14
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Support loading config with array exports (#272)
  • Allow extends without extension (#268)

🩹 Fixes

  • loadDotenv: cwd is optional (#273)

📖 Documentation

  • Improve dotenv section with multiple files example (#270)

❤️ Contributors

v3.2.0

30 Jul 08:01
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Support multiple dotenv files (#256)
  • Support context for function configs (#258)
  • Support configFileRequired (#241)

📦 Deps

🏡 Chore

  • Add prisma to the "used by" list (#255)

❤️ Contributors

v3.1.0

13 Jul 20:27
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Pass raw configs to function sources (#253)

❤️ Contributors

v3.0.4

17 May 09:12
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Handle watcher reload errors (#247)