Skip to content

[node24] DeprecationWarning: fs.F_OK is deprecated, use fs.constants.F_OK instead #240

@burtek

Description

@burtek

Describe the bug
Deprecation warning in node 24

Current behavior

✔ bumping version in package.json from 5.9.5 to 5.9.6
(node:1127247) [DEP0176] DeprecationWarning: fs.F_OK is deprecated, use fs.constants.F_OK instead
    at createIfMissing (/home/bartosz/projects/eslint-config/node_modules/commit-and-tag-version/lib/lifecycles/changelog.js:105:35)
    at /home/bartosz/projects/eslint-config/node_modules/commit-and-tag-version/lib/lifecycles/changelog.js:45:5
    at new Promise (<anonymous>)
    at outputChangelog (/home/bartosz/projects/eslint-config/node_modules/commit-and-tag-version/lib/lifecycles/changelog.js:44:10)
    at Changelog (/home/bartosz/projects/eslint-config/node_modules/commit-and-tag-version/lib/lifecycles/changelog.js:14:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async standardVersion (/home/bartosz/projects/eslint-config/node_modules/commit-and-tag-version/index.js:88:5)

Expected behavior
No warning

Environment

  • commit-and-tag-version version(s): 12.5.0
  • Node/npm version: node 24
  • OS: LMDE 6

Possible Solution
Change code according to the warning

Additional context
nodejs/node#49686

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions