unstale

npm / tempy

tempy

What changed in tempy 1 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

11 breaking1 security2 new APIs and options2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

tempy 313 changes

Breaking changes 9

  • Node.js 14 is now required to use tempy.

    3.0.0release notes

  • Use the named export rootTemporaryDirectory instead of tempy.root.

    3.0.0release notes

  • Use the named export temporaryDirectory instead of tempy.directory.

    3.0.0release notes

  • Use the named export temporaryDirectoryTask instead of tempy.directory.task.

    3.0.0release notes

  • Use the named export temporaryFile instead of tempy.file.

    3.0.0release notes

  • Use the named export temporaryFileTask instead of tempy.file.task.

    3.0.0release notes

  • Use the named export temporaryWrite instead of tempy.write.

    3.0.0release notes

  • Use the named export temporaryWriteSync instead of tempy.writeSync.

    3.0.0release notes

  • Use the named export temporaryWriteTask instead of tempy.write.task.

    3.0.0release notes

Security 1

  • Options are hardened to prevent path traversal when passed untrusted input; they are not meant to accept untrusted input.

    3.1.1release notes

New APIs and options 2

Fixes and other changes 1

  • Increases cleanup retry attempts to handle Windows file locking.

    3.2.0release notes

tempy 22 changes

Breaking changes 2

  • Node.js 12.20 is now required.

    2.0.0release notes

  • The package is now pure ESM, affecting how developers import and use it.

    2.0.0release notes

tempy 11 changes

Fixes and other changes 1

  • The .task methods now reflect return values from callbacks.

    1.0.0release notes