diff --git a/.changeset/metal-guests-melt.md b/.changeset/metal-guests-melt.md new file mode 100644 index 0000000000..f41c2802c9 --- /dev/null +++ b/.changeset/metal-guests-melt.md @@ -0,0 +1,5 @@ +--- +"@vue-storefront/middleware": minor +--- + +[ADDED] New GET /readyz endpoint for middleware for using with Kubernetes readiness probes. diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000000..b1441a231e --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,25 @@ +{ + "mode": "pre", + "tag": "terminus", + "initialVersions": { + "@vue-storefront/api-extractor-config": "1.0.0", + "@vue-storefront/eslint-config": "3.1.3", + "@vue-storefront/eslint-config-integrations": "1.0.1", + "@vue-storefront/integrations-tsconfig": "1.0.0", + "@vue-storefront/jest-config": "1.0.2", + "@vue-storefront/prettier-config": "2.0.0", + "@vue-storefront/rollup-config": "1.0.0", + "@vue-storefront/changesets": "2.0.0", + "@vue-storefront/cli": "5.0.0", + "@vue-storefront/middleware": "4.3.1", + "@vue-storefront/multistore": "4.1.0", + "@vue-storefront/next": "4.0.0", + "@vue-storefront/nuxt": "5.0.0", + "@vue-storefront/sdk": "3.2.0", + "@vue-storefront/sdk-axios-request-sender": "2.0.0", + "@storefront/shared": "0.0.1" + }, + "changesets": [ + "metal-guests-melt" + ] +} diff --git a/packages/middleware/CHANGELOG.md b/packages/middleware/CHANGELOG.md index 459ac7eaa3..385c22afe4 100644 --- a/packages/middleware/CHANGELOG.md +++ b/packages/middleware/CHANGELOG.md @@ -1,5 +1,11 @@ # Change log +## 4.4.0-terminus.0 + +### Minor Changes + +- **[ADDED]** New GET /readyz endpoint for middleware for using with Kubernetes readiness probes. + ## 4.3.1 ### Patch Changes diff --git a/packages/middleware/package.json b/packages/middleware/package.json index f7cc4d946c..10e0d3f778 100644 --- a/packages/middleware/package.json +++ b/packages/middleware/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/middleware", - "version": "4.3.1", + "version": "4.4.0-terminus.0", "main": "lib/index.cjs.js", "module": "lib/index.es.js", "types": "lib/index.d.ts", diff --git a/packages/middleware/src/types/server.ts b/packages/middleware/src/types/server.ts index 1be3c9cea4..03fdd0a124 100644 --- a/packages/middleware/src/types/server.ts +++ b/packages/middleware/src/types/server.ts @@ -8,7 +8,6 @@ import { ApiMethodsFactory, MiddlewareContext, } from "./common"; -import { HealthCheckMap } from "@godaddy/terminus"; export interface ClientContext { client: CLIENT; @@ -137,7 +136,7 @@ export type CreateApiProxyFn = ( * @returns Return value is never considered - only thrown exceptions * @throws The implementation *must* throw an exception at some point in the code, which means that the readiness check should fail */ -export type ReadinessCheck = () => void | Promise +export type ReadinessCheck = () => Promise; export interface CreateServerOptions { /** @@ -172,5 +171,5 @@ export interface CreateServerOptions { * If at least one function throws an exception, the response from the /readyz endpoint will report an error * @see https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes */ - readinessChecks?: ReadinessCheck[] + readinessChecks?: ReadinessCheck[]; } diff --git a/packages/multistore/CHANGELOG.md b/packages/multistore/CHANGELOG.md index ab97d58ef8..bcf8d8f816 100644 --- a/packages/multistore/CHANGELOG.md +++ b/packages/multistore/CHANGELOG.md @@ -1,5 +1,12 @@ # Change log +## 4.1.1-terminus.0 + +### Patch Changes + +- Updated dependencies: + - @vue-storefront/middleware@4.4.0-terminus.0 + ## 4.1.0 ### Minor Changes diff --git a/packages/multistore/package.json b/packages/multistore/package.json index 80c6fbc06e..852e5e10fb 100644 --- a/packages/multistore/package.json +++ b/packages/multistore/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/multistore", - "version": "4.1.0", + "version": "4.1.1-terminus.0", "author": "Fifciu", "license": "MIT", "main": "lib/index.cjs.js", @@ -20,7 +20,7 @@ "prepublishOnly": "yarn build" }, "dependencies": { - "@vue-storefront/middleware": "^4.1.0", + "@vue-storefront/middleware": "^4.4.0-terminus.0", "express": "^4.18.1" }, "publishConfig": { diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 575c63cb5d..3270ee6409 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@types/jest": "^29.0.3", "@types/node": "^18.11.17", - "@vue-storefront/middleware": "*", + "@vue-storefront/middleware": "4.4.0-terminus.0", "axios": "^1.6.7", "babel-preset-node": "^5.1.1", "isomorphic-fetch": "^3.0.0",