Skip to content

Commit dcfce6b

Browse files
committed
refactor: use lodash-es instead of lodash
1 parent a8d754a commit dcfce6b

15 files changed

+17
-17
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint require-atomic-updates: off */
22

3-
import {defaultTo, castArray} from 'lodash';
3+
import {defaultTo, castArray} from 'lodash-es';
44

55
import verifyGitHub from './lib/verify.js';
66
import addChannelGitHub from './lib/add-channel.js';

lib/definitions/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {inspect} from 'node:util';
22

3-
import {isString} from 'lodash';
3+
import {isString} from 'lodash-es';
44

55
const HOMEPAGE = 'https://github.com/semantic-release/github#readme';
66

lib/fail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {template} from 'lodash';
1+
import {template} from 'lodash-es';
22
import debugFactory from 'debug';
33

44
import parseGithubUrl from './parse-github-url.js';

lib/get-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {memoize, get} from 'lodash';
1+
import {memoize, get} from 'lodash-es';
22
import {Octokit} from '@octokit/rest';
33
import pRetry, {AbortError} from 'p-retry';
44
import Bottleneck from 'bottleneck';

lib/glob-assets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {basename, resolve} from 'node:path';
22

3-
import {isPlainObject, castArray, uniqWith, uniq} from 'lodash';
3+
import {isPlainObject, castArray, uniqWith, uniq} from 'lodash-es';
44
import dirGlob from 'dir-glob';
55
import globby from 'globby';
66
import debugFactory from 'debug';

lib/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {resolve, basename, extname} from 'node:path';
22

33
import {stat, readFile} from 'fs-extra';
4-
import {isPlainObject, template} from 'lodash';
4+
import {isPlainObject, template} from 'lodash-es';
55
import {getType} from 'mime';
66
import debugFactory from 'debug';
77

lib/resolve-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isNil, castArray} from 'lodash';
1+
import {isNil, castArray} from 'lodash-es';
22

33
export default function resolveConfig(
44
{

lib/success.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isNil, uniqBy, template, flatten, isEmpty} from 'lodash';
1+
import {isNil, uniqBy, template, flatten, isEmpty} from 'lodash-es';
22
import pFilter from 'p-filter';
33
import AggregateError from 'aggregate-error';
44
import issueParser from 'issue-parser';

lib/verify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isString, isPlainObject, isNil, isArray, isNumber} from 'lodash';
1+
import {isString, isPlainObject, isNil, isArray, isNumber} from 'lodash-es';
22
import urlJoin from 'url-join';
33
import AggregateError from 'aggregate-error';
44

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)