Skip to content
Merged
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
16 changes: 16 additions & 0 deletions .changeset/perky-rice-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@snapwp/plugin-tanstack-query": minor
"@snapwp/plugin-apollo-client": minor
"@snapwp/prettier-config": minor
"@snapwp/codegen-config": minor
"@snapwp/eslint-config": minor
"@snapwp/e2e-tests": minor
"@snapwp/blocks": minor
"@snapwp/query": minor
"@snapwp/types": minor
"@snapwp/core": minor
"@snapwp/next": minor
"snapwp": minor
---

chore!: Bump minimum node to 22, Typescript to 5, and other minor dependencies
54 changes: 27 additions & 27 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
version: 2

updates:
# NPM: 1x weekly for minor/patch, 1x monthly for major.
- package-ecosystem: 'npm'
directories:
- '/'
- 'examples/*'
- 'packages/*'
schedule:
interval: 'weekly'
cooldown:
semver-major-days: 30
semver-minor-days: 7
semver-patch-days: 7
groups:
npm-dev-minor-patch:
dependency-type: 'development'
update-types: [minor, patch]
npm-prod-minor-patch:
dependency-type: 'production'
update-types: [minor, patch]
# NPM: 1x weekly for minor/patch, 1x monthly for major.
- package-ecosystem: 'npm'
directories:
- '/'
- 'examples/*'
- 'packages/*'
schedule:
interval: 'weekly'
cooldown:
semver-major-days: 30
semver-minor-days: 7
semver-patch-days: 7
groups:
npm-dev-minor-patch:
dependency-type: 'development'
update-types: [minor, patch]
npm-prod-minor-patch:
dependency-type: 'production'
update-types: [minor, patch]

# GitHub Actions: 1x weekly.
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
github-actions-updates:
patterns: ['*']
# GitHub Actions: 1x weekly.
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
github-actions-updates:
patterns: ['*']
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
NODE_VERSIONS:
description: 'Node versions to test against. Need a JSON array of versions.'
required: true
default: '[20]'
default: '[22]'
type: string

permissions:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ${{ fromJSON('[20]') }}
node-version: ${{ fromJSON('[22]') }}
fail-fast: true
env:
GRAPHQL_SCHEMA_FILE: '${{ github.workspace }}/schema.graphql'
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ${{ fromJSON('[20]') }}
node-version: ${{ fromJSON('[22]') }}
fail-fast: true
env:
GRAPHQL_SCHEMA_FILE: '${{ github.workspace }}/schema.graphql'
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: ${{ fromJSON('[20]') }}
# node-version: ${{ fromJSON('[22]') }}
# fail-fast: true

# steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ on:
NODE_VERSIONS:
description: 'Node versions to test against. Need a JSON array of versions.'
required: true
default: '[20, 22]'
default: '[22]'
type: string

permissions:
contents: read
pull-requests: read

env:
NODE_VERSIONS: '[20, 22]'
NODE_VERSIONS: '[22]'
PATHS: |
nextjs/starter:
- .github/workflows/pull_request_examples.yml
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
if: ${{ needs.path-filter.outputs.changes != '' && toJSON(fromJSON(needs.path-filter.outputs.changes)) != '[]' }}
strategy:
matrix:
node-version: ${{ fromJSON('[20]') }}
node-version: ${{ fromJSON('[22]') }}
example: ${{ fromJSON(needs.path-filter.outputs.changes) }}
fail-fast: true

Expand Down Expand Up @@ -341,7 +341,7 @@ jobs:
if: ${{ needs.path-filter.outputs.changes != '' && toJSON(fromJSON(needs.path-filter.outputs.changes)) != '[]' }}
strategy:
matrix:
node-version: ${{ fromJSON('[20]') }}
node-version: ${{ fromJSON('[22]') }}
example: ${{ fromJSON(needs.path-filter.outputs.changes) }}
fail-fast: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 22

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
22
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ To set up locally, clone the repository and navigate to the `frontend` subdirect

### Prerequisites

- [Node.js](https://nodejs.org/) v20+
- [Node.js](https://nodejs.org/) v22+
- [Docker](https://www.docker.com/)

### Building SnapWP Packages
Expand Down
2 changes: 1 addition & 1 deletion config/import-resolver.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports.resolve = function ( source, file, config ) {
* @param {string} alias Alias to search.
* @param {string} aliasPath Alias path.
* @param {string} file File-path in which alias is used.
* @param {Function} resolve Path resolver.
* @param {(sourcePath: string) => { found: boolean; path?: string }} resolve Path resolver.
*
* @return Resolved path on success | False if alias is not found in import string.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This guide will walk you through setting up a headless WordPress app using SnapW

### Prerequisites

- **Node.js**: v20+ (with `npm` and `npx` installed).
- **Node.js**: v22+ (with `npm` and `npx` installed).
- **A WordPress backend** configured with SnapWP Helper (see [previous section](#backend-setup)).

### Installation Steps
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/starter/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
22
26 changes: 13 additions & 13 deletions examples/nextjs/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,33 @@
"@snapwp/query": "file:../../../packages/query",
"@snapwp/plugin-apollo-client": "file:../../../packages/plugin-apollo-client",
"graphql": "^16.12.0",
"next": "^15.5.9",
"react": "^19.2.3",
"react-dom": "^19.2.3"
"next": "^15.5.12",
"react": "^19.2.4",
"react-dom": "^19.2.4"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.7",
"@parcel/watcher": "^2.5.1",
"@graphql-codegen/cli": "^6.1.1",
"@parcel/watcher": "^2.5.6",
"@snapwp/codegen-config": "file:../../../packages/codegen-config",
"@snapwp/eslint-config": "file:../../../packages/eslint-config",
"@snapwp/prettier-config": "file:../../../packages/prettier-config",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.1",
"@testing-library/react": "^16.3.2",
"@types/jest": "^29.5.14",
"@types/node": "^20",
"@types/react": "^19.2.7",
"@types/node": "^22",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"concurrently": "^9.2.1",
"dotenv": "^16.6.1",
"dotenv": "^17.3.1",
"eslint": "^8",
"eslint-config-next": "^15.5.9",
"glob": "^11.1.0",
"eslint-config-next": "^15.5.12",
"glob": "^13.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "npm:wp-prettier@^3.0.3",
"typescript": ">=4.3.5"
"typescript": ">=5.9.3"
},
"overrides": {
"eslint-plugin-react-hooks": "^5.2.0"
"eslint-plugin-react-hooks": ">=5.2.0"
Comment thread
justlevine marked this conversation as resolved.
}
}
Loading