IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved

Replaced by an explicit list of forms only (ten exported names, runtime env names, project file
names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import
paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are
not touched. package.json keeps the five old bin names beside the five new ones.
The old names stop working in this commit and come back as aliases in the next; docs follow.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:24:21 +01:00
co-authored by Claude Fable 5.2
parent 414a4702df
commit 0a4f001797
262 changed files with 955 additions and 950 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ export type SiteProvidersProps = {
* yourself in a client component.
*/
lightbox?: boolean | Omit<LightboxProviderProps, 'children' | 'renderDialog' | 'renderImage'>
/** Consent log endpoint, e.g. '/api/ipal/consent' (ipalKit consentLog: true). */
/** Consent log endpoint, e.g. '/api/ipal/consent' (iapl consentLog: true). */
logEndpoint?: string
/**
* CSP nonce for a nonce-based policy (createProxy `csp`): read it in the layout
@@ -50,7 +50,7 @@ export type SiteProvidersProps = {
/** getSiteShell(locale) from lib/content. */
shell: SiteShell
/**
* Built-in statistics (ipalKit stats: true): mounts <PageStats>. `true` or
* Built-in statistics (iapl stats: true): mounts <PageStats>. `true` or
* `{ locale, endpoint }`. Default off.
*/
stats?: boolean | PageStatsProps
+8 -8
View File
@@ -78,7 +78,7 @@ type CreateContentHelpersArgs = {
/**
* Options for the ready-made `robots` handler, e.g.
* `{ disallowParams: ['s', 'meter'], aiBots: 'block-training' }`, or
* `{ adminRoute: false }` when the admin path is hidden (ipalKit adminRoute).
* `{ adminRoute: false }` when the admin path is hidden (iapl adminRoute).
*/
robots?: RobotsOptions
/**
@@ -172,7 +172,7 @@ export type PageJsonLdOptions = {
*
* ```ts
* // src/lib/content.ts
* import { createContentHelpers } from 'ipal-kit'
* import { createContentHelpers } from 'IAPL'
* import config from '@/payload.config'
* import { contentConfig } from '@/content.config'
*
@@ -270,7 +270,7 @@ export function createContentHelpers({
page = 1,
): Promise<PageMetadata> => {
if (!i18n) {
throw new Error('[ipal] createContentHelpers: pass `i18n` to use generatePageMetadata.')
throw new Error('[iapl] createContentHelpers: pass `i18n` to use generatePageMetadata.')
}
pageMetadata ??= createPageMetadata({
baseUrl: origin || undefined,
@@ -456,7 +456,7 @@ export function createContentHelpers({
const sitemap = cache(async (): Promise<SitemapEntry[]> => {
if (!i18n) {
throw new Error(
'[ipal] createContentHelpers: pass `i18n` to use the sitemap handler.',
'[iapl] createContentHelpers: pass `i18n` to use the sitemap handler.',
)
}
try {
@@ -484,7 +484,7 @@ export function createContentHelpers({
// return an empty sitemap instead of failing the build. Runtime regeneration
// produces the real one. See dynamic='force-dynamic'.
console.warn(
'[ipal] sitemap: could not reach the database, returning empty entries ' +
'[iapl] sitemap: could not reach the database, returning empty entries ' +
"(add `export const dynamic = 'force-dynamic'` to app/sitemap.ts to " +
'generate at runtime and avoid build-time DB access):',
error,
@@ -647,7 +647,7 @@ export function createContentHelpers({
// reachable at runtime. Without this every project would need its own
// try/catch here. (Same graceful-degradation as the sitemap handler.)
console.warn(
'[ipal] generateStaticParams: database not reachable during build ' +
'[iapl] generateStaticParams: database not reachable during build ' +
'(Docker/CI) — returning empty params; routes render on-demand at runtime:',
err,
)
@@ -665,7 +665,7 @@ export function createContentHelpers({
const sitemapRoute = createSitemapRouteHandler(sitemap, { ...sitemapOptions, style: sitemapStyle ?? {} })
const needI18n = (what: string): I18nConfig => {
if (!i18n) {throw new Error(`[ipal] createContentHelpers: pass \`i18n\` to use ${what}.`)}
if (!i18n) {throw new Error(`[iapl] createContentHelpers: pass \`i18n\` to use ${what}.`)}
return i18n
}
@@ -912,7 +912,7 @@ export type SiteShell = {
formTexts: FormNotificationTexts
/** Site-wide nodes (WebSite, Organization…) for <JsonLdGraph>. */
jsonLd: Record<string, unknown>[]
/** Notifications → Lightbox (English fallbacks without ipalKit `lightbox`) — <SiteProviders lightbox> reads it. */
/** Notifications → Lightbox (English fallbacks without iapl `lightbox`) — <SiteProviders lightbox> reads it. */
lightboxTexts?: LightboxTexts
settings: Record<string, unknown>
/** Site Settings → Theme, for <ThemeScript> / <SiteProviders theme> and <ThemeSwitcher label>. */
+2 -2
View File
@@ -86,11 +86,11 @@ type PageArgs = { params: Promise<{ locale?: string; slug?: string[] }> }
export function createPageRoute(helpers: Helpers, options: PageRouteOptions) {
const { blockProps, blocks, homeAlias = 'redirect', jsonLd = true, layoutField = 'layout', notFound, onMissing = 'notFound', permanentRedirect, redirect, render } = options
if (onMissing === 'redirectHome' && !redirect) {
throw new Error("[ipal] createPageRoute: onMissing: 'redirectHome' needs `redirect` from 'next/navigation'.")
throw new Error("[iapl] createPageRoute: onMissing: 'redirectHome' needs `redirect` from 'next/navigation'.")
}
const localeOf = (locale: string | undefined) => {
const l = locale ?? helpers.i18n?.defaultLocale
if (!l) {throw new Error('[ipal] createPageRoute: no locale param and no i18n.defaultLocale in createContentHelpers.')}
if (!l) {throw new Error('[iapl] createPageRoute: no locale param and no i18n.defaultLocale in createContentHelpers.')}
return l
}