Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
node-version: &node-versions
- 20.x # LTS
- 22.x # LTS
- 24.x # LTS
steps:
Expand Down Expand Up @@ -112,10 +111,10 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 9.3.0
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Ensure npm 11.5.1 or later for trusted publishing
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"profile": "tsx scripts/profile.ts"
},
"dependencies": {
"commander": "^14.0.1",
"commander": "^15.0.0",
"graphql": "^16.11.0",
"semver": "^7.7.2"
},
Expand Down Expand Up @@ -49,7 +49,7 @@
},
"packageManager": "pnpm@10.15.1",
"engines": {
"node": ">=20 <=24"
"node": ">=22.12 <=24"
},
"bugs": {
"url": "https://github.com/captbaritone/grats/issues"
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions website/docs/07-changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@

Changes in this section are not yet released. If you need access to these changes before we cut a release, check out our `@main` NPM releases. Each commit on the main branch is [published to NPM](https://www.npmjs.com/package/grats?activeTab=versions) under the `main` tag.

- **Breaking Changes**
- Grats now requires Node.js `>=22.12.0` (previously `>=20`). This is a result of upgrading `commander` to `v15`, which dropped support for older Node.js versions.
- **Features**
- Added support for deriving `@gqlEnum` from const arrays (`(typeof X)[number]`) and const objects (`(typeof X)[keyof typeof X]`). This allows defining enums with runtime-accessible values without using TypeScript's `enum` syntax. The const declaration must immediately precede the type alias. See [enum docs](../04-docblock-tags/07-enums.mdx#runtime-accessible-enums) for details.
- **Improvements**
- Upgraded `commander` from `v14` to `v15`.
- `typescript` is now a peer dependency (`>=5.5`) instead of a direct dependency, allowing you to use your own TypeScript version. ([PR](https://github.com/captbaritone/grats/pull/228))
- Added support for TypeScript 6.0. ([PR](https://github.com/captbaritone/grats/pull/228))
- CI now tests against TypeScript 5.5, 5.7, 5.9, and 6.0.
Expand Down
Loading