diff --git a/lib/jdl/converters/jdl-to-json/jdl-to-json-basic-entity-information-converter.spec.ts b/lib/jdl/converters/jdl-to-json/jdl-to-json-basic-entity-information-converter.spec.ts index 442c4837033a..70a035d31255 100644 --- a/lib/jdl/converters/jdl-to-json/jdl-to-json-basic-entity-information-converter.spec.ts +++ b/lib/jdl/converters/jdl-to-json/jdl-to-json-basic-entity-information-converter.spec.ts @@ -18,10 +18,10 @@ */ import { before, describe, it, expect as jestExpect } from 'esmocha'; -import chai, { expect } from 'chai'; +import { use as chaiUse, expect } from 'chai'; import sinonChai from 'sinon-chai'; -chai.use(sinonChai); +chaiUse(sinonChai); import { JDLEntity } from '../../core/models/index.js'; import { convert } from './jdl-to-json-basic-entity-converter.js'; diff --git a/lib/jdl/converters/jdl-to-json/jdl-to-json-option-converter.spec.ts b/lib/jdl/converters/jdl-to-json/jdl-to-json-option-converter.spec.ts index 1850e92be7ed..7e2fa97bab53 100644 --- a/lib/jdl/converters/jdl-to-json/jdl-to-json-option-converter.spec.ts +++ b/lib/jdl/converters/jdl-to-json/jdl-to-json-option-converter.spec.ts @@ -18,11 +18,11 @@ */ import { after, before, describe, it, expect as jestExpect } from 'esmocha'; -import chai, { expect } from 'chai'; +import { use as chaiUse, expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; -chai.use(sinonChai); +chaiUse(sinonChai); import JDLObject from '../../core/models/jdl-object.js'; import { JDLEntity } from '../../core/models/index.js'; diff --git a/lib/jdl/converters/jdl-to-json/jdl-with-applications-to-json-converter.spec.ts b/lib/jdl/converters/jdl-to-json/jdl-with-applications-to-json-converter.spec.ts index e395b8dbd47b..bd212fde9311 100644 --- a/lib/jdl/converters/jdl-to-json/jdl-with-applications-to-json-converter.spec.ts +++ b/lib/jdl/converters/jdl-to-json/jdl-with-applications-to-json-converter.spec.ts @@ -18,11 +18,11 @@ */ import { after, before, describe, it, expect as jestExpect } from 'esmocha'; -import chai, { expect } from 'chai'; +import { use as chaiUse, expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; -chai.use(sinonChai); +chaiUse(sinonChai); import { relationshipTypes } from '../../core/basic-types/index.js'; import { diff --git a/lib/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.spec.ts b/lib/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.spec.ts index 5220b5d6b55c..4a7808a8d81f 100644 --- a/lib/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.spec.ts +++ b/lib/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.spec.ts @@ -18,11 +18,11 @@ */ import { after, before, describe, it, expect as jestExpect } from 'esmocha'; -import chai, { expect } from 'chai'; +import { use as chaiUse, expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; -chai.use(sinonChai); +chaiUse(sinonChai); import { relationshipTypes } from '../../core/basic-types/index.js'; diff --git a/package-lock.json b/package-lock.json index 910fccf1e7b5..2ed3b26e380f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -70,11 +70,11 @@ "@actions/core": "1.11.1", "@eslint/core": "0.9.1", "@node-loaders/esbuild": "2.0.0", - "@types/chai": "4.3.16", + "@types/chai": "5.0.1", "@types/estree": "1.0.6", "@types/node": "20.11.25", - "@types/sinon-chai": "3.2.12", - "chai": "4.5.0", + "@types/sinon-chai": "4.0.0", + "chai": "5.1.2", "cpy-cli": "5.0.0", "ejs-lint": "2.0.1", "eslint-config-prettier": "9.1.0", @@ -87,7 +87,7 @@ "prettier2": "npm:prettier@2.8.8", "rimraf": "5.0.7", "sinon": "19.0.2", - "sinon-chai": "3.7.0", + "sinon-chai": "4.0.0", "yeoman-test": "10.0.1" }, "engines": { @@ -3200,9 +3200,19 @@ } }, "node_modules/@types/chai": { - "version": "4.3.16", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.16.tgz", - "integrity": "sha512-PatH4iOdyh3MyWtmHVFXLWCCIhUbopaltqddG9BzB+gMIzee2MJrvd+jouii9Z3wzQJruGWAm7WOMjgfG8hQlQ==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.0.1.tgz", + "integrity": "sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", "dev": true, "license": "MIT" }, @@ -3346,9 +3356,9 @@ } }, "node_modules/@types/sinon-chai": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-3.2.12.tgz", - "integrity": "sha512-9y0Gflk3b0+NhQZ/oxGtaAJDvRywCa5sIyaVnounqLvmf93yBF4EgIRspePtkMs3Tr844nCclYMlcCNmLCvjuQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-4.0.0.tgz", + "integrity": "sha512-Uar+qk3TmeFsUWCwtqRNqNUE7vf34+MCJiQJR5M2rd4nCbhtE8RgTiHwN/mVwbfCjhmO6DiOel/MgzHkRMJJFg==", "dev": true, "license": "MIT", "dependencies": { @@ -3908,13 +3918,13 @@ } }, "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", "dev": true, "license": "MIT", "engines": { - "node": "*" + "node": ">=12" } }, "node_modules/async": { @@ -4289,22 +4299,20 @@ } }, "node_modules/chai": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", - "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.2.tgz", + "integrity": "sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==", "dev": true, "license": "MIT", "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" }, "engines": { - "node": ">=4" + "node": ">=12" } }, "node_modules/chalk": { @@ -4326,16 +4334,13 @@ "license": "MIT" }, "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", "dev": true, "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.2" - }, "engines": { - "node": "*" + "node": ">= 16" } }, "node_modules/chevrotain": { @@ -4847,14 +4852,11 @@ } }, "node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", "dev": true, "license": "MIT", - "dependencies": { - "type-detect": "^4.0.0" - }, "engines": { "node": ">=6" } @@ -6194,16 +6196,6 @@ "url": "/~https://github.com/sponsors/sindresorhus" } }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", @@ -7809,14 +7801,11 @@ } }, "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.2.tgz", + "integrity": "sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==", "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.1" - } + "license": "MIT" }, "node_modules/lowercase-keys": { "version": "3.0.0", @@ -9674,13 +9663,13 @@ } }, "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", + "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", "dev": true, "license": "MIT", "engines": { - "node": "*" + "node": ">= 14.16" } }, "node_modules/peek-readable": { @@ -10580,13 +10569,13 @@ } }, "node_modules/sinon-chai": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-3.7.0.tgz", - "integrity": "sha512-mf5NURdUaSdnatJx3uhoBOrY9dtL19fiOtAdT1Azxg3+lNJFiuN0uzaU3xX1LeAfL17kHQhTAJgpsfhbMJMY2g==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-4.0.0.tgz", + "integrity": "sha512-cWqO7O2I4XfJDWyWElAQ9D/dtdh5Mo0RHndsfiiYyjWnlPzBJdIvjCVURO4EjyYaC3BjV+ISNXCfTXPXTEIEWA==", "dev": true, "license": "(BSD-2-Clause OR WTFPL)", "peerDependencies": { - "chai": "^4.0.0", + "chai": "^5.0.0", "sinon": ">=4.0.0" } }, diff --git a/package.json b/package.json index a216d3ca65f1..79ee5f5f918c 100644 --- a/package.json +++ b/package.json @@ -178,11 +178,11 @@ "@actions/core": "1.11.1", "@eslint/core": "0.9.1", "@node-loaders/esbuild": "2.0.0", - "@types/chai": "4.3.16", + "@types/chai": "5.0.1", "@types/estree": "1.0.6", "@types/node": "20.11.25", - "@types/sinon-chai": "3.2.12", - "chai": "4.5.0", + "@types/sinon-chai": "4.0.0", + "chai": "5.1.2", "cpy-cli": "5.0.0", "ejs-lint": "2.0.1", "eslint-config-prettier": "9.1.0", @@ -195,7 +195,7 @@ "prettier2": "npm:prettier@2.8.8", "rimraf": "5.0.7", "sinon": "19.0.2", - "sinon-chai": "3.7.0", + "sinon-chai": "4.0.0", "yeoman-test": "10.0.1" }, "peerDependencies": {