Skip to content

Commit 899a56c

Browse files
committed
Merge branch 'master' into make-v25
2 parents a9ee960 + 975239f commit 899a56c

36 files changed

Lines changed: 1014 additions & 570 deletions

.github/workflows/beta.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/bump.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Version Bump
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
workspace:
7+
description: 'Workspace'
8+
required: true
9+
default: 'express-zod-api'
10+
type: choice
11+
options:
12+
- express-zod-api
13+
- migration
14+
kind:
15+
description: 'Version bump kind'
16+
required: true
17+
default: 'patch'
18+
type: choice
19+
options:
20+
- major
21+
- minor
22+
- patch
23+
- premajor
24+
- preminor
25+
- prepatch
26+
- prerelease
27+
28+
permissions:
29+
contents: write
30+
31+
jobs:
32+
bumpVersion:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: pnpm/action-setup@v4
37+
- uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
cache: pnpm
41+
- uses: fregante/setup-git-user@v2
42+
- run: |
43+
pnpm install
44+
pnpm install_hooks
45+
- name: Bumpp ${{inputs.workspace}}
46+
run: |
47+
pnpm -F ${{inputs.workspace}} exec \
48+
pnpm dlx bumpp ${{inputs.kind}} \
49+
${{ startsWith(inputs.kind, 'pre') && '--preid beta' || '' }} \
50+
--tag=${{inputs.workspace}}-v%s --commit='${{inputs.workspace}} version %s' -y

.github/workflows/minor.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/node.js.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
run: pnpm test:cjs
4848
- name: ESM test
4949
run: pnpm test:esm
50+
- name: Compatibility test
51+
run: pnpm test:compat
5052
- name: Issue 952 # see https://github.com/RobinTail/express-zod-api/issues/952
5153
run: pnpm test:952
5254
report:

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ name: Publish to NPM
55
on:
66
workflow_dispatch:
77
inputs:
8+
workspace:
9+
description: 'Workspace'
10+
required: true
11+
default: 'express-zod-api'
12+
type: choice
13+
options:
14+
- express-zod-api
15+
- migration
816
tag:
917
description: 'Release channel'
1018
required: true
@@ -29,9 +37,9 @@ jobs:
2937
registry-url: https://registry.npmjs.org/
3038
- name: Install dependencies
3139
run: pnpm install
32-
- name: Publish with ${{ inputs.tag }}
40+
- name: Publish ${{inputs.workspace}} with ${{ inputs.tag }}
3341
env:
3442
NODE_AUTH_TOKEN: ${{secrets.NPM_KEY}}
3543
run: |
36-
pnpm -F express-zod-api exec \
44+
pnpm -F ${{inputs.workspace}} exec \
3745
pnpm publish --provenance --tag ${{ inputs.tag }}

.github/workflows/patch.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/validations.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
node_modules
22
dist
33
*.tgz
4-
migration
54
.idea
65
.npmrc
76
coverage

CHANGELOG.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## Version 24
44

5+
### v24.4.0
6+
7+
- Automated migration moved to the [dedicated package](https://www.npmjs.com/package/@express-zod-api/migration).
8+
9+
### v24.3.2
10+
11+
- Removed previously deprecated plural properties from `ApiResponse` interface: `statusCodes`, `mimeTypes`.
12+
513
### v24.3.1
614

715
- Compatibility fix for Zod 3.25.60.
@@ -79,18 +87,7 @@ type Type1 = `start${number}mid${boolean}end`;
7987
- The `getExamples()` public helper removed — ~~use `.meta()?.examples` instead~~, restored in v24.1.0;
8088
- Added the new proprietary schema `ez.buffer()`;
8189
- The `ez.file()` schema removed: use `z.string()`, `z.base64()`, `ez.buffer()` or their union;
82-
- Consider the automated migration using the built-in ESLint rule.
83-
84-
```js
85-
// eslint.config.mjs — minimal ESLint 9 config to apply migrations automatically using "eslint --fix"
86-
import parser from "@typescript-eslint/parser";
87-
import migration from "express-zod-api/migration";
88-
89-
export default [
90-
{ languageOptions: { parser }, plugins: { migration } },
91-
{ files: ["**/*.ts"], rules: { "migration/v24": "error" } },
92-
];
93-
```
90+
- Consider [the automated migration](https://www.npmjs.com/package/@express-zod-api/migration).
9491

9592
```diff
9693
- import { z } from "zod";

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Start your API server with I/O schema validation and custom middlewares in minut
6161
1. [Excessive properties in endpoint output](#excessive-properties-in-endpoint-output)
6262
9. [Your input to my output](#your-input-to-my-output)
6363

64-
You can find the release notes and migration guides in [Changelog](CHANGELOG.md).
64+
See also [Changelog](CHANGELOG.md) and [automated migration](https://www.npmjs.com/package/@express-zod-api/migration).
6565

6666
# Overview
6767

@@ -273,7 +273,7 @@ architecture — or even mix them seamlessly.
273273
import { Routing, DependsOnMethod, ServeStatic } from "express-zod-api";
274274

275275
const routing: Routing = {
276-
// flax syntax — /v1/users
276+
// flat syntax — /v1/users
277277
"/v1/users": listUsersEndpoint,
278278
// nested syntax
279279
v1: {

0 commit comments

Comments
 (0)