Skip to content

Releases: ctrotech-tutor/ctroenv

v1.2.0 - JSON Config, Env File Parsing, CLI Improvements

17 Jun 09:04

Choose a tag to compare

Packages

Package Version Changes
@ctroenv/core 1.2.0 Schema composition export fix, boolean validator yes/no/on/off, docs audit fixes
@ctroenv/cli 1.2.0 JSON config/schema support, check --strict value validation, removed dead validate --strict, config.sources.default wiring
@ctroenv/node 1.1.0 parseEnvFile rewrite with $VAR/${VAR} interpolation, multiline, inline comments, export prefix, escaped quotes, $$ escaping

Full changelog: See individual releases for details.

v1.1.1 - Bug Fixes & Quality Improvements

17 Jun 07:36

Choose a tag to compare

Packages

Package Version Changes
@ctroenv/core 1.1.1 env.meta always present, extendSchema guard, boolean yes/no/on/off, NO_COLOR spec, removed dead errCoerce
@ctroenv/cli 1.1.1 stderr output, init --js ESM, watch scope, CI pipeline, removed changeset
@ctroenv/nextjs 1.0.3 Server key guard fix, withCtroEnv throws instead of process.exit
@ctroenv/vite 1.0.3 peerDependenciesMeta, package metadata
@ctroenv/node 1.0.3 Package metadata
@ctroenv/shared 1.0.3 Package metadata

Full changelog: See individual releases for details.

@ctroenv/vite v1.0.3

17 Jun 07:36

Choose a tag to compare

What's Changed

  • Added peerDependenciesMeta for vite
  • Added package metadata (
    epository, homepage, �ugs, sideEffects)

Full Changelog: vite-v1.0.2...vite-v1.0.3

@ctroenv/shared v1.0.3

17 Jun 07:36

Choose a tag to compare

What's Changed

  • Added package metadata (
    epository, homepage, �ugs, sideEffects)

Full Changelog: shared-v1.0.2...shared-v1.0.3

@ctroenv/node v1.1.1

17 Jun 09:50

Choose a tag to compare

What's Changed

  • Fixed CRLF (\r\n) line endings - now normalized to \n
  • Fixed BOM character (\uFEFF) - now stripped from start
  • Fixed quoted value with inline comment (KEY="val" # comment) - now parsed correctly
  • Added $$ escaping test for literal dollar signs
  • Added tests for: empty values, multiple = signs, unicode, very long values, export with leading whitespace, empty quoted strings, nested quotes, trailing backslash on last line, process.env interpolation, and file var shadowing

Full Changelog: node-v1.1.0...node-v1.1.1

@ctroenv/node v1.1.0

17 Jun 09:04

Choose a tag to compare

What's Changed

  • parseEnvFile(): complete rewrite with new capabilities:
    • $VAR and ${VAR} interpolation (references earlier vars and process.env)
    • $$ escaping for literal dollar signs
    • Multiline values with trailing backslash (\)
    • Inline comments (KEY=value # comment)
    • export KEY=value prefix support
    • Escaped quotes inside quoted values (\" and \')
    • Exported from @ctroenv/node public API
  • 15 new unit tests for all parseEnvFile features
  • Docs: updated README

Full Changelog: node-v1.0.3...node-v1.1.0

@ctroenv/node v1.0.3

17 Jun 07:36

Choose a tag to compare

What's Changed

  • Added package metadata (
    epository, homepage, �ugs, sideEffects)

Full Changelog: node-v1.0.2...node-v1.0.3

@ctroenv/nextjs v1.0.3

17 Jun 07:36

Choose a tag to compare

What's Changed

  • Server-only key guard now actually throws on client (was dead code checking key in {})
  • withCtroEnv() throws instead of process.exit(1) (webpack cleans up gracefully)
  • Raw values accessible on server via meta.get() bypassing the masking proxy

Full Changelog: nextjs-v1.0.2...nextjs-v1.0.3

@ctroenv/core v1.2.0

17 Jun 09:04

Choose a tag to compare

What's Changed

  • Schema composition: fixed extendSchema() export in public API, added guard against non-Node runtimes, added unit tests
  • Boolean validator: accepts yes/no/on/off (previously only true/false and 1/0)
  • Docs: comprehensive audit with 13 fixes across READMEs, skill files, and docs site
  • Removed dead internal exports

Full Changelog: core-v1.1.1...core-v1.2.0

@ctroenv/core v1.1.1

17 Jun 07:36

Choose a tag to compare

What's Changed

  • env.meta now always present in EnvResult (no more type lie when no secrets)
  • extendSchema() guards against non-Node runtimes
  • Boolean validator accepts yes/
    o/on/off
  • NO_COLOR=" disables colors per spec
  • Removed dead errCoerce and coercion_failed error code
  • Removed tagline from ormatErrors() output

Full Changelog: core-v1.1.0...core-v1.1.1