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
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Grant write access to pull request comments
strategy:
matrix:
next-test-app:
- next-app-15-0-3
- next-app-15-3-2
- next-app-15-4-7

steps:
- name: Checkout code
Expand Down Expand Up @@ -59,15 +65,16 @@ jobs:
run: redis-cli config set notify-keyspace-events Exe

- name: Install Integration Test Project
run: cd test/integration/next-app-15-3-2 && pnpm install
run: cd test/integration/${{ matrix.next-test-app }} && pnpm install

- name: Build Integration Test Project
run: cd test/integration/next-app-15-3-2 && pnpm build
run: cd test/integration/${{ matrix.next-test-app }} && pnpm build

- name: Run tests
run: pnpm test
env:
SKIP_BUILD: true
NEXT_TEST_APP: ${{ matrix.next-test-app }}

- name: Code Coverage Comments
if: github.event_name == 'pull_request'
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
},
"scripts": {
"dev": "pnpm test",
"run-dev-server": "pnpm run-dev-server-15-3-2",
"run-dev-server": "pnpm run-dev-server-15-4-7",
"run-dev-server-15-3-2": "cd ./test/integration/next-app-15-3-2 && pnpm dev",
"run-dev-server-15-0-3": "cd ./test/integration/next-app-15-0-3 && pnpm dev",
"run-dev-server-15-4-7": "cd ./test/integration/next-app-15-4-7 && pnpm dev",
"build": "tsup",
"lint": "eslint -c eslint.config.mjs --fix",
"format": "prettier --write 'src/**/*.ts' 'src/*.ts'",
Expand Down Expand Up @@ -86,7 +87,7 @@
"vitest": "^2.1.5"
},
"peerDependencies": {
"next": ">=15.0.3 <= 15.3.2",
"next": ">=15.0.3 <= 15.4.7",
"redis": "4.7.0"
},
"packageManager": "pnpm@9.15.9+sha512.68046141893c66fad01c079231128e9afb89ef87e2691d69e4d40eee228988295fd4682181bae55b58418c3a253bde65a505ec7c5f9403ece5cc3cd37dcf2531"
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/RedisStringsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export default class RedisStringsHandler {
data:
| {
kind: 'APP_PAGE';
status: number;
status?: number;
headers: {
'x-nextjs-stale-time': string; // timestamp in ms
'x-next-cache-tags': string; // comma separated paths (tags)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/next-app-15-0-3/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion test/integration/next-app-15-3-2/pnpm-lock.yaml

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

41 changes: 41 additions & 0 deletions test/integration/next-app-15-4-7/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
36 changes: 36 additions & 0 deletions test/integration/next-app-15-4-7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
16 changes: 16 additions & 0 deletions test/integration/next-app-15-4-7/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];

export default eslintConfig;
6 changes: 6 additions & 0 deletions test/integration/next-app-15-4-7/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
cacheHandler: require.resolve('@trieb.work/nextjs-turbo-redis-cache'),
};

module.exports = nextConfig;
Loading