Skip to content

Commit

Permalink
Merge pull request #241 from shelfio/feature/move-lodash-version
Browse files Browse the repository at this point in the history
Replace lodash.template with lodash-es
  • Loading branch information
Rafler authored Dec 3, 2024
2 parents 5524322 + 97da7de commit d0222a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config = {
'^.+\\.(t|j)s$': '@swc/jest',
},
resolver: 'ts-jest-resolver',
transformIgnorePatterns: ['node_modules/(?!(lodash-es)/)'],
};

export default config;
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"prettier": "@shelf/prettier-config",
"dependencies": {
"entities": "5.0.0",
"lodash.defaults": "4.2.0",
"lodash.template": "4.5.0",
"lodash-es": "4.17.21",
"slug": "9.1.0"
},
"devDependencies": {
Expand All @@ -52,8 +51,7 @@
"@swc/core": "1.9.3",
"@swc/jest": "0.2.37",
"@types/jest": "29.5.14",
"@types/lodash.defaults": "4.2.9",
"@types/lodash.template": "4.5.3",
"@types/lodash-es": "4.17.12",
"@types/node": "20.8.9",
"@types/slug": "5.0.9",
"eslint": "8.57.1",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/anchorize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import template from 'lodash.template';
import {template} from 'lodash-es';
import type {Header, Settings} from '../types.js';
import {getSettings} from '../default-settings.js';
import {untag} from './untag.js';
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/toc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import template from 'lodash.template';
import {template} from 'lodash-es';
import type {Header, Settings} from '../types.js';
import {getSettings} from '../default-settings.js';

Expand Down

0 comments on commit d0222a4

Please sign in to comment.