1.18.0 performance items: tests, the reference budget gate tightened (JS 195 kB, 404 without its exception, TTL check), docs (performance.md, AGENT.md, iapl-performance, module pages, api.md), changelog: what changes for an existing site
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d628839235
commit
f0127ac1b8
+3
-3
@@ -77,9 +77,9 @@ import { migrateTitleSeparator } from './modules/seo/titleSeparator.js'
|
||||
import { applyCollectionOverride } from './modules/shared/collectionOverride.js'
|
||||
import { assertDevelopmentHosts } from './modules/shared/developmentHosts.js'
|
||||
import { withRetention } from './modules/shared/retention.js'
|
||||
import { assertPluginSwitches } from './modules/shared/switches.js'
|
||||
import { isMongo, syncTtlIndex, ttlField } from './modules/shared/ttl.js'
|
||||
import { withVersionLimit } from './modules/shared/versionLimit.js'
|
||||
import { assertPluginSwitches } from './modules/shared/switches.js'
|
||||
import { buildStatsCollection, buildStatsEndpoint } from './modules/stats/index.js'
|
||||
import { visitorCookieFor } from './modules/stats/visitorCookie.js'
|
||||
|
||||
@@ -884,7 +884,7 @@ export const iapl = (options: IaplOptions): Plugin => {
|
||||
// MongoDB: the hidden date the TTL index counts from (shared/ttl.ts); SQL keeps its schema as it was
|
||||
if (isMongo(config)) {consentCollection.fields = [...consentCollection.fields, ttlField()]}
|
||||
config.collections = [...(config.collections ?? []), applyCollectionOverride(consentCollection, logOptions.collectionOverrides)]
|
||||
ttlSyncs.push({ days: logOptions.retentionDays ?? 1095, enabled: logOptions.ttlIndex !== false, from: 'createdAt', slug: CONSENT_LOG_SLUG })
|
||||
ttlSyncs.push({ slug: CONSENT_LOG_SLUG, days: logOptions.retentionDays ?? 1095, enabled: logOptions.ttlIndex !== false, from: 'createdAt' })
|
||||
config.endpoints = [...(config.endpoints ?? []), buildConsentLogEndpoint(logOptions)]
|
||||
config = withRetention(config, 'consent-records', logOptions.retentionDays ?? 1095)
|
||||
}
|
||||
@@ -969,7 +969,7 @@ export const iapl = (options: IaplOptions): Plugin => {
|
||||
const statsCollection = buildStatsCollection()
|
||||
if (isMongo(config)) {statsCollection.fields = [...statsCollection.fields, ttlField()]}
|
||||
config.collections = [...(config.collections ?? []), applyCollectionOverride(statsCollection, statsOptions.collectionOverrides)]
|
||||
ttlSyncs.push({ days: statsOptions.retentionDays ?? 90, enabled: statsOptions.ttlIndex !== false, from: 'lastAt', slug: 'stats-visits' })
|
||||
ttlSyncs.push({ slug: 'stats-visits', days: statsOptions.retentionDays ?? 90, enabled: statsOptions.ttlIndex !== false, from: 'lastAt' })
|
||||
config.endpoints = [...(config.endpoints ?? []), buildStatsEndpoint(statsOptions)]
|
||||
config = withRetention(config, 'stats-visits', statsOptions.retentionDays ?? 90)
|
||||
config.admin = {
|
||||
|
||||
Reference in New Issue
Block a user