From 5b983639cbdaf5f4ad68962c2140dc212d041169 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Fri, 22 Dec 2023 18:31:23 +0100 Subject: [PATCH] update support (in docs and eslint) for incrementalCacheHandlerPath --- .../src/rules/no-unsupported-configs.ts | 2 +- .../tests/rules/no-unsupported-configs.test.ts | 4 ++-- packages/next-on-pages/docs/supported.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/eslint-plugin-next-on-pages/src/rules/no-unsupported-configs.ts b/packages/eslint-plugin-next-on-pages/src/rules/no-unsupported-configs.ts index fcb0ba9cb..50b504c4c 100644 --- a/packages/eslint-plugin-next-on-pages/src/rules/no-unsupported-configs.ts +++ b/packages/eslint-plugin-next-on-pages/src/rules/no-unsupported-configs.ts @@ -25,7 +25,7 @@ const configs: Config[] = [ { name: 'headers', support: '✅' }, { name: 'httpAgentOptions', support: 'N/A' }, { name: 'images', support: '✅' }, - { name: 'incrementalCacheHandlerPath', support: '🔄' }, + { name: 'incrementalCacheHandlerPath', support: '✅' }, { name: 'logging', support: 'N/A' }, { name: 'experimental/mdxRs', support: '✅' }, { name: 'onDemandEntries', support: 'N/A' }, diff --git a/packages/eslint-plugin-next-on-pages/tests/rules/no-unsupported-configs.test.ts b/packages/eslint-plugin-next-on-pages/tests/rules/no-unsupported-configs.test.ts index d17d3e4f4..ef668959c 100644 --- a/packages/eslint-plugin-next-on-pages/tests/rules/no-unsupported-configs.test.ts +++ b/packages/eslint-plugin-next-on-pages/tests/rules/no-unsupported-configs.test.ts @@ -200,7 +200,7 @@ describe('no-unsupported-configs', () => { /** @type {import('next').NextConfig} */ const nextConfig = { assetPrefix: 'test', - incrementalCacheHandlerPath: true, + generateEtags: true, } module.exports = nextConfig @@ -225,7 +225,7 @@ describe('no-unsupported-configs', () => { }, { message: - 'The "incrementalCacheHandlerPath" configuration is not currently supported by next-on-pages.', + 'The "generateEtags" configuration is not currently supported by next-on-pages.', }, ], }, diff --git a/packages/next-on-pages/docs/supported.md b/packages/next-on-pages/docs/supported.md index 7c02487c3..c0f1dc63b 100644 --- a/packages/next-on-pages/docs/supported.md +++ b/packages/next-on-pages/docs/supported.md @@ -93,7 +93,7 @@ To check the latest state of the routers and possible missing features you can c | headers | [pages](https://nextjs.org/docs/pages/api-reference/next-config-js/headers), [app](https://nextjs.org/docs/app/api-reference/next-config-js/headers) | ✅ | | httpAgentOptions | [pages](https://nextjs.org/docs/pages/api-reference/next-config-js/httpAgentOptions), [app](https://nextjs.org/docs/app/api-reference/next-config-js/httpAgentOptions) | `N/A` | | images | [pages](https://nextjs.org/docs/pages/api-reference/next-config-js/images), [app](https://nextjs.org/docs/app/api-reference/next-config-js/images) | ✅ | -| incrementalCacheHandlerPath | [app](https://nextjs.org/docs/app/api-reference/next-config-js/incrementalCacheHandlerPath) | 🔄 | +| incrementalCacheHandlerPath | [app](https://nextjs.org/docs/app/api-reference/next-config-js/incrementalCacheHandlerPath) | ✅ | | logging | [app](https://nextjs.org/docs/app/api-reference/next-config-js/logging) | `N/A`5 | | mdxRs | [app](https://nextjs.org/docs/app/api-reference/next-config-js/mdxRs) | ✅ | | onDemandEntries | [pages](https://nextjs.org/docs/pages/api-reference/next-config-js/onDemandEntries), [app](https://nextjs.org/docs/app/api-reference/next-config-js/onDemandEntries) | `N/A`6 |