Skip to content

Commit 3f635fd

Browse files
committed
fix: backport lodash upgrades to v6.1.1
1 parent e440a28 commit 3f635fd

File tree

5 files changed

+16
-85
lines changed

5 files changed

+16
-85
lines changed

package-lock.json

+9-70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/package.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@
5555
"js-yaml": "^4.1.0",
5656
"json-schema-to-ts": "^2.6.2-beta.0",
5757
"json-schema-traverse": "^1.0.0",
58-
"lodash.camelcase": "^4.3.0",
59-
"lodash.deburr": "^4.1.0",
60-
"lodash.merge": "^4.6.2",
61-
"lodash.setwith": "^4.3.2",
62-
"lodash.startcase": "^4.4.0",
58+
"lodash": "^4.17.21",
6359
"make-dir": "^3.1.0",
6460
"node-abort-controller": "^3.1.1",
6561
"oas": "^20.4.0",
@@ -76,11 +72,7 @@
7672
"@types/caseless": "^0.12.2",
7773
"@types/find-cache-dir": "^3.2.1",
7874
"@types/js-yaml": "^4.0.5",
79-
"@types/lodash.camelcase": "^4.3.7",
80-
"@types/lodash.deburr": "^4.1.7",
81-
"@types/lodash.merge": "^4.6.7",
82-
"@types/lodash.setwith": "^4.3.7",
83-
"@types/lodash.startcase": "^4.4.7",
75+
"@types/lodash": "^4.17.6",
8476
"@types/prettier": "^2.7.2",
8577
"@types/prompts": "^2.4.2",
8678
"@types/semver": "^7.3.13",

packages/api/src/cli/codegen/languages/typescript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import fs from 'fs';
1616
import path from 'path';
1717

1818
import execa from 'execa';
19-
import setWith from 'lodash.setwith';
19+
import setWith from 'lodash/setWith';
2020
import semver from 'semver';
2121
import { IndentationText, Project, QuoteKind, ScriptTarget, VariableDeclarationKind } from 'ts-morph';
2222

packages/api/src/cli/codegen/languages/typescript/util.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import camelCase from 'lodash.camelcase';
2-
import deburr from 'lodash.deburr';
3-
import startCase from 'lodash.startcase';
1+
import camelCase from 'lodash/camelCase';
2+
import deburr from 'lodash/deburr';
3+
import startCase from 'lodash/startCase';
44

55
/**
66
* This is a mix of reserved JS words and keywords in TypeScript that might be reserved or

packages/api/src/core/prepareParams.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import caseless from 'caseless';
1010
import DatauriParser from 'datauri/parser';
1111
import datauri from 'datauri/sync';
1212
import getStream from 'get-stream';
13-
import lodashMerge from 'lodash.merge';
13+
import lodashMerge from 'lodash/merge';
1414
import removeUndefinedObjects from 'remove-undefined-objects';
1515

1616
import getJSONSchemaDefaults from './getJSONSchemaDefaults';

0 commit comments

Comments
 (0)