diff --git a/common/changes/@autorest/configuration/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@autorest/configuration/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..a2e6d613d1 --- /dev/null +++ b/common/changes/@autorest/configuration/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@autorest/configuration", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@autorest/configuration" +} diff --git a/common/changes/@autorest/core/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@autorest/core/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..60e4a3bc1b --- /dev/null +++ b/common/changes/@autorest/core/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@autorest/core", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@autorest/core" +} diff --git a/common/changes/@autorest/modelerfour/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@autorest/modelerfour/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..de42e78dad --- /dev/null +++ b/common/changes/@autorest/modelerfour/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@autorest/modelerfour", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@autorest/modelerfour" +} diff --git a/common/changes/@autorest/openapi-to-typespec/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@autorest/openapi-to-typespec/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..5f24e86f9a --- /dev/null +++ b/common/changes/@autorest/openapi-to-typespec/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@autorest/openapi-to-typespec", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@autorest/openapi-to-typespec" +} diff --git a/common/changes/@azure-tools/datastore/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@azure-tools/datastore/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..b601b81c94 --- /dev/null +++ b/common/changes/@azure-tools/datastore/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@azure-tools/datastore", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@azure-tools/datastore" +} diff --git a/common/changes/@azure-tools/deduplication/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@azure-tools/deduplication/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..d0796ec049 --- /dev/null +++ b/common/changes/@azure-tools/deduplication/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@azure-tools/deduplication", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@azure-tools/deduplication" +} diff --git a/common/changes/@azure-tools/yaml/upgrade-lodash_2026-04-08-23-50.json b/common/changes/@azure-tools/yaml/upgrade-lodash_2026-04-08-23-50.json new file mode 100644 index 0000000000..565a1ddfac --- /dev/null +++ b/common/changes/@azure-tools/yaml/upgrade-lodash_2026-04-08-23-50.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@azure-tools/yaml", + "comment": "Upgrade lodash to ^4.18.1 and @types/lodash to ^4.17.24", + "type": "patch" + } + ], + "packageName": "@azure-tools/yaml" +} diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 8d3c528b8f..aa8fae5746 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -185,8 +185,8 @@ importers: specifier: ^29.5.14 version: 29.5.14 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -242,8 +242,8 @@ importers: specifier: ^29.3.1 version: 29.7.0(@types/node@22.15.19)(ts-node@10.9.2) lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 mkdirp: specifier: ~3.0.1 version: 3.0.1 @@ -323,8 +323,8 @@ importers: specifier: ^29.5.14 version: 29.5.14 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -362,8 +362,8 @@ importers: specifier: ^29.3.1 version: 29.7.0(@types/node@22.15.19)(ts-node@10.9.2) lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 prettier: specifier: ~3.5.3 version: 3.5.3 @@ -413,8 +413,8 @@ importers: specifier: ~2.1.0 version: 2.1.0 lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 pluralize: specifier: ^8.0.0 version: 8.0.0 @@ -441,8 +441,8 @@ importers: specifier: ^9.0.13 version: 9.0.13 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -752,8 +752,8 @@ importers: specifier: ^0.31.2 version: 0.31.2 lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 untildify: specifier: ^4.0.0 version: 4.0.0 @@ -768,8 +768,8 @@ importers: specifier: ^29.5.14 version: 29.5.14 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -834,8 +834,8 @@ importers: specifier: ~10.3.0 version: 10.3.0 lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 source-map: specifier: ^0.8.0-beta.0 version: 0.8.0-beta.0 @@ -844,8 +844,8 @@ importers: specifier: ^29.5.14 version: 29.5.14 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -904,15 +904,15 @@ importers: specifier: ^6.1.1 version: 6.1.1 lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 devDependencies: '@types/jest': specifier: ^29.5.14 version: 29.5.14 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -1360,8 +1360,8 @@ importers: specifier: ~4.1.0 version: 4.1.0 lodash: - specifier: ~4.17.20 - version: 4.17.21 + specifier: ^4.18.1 + version: 4.18.1 yaml-ast-parser: specifier: 0.0.43 version: 0.0.43 @@ -1373,8 +1373,8 @@ importers: specifier: ~4.0.0 version: 4.0.9 '@types/lodash': - specifier: ~4.17.16 - version: 4.17.16 + specifier: ^4.17.24 + version: 4.17.24 '@types/node': specifier: ~22.15.19 version: 22.15.19 @@ -2985,8 +2985,8 @@ packages: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true - /@types/lodash@4.17.16: - resolution: {integrity: sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==} + /@types/lodash@4.17.24: + resolution: {integrity: sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==} dev: true /@types/node-fetch@2.6.12: @@ -6319,8 +6319,8 @@ packages: /lodash.sortby@4.7.0: resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} - /lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + /lodash@4.18.1: + resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} /lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} diff --git a/packages/extensions/core/package.json b/packages/extensions/core/package.json index 9fa3cd0c7f..77ff572a98 100644 --- a/packages/extensions/core/package.json +++ b/packages/extensions/core/package.json @@ -61,7 +61,7 @@ "@azure-tools/yaml": "workspace:~1.2.1", "@types/commonmark": "^0.27.0", "@types/jest": "^29.5.14", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@types/webpack": "~5.28.5", "@typescript-eslint/eslint-plugin": "^8.32.1", @@ -80,7 +80,7 @@ "eslint-plugin-import": "~2.31.0", "eslint": "^8.28.0", "jest": "^29.3.1", - "lodash": "~4.17.20", + "lodash": "^4.18.1", "mkdirp": "~3.0.1", "prettier": "~3.5.3", "rimraf": "^6.0.1", diff --git a/packages/extensions/modelerfour/package.json b/packages/extensions/modelerfour/package.json index 16280ebc9e..dc41c10170 100644 --- a/packages/extensions/modelerfour/package.json +++ b/packages/extensions/modelerfour/package.json @@ -49,7 +49,7 @@ "@azure-tools/tasks": "~3.0.0", "@azure-tools/uri": "~3.1.1", "@types/jest": "^29.5.14", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@types/webpack": "~5.28.5", "@typescript-eslint/eslint-plugin": "^8.32.1", @@ -62,7 +62,7 @@ "eslint-plugin-import": "~2.31.0", "eslint": "^8.28.0", "jest": "^29.3.1", - "lodash": "~4.17.20", + "lodash": "^4.18.1", "prettier": "~3.5.3", "recursive-diff": "~1.0.6", "rimraf": "^6.0.1", diff --git a/packages/extensions/openapi-to-typespec/package.json b/packages/extensions/openapi-to-typespec/package.json index c0bfb87d92..f0e620725e 100644 --- a/packages/extensions/openapi-to-typespec/package.json +++ b/packages/extensions/openapi-to-typespec/package.json @@ -45,7 +45,7 @@ "@azure-tools/openapi": "workspace:~3.6.1", "@typespec/prettier-plugin-typespec": "^1.5.0", "change-case-all": "~2.1.0", - "lodash": "~4.17.20", + "lodash": "^4.18.1", "pluralize": "^8.0.0", "prettier": "~3.5.3" }, @@ -56,7 +56,7 @@ "@azure-tools/typespec-azure-rulesets": "^0.61.0", "@azure-tools/typespec-client-generator-core": "^0.61.0", "@types/fs-extra": "^9.0.13", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@types/pluralize": "^0.0.30", "@types/prettier": "^2.7.0", diff --git a/packages/libs/configuration/package.json b/packages/libs/configuration/package.json index f0b05397a7..a46d0d3d5c 100644 --- a/packages/libs/configuration/package.json +++ b/packages/libs/configuration/package.json @@ -30,7 +30,7 @@ "@autorest/test-utils": "workspace:~0.6.1", "@types/commonmark": "^0.27.0", "@types/jest": "^29.5.14", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", @@ -54,7 +54,7 @@ "@azure-tools/json": "workspace:~1.3.1", "@azure-tools/yaml": "workspace:~1.2.1", "commonmark": "^0.31.2", - "lodash": "~4.17.20", + "lodash": "^4.18.1", "untildify": "^4.0.0" } } diff --git a/packages/libs/datastore/package.json b/packages/libs/datastore/package.json index c177362e87..b66d18533a 100644 --- a/packages/libs/datastore/package.json +++ b/packages/libs/datastore/package.json @@ -36,7 +36,7 @@ "readme": "https://github.com/Azure/autorest/tree/main/packages/libs/datastore/readme.md", "devDependencies": { "@types/jest": "^29.5.14", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", @@ -58,7 +58,7 @@ "@azure-tools/uri": "~3.1.1", "@azure-tools/yaml": "workspace:~1.2.1", "@azure/logger": "^1.2.0", - "lodash": "~4.17.20", + "lodash": "^4.18.1", "jsonpath-plus": "~10.3.0", "source-map": "^0.8.0-beta.0" } diff --git a/packages/libs/deduplication/package.json b/packages/libs/deduplication/package.json index d22cfe52a3..759715d0c0 100644 --- a/packages/libs/deduplication/package.json +++ b/packages/libs/deduplication/package.json @@ -36,7 +36,7 @@ "readme": "https://github.com/Azure/autorest/tree/main/packages/libs/deduplication/readme.md", "devDependencies": { "@types/jest": "^29.5.14", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", @@ -56,6 +56,6 @@ "@azure-tools/object-comparison": "~3.0.0", "@azure-tools/tasks": "~3.0.0", "compare-versions": "^6.1.1", - "lodash": "~4.17.20" + "lodash": "^4.18.1" } } diff --git a/packages/libs/yaml/package.json b/packages/libs/yaml/package.json index 46b5c74ec5..f9f6c5a3f6 100644 --- a/packages/libs/yaml/package.json +++ b/packages/libs/yaml/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/js-yaml": "~4.0.0", - "@types/lodash": "~4.17.16", + "@types/lodash": "^4.17.24", "@types/node": "~22.15.19", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", @@ -45,7 +45,7 @@ }, "dependencies": { "js-yaml": "~4.1.0", - "lodash": "~4.17.20", + "lodash": "^4.18.1", "yaml-ast-parser": "0.0.43" } }