Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jiti

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jiti - npm Package Versions

13
10

2.1.2

Diff

Changelog

Source

v2.1.2

compare changes

🌊 Types

  • Use local NodeModule type (718bea2)

❤️ Contributors

pi0
published 2.1.1 •

Changelog

Source

v2.1.1

compare changes

🩹 Fixes

  • types: Add standalone types for node require (#316)

🏡 Chore

✅ Tests

  • Add dependency tests (1d86ca3)
  • Ignore deps for node native register (e7ffe04)

❤️ Contributors

pi0
published 2.1.0 •

Changelog

Source

v2.1.0

compare changes

🚀 Enhancements

  • Enable interopDefault by default (#310)
  • Support import.meta.dirname and import.meta.filename (#308)

🔥 Performance

  • cli: Enable node 22 compile cache (#312)

🩹 Fixes

  • Make TransformOptions type strict to allow auto-complete (#305)
  • Properly handle tsx (#311)

💅 Refactors

  • Deprecate commonjs api (#313)

📦 Build

  • Fix /register and /native subpath types for Node10 module resolution (#304)

🏡 Chore

❤️ Contributors

pi0
published 2.0.0 •

Changelog

Source

v2.0.0

compare changes

🚀 Enhancements

  • Handle data: imports (non-native only) (#299)
  • Support jsx (#200)
  • Eval esm modules with fallback loader (#300)
  • Support import.meta.resolve (#301)

🩹 Fixes

  • Handle global url instance mismatch (#298)
  • Optional access to Reflect.metadata (#165)
  • Add only paths option to native require.resolve (50e4280)

💅 Refactors

  • Make jiti.esmResolve consistent with import.meta.resolve (#303)

📖 Documentation

  • Add example for inline JITI_ALIAS (a53715a)

🏡 Chore

❤️ Contributors

pi0
published 2.0.0-rc.1 •

Changelog

Source

v2.0.0-rc.1

compare changes

🚀 Enhancements

  • jiti/native export (#289)
  • Improve jiti/native compatibility with node and deno (#294)

💅 Refactors

  • Improve internal babel types (#271)
  • Always use native impl for jiti/native (#293)
  • Rename experimentalBun to tryNative (#295)

📦 Build

  • Fix type resolution issue (#269)

🏡 Chore

❤️ Contributors

pi0
published 2.0.0-beta.3 •

Changelog

Source

v2.0.0-beta.3

compare changes

🚀 Enhancements

  • Allow try and other resolve options for import/esmResolve (#268)
  • Allow set interopDefault using JITI_INTEROP_DEFAULT env (1c080a1)

🔥 Performance

🩹 Fixes

  • cache: Prefer node_modules/.cache if exists (832f206)
  • Use native esm import for built-ins (54d6b4a)
  • Respect interopDefault in babel transform (485b4e9)
  • Split cache based on interopDefault (f820a15)
  • Remove ext from cache path (50b1b3a)
  • Proprly resolve .mts/.cts with .mjs/.cjs imports (a5aefad)
  • resolve: Make sure parentURL is a dir (d224e84)

💅 Refactors

  • Improve debug logging (463a8a3)
  • Rename importResolve to esmResolve` (aac88e6)
  • Improve env handling (ee4489d)
  • Use imporr/require in debug logs (934a5bb)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 2.0.0-beta.2 •

Changelog

Source

v2.0.0-beta.2

compare changes

🚀 Enhancements

  • Add experimental esm loader support (#266)

🔥 Performance

  • Reduce overhead of sub jiti instances (#265)

🩹 Fixes

  • Resolve with esm conditions in async context (#264)

💅 Refactors

  • Use more clear fsCache and moduleCache options (#263)
  • Use esm imports for babel plugins (22e259f)

📦 Build

🏡 Chore

🤖 CI

  • Enable loader test (#267)

❤️ Contributors

pi0
published 2.0.0-beta.1 •

Changelog

Source

v2.0.0-beta.1

compare changes

🚀 Enhancements

  • Basic top-level await support (#239)
  • Native esm support (#259)

🩹 Fixes

  • Use distinct cache paths for async mode (6e8ec7a)

💅 Refactors

  • Split option normalization (#172)
  • Split logic (#240)
  • Remove legacy node syntax polyfills (#260)
  • 3rd arg to createJiti is optional (60a23e3)
  • Upgrade cache version to 8 (99224ae)

📖 Documentation

  • Update bundlephobia link (#179)

🏡 Chore

🤖 CI

❤️ Contributors

pi0
published 1.21.6 •

pi0
published 1.21.5 •

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc