Skip to content

rmdir→rm fix (#8) is merged but not on npm; publish job failed #11

Description

@isimisi

The fs.rmdir → fs.rm change in #8 fixes the crash on newer Node:

The property 'options.recursive' is no longer supported. Received true

It's in main, but it never made it to npm. The publish workflow failed: https://github.com/divizend/ghostscript-node/actions/runs/21139190379/job/60788599535

So latest on npm is still 1.5.0 from 2023, and that tarball's dist/index.js still has the old fs.rmdir(outDir, { recursive: true }). Anyone installing from npm keeps hitting the crash even though the source is fixed.

On Node 26 this throws instead of just warning, so every renderPDFPagesToPNG call fails regardless of the PDF, since the failing line is temp-dir cleanup after the render.

Could the release be re-run or a new version published?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions