@djangocfg/nextjs 2.1.610 → 2.1.612

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,4 +78,5 @@ declare function getInfo(topic: string): Promise<Record<string, unknown>>;
78
78
  */
79
79
  declare function getMcpConfig(): McpConfig;
80
80
 
81
- export { DjangoCfgDocsClient, type McpConfig, type SearchOptions, type SearchResult, getDocs, getInfo, getMcpConfig, search };
81
+ export { DjangoCfgDocsClient, getDocs, getInfo, getMcpConfig, search };
82
+ export type { McpConfig, SearchOptions, SearchResult };
@@ -1,7 +1,7 @@
1
1
  import { NextConfig } from 'next';
2
2
  import { Configuration, Compiler } from 'webpack';
3
- import { a as I18nPluginOptions } from '../types-C77BSPye.mjs';
4
- import { P as PWAPluginOptions } from '../plugin-yhoLWYh6.mjs';
3
+ import { I18nPluginOptions } from '../i18n/index.mjs';
4
+ import { PWAPluginOptions } from '../pwa/index.mjs';
5
5
  export { A as AI_DOCS_HINT, M as MCP_API_URL, b as MCP_BASE_URL, c as MCP_SERVER_URL } from '../constants-BDS8GXHN.mjs';
6
6
  import '@djangocfg/i18n';
7
7
 
@@ -672,4 +672,5 @@ declare function addCompressionPlugins(config: Configuration, options?: Compress
672
672
  */
673
673
  declare function isCompressionAvailable(): boolean;
674
674
 
675
- export { type BaseNextConfigOptions, CSP_BASELINE_VENDORS, CSP_VENDOR_PRESETS, type CompressionPluginOptions, type CspOrigins, type CspVendor, DEFAULT_OPTIMIZE_PACKAGES, DEFAULT_TRANSPILE_PACKAGES, DJANGOCFG_PACKAGES, DJANGO_CFG_BANNER, DevStartupPlugin, type DevStartupPluginOptions, type InstallOptions, type InstallProgress, type MissingPackage, OPTIONAL_PACKAGES, PACKAGE_NAME, PEER_DEPENDENCIES, type PackageDefinition, type PackageVersion, type UpdateOptions, addCompressionPlugins, buildInstallCommand, buildSingleInstallCommand, checkAndInstallPackages, checkAndUpdatePackages, checkForUpdate, checkForUpdates, checkPackages, createBaseNextConfig, deepMerge, detectPackageManager, fetchLatestVersion, getApiUrl, getBasePath, getCurrentVersion, getInstalledVersion, getMissingPackages, getOutdatedPackages, getPackagesForContext, getSiteUrl, getUpdateCommand, indexNowKeyRewrite, installPackages, installPackagesWithProgress, isCI, isCompressionAvailable, isDev, isPackageInstalled, isProduction, isStaticBuild, printVersionInfo, resetDevStartupState, resetInstallerPreferences, resetUpdaterPreferences, resolveCspVendors, updatePackagesWithProgress };
675
+ export { CSP_BASELINE_VENDORS, CSP_VENDOR_PRESETS, DEFAULT_OPTIMIZE_PACKAGES, DEFAULT_TRANSPILE_PACKAGES, DJANGOCFG_PACKAGES, DJANGO_CFG_BANNER, DevStartupPlugin, OPTIONAL_PACKAGES, PACKAGE_NAME, PEER_DEPENDENCIES, addCompressionPlugins, buildInstallCommand, buildSingleInstallCommand, checkAndInstallPackages, checkAndUpdatePackages, checkForUpdate, checkForUpdates, checkPackages, createBaseNextConfig, deepMerge, detectPackageManager, fetchLatestVersion, getApiUrl, getBasePath, getCurrentVersion, getInstalledVersion, getMissingPackages, getOutdatedPackages, getPackagesForContext, getSiteUrl, getUpdateCommand, indexNowKeyRewrite, installPackages, installPackagesWithProgress, isCI, isCompressionAvailable, isDev, isPackageInstalled, isProduction, isStaticBuild, printVersionInfo, resetDevStartupState, resetInstallerPreferences, resetUpdaterPreferences, resolveCspVendors, updatePackagesWithProgress };
676
+ export type { BaseNextConfigOptions, CompressionPluginOptions, CspOrigins, CspVendor, DevStartupPluginOptions, InstallOptions, InstallProgress, MissingPackage, PackageDefinition, PackageVersion, UpdateOptions };
@@ -40,4 +40,5 @@ interface HealthConfig {
40
40
 
41
41
  declare function createHealthHandler(config?: HealthConfig): () => Promise<NextResponse<HealthResponse>>;
42
42
 
43
- export { type HealthCheck, type HealthConfig, HealthResponse, createHealthHandler };
43
+ export { HealthResponse, createHealthHandler };
44
+ export type { HealthCheck, HealthConfig };
@@ -249,4 +249,5 @@ declare function verifyTurnstile(args: {
249
249
  fetch?: typeof fetch;
250
250
  }): Promise<VerifyResult>;
251
251
 
252
- export { ALWAYS_OPEN_PATHS, type CrawlerMatcher, type CrawlerVerdict, DEFAULT_CRAWLER_SOURCES, type HumanCheck, type HumanCheckConfig, type HumanCheckDecision, type HumanCheckDeps, type HumanCheckLocale, type HumanCheckMessages, type HumanCheckScope, MESSAGES, type ScopeRule, claimsCrawler, clientIp, createCrawlerMatcher, createHumanCheck, inScope, isPreviewBot, matchHost, matchPath, renderHumanCheckHtml, resolveConfig, safeNext, signClearance, verifyClearance, verifyTurnstile, withHumanCheck };
252
+ export { ALWAYS_OPEN_PATHS, DEFAULT_CRAWLER_SOURCES, MESSAGES, claimsCrawler, clientIp, createCrawlerMatcher, createHumanCheck, inScope, isPreviewBot, matchHost, matchPath, renderHumanCheckHtml, resolveConfig, safeNext, signClearance, verifyClearance, verifyTurnstile, withHumanCheck };
253
+ export type { CrawlerMatcher, CrawlerVerdict, HumanCheck, HumanCheckConfig, HumanCheckDecision, HumanCheckDeps, HumanCheckLocale, HumanCheckMessages, HumanCheckScope, ScopeRule };
@@ -8,4 +8,5 @@ interface LocaleSwitcherProps extends LocaleSwitcherProps$1 {
8
8
  }
9
9
  declare function LocaleSwitcher({ locales: customLocales, ...props }: LocaleSwitcherProps): react.JSX.Element;
10
10
 
11
- export { LocaleSwitcher, type LocaleSwitcherProps };
11
+ export { LocaleSwitcher };
12
+ export type { LocaleSwitcherProps };
@@ -5,7 +5,7 @@ import * as node_url from 'node:url';
5
5
  import * as next_intl from 'next-intl';
6
6
  import * as react from 'react';
7
7
  import { createRouting } from './routing.mjs';
8
- import { I as I18nConfig } from '../types-C77BSPye.mjs';
8
+ import { I18nConfig } from './index.mjs';
9
9
  import 'next-intl/routing';
10
10
  import '@djangocfg/i18n';
11
11
 
@@ -348,6 +348,7 @@ declare function createNavigation(routingConfig?: ReturnType<typeof createRoutin
348
348
  forward(): void;
349
349
  refresh(): void;
350
350
  experimental_gesturePush?(href: string, options?: next_dist_shared_lib_app_router_context_shared_runtime.NavigateOptions): void;
351
+ bfcacheId: string;
351
352
  };
352
353
  getPathname: (args: {
353
354
  href: string | {
@@ -706,6 +707,7 @@ declare function createNavigationFromConfig(config: Partial<I18nConfig>): {
706
707
  forward(): void;
707
708
  refresh(): void;
708
709
  experimental_gesturePush?(href: string, options?: next_dist_shared_lib_app_router_context_shared_runtime.NavigateOptions): void;
710
+ bfcacheId: string;
709
711
  };
710
712
  getPathname: (args: {
711
713
  href: string | {
@@ -1072,6 +1074,7 @@ declare const useRouter: () => {
1072
1074
  forward(): void;
1073
1075
  refresh(): void;
1074
1076
  experimental_gesturePush?(href: string, options?: next_dist_shared_lib_app_router_context_shared_runtime.NavigateOptions): void;
1077
+ bfcacheId: string;
1075
1078
  };
1076
1079
  declare const getPathname: (args: {
1077
1080
  href: string | {
@@ -1095,4 +1098,5 @@ interface LinkProps {
1095
1098
  [key: string]: unknown;
1096
1099
  }
1097
1100
 
1098
- export { Link, type LinkProps, createNavigation, createNavigationFromConfig, getPathname, redirect, usePathname, useRouter };
1101
+ export { Link, createNavigation, createNavigationFromConfig, getPathname, redirect, usePathname, useRouter };
1102
+ export type { LinkProps };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { b as I18nProviderProps } from '../types-C77BSPye.mjs';
2
+ import { I18nProviderProps } from './index.mjs';
3
3
  import { LocaleCode } from '@djangocfg/i18n';
4
4
 
5
5
  /** Locales the app passed to its provider, or null when it passed none. */
@@ -1,7 +1,7 @@
1
1
  import * as next_server from 'next/server';
2
2
  import { NextRequest } from 'next/server';
3
3
  import { createRouting } from './routing.mjs';
4
- import { I as I18nConfig } from '../types-C77BSPye.mjs';
4
+ import { I18nConfig } from './index.mjs';
5
5
  import 'next-intl/routing';
6
6
  import '@djangocfg/i18n';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import * as next_intl_server from 'next-intl/server';
2
2
  import { LocaleCode, I18nTranslations } from '@djangocfg/i18n';
3
- import { M as Messages } from '../types-C77BSPye.mjs';
3
+ import { Messages } from './index.mjs';
4
4
 
5
5
  interface RequestConfigOptions {
6
6
  /** Base locale translations from @djangocfg/i18n */
@@ -39,4 +39,5 @@ declare function createRequestConfig(options?: RequestConfigOptions): (params: n
39
39
  */
40
40
  declare const _default: (params: next_intl_server.GetRequestConfigParams) => next_intl_server.RequestConfig | Promise<next_intl_server.RequestConfig>;
41
41
 
42
- export { type RequestConfigOptions, createRequestConfig, _default as default };
42
+ export { createRequestConfig, _default as default };
43
+ export type { RequestConfigOptions };
@@ -1,5 +1,5 @@
1
1
  import * as next_intl_routing from 'next-intl/routing';
2
- import { I as I18nConfig } from '../types-C77BSPye.mjs';
2
+ import { I18nConfig } from './index.mjs';
3
3
  import { LocaleCode } from '@djangocfg/i18n';
4
4
 
5
5
  declare const DEFAULT_LOCALES: LocaleCode[];
@@ -1,7 +1,7 @@
1
1
  import * as next_intl from 'next-intl';
2
2
  export { getFormatter, getNow, getTimeZone } from 'next-intl/server';
3
3
  export { generateLocaleParams, isValidLocale } from './routing.mjs';
4
- import { d as LocaleParams, M as Messages } from '../types-C77BSPye.mjs';
4
+ import { LocaleParams, Messages } from './index.mjs';
5
5
  import { LocaleCode } from '@djangocfg/i18n';
6
6
  import 'next-intl/routing';
7
7
 
package/dist/index.d.mts CHANGED
@@ -11,4 +11,4 @@ import 'lucide-react';
11
11
  import 'webpack';
12
12
  import './types-C77BSPye.mjs';
13
13
  import '@djangocfg/i18n';
14
- import './plugin-yhoLWYh6.mjs';
14
+ import './plugin-BNI300Jb.mjs';
@@ -125,4 +125,5 @@ declare function routesToMenuItems(routes: RouteDefinition[], groupName: string)
125
125
  */
126
126
  declare function groupRoutesByNavGroups(routes: RouteDefinition[], groups: NavGroup[]): NavGroupWithRoutes[];
127
127
 
128
- export { type BreadcrumbItem, type MenuGroup, type MenuItem, type NavGroup, type NavGroupWithRoutes, type NavigationItem, type NavigationSection, type RouteDefinition, type RouteMetadata, defineRoute, findRoute, findRouteByPattern, getPageTitle, getUnauthenticatedRedirect, groupRoutesByNavGroups, isActive, redirectToAuth, routesToMenuItems };
128
+ export { defineRoute, findRoute, findRouteByPattern, getPageTitle, getUnauthenticatedRedirect, groupRoutesByNavGroups, isActive, redirectToAuth, routesToMenuItems };
129
+ export type { BreadcrumbItem, MenuGroup, MenuItem, NavGroup, NavGroupWithRoutes, NavigationItem, NavigationSection, RouteDefinition, RouteMetadata };
@@ -121,4 +121,5 @@ declare function extractTitle(metadata: Metadata): string;
121
121
  */
122
122
  declare function resolveOgImage(spec: OgSpec, staticUrl: string, fallbackTitle: string): Pick<Metadata, 'openGraph' | 'twitter'>;
123
123
 
124
- export { type OgSpec, type PageMeta, type SiteMetaConfig, createMetadata, extractTitle, makeMetadataFactory, resolveOgImage };
124
+ export { createMetadata, extractTitle, makeMetadataFactory, resolveOgImage };
125
+ export type { OgSpec, PageMeta, SiteMetaConfig };
@@ -76,4 +76,5 @@ declare function withPWA(nextConfig: NextConfig, _options?: PWAPluginOptions): N
76
76
  */
77
77
  declare function getServiceWorkerTemplate(): string;
78
78
 
79
- export { type PWAPluginOptions as P, getServiceWorkerTemplate as g, withPWA as w };
79
+ export { getServiceWorkerTemplate as g, withPWA as w };
80
+ export type { PWAPluginOptions as P };
@@ -1,3 +1,3 @@
1
1
  export { IconPaths, ManifestConfig, ProtocolHandler, ScreenshotConfig, SmartScreenshotInput, createManifest, createManifestMetadata, createScreenshot, createScreenshots, createViewport, generateManifest } from './manifest.mjs';
2
- export { P as PWAPluginOptions, g as getServiceWorkerTemplate, w as withPWA } from '../plugin-yhoLWYh6.mjs';
2
+ export { P as PWAPluginOptions, g as getServiceWorkerTemplate, w as withPWA } from '../plugin-BNI300Jb.mjs';
3
3
  import 'next';
@@ -201,4 +201,5 @@ declare function createManifest(config: {
201
201
  */
202
202
  declare function generateManifest(config: ManifestConfig): MetadataRoute.Manifest;
203
203
 
204
- export { type IconPaths, type ManifestConfig, type ProtocolHandler, type ScreenshotConfig, type SmartScreenshotInput, createManifest, createManifestMetadata, createScreenshot, createScreenshots, createViewport, generateManifest };
204
+ export { createManifest, createManifestMetadata, createScreenshot, createScreenshots, createViewport, generateManifest };
205
+ export type { IconPaths, ManifestConfig, ProtocolHandler, ScreenshotConfig, SmartScreenshotInput };
@@ -33,4 +33,5 @@ interface ServiceWorkerOptions {
33
33
  */
34
34
  declare function createServiceWorker(options?: ServiceWorkerOptions): void;
35
35
 
36
- export { type ServiceWorkerOptions, createServiceWorker };
36
+ export { createServiceWorker };
37
+ export type { ServiceWorkerOptions };
@@ -1,5 +1,5 @@
1
1
  import { MetadataRoute } from 'next';
2
- import { C as ChangeFreq } from '../types-CMxSgWnS.mjs';
2
+ import { ChangeFreq } from '../index.mjs';
3
3
 
4
4
  /**
5
5
  * Sitemap module — types
@@ -300,4 +300,5 @@ declare function tenantSources(tenant: string): (name: string) => boolean;
300
300
  declare function fetchSitemapIndex(apiUrl: string, revalidate: number): Promise<SitemapIndex>;
301
301
  declare function fetchSitemapFeed(apiUrl: string, source: string, cursor: string | null, revalidate: number): Promise<SitemapFeedPage>;
302
302
 
303
- export { type CreateDjangoSitemapOptions, type CreateRobotsOptions, type CreateSitemapIndexOptions, type SitemapChunkInfo, type SitemapEntry, type SitemapFeedPage, type SitemapIndex, type SitemapSourceInfo, type SourceSelector, type StaticRoute, createDjangoSitemap, createRobots, createSitemapIndex, decodeChunkId, encodeChunkId, fetchSitemapFeed, fetchSitemapIndex, selectSources, sourceFilter, tenantSources };
303
+ export { createDjangoSitemap, createRobots, createSitemapIndex, decodeChunkId, encodeChunkId, fetchSitemapFeed, fetchSitemapIndex, selectSources, sourceFilter, tenantSources };
304
+ export type { CreateDjangoSitemapOptions, CreateRobotsOptions, CreateSitemapIndexOptions, SitemapChunkInfo, SitemapEntry, SitemapFeedPage, SitemapIndex, SitemapSourceInfo, SourceSelector, StaticRoute };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/nextjs",
3
- "version": "2.1.610",
3
+ "version": "2.1.612",
4
4
  "description": "Next.js server utilities: sitemap, health, OG images, contact forms, navigation, config",
5
5
  "keywords": [
6
6
  "nextjs",
@@ -26,6 +26,9 @@
26
26
  "url": "https://github.com/markolofsen/django-cfg/issues"
27
27
  },
28
28
  "license": "MIT",
29
+ "engines": {
30
+ "node": ">=22"
31
+ },
29
32
  "main": "./dist/index.mjs",
30
33
  "types": "./dist/index.d.mts",
31
34
  "exports": {
@@ -159,10 +162,10 @@
159
162
  "ai-docs": "tsx src/ai/cli.ts"
160
163
  },
161
164
  "peerDependencies": {
162
- "@djangocfg/api": "^2.1.610",
163
- "@djangocfg/devtools": "^2.1.610",
164
- "@djangocfg/i18n": "^2.1.610",
165
- "@djangocfg/ui-core": "^2.1.610",
165
+ "@djangocfg/api": "^2.1.612",
166
+ "@djangocfg/devtools": "^2.1.612",
167
+ "@djangocfg/i18n": "^2.1.612",
168
+ "@djangocfg/ui-core": "^2.1.612",
166
169
  "next": "^16.2.2"
167
170
  },
168
171
  "peerDependenciesMeta": {
@@ -177,28 +180,28 @@
177
180
  }
178
181
  },
179
182
  "dependencies": {
180
- "chalk": "^5.6.2",
181
- "conf": "^15.1.0",
183
+ "chalk": "^6.0.1",
184
+ "conf": "^16.0.0",
182
185
  "consola": "^3.4.2",
183
- "next-intl": "^4.13.2",
184
- "semver": "^7.8.5"
186
+ "next-intl": "^4.14.9",
187
+ "semver": "^7.8.6"
185
188
  },
186
189
  "devDependencies": {
187
- "@djangocfg/api": "^2.1.610",
188
- "@djangocfg/devtools": "^2.1.610",
189
- "@djangocfg/i18n": "^2.1.610",
190
- "@djangocfg/layouts": "^2.1.610",
191
- "@djangocfg/typescript-config": "^2.1.610",
192
- "@djangocfg/ui-core": "^2.1.610",
190
+ "@djangocfg/api": "^2.1.612",
191
+ "@djangocfg/devtools": "^2.1.612",
192
+ "@djangocfg/i18n": "^2.1.612",
193
+ "@djangocfg/layouts": "^2.1.612",
194
+ "@djangocfg/typescript-config": "^2.1.612",
195
+ "@djangocfg/ui-core": "^2.1.612",
193
196
  "@types/node": "^25.9.5",
194
- "@types/react": "19.2.15",
195
- "@types/react-dom": "19.2.3",
196
- "@types/semver": "^7.7.1",
197
+ "@types/react": "19.3.0",
198
+ "@types/react-dom": "19.3.0",
199
+ "@types/semver": "^7.8.0",
197
200
  "@types/webpack": "^5.28.5",
198
- "eslint": "^9.39.5",
199
- "lucide-react": "^0.545.0",
200
- "tsup": "^8.5.1",
201
- "tsx": "^4.23.0",
201
+ "eslint": "^10.14.0",
202
+ "lucide-react": "^1.68.0",
203
+ "tsup": "^9.0.0",
204
+ "tsx": "^4.23.15",
202
205
  "typescript": "^5.9.3"
203
206
  },
204
207
  "publishConfig": {