diff --git a/package.json b/package.json index 0bb3911e7..0e5acb213 100644 --- a/package.json +++ b/package.json @@ -44,12 +44,12 @@ }, "homepage": "https://github.com/tsedio/tsed-cli", "dependencies": { - "@tsed/core": ">=8.0.0-beta.3", - "@tsed/di": ">=8.0.0-beta.3", + "@tsed/core": ">=8.0.0-beta.5", + "@tsed/di": ">=8.0.0-beta.5", "@tsed/logger": ">=6.2.1", - "@tsed/normalize-path": ">=8.0.0-beta.3", - "@tsed/openspec": ">=8.0.0-beta.3", - "@tsed/schema": ">=8.0.0-beta.3", + "@tsed/normalize-path": ">=8.0.0-beta.5", + "@tsed/openspec": ">=8.0.0-beta.5", + "@tsed/schema": ">=8.0.0-beta.5", "axios": "^1.7.7", "chalk": "^5.3.0", "commander": "^12.1.0", diff --git a/packages/cli-core/package.json b/packages/cli-core/package.json index dc3962cd9..e8aec41d7 100644 --- a/packages/cli-core/package.json +++ b/packages/cli-core/package.json @@ -83,7 +83,7 @@ "vitest": "2.1.1" }, "peerDependencies": { - "@tsed/core": ">=8.0.0-beta.3", - "@tsed/di": ">=8.0.0-beta.3" + "@tsed/core": ">=8.0.0-beta.5", + "@tsed/di": ">=8.0.0-beta.5" } } diff --git a/packages/cli-plugin-jest/templates/generate/generic.integration.hbs b/packages/cli-plugin-jest/templates/generate/generic.integration.hbs index 6168931f0..6b386b113 100644 --- a/packages/cli-plugin-jest/templates/generate/generic.integration.hbs +++ b/packages/cli-plugin-jest/templates/generate/generic.integration.hbs @@ -1,4 +1,4 @@ -import { PlatformTest } from "@tsed/platform-http"; +import { PlatformTest } from "@tsed/platform-http/testing"; import SuperTest from "supertest"; import { {{symbolName}} } from "./{{symbolPathBasename}}.js"; import { Server } from "{{relativeSrcPath}}/Server.js"; diff --git a/packages/cli-plugin-jest/templates/generate/server.integration.hbs b/packages/cli-plugin-jest/templates/generate/server.integration.hbs index cd49f5642..134f57f46 100644 --- a/packages/cli-plugin-jest/templates/generate/server.integration.hbs +++ b/packages/cli-plugin-jest/templates/generate/server.integration.hbs @@ -1,4 +1,4 @@ -import { PlatformTest } from "@tsed/platform-http"; +import { PlatformTest } from "@tsed/platform-http/testing"; import SuperTest from "supertest"; import { {{symbolName}} } from "./{{symbolPathBasename}}.js"; diff --git a/packages/cli-plugin-jest/test/integrations/generate/generate.controller.integration.spec.ts b/packages/cli-plugin-jest/test/integrations/generate/generate.controller.integration.spec.ts index fce0c9709..62e5a0693 100644 --- a/packages/cli-plugin-jest/test/integrations/generate/generate.controller.integration.spec.ts +++ b/packages/cli-plugin-jest/test/integrations/generate/generate.controller.integration.spec.ts @@ -37,7 +37,7 @@ describe("Generate Controller", () => { ]); const result = FakeCliFs.entries.get("project-name/src/controllers/TestController.integration.spec.ts"); - expect(result).toContain('import { PlatformTest } from "@tsed/platform-http";'); + expect(result).toContain('import { PlatformTest } from "@tsed/platform-http/testing";'); expect(result).toContain('import SuperTest from "supertest";'); expect(result).toContain('import { Server } from "../Server.js";'); expect(result).toContain('import { TestController } from "./TestController.js";'); @@ -67,7 +67,7 @@ describe("Generate Controller", () => { ]); const result = FakeCliFs.entries.get("project-name/src/controllers/users/UserController.integration.spec.ts"); - expect(result).toContain('import { PlatformTest } from "@tsed/platform-http";'); + expect(result).toContain('import { PlatformTest } from "@tsed/platform-http/testing";'); expect(result).toContain('import SuperTest from "supertest";'); expect(result).toContain('import { Server } from "../../Server.js";'); expect(result).toContain('import { UserController } from "./UserController.js";'); diff --git a/packages/cli-plugin-vitest/templates/generate/generic.integration.hbs b/packages/cli-plugin-vitest/templates/generate/generic.integration.hbs index 6f7e9720e..6b3f4f6a4 100644 --- a/packages/cli-plugin-vitest/templates/generate/generic.integration.hbs +++ b/packages/cli-plugin-vitest/templates/generate/generic.integration.hbs @@ -1,5 +1,5 @@ import { expect, describe, it, afterAll, beforeAll } from "vitest"; -import { PlatformTest } from "@tsed/platform-http"; +import { PlatformTest } from "@tsed/platform-http/testing"; import SuperTest from "supertest"; import { {{symbolName}} } from "./{{symbolPathBasename}}.js"; import { Server } from "{{relativeSrcPath}}/Server.js"; diff --git a/packages/cli-plugin-vitest/templates/generate/generic.spec.hbs b/packages/cli-plugin-vitest/templates/generate/generic.spec.hbs index 527e10fd1..7a6391925 100644 --- a/packages/cli-plugin-vitest/templates/generate/generic.spec.hbs +++ b/packages/cli-plugin-vitest/templates/generate/generic.spec.hbs @@ -1,5 +1,5 @@ import { expect, describe, it, beforeEach, afterEach } from "vitest"; -import { PlatformTest } from "@tsed/platform-http"; +import { PlatformTest } from "@tsed/platform-http/testing"; import { {{symbolName}} } from "./{{symbolPathBasename}}.js"; describe("{{symbolName}}", () => { diff --git a/packages/cli-plugin-vitest/test/integrations/generate/generate.controller.integration.spec.ts b/packages/cli-plugin-vitest/test/integrations/generate/generate.controller.integration.spec.ts index fce0c9709..62e5a0693 100644 --- a/packages/cli-plugin-vitest/test/integrations/generate/generate.controller.integration.spec.ts +++ b/packages/cli-plugin-vitest/test/integrations/generate/generate.controller.integration.spec.ts @@ -37,7 +37,7 @@ describe("Generate Controller", () => { ]); const result = FakeCliFs.entries.get("project-name/src/controllers/TestController.integration.spec.ts"); - expect(result).toContain('import { PlatformTest } from "@tsed/platform-http";'); + expect(result).toContain('import { PlatformTest } from "@tsed/platform-http/testing";'); expect(result).toContain('import SuperTest from "supertest";'); expect(result).toContain('import { Server } from "../Server.js";'); expect(result).toContain('import { TestController } from "./TestController.js";'); @@ -67,7 +67,7 @@ describe("Generate Controller", () => { ]); const result = FakeCliFs.entries.get("project-name/src/controllers/users/UserController.integration.spec.ts"); - expect(result).toContain('import { PlatformTest } from "@tsed/platform-http";'); + expect(result).toContain('import { PlatformTest } from "@tsed/platform-http/testing";'); expect(result).toContain('import SuperTest from "supertest";'); expect(result).toContain('import { Server } from "../../Server.js";'); expect(result).toContain('import { UserController } from "./UserController.js";'); diff --git a/packages/cli/package.json b/packages/cli/package.json index 4a7eab475..97989d0e3 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -67,11 +67,11 @@ "@swc/core": "1.7.26", "@swc/helpers": "^0.5.13", "@tsed/cli-core": "workspace:*", - "@tsed/core": ">=8.0.0-beta.3", - "@tsed/di": ">=8.0.0-beta.3", + "@tsed/core": ">=8.0.0-beta.5", + "@tsed/di": ">=8.0.0-beta.5", "@tsed/logger": ">=6.2.1", - "@tsed/openspec": ">=8.0.0-beta.3", - "@tsed/schema": ">=8.0.0-beta.3", + "@tsed/openspec": ">=8.0.0-beta.5", + "@tsed/schema": ">=8.0.0-beta.5", "chalk": "^5.3.0", "change-case": "^5.4.4", "esm-module-alias": "^2.2.1", @@ -89,10 +89,10 @@ }, "peerDependencies": { "@tsed/cli-core": "workspace:*", - "@tsed/core": ">=8.0.0-beta.1", - "@tsed/di": ">=8.0.0-beta.1", + "@tsed/core": ">=8.0.0-beta.5", + "@tsed/di": ">=8.0.0-beta.5", "@tsed/logger": ">=6.2.1", - "@tsed/openspec": ">=8.0.0-beta.1", - "@tsed/schema": ">=8.0.0-beta.1" + "@tsed/openspec": ">=8.0.0-beta.5", + "@tsed/schema": ">=8.0.0-beta.5" } } diff --git a/yarn.lock b/yarn.lock index 3b4569da1..c9bac4fcd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2349,8 +2349,8 @@ __metadata: uuid: "npm:^10.0.0" vitest: "npm:2.1.1" peerDependencies: - "@tsed/core": ">=8.0.0-beta.3" - "@tsed/di": ">=8.0.0-beta.3" + "@tsed/core": ">=8.0.0-beta.5" + "@tsed/di": ">=8.0.0-beta.5" languageName: unknown linkType: soft @@ -2548,14 +2548,14 @@ __metadata: "@commitlint/config-conventional": "npm:19.5.0" "@swc/core": "npm:1.7.26" "@swc/helpers": "npm:0.5.13" - "@tsed/core": "npm:>=8.0.0-beta.3" - "@tsed/di": "npm:>=8.0.0-beta.3" + "@tsed/core": "npm:>=8.0.0-beta.5" + "@tsed/di": "npm:>=8.0.0-beta.5" "@tsed/logger": "npm:>=6.2.1" "@tsed/markdown-it-symbols": "npm:3.20.8" "@tsed/monorepo-utils": "npm:2.3.5" - "@tsed/normalize-path": "npm:>=8.0.0-beta.3" - "@tsed/openspec": "npm:>=8.0.0-beta.3" - "@tsed/schema": "npm:>=8.0.0-beta.3" + "@tsed/normalize-path": "npm:>=8.0.0-beta.5" + "@tsed/openspec": "npm:>=8.0.0-beta.5" + "@tsed/schema": "npm:>=8.0.0-beta.5" "@tsed/ts-doc": "npm:^4.1.0" "@types/node": "npm:22.7.4" "@typescript-eslint/eslint-plugin": "npm:8.7.0" @@ -2626,11 +2626,11 @@ __metadata: "@swc/core": "npm:1.7.26" "@swc/helpers": "npm:^0.5.13" "@tsed/cli-core": "workspace:*" - "@tsed/core": "npm:>=8.0.0-beta.3" - "@tsed/di": "npm:>=8.0.0-beta.3" + "@tsed/core": "npm:>=8.0.0-beta.5" + "@tsed/di": "npm:>=8.0.0-beta.5" "@tsed/logger": "npm:>=6.2.1" - "@tsed/openspec": "npm:>=8.0.0-beta.3" - "@tsed/schema": "npm:>=8.0.0-beta.3" + "@tsed/openspec": "npm:>=8.0.0-beta.5" + "@tsed/schema": "npm:>=8.0.0-beta.5" "@tsed/typescript": "workspace:*" "@types/change-case": "npm:^2.3.1" chalk: "npm:^5.3.0" @@ -2645,36 +2645,36 @@ __metadata: vitest: "npm:2.1.1" peerDependencies: "@tsed/cli-core": "workspace:*" - "@tsed/core": ">=8.0.0-beta.1" - "@tsed/di": ">=8.0.0-beta.1" + "@tsed/core": ">=8.0.0-beta.5" + "@tsed/di": ">=8.0.0-beta.5" "@tsed/logger": ">=6.2.1" - "@tsed/openspec": ">=8.0.0-beta.1" - "@tsed/schema": ">=8.0.0-beta.1" + "@tsed/openspec": ">=8.0.0-beta.5" + "@tsed/schema": ">=8.0.0-beta.5" bin: tsed: lib/esm/bin/tsed.js languageName: unknown linkType: soft -"@tsed/core@npm:>=8.0.0-beta.3": - version: 8.0.0-beta.4 - resolution: "@tsed/core@npm:8.0.0-beta.4" +"@tsed/core@npm:>=8.0.0-beta.5": + version: 8.0.0-beta.5 + resolution: "@tsed/core@npm:8.0.0-beta.5" dependencies: reflect-metadata: "npm:^0.2.2" tslib: "npm:2.7.0" - checksum: 10/dcafd7089056bd3dafe795ef603401644c1c43527127bc91d875f3a297d59fd8e5fca1aca234d457ebe60011385b46bef2c5930c94b0e681140f659b46887366 + checksum: 10/2f11058e3e3e603f0027f4070793732f4b95919109649cb8ca322af24853194c53d852b16bcbfacf478d9efb65b4d0f74bc33fad5592beb23860569c959e0b9c languageName: node linkType: hard -"@tsed/di@npm:>=8.0.0-beta.3": - version: 8.0.0-beta.4 - resolution: "@tsed/di@npm:8.0.0-beta.4" +"@tsed/di@npm:>=8.0.0-beta.5": + version: 8.0.0-beta.5 + resolution: "@tsed/di@npm:8.0.0-beta.5" dependencies: tslib: "npm:2.7.0" uuid: "npm:^10.0.0" peerDependencies: - "@tsed/core": 8.0.0-beta.4 + "@tsed/core": 8.0.0-beta.5 "@tsed/logger": ">=6.7.5" - "@tsed/schema": 8.0.0-beta.4 + "@tsed/schema": 8.0.0-beta.5 peerDependenciesMeta: "@tsed/core": optional: false @@ -2682,7 +2682,7 @@ __metadata: optional: false "@tsed/schema": optional: false - checksum: 10/03564b791e144090a80c94383d5d664339557d338ba90eff9ea6663f127279c29ac00b6731b3554d2faa67bc7cc14553c588029a1f34cfdfd3352f19c3d29cd1 + checksum: 10/e08dffe91a118e5f01dffbaa942657164d6ccf5b1a36555a15705fe0a73f91c945d6e067919f4167c05afeaf7d6e8dcc8d8173075dc6ad8e3325a5eea5b891ae languageName: node linkType: hard @@ -2748,28 +2748,28 @@ __metadata: languageName: node linkType: hard -"@tsed/normalize-path@npm:>=8.0.0-beta.3": - version: 8.0.0-beta.4 - resolution: "@tsed/normalize-path@npm:8.0.0-beta.4" +"@tsed/normalize-path@npm:>=8.0.0-beta.5": + version: 8.0.0-beta.5 + resolution: "@tsed/normalize-path@npm:8.0.0-beta.5" dependencies: normalize-path: "npm:3.0.0" tslib: "npm:2.7.0" - checksum: 10/c97a6064be2a538aa9175065142f58c847132f376ae99a6953936774cdb6d79f4e2475bd14751a6220a5e6b01fdc82d91b841ec26d1963e5e2a76d1501daa9f5 + checksum: 10/056e7c3f8c9cb066ec88e49ac604775d646ab0fa7ab4d3a107be7cc689b9d970ad777fb770bdea8faa7613a39fe6e7ec6f3bc4a56135190ef115719ae74bd8e9 languageName: node linkType: hard -"@tsed/openspec@npm:8.0.0-beta.4, @tsed/openspec@npm:>=8.0.0-beta.3": - version: 8.0.0-beta.4 - resolution: "@tsed/openspec@npm:8.0.0-beta.4" - checksum: 10/19e312a64d90ab966749a732b96d007b375b3305eca8e7d9ef80550dec210aa39adc60e99842a80e57cc5a4043101cf683aaa95ca2a91447730d5e98b98b51d6 +"@tsed/openspec@npm:8.0.0-beta.5, @tsed/openspec@npm:>=8.0.0-beta.5": + version: 8.0.0-beta.5 + resolution: "@tsed/openspec@npm:8.0.0-beta.5" + checksum: 10/d49599b0304119816d703bb21ab365de8dccf56f68e34146764b3387fdbdd8b560d3b83ff3b605f730a285e06bbd788488e99aa6bf31237fa6792a2dd9bb25d2 languageName: node linkType: hard -"@tsed/schema@npm:>=8.0.0-beta.3": - version: 8.0.0-beta.4 - resolution: "@tsed/schema@npm:8.0.0-beta.4" +"@tsed/schema@npm:>=8.0.0-beta.5": + version: 8.0.0-beta.5 + resolution: "@tsed/schema@npm:8.0.0-beta.5" dependencies: - "@tsed/openspec": "npm:8.0.0-beta.4" + "@tsed/openspec": "npm:8.0.0-beta.5" change-case: "npm:^5.4.4" fs-extra: "npm:^11.2.0" json-schema: "npm:0.4.0" @@ -2777,14 +2777,14 @@ __metadata: statuses: "npm:^2.0.1" tslib: "npm:2.7.0" peerDependencies: - "@tsed/core": 8.0.0-beta.4 - "@tsed/openspec": 8.0.0-beta.4 + "@tsed/core": 8.0.0-beta.5 + "@tsed/openspec": 8.0.0-beta.5 peerDependenciesMeta: "@tsed/core": optional: false "@tsed/openspec": optional: false - checksum: 10/65e424fdaa356ca483100eb0852d3f25dadf8c47f735e47ea09d1c498f710f3488e24668270aa9b5905976741b703399e10621e05739c00c436c20dc9aaaec03 + checksum: 10/5b46d5eff2f03232cb2852e1bb7ff24767b3dd389ab6582d1d817f0ff8de4eb67c6870b6df8d101aee1b77b67e150f8a56f85a13fe30bbf4a44708ddb977ecc2 languageName: node linkType: hard