@bison-lab/payload-core 5.7.0 → 5.8.0

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +15 -15
package/README.md CHANGED
@@ -913,7 +913,7 @@ the switcher/hreflang filter; `GET /api/translation/locales` serves it to an
913
913
  edge runtime. `localizeExistingContent` is the one-to-several locale data
914
914
  migration: it runs the generated SQL with every `DROP COLUMN` / `DROP TYPE`
915
915
  moved last and each moving column copied into `<table>_locales` first.
916
- It also sets the default locale on the new `locale` column of `_rels` / `_texts` / `_numbers` rows whose `path` is a localized field (`isLocalizedPath` over the migration's `payload.config`), and stops when such rows exist without it. Postgres only. `pnpm --filter @bison-lab/payload-core test:postgres` runs it against a local Postgres with recorded `migrate:create` output (`src/__tests__/fixtures/localize/`); the normal suite skips it. The same command also boots a real Payload on a scratch database (`@payloadcms/db-postgres`, a dev dependency pinned to the Payload version) to hold the Interface text Global's behavior that FakePayload only copies: a never-saved Global reading as a draft, and a version restore writing the live row (`interface-text-postgres.test.ts`, #305 / #309).
916
+ It also sets the default locale on the new `locale` column of `_rels` / `_texts` / `_numbers` rows whose `path` is a localized field (`isLocalizedPath` over the migration's `payload.config`), and stops when such rows exist without it. Postgres only. `pnpm --filter @bison-lab/payload-core test:postgres` runs it against a local Postgres with recorded `migrate:create` output (`src/__tests__/fixtures/localize/`); the normal suite skips it. The same command also boots a real Payload on a scratch database (`@payloadcms/db-postgres`, a dev dependency pinned to the Payload version) to hold the Interface text Global's behavior that FakePayload only copies: a never-saved Global reading as a draft, and a version restore writing the live row (`interface-text-postgres.test.ts`, #305 / #309). `restore-rest-postgres.test.ts` logs in and restores page versions through Payload's REST handler (`handleEndpoints`), the request the admin's Restore sends, so a hook that queries with the restore's request is held to the REST path, not only the Local API: the slug check, and the Roles read that decides Publish (#334).
917
917
 
918
918
  ### Jobs, usage and failures (#295, #296)
919
919
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bison-lab/payload-core",
3
- "version": "5.7.0",
3
+ "version": "5.8.0",
4
4
  "description": "Site-agnostic Payload CMS configuration for Bison Lab sites: the SEO tab, the Theme global, the Roles Global, the brand-assets cupboard, and the metadata and theme readers for the pages they describe",
5
5
  "keywords": [
6
6
  "bison-lab",
@@ -96,14 +96,14 @@
96
96
  "@bison-lab/fonts": "^3.0.0 || ^4.0.0 || ^5.0.0",
97
97
  "@bison-lab/tokens": "^3.0.0 || ^4.0.0 || ^5.0.0",
98
98
  "@bison-lab/ui": "^4.0.0 || ^5.0.0",
99
- "@payloadcms/live-preview-react": "^3.0.0",
100
- "@payloadcms/plugin-redirects": "^3.0.0",
101
- "@payloadcms/plugin-seo": "^3.0.0",
102
- "@payloadcms/richtext-lexical": "^3.0.0",
103
- "@payloadcms/ui": "^3.0.0",
99
+ "@payloadcms/live-preview-react": "^3.94.2",
100
+ "@payloadcms/plugin-redirects": "^3.94.2",
101
+ "@payloadcms/plugin-seo": "^3.94.2",
102
+ "@payloadcms/richtext-lexical": "^3.94.2",
103
+ "@payloadcms/ui": "^3.94.2",
104
104
  "@resvg/resvg-js": "^2.0.0",
105
105
  "next": "^15.2.0 || ^16.0.0",
106
- "payload": "^3.0.0",
106
+ "payload": "^3.94.2",
107
107
  "react": "^18.0.0 || ^19.0.0",
108
108
  "satori": ">=0.10.0"
109
109
  },
@@ -141,12 +141,12 @@
141
141
  },
142
142
  "devDependencies": {
143
143
  "@anthropic-ai/sdk": "^0.110.0",
144
- "@payloadcms/db-postgres": "3.88.0",
145
- "@payloadcms/live-preview-react": "^3.88.0",
146
- "@payloadcms/plugin-redirects": "3.88.0",
147
- "@payloadcms/plugin-seo": "^3.88.0",
148
- "@payloadcms/richtext-lexical": "^3.88.0",
149
- "@payloadcms/ui": "^3.88.0",
144
+ "@payloadcms/db-postgres": "3.94.2",
145
+ "@payloadcms/live-preview-react": "^3.94.2",
146
+ "@payloadcms/plugin-redirects": "3.94.2",
147
+ "@payloadcms/plugin-seo": "^3.94.2",
148
+ "@payloadcms/richtext-lexical": "^3.94.2",
149
+ "@payloadcms/ui": "^3.94.2",
150
150
  "@resvg/resvg-js": "2.6.2",
151
151
  "@testing-library/jest-dom": "^6.9.1",
152
152
  "@testing-library/react": "^16.3.2",
@@ -154,7 +154,7 @@
154
154
  "@types/react-dom": "^19.2.3",
155
155
  "jsdom": "^29.0.1",
156
156
  "next": "^16.3.4",
157
- "payload": "^3.88.0",
157
+ "payload": "^3.94.2",
158
158
  "react": "^19.2.4",
159
159
  "react-dom": "^19.2.4",
160
160
  "satori": "0.63.2",
@@ -175,6 +175,6 @@
175
175
  "typecheck": "tsc --noEmit",
176
176
  "test": "vitest run",
177
177
  "test:watch": "vitest",
178
- "test:postgres": "BISON_PG_TEST=1 vitest run src/__tests__/translate-localize-postgres.test.ts src/__tests__/interface-text-postgres.test.ts src/__tests__/publish-gate-postgres.test.ts"
178
+ "test:postgres": "BISON_PG_TEST=1 vitest run src/__tests__/translate-localize-postgres.test.ts src/__tests__/interface-text-postgres.test.ts src/__tests__/publish-gate-postgres.test.ts src/__tests__/restore-rest-postgres.test.ts"
179
179
  }
180
180
  }