feat(build): uplift Lerna + replace insecure shortid with nanoid + uplift Yeoman-related packages + ESM-ize generator-superset (#29419)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải
2024-07-17 06:35:37 +07:00
committed by GitHub
parent 028e9c9294
commit c30ca534a3
35 changed files with 12553 additions and 16800 deletions

View File

@@ -19,7 +19,7 @@
import { Component } from 'react';
import PropTypes from 'prop-types';
import { List } from 'src/components';
import shortid from 'shortid';
import { nanoid } from 'nanoid';
import { t, withTheme } from '@superset-ui/core';
import {
SortableContainer,
@@ -57,7 +57,7 @@ const defaultProps = {
description: null,
onChange: () => {},
placeholder: t('Empty collection'),
itemGenerator: () => ({ key: shortid.generate() }),
itemGenerator: () => ({ key: nanoid(11) }),
keyAccessor: o => o.key,
value: [],
addTooltip: t('Add an item'),