Socket
Socket
Sign inDemoInstall

std-env

Package Overview
Dependencies
1
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

3.7.0

Diff

Changelog

Source

v3.7.0

compare changes

🚀 Enhancements

  • provider: Add railway support (#106)

🩹 Fixes

  • Check bun runtime before node (#107)

💅 Refactors

  • Clarify runtimes and isNode behavior (#108)

🏡 Chore

❤️ Contributors

pi0
published 3.6.0 •

Changelog

Source

v3.6.0

compare changes

🚀 Enhancements

  • Add zeabur provider (#93)
  • providers: Add codesphere detection (#95)

🩹 Fixes

  • isColorSupported: Inverted condition for TERM=dumb (#97)

🌊 Types

  • Type runtime export (#92)

🏡 Chore

❤️ Contributors

pi0
published 3.5.0 •

Changelog

Source

v3.5.0

compare changes

🚀 Enhancements

  • Add aws_amplify provider (#91)

🏡 Chore

❤️ Contributors

pi0
published 3.4.3 •

Changelog

Source

v3.4.3

compare changes

🩹 Fixes

  • Conditional check for process.versions?.bun (#75)

🏡 Chore

  • Update build dependencies (cd6cbf7)

❤️ Contributors

pi0
published 3.4.2 •

Changelog

Source

v3.4.2

compare changes

📦 Build

  • es6 compatibiliy for commonjs bundle (#74)

❤️ Contributors

pi0
published 3.4.1 •

Changelog

Source

v3.4.1

compare changes

🩹 Fixes

  • Access process from globalThis (#73)

❤️ Contributors

  • Patrick Pircher
pi0
published 3.4.0 •

Changelog

Source

v3.4.0

compare changes

🚀 Enhancements

  • Universal env shim (#61)
  • providers: Detect VERCEL and VERCEL_ENV (#58)
  • isColorSupported flag (b80677b)
  • Expose providerInfo (3c547d8)
  • Platform agnostic process (48b4fc0)
  • process: Support process.versions (1ad71f6)
  • env: Support import.meta.env and Deno.env (ceb04d5)
  • Export nodeVersion and nodeMajorVersion (#60)
  • Detect stackblitz using process.versions.webcontainer (#63)
  • Detect the underlying runtime (#66)

🔥 Performance

  • Reduce dependency on process proxy for flags (0d7b84f)
  • Decouple nodeENV from env proxy (89c0411)

🩹 Fixes

  • Add default fallback for platform flag (d71ce85)
  • Update bun runtime detection (#67)
  • Use globalThis.Bun for check (ca852ac)

💅 Refactors

  • Split flags (584e9f4)
  • Improve process and env types (581c674)
  • Cleanup provider detection (3091a5b)
  • provider: Remove dependency from process shim (c1c5a68)
  • Decouple flags from process shim (6b087e2)
  • Remove _process export (ce21499)

📦 Build

  • Minify dist by default (4e67307)

🏡 Chore

  • Update dev dependencies (c98a7ab)
  • Add autofix ci (d817123)
  • Fix prettierrc (b720e2b)
  • Improve docs (1d4ef96)
  • Add typecheck script (0694e19)
  • Fix internal types and expose EnvObject (058abc6)
  • Update title (25ebcfb)
  • Create playground (6d92124)
  • Add bun playground (0a576f2)
  • Update docs (19a7651)
  • Fix ci (4b0ae64)
  • Update unbuild to v2 (23cb666)
  • Update node playground to jiti (12efa68)
  • Split global types (ec4c8f7)

🎨 Styles

  • Format with prettier v3 (d198921)

❤️ Contributors

pi0
published 3.3.3 •

Changelog

Source

v3.3.3

compare changes

🩹 Fixes

  • pkg: Add types field to the exports (#51)
  • Support static process.env.NODE_ENV (#45)

🏡 Chore

  • Fix coverage test (92152a1)
  • Git ignore coverage dir (cd52a9e)
  • Lint (3832bcd)
  • Update dev dependencies (acd471d)

✅ Tests

  • Add defaults test (17009d9)
  • Expect any provider (a7d8c43)

❤️ Contributors

pi0
published 3.3.2 •

Changelog

Source

v3.3.2

🩹 Fixes

  • Detect isTest from NODE_ENV as well (#39)

🏡 Chore

  • Update dev dependencies (cdb65ab)
  • Use changelogen for release (62b8d85)

🎨 Styles

  • Format with prettier (0469d74)

❤️ Contributors

pi0
published 3.3.1 •

Changelog

Source

3.3.1 (2022-11-14)

234Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc