Skip to content

Commit

Permalink
Preparing the v7 release (#443)
Browse files Browse the repository at this point in the history
* In a remembrance of Dmitry Isaev.

* 7.0.0

* Secutiry policy update.

* Readme: cleaning up the removed entities.
  • Loading branch information
RobinTail authored May 19, 2022
1 parent f737130 commit a5cee42
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,16 +450,13 @@ import {
createResultHandler,
createApiResponse,
IOSchema,
markOutput,
z,
} from "express-zod-api";

export const yourResultHandler = createResultHandler({
getPositiveResponse: <OUT extends IOSchema>(output: OUT) =>
getPositiveResponse: (output: IOSchema) =>
createApiResponse(
z.object({
data: markOutput(output),
}),
z.object({ data: output }),
"application/json" // optional, or array of mime types
),
getNegativeResponse: () => createApiResponse(z.object({ error: z.string() })),
Expand Down
5 changes: 3 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

| Version | Supported |
| ------- | ------------------ |
| 7.x.x | :white_check_mark: |
| 6.x.x | :white_check_mark: |
| 5.x.x | :white_check_mark: |
| 4.x.x | :white_check_mark: |
| 5.x.x | :x: |
| 4.x.x | :x: |
| 3.x.x | :x: |
| 2.x.x | :x: |
| 1.x.x | :x: |
Expand Down
2 changes: 1 addition & 1 deletion example/example.swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: Example API
version: 6.2.1
version: 7.0.0
paths:
/v1/user/retrieve:
get:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-zod-api",
"version": "6.2.1",
"version": "7.0.0",
"description": "A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/startup-logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getStartupLogo = () => {
8888888888 888 888 88888P" 888 "Y8888 88888P' 88888P' d8888888888 "Y88P" "Y88888 d88P 888 888 8888888
 888
 888 Proudly supports transgender community.
[94m[3mfor Alice [23m 888[3m Start your API server with I/O schema validation and custom middlewares in minutes.[23m[39m[90m[39m
[94m[3mfor Dmitry [23m 888[3m Start your API server with I/O schema validation and custom middlewares in minutes.[23m[39m[90m[39m
 Thank you for choosing Express Zod API for your project.


Expand Down
2 changes: 1 addition & 1 deletion tools/startup-logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const slogan = chalk.italic(
const thanks = chalk.italic(
"Thank you for choosing Express Zod API for your project.".padStart(132)
);
const remembrance = chalk.italic("for Alice".padEnd(14));
const remembrance = chalk.italic("for Dmitry".padEnd(14));

const logo = [
chalk.blueBright(`\n
Expand Down

0 comments on commit a5cee42

Please sign in to comment.