Remove/replace babel-cli

Description

babel-cli is no longer mainted, it hasn't been released since 2017: https://www.npmjs.com/package/babel-cli

babel-cli depends on chokidar 1.6.1 released 2016. Quote from https://www.npmjs.com/package/chokidar/v/1.6.1 :

This version has been deprecated

Author message:
Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

Using unmaintained dependencies puts FOLIO at risk that it ships with security vulnerabilities that are known but not fixed or that are not known.

 
Task:{{}}
Remove or replace babel-cli.{{}}

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor November 8, 2024 at 4:22 PM

Most of the tests are working now. The ones that don’t are those that send GraphQL queries to a running server. Something bizarre has happened with how Mocha and/or Chai expects callbacks to be handled, possibly to do with done functions. Of course, both of them have radically different APIs now from when we first started using them.

Mike Taylor November 7, 2024 at 3:20 PM

I now have mod-graphql working just fine under Node without Babel.

The bad news: the tests won’t run due to some confusion about import vs. require, and it’s hard to get to the bottom of what’s causing the problem due to all the inversion of control in the testing framework (Mocha). I’ll get there.

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Thor

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 30, 2021 at 11:02 PM
Updated November 14, 2024 at 11:14 AM
Resolved November 14, 2024 at 11:14 AM
TestRail: Cases
TestRail: Runs