Skip to content

Commit

Permalink
Enter prerelease mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sethidden committed Aug 22, 2024
1 parent f3dfa12 commit dba1639
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-guests-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vue-storefront/middleware": minor
---

[ADDED] New GET /readyz endpoint for middleware for using with Kubernetes readiness probes.
25 changes: 25 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
6 changes: 6 additions & 0 deletions packages/middleware/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 2 additions & 3 deletions packages/middleware/src/types/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
ApiMethodsFactory,
MiddlewareContext,
} from "./common";
import { HealthCheckMap } from "@godaddy/terminus";

export interface ClientContext<CLIENT = any, CONFIG = any> {
client: CLIENT;
Expand Down Expand Up @@ -137,7 +136,7 @@ export type CreateApiProxyFn = <CONFIG, API, CLIENT>(
* @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<void>
export type ReadinessCheck = () => Promise<void>;

export interface CreateServerOptions {
/**
Expand Down Expand Up @@ -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[];
}
7 changes: 7 additions & 0 deletions packages/multistore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/multistore/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dba1639

Please sign in to comment.