Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 700 Bytes

LEGACY_NODE_VERSIONS.md

File metadata and controls

28 lines (18 loc) · 700 Bytes

Legacy Node Versions

From v3.x, simple-git will drop support for node.js version 10 or below.

To use in lower versions of node, ensure you are also including the necessary polyfills from core-js:

Example - JavaScript

require('core-js/stable/array/flat-map');
require('core-js/stable/object/from-entries');
require('core-js/stable/object/from-entries');

const simpleGit = require('simple-git');

Example - TypeScript

import 'core-js/stable/array/flat-map';
import 'core-js/stable/object/from-entries';
import 'core-js/stable/object/from-entries';

import simpleGit, { SimpleGit } from 'simple-git';

const git: SimpleGit = simpleGit();